Kavitha M

Kavitha M

  • 2k
  • 10
  • 2.2k

Pass multiple values- Query string - Javascript

May 23 2014 2:17 AM
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?
 
 

Brought to you by:

Answers (8)