Category: C# – Misc

Random Notes and simple code on Developing Web Sites (Applications) in ASP.net using C# #.Net Web Applications

Brought from: http://salearningschool.com/displayArticle.php?table=Articles&articleID=1319&title=Random%20Notes%20and%20simple%20code%20on%20Developing%20Web%20Sites%20(Applications)%20in%20ASP.net%20using%20C# And sure, pretty old article.. Random Notes and simple code on Developing Web Sites (Applications) in ASP.net using C# The information below primarily apply to the web page model of web-development in C# _PageStart.cshtml runs at each page start/open _AppStart.cshtml runs at the beginning of the application Syntax to use the Layout …

Continue reading

Razor, Web-page Model, Web-Application Development in C# #.Net Web Applications

Brought from: http://salearningschool.com/displayArticle.php?table=Articles&articleID=1320&title=Razor,%20Web-page%20Model,%20Web-Application%20Development%20in%20C# (written long back) Razor, Web-page Model, Web-Application Development in C# Razor:a markup syntax to add server side code into ASP.net pages Razor example: Current time is @DateTime.Now Razor Code Syntax Single statement block @{ var message = “Hello World”; } Inline expression or variable The message: @message Multi-statement block @{ var greeting …

Continue reading

Date Time Calendar Functions in .Net, PHP, and Java Worlds #104

Date and time related operations are very common in software and web-applications development. Hence, better learn them well. Keep your resources (code samples, function lists) for reuse in future. I am just listing some date, time, and calendar related resources in different platforms. To be good at multiple platforms at the same time, learn the …

Continue reading

Some recent stuff #124

Reviewed C++ from http://gd.tuwien.ac.at/languages/c/c++oop-pmueller/tutorial.html. Working with a research project in electromagnetics and dealing with a tricky issue with multiple header files, typedef on templates, templates, pointers, and similar – could solve finally. C++ had to solve error like: uninitialized reference member `Edge::v1′ – subclass base class constructor reference related issue PHP Work: Image manipulation, image …

Continue reading

How to Integrate Paymentech Payment Processing Solution on Your eCommerce Shop #17

How to Integrate Paymentech Payment Processing Solution on Your eCommerce Shop Sign up with paymentech. Get approval from them. Get an account with them Determine, how your software/application will verify with their API: Username/Password (preferred) or IP address Get the Username/Password for them for verification with their API. You will also be assigned a Merchant …

Continue reading

Online Reversal Request to Paymentech in C# #17

protected void saLearnOnlineReversal(object sender, EventArgs e) { PaymentechGateway gateway = new PaymentechGateway(); gateway.Url = “https://wsvar.paymentech.net/PaymentechGateway”; //Create a reversal request object ReversalElement reversalObj = new ReversalElement(); reversalObj.orbitalConnectionUsername = “paymentech_username”; reversalObj.orbitalConnectionPassword = “paymentech_password”; reversalObj.bin = “bin number with paymentech”; reversalObj.merchantID = “Your merchant ID with Paymentech”; reversalObj.terminalID = “Your Terminal ID with Paymentec”; //transaction for reversal reversalObj.orderID …

Continue reading

C#: Handling Multiple Keyboards and Multiple Microphones in the Same Software #18

I was working for software that needed multiple keyboards support along with multiple microphones support. Multiple keyboards Support:Detecting multiple keyboards/devices:GetRawInputDeviceList( IntPtr.Zero, ref deviceCount, (uint)dwSize ) returns the number of devices detected You can get a project that detects multiple keyboards and stores the devices in a HashTable at: http://www.codeproject.com/KB/system/rawinput.aspx#_Toc156395978 Multiple Microphones Also, I had to …

Continue reading

XML Related Clasees in .Net #18

XML in ADO.net VB.NET C#.NETXML is the foundation of .NET. .NET internally represents data as XML and hence can provide interoperability and interaction among applications written in different platforms and languages[.Net compatible].XmlReader In .Net you can use XML with SqlCommand object. You first create a connection to the sql server database using the SqlConnection object. …

Continue reading

Creating your own Class in C# in ASP.net #19

Creating your own Class in C# in ASP.net It is kind of simple. You need to create a class library. The class library will create a dll file. From your project, you need to add reference to the dll file. Then you will be able to use the classes and methods of the class library. …

Continue reading

A Simple ASP.Net Form in C#. Payment Information Collection Form. #19

A Simple ASP.Net Form in C#. Payment Information Collection Form. Such form can be used in test operation while implementing online payment processing . The input fileds are to send data to the payment gateway. The response fields are to display response from payment gateway. Here, the output fields represent the response fields as sent …

Continue reading