Hi friends,
I have 2 values in 'A' page as below
string OppNumber = DataBinder.Eval(e.Row.DataItem, "OpportunityID").ToString();
string LeadNo = DataBinder.Eval(e.Row.DataItem, "Lead_no").ToString();
Now, I want to pass them to 'B' page in query string so I put the following code in 'A' page
HyperLink h5 = e.Row.FindControl("HypShowAllActivities") as HyperLink;
h5.Attributes.Add("OnClick", "fnDispAllActivities('" + OppNumber + ' ' + LeadNo + "')");
In design page of 'A' i added the following code
function fnDispAllActivities(OppNumber,LeadNo)
{
window.open('B.aspx?DocNo=' + OppNumber + '&LeadNo=' + LeadNo + '&Number=&ID=&Row=New', '', '', 'toolbars=0,resizable=1,scrollbars=0,width=800,height=600,top=0,left=0');
}
My requirement is to retrive the oppnumber,leadno seperately in 'B' page. Now,I can't get it them as seperatly,
But i have mistakes here.Can you Please help me to solve this?
Bhabani PrasadPosted May 23, 2014, 3:48 AM
Anupam SinghPosted May 23, 2014, 3:45 AM
Kavitha MPosted May 23, 2014, 3:27 AM
Anupam SinghPosted May 23, 2014, 3:12 AM
Kavitha MPosted May 23, 2014, 3:07 AM
Anupam SinghPosted May 23, 2014, 3:02 AM
in this line string LeadNo = DataBinder.Eval(e.Row.DataItem, "Lead_no").ToString();
you are not getting value.
you have to check your code for the same.
Kavitha MPosted May 23, 2014, 2:40 AM
Thanks for your reply. I check it .
Anupam SinghPosted May 23, 2014, 2:26 AM
hope it helps