Posts

In Windows application Tag Property of radio button (controls) is useful as like value field of controls in web Application

I don't have so much experience in windows application.. at that time i have gone through internet for Value Filed property of Controls in windows application. but i haven't find any link then i have gone through Property windows of Radio Button (any control).then I used that TAG property like a value field as we are using in web application. I used it in one of my desktop application.see this one of the step of XML Operation(XMLNodeIterator) for eg. rbButton.Tag = (object)xNodeIterator.Current.GetAttribute("ansId", "");

How to get motherboard serial number, Processor ID, VolumeSerialNumber using C#?

Add using System.Management; namespace in your application then //Get motherboard's serial number ManagementObjectSearcher mbs = new ManagementObjectSearcher("Select * From Win32_BaseBoard"); foreach (ManagementObject mo in mbs.Get()) { textBox1.Text = mo["SerialNumber"].ToString(); } //Get Processor's Identity mbs = new ManagementObjectSearcher("Select * From Win32_processor"); foreach (ManagementObject mo in mbs.Get()) { textBox2.Text = mo["ProcessorID"].ToString(); } //Get Network Adapter Configuration mbs = new ManagementObjectSearcher("Select * From Win32_NetworkAdapterConfiguration"); foreach (ManagementObject mo in mbs.Get()) { textBox3.Text = mo["MACAddress"].ToString(); break; } ...

Building and Consuming XML web services

Creating Web Service using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class HelloHeader : SoapHeader { public string Username; public string Password; } public class HelloSoapHeader : System.Web.Services.WebService { public HelloHeader myHeader; [WebMethod] [SoapHeader("myHeader")] public string HelloWorld() { System.Threading.Thread.Sleep(1000); if (myHeader == null) return "Hello World"; else return "Hello " + myHeader.Username + " Your Password is :" + myHeader.Password; } } Consumming web service Synchronously using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.U...

Web page execution

This article is copied from http://www.c-sharpcorner.com/UploadFile/hima_.net/WebPageExecutioninIIS05162006054117AM/WebPageExecutioninIIS.aspx How the Simple Web page execution Happens? As All of us know A Request comes from Client (Browser) and sends to Server (We call it as Web server) in turn Server Process the Request and sends response Back to the Client in according to the client Request But internally in the Web server there is quite interesting process that happens. To get aware of that process we should first of all know about the architecture of the IIS It mainly consists of 3 Parts/Files 1. Inetinfo.exec 2. ISAPI Filter (Container for Internet Server Application Interface dlls) , 3. Worker Process (aspnet_wp.exe) When ever a Request comes from the Client: Inetinfo.exe is the ASP.Net Request Handler that handles the requests from the client .If it’s for static resources like HTML files or image files inetinfo.exe process the request and sent to client If th...

asp.net questions

What do I need to create and run an ASP.NET application? Windows 2000, Windows Server 2003 or Windows XP. ASP.NET, which can be either the redistributable (included in the .NET SDK) or Visual Studio .NET. Where can I download the .NET SDK? .NET SDK can be obtained here . (You have to install the Microsoft .NET Framework Version 1.1 Redistributable Package before installing the .NET SDK.) Are there any free IDEs for the .NET SDK? Microsoft provides Visual Studio 2005 Express Edition Beta for free. Of particular interest to the ASP.NET developers would be the Visual Web Developer 2005 Express Edition Beta 2 available as a free download . The ASP.NET Web Matrix Project (supported by Mi...

Web Services

Asp Net Web Services : Here are some web services interview questions which is very helpful in interviews. This great listing of interview questions provides a lot of information on Web Services Questions and Web Services Faqs. Not at all, instead of web services faqs and interview questions you can also learn how to use web services in asp net. If you need more web services faqs used in asp net you can also contact us for more info। Question: Can you define basic element of WebServices and explain any one from them? Answer: These are as follows SOAP, WSDL and UDDI. And I am explaining about the SOAP(Simple Object Access Protocol) it is a communication protocol it is for communication between application it is platform and language independent.It is based on XML and also help to get from Firwall. Question: Explain functioning of Web Services Protocols ? Answer: Http-Get: - This is standard protocol that helps client to communicate with s...
Remoting is the process through which we can access any remote object from one application domain to another application domain. For creating remote object the class object must be inherited by MarshalByRefObject class. Application domain is the runtime environment of application, For MicrosoftWord, domain is MS office, For .NET programme, .NET runtime environment. Terms Used in Remoting Proxy: To avoid conjunction in networking. Main work is task Distributing.There are two type of proxy. Transparent proxy (There is no physical existence , Created by IIS server ) Real Proxy (Physical Existence) Channel : Channel provides the medium for transfer data from one location to another location. There are two types of channel. TCP(work with Predefined root Connection oriented) HTTP (No need predefined root) Formatters: Change the data in an appropriate format that it can traverse through channels. There are two types of formatters Binary SOAP(Simple Object Ac...