473,394 Members | 1,663 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how to refresh a usercontrol ?

Hi,

I have a web servercontrol with a property

public Color TextColor
{
get
{
return txtValue.ForeColor;
}
set
{
txtValue.ForeColor = value;

}

when the client sets the TextColor, the usercontrol does not change
the color of the text.
I need somehow to perform a refresh or something like but what
exaclty?

thank you
Chris
Sep 8 '08 #1
2 1450
What client are you referring to and how does he set the TextColor?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
<cm****@gmail.comwrote in message
news:9b**********************************@f63g2000 hsf.googlegroups.com...
Hi,

I have a web servercontrol with a property

public Color TextColor
{
get
{
return txtValue.ForeColor;
}
set
{
txtValue.ForeColor = value;

}

when the client sets the TextColor, the usercontrol does not change
the color of the text.
I need somehow to perform a refresh or something like but what
exaclty?

thank you
Chris

Sep 8 '08 #2
On Sep 8, 5:44 pm, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
What client are you referring to and how does he set the TextColor?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net

<cmr...@gmail.comwrote in message

news:9b**********************************@f63g2000 hsf.googlegroups.com...
Hi,
I have a web servercontrol with a property
public Color TextColor
{
get
{
return txtValue.ForeColor;
}
set
{
txtValue.ForeColor = value;
}
when the client sets the TextColor, the usercontrol does not change
the color of the text.
I need somehow to perform a refresh or something like but what
exaclty?
thank you
Chris
In VS.NET, in a webproject, I drag-drop the usercontrol from the
solution-explorer on a webform and set the property in design mode, so
via the property page of the control.
The proerty is shown, he even recognizes the type of the property
because he shows a nice color dialogbox when i want to change the
color.
the value is accepted but like I said, the client-webform doesn't
change the color ???
Sep 8 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: lc | last post by:
I use a series of UserControl that get dynamically created and (all) docked (fill) on one form panel. Problem is that I have to call UserControl.BringToFront() more than once to get it to show....
4
by: Rob Koch | last post by:
What's the best way to refresh a usercontrol using a parameter? My usercontrol is just a DataList that retrieves data from SQL in association with a public propterty. I click on a LinkButton in...
4
by: Alexander Widera | last post by:
hi, i have a button... after a click on it a function is called ... in it it is done something and it is needed to reload the page now... how can i reload a page? with Response.Redirect ? or is...
9
by: TCORDON | last post by:
I have a user control that contains 2 image buttons, when you click one of them, both must change the image source, the thing is that the first time you click any one of them the page appears to do...
17
by: SamSpade | last post by:
picDocument is a picturebox When I do picDocument.Invalidate() the box paints. But if instead I do picDocument.Refresh() the box does not paint. What does Refresh do. I guessed it did an...
1
by: Executor | last post by:
Hi you all, I have created a usercontrol with a filledEllipses on a filledRectangle, using this Paint event: private void myControl_Paint(object sender, System.Windows.Forms.PaintEventArgs e)...
0
by: khurram.shakir | last post by:
I am developing an application, which uses .NET 2.0/WinForms and has a designer for screen layout designing. User has an option to design the layout of screen, and for that we developed our own...
0
by: Erakis | last post by:
Hi, I need to put a very large image as background (1030px X 774px) on the main window of my application. Also, on this window I need to add transparent Usercontrol, Panel and Label. Every...
2
by: oaksong | last post by:
I have an embedded user control based on TreeView that I would like to refresh dynamically. The control is in a <div that's hidden until a specific selection has been made. Unfortunately the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.