开发者

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

开发者 https://www.devze.com 2023-01-29 07:12 出处:网络
I have a content page with multiple pages, they are being shown as website/index?content=home&page=1, 2, 3 etc...

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

精彩评论

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

关注公众号