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 PrasadRank #8,369 · 223 reputationPosted May 22, 2014, 11:48 PM EDT
Anupam SinghRank #643 · 3.7K reputationPosted May 22, 2014, 10:26 PM EDT
hope it helps
Kavitha M9 reputationPosted May 22, 2014, 10:40 PM EDT
Thanks for your reply. I check it .
Anupam SinghRank #643 · 3.7K reputationPosted May 22, 2014, 11:02 PM EDT
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 M9 reputationPosted May 22, 2014, 11:07 PM EDT
Anupam SinghRank #643 · 3.7K reputationPosted May 22, 2014, 11:12 PM EDT
Kavitha M9 reputationPosted May 22, 2014, 11:27 PM EDT
Anupam SinghRank #643 · 3.7K reputationPosted May 22, 2014, 11:45 PM EDT