我想编写webusercontrol for image& labl属性在运行时更改 [英] I want to code for webusercontrol for image& labl properties changed at the run time

查看:59
本文介绍了我想编写webusercontrol for image& labl属性在运行时更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是sadhana,我想代码为webusercontrol for image&labl属性在运行时更改我有错误,而我正在编写类似set&ger属性的代码请发给我代码

i am sadhana,I want to code for webusercontrol for image& labl properties changed at the run timei got errors while i am writing code like set & ger properties please send me code

推荐答案





我无法理解你的要求是什么?

如果要创建一个包含Image和Label控件的UserControl,可以在解决方案中通过UserControl添加。在用户控件中添加图像和标签控件。现在您可以通过以下方式更改它们: -

Hi,

I am not able to understand what is your requirement?
If you wants to create a UserControl having Image and Label controls in it, you can adding by UserControl in your solution. add image and label controls in user control. now you can change them by something like this :-
Image img1 = (Image)UC.FindControl("image1");
img.url = "image1.jpg";

你可以在Google上轻松找到一些关于用户控制的资源。

https://www.google.co.in/search?q= usercontrol + in + asp.net& oq = usercontrol + in +& aqs = chrome.2.69i57j0l5.5066j0j7& sourceid = chrome& espv = 210& es_sm = 93& ie = UTF-8 [ ^ ]



http://msdn.microsoft.com/en-us/library/y6wb1a0e(v=vs .100).aspx [ ^ ]

You can easily find some resource on Google about user control.
https://www.google.co.in/search?q=usercontrol+in+asp.net&oq=usercontrol+in+&aqs=chrome.2.69i57j0l5.5066j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8[^]
and
http://msdn.microsoft.com/en-us/library/y6wb1a0e(v=vs.100).aspx[^]


这篇关于我想编写webusercontrol for image& labl属性在运行时更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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