查询字符串传递到aspx页面 [英] Querystring passing to aspx page

查看:65
本文介绍了查询字符串传递到aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个aspx页,在第一页中我有dropdownlist,在ddl中我有从数据库中加载的值....因此,无论我从下拉列表中选择什么值,它都应显示下一个aspx页面....如何做...
现在使用querystring ik .如何编写代码...请帮助我

i am having 2 aspx page ,in the first page i am having dropdownlist,in the ddl i have the values loaded from the database ....so whatever value i am selecting from the dropdown list it should show the next aspx page.....how to do...
using querystring i know....how to write the code...please help me

推荐答案

CodeProject文章位于:使用QueryString在页面之间传递变量 [
CodeProject article is available at: Passing variables between pages using QueryString[^]


本文讨论了在页面之间传递值的各种方法 [
This discusses various approaches to pass values between pages[^] (including querystring).


嗨 试试这个

hi try this

Response.Redirect("page2.aspx?valuetopass=" + DropDownList1.SelectedItem.Value);




在第二页





in the second page


string myval= Request.QueryString["valuetopass"];


这篇关于查询字符串传递到aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆