Posted by: jwalin on: April 25, 2008
You can call the server side code from client side javascript. Yes, I know you can create web service(.asmx) file and call web service from Javascript but some site for little thing you have to create web service.
Instead of that you create one static method and declare as [System.Web.Services.WebMethod] then on page put the
<asp:ScriptManager ID=”ScriptManager1″ [...]
Posted by: jwalin on: April 16, 2008
http://steveorr.net/articles/Control-Extenders.aspx
Posted by: jwalin on: April 15, 2008
With Microsoft SQL Server 2005, paging on the database side is simple. There is a built-in ROW_NUMBER function designed specifically for this task. However, versions of SQL Server prior to 2005 do not have this capability. Below is one way to implement similar functionality in pre-2005 versions.
SELECT TOP X * FROM RECORDS WHERE RecordID [...]
Posted by: jwalin on: April 7, 2008
protected
void Button1_PreRender(object sender, EventArgs e)
{
string doubleSubmitScript = String.Format(@”if (typeof(Page_ClientValidate) == ‘function’) {{
if (!Page_ClientValidate()) {{ return false; }}
}}
this.value = ‘Please wait…’;
this.disabled = true;
{0};”
, ClientScript.GetPostBackEventReference(BeginButton, String.Empty));
Button1.OnClientClick = doubleSubmitScript;
}