.NET Show Javascript alert programmatically 02

.NET Show Javascript alert programmatically

.NET Show Javascript alert programmatically or code behind. At times, we require to display a error message or Information message to the users at run time in a alert message. To display Javascript alert message in .net from code behind use the following code : ClientScript.RegisterClientScriptBlock(this.GetType(), “alert”, “<script>alert(‘Your message to display.’);</script>”); in your respective method. […]

Read More

ASP.NET File Upload example -

ASP.NET File Upload control

ASP.NET File upload control : .NET file upload control makes it easier to upload files on website. To use file upload control in your project, use following design code : <div style=”padding: 2px; font-family: Arial; font-weight: bold;”> <h3>Add Files</h3> Select a file and click Upload <br /> <br /> <asp:FileUpload runat=”server” ID=”fileUpload1″ /> <br /> <br […]

Read More

ASP.NET Login page using Cookies

Cookies are data used by websites to store user specific data. It contains information regarding users which web application can read whenever the user visits a web page. You can take an example of login into a social site like facebook.com, wherein if you logged in successfully you don’t have to again login until you delete the […]

Read More