如何直接在服务器中收集文本框值 [英] How to collect textbox values directly in server
本文介绍了如何直接在服务器中收集文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用ajax.我正在通过查询字符串发送文本框值,然后将其保存到会话中.但是如果在文本框中写很多文本,则可能存在一些问题.如何在ajax javascript中调用服务器端函数,我直接在其中存储文本框值而不是通过查询字符串传递信息,以及如何使用mouseover event
直接在sql server中存储文本框值
解决方案
您可以设置会话变量.如果您不想这样做,则查询字符串是您唯一的其他选择.
i am using ajax. i am sending textbox value via query string and then saving it to session.But if write a lot text in textbox then there might be some problem.How can i call a server side function in ajax javascript where i am storing textbox value directly instead of passing via query string.and how to store textbox values directly in sql server using mouseover event
解决方案
You can set a session variable. If you don''t want to do that, a querystring is your only other option.
这篇关于如何直接在服务器中收集文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文