Click here to Skip to main content
15,912,493 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,

this my aspx code
XML
<iframe   id="I1"   runat="server" frameborder="0"   vspace="0"   hspace="0"   marginwidth="0"   marginheight="0"   scrolling="auto"   src="../MasterPage/Listpage.aspx?id=3" name="I1" style="width: 672px; height: 210px">



</iframe>       </li>


my code behind:
I1.Attributes.Add("src", "../MasterPage/Listpage.aspx?CompanyID=" + strCompanyid);

Here i need to pass the parameter strcompanyid,param1,param2 to another page(LISTPAGE) pls help me out how to pass the multiple values from code behind, i searched in Internet not able to find this

code Behind(listpage.aspx)

intCompanyID = Convert.ToInt32(Request.QueryString["CompanyID"]);
Posted
Comments
ZurdoDev 21-May-13 21:59pm    
Just add more parameters to your querystring. You already have
I1.Attributes.Add("src", "../MasterPage/Listpage.aspx?CompanyID=" + strCompanyid)
so now just do
I1.Attributes.Add("src", "../MasterPage/Listpage.aspx?CompanyID=" + strCompanyid + "&parm1=" + Parm1)
ashok_89 22-May-13 1:19am    
Great thanks a lot it worked.
ZurdoDev 22-May-13 7:36am    
Awesome.

1 solution

Just add more parameters to your querystring. You already have I1.Attributes.Add("src", "../MasterPage/Listpage.aspx?CompanyID=" + strCompanyid) so now just do
C#
I1.Attributes.Add("src", "../MasterPage/Listpage.aspx?CompanyID=" + strCompanyid + "&parm1=" + Parm1)


You can then keep adding on more parameters as needed using the ¶mname=paramvalue format.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900