如何将值从一个视图传递到另一个 [英] How to pass a value from one view to other
本文介绍了如何将值从一个视图传递到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用多视图控件将值从一个视图传递到另一个视图?
我正在从view1的文本框中获取值,并且不得不在view3中使用,但是我获取的是null值..
请帮助我.
How to pass a value from one view to another using a multiview control?
i am getting the value from a textbox in view1 and have to use in view3,but i am getting null value..
Please help me.
推荐答案
实际上您的问题我还没有完成.
您可以使用静态全局变量
那么您可以在view1中分配一个值,并在view2中获取数据.但它在同一页面上工作.如果您希望将数据从一页传递到另一页,则可以使用会话或设置适当性
actually u r question i not complete.
you can use a static global variable
then u can assign a value in view1 n fetch data in view2 . but it works in same page . if u want data from one page to another u can use session or get set properity
有多种方法可以将值从一页传递到另一页.查看本文 [
There are a number of ways to pass values from one page to another. Check out this article[^] - a number of approaches are discussed here.
这篇关于如何将值从一个视图传递到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文