What do you mean by 'retrieve a value from the URL'? Are you trying to retrive a value comming as a QueryString which is appended to the url? or Are you trying to read a value from a file stored in a known url?
Thank u for the response. i will be more clear. i have 2 pages: default.aspx and default2.aspx. in my default.aspx page i have a report which has many customers id.on clicking a particular id he should be redirected to the dafault2.aspx page which shows the details of that customerID. so in the load event of my default2.aspc.cs page i am writing a query using the select statement which i showed earlier which will take value from the url when the user clicks a particular customerid.
ex: www.mywebsite/default2.aspx/?customerid=5
something like the above.
so in my query
"SELECT CustomerDetails from Customer WHERE CustomerID=????"
so what do i fill in that ??????
how do i retrieve the value from the url?
i hope i have made myself clear.thanking u in advance.