|
this is my code on webform1.aspx
<asp:gridview id="GridView1" runat="server" width="100%" skinid="GridView"
="" onsorting="GridView1_Sorting" ondatabound="GridView1_DataBound" onrowdatabound="GridView1_RowDataBound" autogeneratecolumns="false" onpageindexchanging="OnPaging" showheader="true" allowpaging="True" showheaderwhenempty="True" allowsorting="True" onrowcommand="GridView1_RowCommand" pagesize="20">
<columns>
<asp:templatefield itemstyle-horizontalalign="left" itemstyle-verticalalign="Top">
<HeaderTemplate>Action</HeaderTemplate>
<HeaderStyle />
<itemtemplate>
<asp:linkbutton id="lnkverify" runat="server" text="Verify" commandname="Application_verify" commandargument="<%#Eval("RequestId") %>">
<asp:linkbutton id="lnkreject" runat="server" text="Reject" commandname="Appication_reject" commandargument="<%#Eval("RequestId") %>">
on webform.aspx.cs
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
if (e.CommandName == "Application_verify")
{
int RequestId = Convert.ToInt32(e.CommandArgument);
Response.Redirect("~/ApplicationDetails.aspx?RequestId=" + RequestId);
}
if (e.CommandName == "Appication_reject")
{
int RequestId = Convert.ToInt32(e.CommandArgument);
}
}
catch (ApplicationException ex)
{
lblsuccess.Visible = true;
lblsuccess.Text = ex.Message;
}
catch (Exception ex)
{
StackTrace st = new StackTrace(new StackFrame(true));
StackFrame sf = st.GetFrame(0);
int line = sf.GetFileLineNumber() - 1;
if (ex.Message.StartsWith("Thread") == false) { Response.Redirect("~/HandleError.aspx?ID=" + ex.Message, false); }
}
}
on Applicationdetails.aspx page i have a button control.on this button click event ,i want to change linkbutton's(this linkbutton is on webform1.aspx) text from "verify" to "verified".pls help me
|
|
|
|
|
Member 8701813 wrote: on Applicationdetails.aspx page i have a button control.on this button click event ,i want to change linkbutton's(this linkbutton is on webform1.aspx) text from "verify" to "verified".
Does not make any sense. You are on another page and want some text to be changed on a page which is not currently in view!
What it sounds is, after you click this button, whenever you visit the 'Webform1.aspx', you should see a new text. If so, on button click, set a flag (store it somewhere if needed as per workflow) that is accessible in webform1 page. When loading that page, use this flag and based on it's value set the text.
|
|
|
|
|
if it doesn't make sense....i vil change linkbutton's text on webform1.aspx
|
|
|
|
|
could u tell me how to set a flag pls
i have written my code...when i visit webform1.aspx 2nd time ,that record is not shown .....ie verfied record...so i have to set linkbutton's text to "verifid"....pls help me...what is d syntax to get linkbutton's text...pls help me
|
|
|
|
|
Member 8701813 wrote: i have to set linkbutton's text to "verifid"....pls help me...what is d syntax to get linkbutton's text.
You sound totally lost/new and would be difficult to help like this. It would be better for you to read a book and start of. Know basics before starting to code. It would help you.
|
|
|
|