开发者

How can I create a "go to page" form?

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());
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜