Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can we use cross page posting and querystring on same button?plz help me?
Posted

Yes we can.

I tried this and it worked.

default.aspx.cs

Set the postbackurl on a button click to "DEfault6.aspx?id=5"

default6.aspx.cs


C#
protected void Page_Load(object sender, EventArgs e)
    {
        string s = Request.QueryString["id"] as string;
    }


an the value of s was 5 after i ran it.
 
Share this answer
 
Comments
vangapally Naveen Kumar 27-Jun-12 8:31am    
my 5!
Rahul Rajat Singh 27-Jun-12 8:35am    
I think you forgot to vote :(
both can work at the same time but it's better to use only one thing at the same time...............
 
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