943,919 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1154
  • ASP.NET RSS
Feb 10th, 2008
0

Temporary Web Page problem

Expand Post »
I have question about Temporary Web Page.
When I click on link in my web application and redirect to ( for example)
mywebsite.com/12.aspx.
When event OnLoad() fire,I read value 12, which is Primary key and make query to the database,get record and represent on web page.
But,I need temporary web page with a address mywebsite.com/mynumber.aspx.
or whatever,where I can read value of mynumber ,make query and represents data to web page.
Is there any idea how can I solve this problem.
Thanks in advance
David
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
david_bronsky is offline Offline
4 posts
since Feb 2008
Feb 11th, 2008
0

Re: Temporary Web Page problem

That doesn't make much sense.. are you talking about URL rewriting?
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Feb 14th, 2008
0

Re: Temporary Web Page problem

I have question about Temporary Web Page.
When I click on link in my web application and redirect to ( for example)
mywebsite.com/12.aspx.
When event OnLoad() fire,I read value 12, which is Primary key and make query to the database,get record and represent on web page.
But,I need temporary web page with a address mywebsite.com/mynumber.aspx.
or whatever,where I can read value of mynumber ,make query and represents data to web page.
Is there any idea how can I solve this problem.
Thanks in advance
David
Hi david_bronsky,
You are talking about Querystring OR URL Rewriting. Querystring is some information attached on the end of the URL after question mark sign. For ex
http://www.mydomain.com/productdetails.aspx?pid=12
Quesrystring is pid=12
You can access querystring as follows
int i=Request.QueryString["pid"].ToInt32();
After that you can easily make database connection and access appropriate data from it.

Hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma
Programmer
.Net Consulting
Reputation Points: 10
Solved Threads: 4
Light Poster
dilipv is offline Offline
30 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: stored procedure problem
Next Thread in ASP.NET Forum Timeline: back button disable





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC