// empid (click on grid view row)
function EditData(empId)
{
// getting emp details
$(empId).parent().parent().find('td').each(function(index){
//alert($(this).text());
if (index==0) { $("#"+ '<%=HiddenField1.ClientID %>').val($(this).text()); }
if (index==1) { $("#"+ '<%=TextUserNm.ClientID %>').val($(this).text()); }
if (index==3) { $("#"+ '<%=TextAdd.ClientID %>').val($(this).text()); }
if (index==2) { $("#"+'<%=DDLDept.ClientID %>'+' option:contains('+$(this).text().trim()+ ')').attr('selected', 'selected'); }
if (index==4) { $("#"+ '<%=TextJDate.ClientID %>').val($(this).text()); }
if (index==4) { $("#"+ '<%=TextLDate.ClientID %>').val($(this).text()); }
});
//enable edit button
$("#"+ '<%=ButtonEdit.ClientID %>').attr("disabled","");
$("#"+ '<%=ButtonAddUser.ClientID %>').attr("disabled","true");
}
Jul 11, 2011
Jun 30, 2011
Jun 24, 2011
Jun 14, 2011
get selected value of check list box. asp.net
Dim tempStr As String = ""
For Each Item As ListItem In ChkUnitList.Items
If Item.Selected = True Then
tempStr = tempStr & Item.Text.Trim() & ","
End If
Next
get selected value of check list box. asp.net
Dim tempStr As String = ""
For Each Item As ListItem In ChkUnitList.Items
If Item.Selected = True Then
tempStr = tempStr & Item.Text.Trim() & ","
End If
Next
For Each Item As ListItem In ChkUnitList.Items
If Item.Selected = True Then
tempStr = tempStr & Item.Text.Trim() & ","
End If
Next
Jun 2, 2011
Jun 1, 2011
Disable History In c# Asp.net
//Used for disabling page caching
//HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
HttpContext.Current.Response.Cache.SetValidUntilExpires(false);
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoStore();
//HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
HttpContext.Current.Response.Cache.SetValidUntilExpires(false);
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoStore();
Subscribe to:
Posts (Atom)
-
Bootstrap css front-end framework. jQuery fast, small, and feature-rich JavaScript library. DataTables advanced interaction contro...
-
click on below link to send sms http://www.eggheadcafe.com/community/asp-net/17/10281633/code-to-send-sms-using-webservice-like-way2sms.as...
-
// use the following event in Your script tag function pageLoad(sender, args) { if (args.get_isPartialLoad()) { //alert(...
What is the use of n-tier architecture and 3-tier architecture?
how to implement 3-tier architecture in asp.net using c#. 3-Tier architecture is also called layered architecture. Some people called it ...