How to use messagebox in c#? What is the process for creating message box?
What is view state. How is it implemented?
View state is mainly used in order to store the data inbetween the postbacks. To clearly explain if you complete the registration screen you go to the next page and when you come back you could see th...
How to fill data in the dropdownlist from database
DropDownList1.Items.Add("India");
DropDownList1.Items.Add("Pakistan");
DropDownList1.Items.Add("Srilanka");
Session.Abondon and session.End
What is the difference between session.Abondon and session.End
Session.Abandon-->Cancels the Current Session.To programmatically end current users session (for any reason) we can use Session.Abandon method.
Session.End-->A session ends if a user has not requested or refreshed a page in the application for a specified period. By default, this is 20 minutes.
App_code folder in ASP.Net 2.0
What is the purpose of app_code folder in ASP.Net 2.0?
I've class files from outside the app_code directory .. you have given the answer without store class files inside the app_code directory cant create dll while runtime..i can access my class file from our site or not also while runtime dll will create for my class file or will not create
The App_Code folder is meant to store your classes, .wsdl files, and typed datasets. Any of these items stored in this folder are then automatically available to all the pages within your solution. Th...
ASP.Net - addition of two numbers
For that I created two text boxes tbnum1 and tbnum2 and a button btnadd. So question is I have to create one class ,and in this class I have to declare properties for getting values. And in button_click event I have to access the property value and assign the result to another text box. I can use property...
"csharp int firstNumber, secondNumber, result; firstNumber = Convert.ToInt32(txtFirstNumber.Text.Trim()); secondNumber = Convert.ToInt32(txtSecondNumber.Text.Trim()...
you could do that by passing parameters.For example if u have got two numbers 1 and 2 now u need to pass that values by parameter to that class where u do the arithmatic operation and from that class ...
Server controls like Datagrid, DataList, Repeater can have other child controls inside them. for example, DataGrid can have combo box inside datagrid. These child control do not raise there events b...
you could do that by
MessageBox.Show("hai");
or if u want the symbols then u could go for
MessageBox.Show(string mesasage,string caption,messageboxbuttons buttons)