|
|||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionIn this article, I will present to you an extension of the BackgroundThe aim of this project is to deliver a selectable Using the CodeThe data displayed in the protected void RegisterJavaScript(object sender, GridViewRowEventArgs e)
{
if (CurrentMode != Mode.Describe)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onmouseover"] =
"this.style.cursor='hand';";
e.Row.Attributes.Add("onclick",
Page.ClientScript.GetPostBackEventReference((Control)sender,
"Select$" + e.Row.RowIndex.ToString()));
}
}
}
You can edit or delete the data from the Usually, you want to let the user know that an AJAX update has been initiated and that the request is in progress. This approach can be realized by using the AJAX Control Toolkit, and by registering events of the Please notice, that the JavaScript block has to be defined below the ScriptManager definition and not in the header section. The code below is from Default.aspx: Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function BeginRequestHandler(sender, args)
{
var elem = args.get_postBackElement();
var updating = document.getElementById( '<% = updatingProgress.ClientID %>' );
updating.style.display = "block";
}
function EndRequestHandler(sender, args)
{
var updating = document.getElementById( '<% = updatingProgress.ClientID %>' );
updating.style.display = "none";
}
History
|
||||||||||||||||||||||||||||||||||||||||