如何获取输入值 [英] How to get the input value

查看:56
本文介绍了如何获取输入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 ClientScript.RegisterStartupScript( this  .GetType(),  prompt  var value = prompt('输入你的消息在这里。'); storeinput(dd); true ); 







我在c#code中使用了这段代码。现在任何人都可以说如何获得输入的值。

解决方案

< blockquote>使用 HiddenField 来存储值。

参考 - 如何在ASP.NET中获得提示值? [ ^ ]。

ClientScript.RegisterStartupScript(this.GetType(), "prompt", "var value = prompt('Enter your message here.'); storeinput(dd);", true);




I used this code inside c# code.Now any one can say How to get the value entered.

解决方案

Use HiddenField to store the value.
Refer- How to get prompt value in ASP.NET?[^].


这篇关于如何获取输入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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