且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C#中使用Page.ClientScript.GetPostBackClientHyperlink

更新时间:2023-12-05 23:28:52

+ e.Row.RowIndex);
e。 Row.ToolTip = 点击选择此行。;
}
}

protected void gvtotqty_onselectedindexchanged( object sender,EventArgs e)
{
foreach (GridViewRow row in gvtotqty.Rows)
{
if (row.RowIndex == gvtotqty.SelectedIndex)
{
会话[ rowindex] = row.RowIndex;
row.BackColor = ColorTranslator.FromHtml ( #A1DCF2);
row.ToolTip = string .Empty;
}
else
{
row.BackColor = ColorTranslator.FromHtml( #FFFFFF);
row.ToolTip = 点击选择此行。;
}
}
}
" + e.Row.RowIndex); e.Row.ToolTip = "Click to select this row."; } } protected void gvtotqty_onselectedindexchanged(object sender, EventArgs e) { foreach (GridViewRow row in gvtotqty.Rows) { if (row.RowIndex == gvtotqty.SelectedIndex) { Session["rowindex"]=row.RowIndex; row.BackColor = ColorTranslator.FromHtml("#A1DCF2"); row.ToolTip = string.Empty; } else { row.BackColor = ColorTranslator.FromHtml("#FFFFFF"); row.ToolTip = "Click to select this row."; } } }





一切正常,我在调试时得到了rowindex但是我无法在Textbox中输入任何内容,因为它正在刷新。我知道



Everything is working fine where I get my rowindex when debugged but I am not able to type anything in Textbox as it is getting refreshed. I know that

Page.ClientScript.GetPostBackClientHyperlink



调用PostBackEvent。通过使用此方法,如何在文本框中键入值?


calls PostBackEvent. By using this method, how can I type the values in Textboxes?