A constructor is a method in the class which gets executed when its object is created. Whenever a class or struct is created, its constructor is called. Even if we don't write the constructor code, default constructor will be created...
Friday, 29 November 2013
Monday, 25 November 2013
Sending SMS from ASP.NET
Write a method in class file
public static void CreateRequestTOSENDSMS()
{
string url = "SMS gateway url, which will...
Why we use Static Keyword?
The static keyword defines, that
the class or property or method we declare as static does not require a previous
instance of an object. In the other hand, a static method for example cannot
use any instance method / instance property...
Friday, 22 November 2013
Why .NET
Few points to answer why .NET
In .NET we have language choice to code with (C#,VB.NET, Java,Boo,Python e.t.c), producing the same type of compiled code.
.NET programs run at native speed while java is interpreted...
Thursday, 14 November 2013
How to use Ajax calendar in ASP.NET
Step 1: Register ajax dll
Add this line after @Page directive.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
Step 2 : Include scriptmanager in your code
<asp:ScriptManager ID="scrp" runat="server"> </asp:ScriptManager>
Step 3 : Next
<asp:TextBox ID="txtDOB" runat="server" />
...
Wednesday, 6 November 2013
PageIndexChanging Vs PageIndexChanged
PageIndexChanging-
Occurs when one of the pager buttons is clicked, but before the
GridView control handles the paging operation. This event is often used
to cancel the paging operation.
Ex:
protected void gvTeachers_PageIndexChanging(object sender, GridViewPageEventArgs e) { try ...
Subscribe to:
Posts (Atom)