Stored Procedure
A Stored Procedure is a program (or procedure) which is physically stored
within a database. The advantage of a stored procedure is that when it is run,
in response to a user request, it is run directly...
Tuesday, 3 December 2013
Friday, 29 November 2013
Constructors
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...
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 ...
Thursday, 31 October 2013
Event Handling in ASP.NET
Event is an action or occurrence like mouse click, key press, mouse movements, or any system generated notification. The processes communicate through events. For example, Interrupts are system generated events. When events occur the application should be able to respond to it.
In ASP.Net an event is raised on the client, and handled in the server. For example, a user clicks a button displayed...
Wednesday, 30 October 2013
ASP.NET Page Validation Controls
RequiredFieldValidator—Enables you to require a user to enter a value in a form field.
RegularExpressionValidator—Enables you to compare a value against a regular expression.
RangeValidator—Enables you to check whether a value falls between a certain minimum and maximum value.
CompareValidator—Enables you to compare a value against another value or perform a data type check.
CustomValidator—Enables...
Tuesday, 29 October 2013
WPF Introduction
Windows Presentation Foundation (WPF) is a next-generation
presentation system for building Windows client applications with
visually stunning user experiences. With WPF, you can create a wide
range of both standalone and browser-hosted applications.
The core of WPF is a resolution-independent and vector-based rendering
engine that is built to take advantage of modern graphics
hardware. WPF extends...
Wednesday, 16 October 2013
Difference between Response.Redirect and Server.Transfer
Response.Redirect involves an extra round-trip to the server whereas Server.Transfer conserves server resources by avoiding that extra round-trip. Server.Transfer just changes the focus of the page by directly communicating with...
machine.config and web.config
Machine.Config file specifies the settings that are global
to a particular machine. It is specifically used to store machine and application settings
global to all asp.net web sites running in IIS in a computer. A system...
Friday, 11 October 2013
Difference between Convert.ToString() and .ToString()
We can convert the integer i using i.ToString () or Convert.ToString
The basic difference between them is the Convert function handles NULLS while i.ToString () does not; it will throw a NULL reference exception error. So as...
What is Abstract Class and Interface? Why we use them and at What scenario we use?
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
AbstractClass:
Abtract class cannot be instantiated,
it...
Subscribe to:
Posts (Atom)