Click here to Skip to main content
15,906,947 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to create an apps with functionality to get url + data

I need help
How do I get the url and page data?
Like url : http://www.yahoo.com/view_details.asp?id=112

I need to fetch url + id ="112" data

And also data to be store in .doc , .docx file format....

Please help me how to create.

I want completed data (content) example:- I want doc file for id"112" when id are change like http://www.yahoo.com/view_details.asp?id=113 that time my application genetare another doc file with data 113
Posted
Updated 3-Nov-10 23:56pm
v4
Comments
Dalek Dave 4-Nov-10 5:56am    
Minor Edit for Grammar.

string id= Request.QueryString["id"];
see here

--update--
Response.Redirect("page1.aspx?id" + id);
//page1.aspx Page_load event

if(Request.QueryString["id"]!=null)
{
  string Newid = Request.QueryString["id"].ToString();
  //Newid will have the id from previous page.
}
 
Share this answer
 
v4
Comments
nilong 3-Nov-10 8:59am    
hy,frd thnx 4 trick bt--- i nt get proper ans....means this trick return data only use in url,,
but i need page data ....when http://www.yahoo.com/view_details.asp?id=112
type in url bar then pages load...output page return id="112" data in page ...i need that data in one doc file..ok
got it..
m@dhu 3-Nov-10 9:21am    
Do you want the complete data(content) of the page or only the data in the url?
nilong 4-Nov-10 5:28am    
yes,,i want completed data(content)
ex. i want doc file for id="112" when id are change like http://www.yahoo.com/view_details.asp?id=113
that time my application genetare another doc file with data 113
U can Use the Query String
C#
string Id ="123";
Response.Redirect("Page.aspx?id=" +Id);


On the Redirected Page Load
C#
string Idvalue = Convert.ToString(Request.QueryString["Id"]);
 
Share this answer
 
v2
try this:
[]
 
Share this answer
 
Comments
m@dhu 3-Nov-10 8:49am    
where is the link? update it.
nilong 3-Nov-10 8:49am    
wot sir?

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