Everything is achievable through technology


ASP.NET is a development framework for building web pages and web sites with HTML, CSS, JavaScript and server scripting.

ASP.NET supports three different development models:
Web Pages, MVC (Model View Controller), and Web Forms.


How to get Form sender name in PageLoad
1. Request.Params[“__EVENTTARGET”].ToString();
2. Button clickedButton = (Button)sender; if(clickedButton.Text == “bla”)

javascript alert in success of form, best method

Page.ClientScript.RegisterStartupScript(this.GetType(), “success”, “alert(‘Submitted Successfully’);window.location.href=’” + Request.RawUrl + “‘”, true);

html tag remover in

using System.Text.RegularExpressions;

const string HTML_PATTERN = “”;
static string StripHTML (string inputString)
return Regex.Replace
(inputString, HTML_PATTERN , ” “);

Increase cache of a page by adding the following code

protected void Page_Load(object sender, EventArgs e)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s