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 fi开发者_JAVA技巧eld 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!
<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>
Response.Redirect("~/index.apsx?content=home&page="+GotoPage.ToString());
精彩评论