Reputation: 51
I have a content page with multiple pages, they are being shown as website/index?content=home&page=1, 2, 3 etc...
but now I want to create something like a text field button that links to the number the visitor puts in like Go to (21) and it redirects to website/index?content=home&page=21. I want to do it without any mysql or databank entries I appreciate any help!
Upvotes: 2
Views: 3475
Reputation: 44939
<form action="website/index" method="get">
<input type="hidden" name="content" value="home" />
<label>Go to<input type="number" name="page" /></label>
<input type="submit" value="Go" />
</form>
Upvotes: 3
Reputation: 3787
Response.Redirect("~/index.apsx?content=home&page="+GotoPage.ToString());
Upvotes: 1