下拉列表所选项目在回发时发生更改 [英] dropdown list selected item is changing on postback

查看:62
本文介绍了下拉列表所选项目在回发时发生更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中使用了一些下拉列表,其中第一项是选择".如果在单击按钮时应用程序在Windows XP系统上运行,则下拉列表中所选项目将自动更改为第一个值,而我没有得到所需的输出.我该怎么办?有人请帮我...

谢谢.

I''m using some dropdown lists in my project in which the first item is ''select''. If the application is running on Windows XP system when a button is clicked the dropdownlist selected item is automatically changes to the first value and I''m not getting the desired output. What can I do for it? Anyone pls help me...

Thank you.

推荐答案

您需要检查ViewState属性:

ViewState和Postback [
You need to examine the ViewState property:

ViewState and Postback[^]


您好,
这是asp.net Web应用程序的属性,刷新页面后,所有变量或控件都将重新分配.
使用更新面板来避免此错误..

一切顺利.
Hi there,
This is the property of asp.net web application that after refreshing the page all the variables or controls is reassigned..

Use Update Panel to Avoid this error..

all the best..


这篇关于下拉列表所选项目在回发时发生更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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