如何在弹出消息scriptmanager中显示dropdownlist选择的值 [英] how to display dropdownlist selected value in popup message scriptmanager

查看:73
本文介绍了如何在弹出消息scriptmanager中显示dropdownlist选择的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我正在使用我的网页下拉列表和一个提交按钮。



无论在dropdonwlist中选择了什么部门,该部门名称必须在下面的popup scriptmanager中显示。



ScriptManager.RegisterStartupScript(this,this.GetType(),RunCode ,javascript:alert('成功发送到部门'); document.location.href ='home.aspx';,true);



请帮忙。



谢谢。

Hi friends,

am using dropdown list of my webpage and a submit button.

Whatever the Department is selected in dropdonwlist, that department name must show in this below popup scriptmanager.

ScriptManager.RegisterStartupScript(this, this.GetType(), "RunCode", "javascript:alert(' Sucessfully send to Department');document.location.href='home.aspx';", true);

Please help.

Thanks.

推荐答案

试试

dropdownlist.selectitem .text


这篇关于如何在弹出消息scriptmanager中显示dropdownlist选择的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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