asp.net

Submitted by: 
iPFaces Mobile Application Framework
Submitted by: 
To convet monthname to month no. There are two approach are given below. 1) enum Months : byte { Jan = 1 , Feb, March, April, May, June, July, August, Sept, Oct, Nov, Dec } ; public string MonthName ( int month ) { return Enum. GetName ( typeof ( Months ) , month ) ; } public byte monthNo ( string monthName ) { byte monthno = 0 ; foreach...
Submitted by: 
For show your source code of aspx page, u have to used System.IO namespace 1) Read Default.aspx File
Submitted by: 
<link>-use to include css file in webpage. protected void Page_Load(object sender, EventArgs e) { HtmlLink link = new HtmlLink(); link.Href = MapPath("~/App_Themes/GreenBlack") + "\\Stylesheet1.css"; //Acctual path of css file in your website folder. link.Attributes.Add("rel", "stylesheet"); link.Attributes.Add("type", "text/css"); Page.Header.Controls.Add(link); //add that link to page...
Submitted by: 
1)Right Click on the asp.net webpage in Solution Explorer window Click on Browse With, It display a window in which u can set Default browser, 2) select your browser and click on set as Default button then it will be default web browser for all Asp.Net Application. Internal Web Browser:-run inside the VS Environment not open external IE window.
Submitted by: 
For sending a mail in Asp.net,import System.Net.Mail Namespace. This is a simple application which u can use as a feedback form or contact us page.
Language: 
We have 4 types of Exceute methods, through which we can excecute the quries angainst Database. 1). ExecuteNonQuery(() 2). ExecuteReader() 3). ExecuteScalar() 4). ExceuteXmlReader() 1). ExecuteNonQuery(() Explanation: Executes a command but does not return any value or output usage conditions: UPDATE, INSERT, DELETE statements using System; using System.Data;
Language: 
We have to check if file exists before doing some things with that particular file. It will prevent error and work flow will be smooth, for this we have to include required namespace i.e system.IO; Using system.IO; We have to place these controls on the webpage (ASPX page) Text box with ID=Textbox1 Button with ID= button1 Label with ID= label1
Language: 
Tips1# Validate an IP address We can easily validate an IP address by Adding Namespace using System.Text.RegularExpressions; public class IPAddressTextBox: RegExTextBox { public IPAddressTextBox() { InitializeComponent(); this.ValidationExpression = @"^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$";
Submitted by: 
Sometimes we have to design those pages which have different color schemes but it is very difficult to maintain these types of pages. We can overcome from this situation by using skins and themes. This makes these things easier. 1). First create a Master Page having the following components. * One Content Placeholder 2).Create another page (default.aspx) and select the Master Page

Pages