如何在asp.net中获得标签的价值 [英] How can i get the value of label in asp.net

查看:89
本文介绍了如何在asp.net中获得标签的价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我正在一个有5层的项目工作,无论多少但我只想要通过数据库输出参数来的值我没有能够访问所有层的值现在我希望该值应该通过json访问带有标签的UI如何可以帮助它

解决方案

您的标签在您的代码的上下文中没有任何地方,因为您只是重定向你的成功。那么您想要访问该标签的位置?或者你试图为该标签赋值?



需要明确的事情。



当您访问WebMethod / WebService时,它本质上是静态的并且具有独立的身份。完全没有意识到你的UI / HTML和会话等。


谢谢我得到它.................

Hi all i am working in a project which having 5 layers no matter how many that but i just want that the the value which is coming through data base output parameter no i am able to access that value into all the layer now i want that value should be access on UI with label through json how can any body help it out

解决方案

Your label is nowhere in context of your code as you are just redirecting your on success. So Where you want to access that label? or where you are trying to assign value to that label?

Things that need to be clear.

As you are accessing WebMethod/WebService which is static in nature and has an isolated identity. which is completely unaware of you UI/HTML and Sessions etc.


Thanks i got it.................


这篇关于如何在asp.net中获得标签的价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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