如何在aspx页面文本框中获取Silverlight文本框值? [英] How to get Silverlight textbox value in aspx page textbox ?

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

问题描述

hai
如何获得银色的浅色文本框到aspx页面文本框的价值?目前,我可以通过在Silverlight应用程序中单击按钮来获得Silverlight的价值,我的意思是我在Silverlight应用程序中具有按钮,并且在该按钮单击事件中,我只能从aspx页面到sliverlight并从aspx页面发送到silverlight来获取价值.我的代码是

这用于将值发送到aspx页面形式的Silverlight应用程序

hai
How to get value of silver light text box to aspx page text-box ? Currently i can get value for silverlight through button click in silverlight application itslef,i mean i have button in silverlight application and in that button click event only i can get value form aspx page to sliverlight and send to aspx page to silverlight .My code is

This for send value to aspx page form Silverlight application

HtmlPage.Document.GetElementById("TextBox1").SetProperty("value", DataText.Text)

此代码在silverlight应用程序中可用,asp文本框名称为"TextBox1",silverlight文本框名称为"DataText".

这是用于获取值形式的aspx页面形式的Silverlight应用程序

This code available in silverlight application and asp textbox name is "TextBox1" and silverlight textbox name is "DataText".

This for get value form aspx page form Silverlight application

DataText.Text = HtmlPage.Document.GetElementById("txtData").GetProperty("value").ToString();



上面的代码在silverlight按钮单击事件中可用,但是我需要在aspx页面按钮单击事件中,我从silverlight文本框值中获取值.

为什么我要问这个问题,如果我再次发送值形式的Silverlight按钮单击事件,我可以执行aspx页面按钮evet,因此发生了两个按钮事件,因此我需要减少一个单击事件,

请尽快回复

问候
Aravind



The above code available in silverlight button click event,but my need is ,in aspx page button click event i get value from silverlight textbox values.

Why i am asking this ,if i send value form silverlight button click event again ,i can execute the aspx page button evet,so it two button event occurs,so i need to reduce one click event,

pls reply asap

Regards
Aravind

推荐答案

嗨Aravindba,可能是此已回答的线程 [ ^ ]会为您提供帮助.

问候.
Hi Aravindba, may be this answered thread[^] helps to you.

Regards.


这篇关于如何在aspx页面文本框中获取Silverlight文本框值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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