<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("ID", "add_SanctionedStrength.aspx?sid={0}") %>' Text="Edit"></asp:HyperLink>
aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindInstitute();
BindDiscipline();
Int64 ID = Convert.ToInt64(Request.QueryString["sid"]);
if (ID > 0)
{
UpdateFlag = true;
sid = ID;
BindSanctionedStrength(ID);
ViewState["SID"] = sid;
}
else
{
ViewState["SID"] = 0;
UpdateFlag = true;
}
}
No comments:
Post a Comment