Search
Creating iPhone application in PHP using iPFaces framework
iPFaces Mobile Application Framework
- Add new comment
- Read more
- 480 reads
Convert MonthName to MonthNo and vice versa
To convet monthname to month no. There are two approach are given below.
1)
enum Months:byte { Jan = 1, Feb, March, April,
- jitendramcu's blog
- Add new comment
- Read more
- 409 reads
Show Source Code of Aspx webpage and code file in Browser window
Add Meta Tag and Link tag in head section of page in Asp.net.
<link>-use to include css file in webpage.
protected void Page_Load(object sender, EventArgs e)
{
HtmlLink link = new HtmlLink();
- jitendramcu's blog
- Add new comment
- Read more
- 1267 reads
To Change the Default web browser to other Browser in Asp.net
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,
- jitendramcu's blog
- Add new comment
- Read more
- 368 reads
Sending mail in Asp.net
Execute Commands Methods: How to use it?
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;
Check Existence of File in ASP.NET and C#
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
- Add new comment
- Read more
- 512 reads
ASP.NET Validation Tips and Tricks (Part1)
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])$";
- Add new comment
- Read more
- 343 reads
Skins and themes in ASP.NET
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



