I have a complex quesion about pass argument from page to another page
I've a webpage which is forum's list
when I run it on IE . which address is display like ? ?http://localhost/news/news_c.aspx?cid=26&FK=1?
and now I have to write a page (use C#) for forum's content
I would like to catch "cid" from address of previous page
is it possible? if yes. how can I do it? can somebody give me a tip to start it? ( which class should I use? which namespace should I import?? )
thanks ...
( if I don't make my question clearly ... please let me know I will explain it.. many thanks)
Suraj Rai93 pointsPosted Feb 5, 2007, 11:16 PM EST
If I am not wrong u r talking abt recieving querystring.....
...its very simple..write this line in the new page...e.i the page u r redirecting to....
string var = Request.QueryString["CkID"];
Regards
anup daware26 pointsPosted Feb 6, 2007, 12:40 AM EST
Joy3 pointsPosted Feb 6, 2007, 7:31 PM EST
sorry for the confusing
I've not idea how to get parameter from URL
example : /localhost/example.asp?parameter1
How can i to get this parameter ?
can you give me a example? ( using C#)
thanks you all
anup daware26 pointsPosted Feb 7, 2007, 9:53 PM EST
Hello,
Resuest to page AddEditVehicle2.aspx:
Response.Redirect ("AddEditVehicle2.aspx?mode="TEST"&mount=new");
Use of mode on AddEditVehicle2.aspx:
if (Request["mode"] == "TEST")
Hope this helps you. Please let us know if this worked or if you have found some other approach.
Thanks,
Anup Daware