473,396 Members | 1,996 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,396 software developers and data experts.

Displaying user control properties at Design Time

Hi

I have created a user control which has a public property called Tickers.
This property is represented visually as a textbox into which the user can
type a bunch of stock tickers and my user control then fetches the prices for
each ticker and displays them in a GridView.

I am also setting the tickers like this in the source of the page hosting my
user control:

<uc1:WatchList ID="WatchList1" runat="server" Tickers="EWG EWS" />

This way the tickers also appear in the Properties pane of Visual Studio.

How can I get my textbox to show the tickers at <b>Design time</b>? (they
show at run time)
Jun 25 '07 #1
2 1582
Have you recompiled/built your application since adding the property?

-KF
"Amir Tohidi" <Am********@discussions.microsoft.comwrote in message
news:2D**********************************@microsof t.com...
Hi

I have created a user control which has a public property called Tickers.
This property is represented visually as a textbox into which the user can
type a bunch of stock tickers and my user control then fetches the prices
for
each ticker and displays them in a GridView.

I am also setting the tickers like this in the source of the page hosting
my
user control:

<uc1:WatchList ID="WatchList1" runat="server" Tickers="EWG EWS" />

This way the tickers also appear in the Properties pane of Visual Studio.

How can I get my textbox to show the tickers at <b>Design time</b>? (they
show at run time)


Jun 25 '07 #2
Yes.

"ke*****@nospam.nospam" wrote:
Have you recompiled/built your application since adding the property?

-KF
"Amir Tohidi" <Am********@discussions.microsoft.comwrote in message
news:2D**********************************@microsof t.com...
Hi

I have created a user control which has a public property called Tickers.
This property is represented visually as a textbox into which the user can
type a bunch of stock tickers and my user control then fetches the prices
for
each ticker and displays them in a GridView.

I am also setting the tickers like this in the source of the page hosting
my
user control:

<uc1:WatchList ID="WatchList1" runat="server" Tickers="EWG EWS" />

This way the tickers also appear in the Properties pane of Visual Studio.

How can I get my textbox to show the tickers at <b>Design time</b>? (they
show at run time)


Jun 25 '07 #3

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

Similar topics

1
by: Steven.Xu | last post by:
Hi, everyone. I am writting an user control. There has some properties on it. At the design time, the properties will disply on the property windows and user could change it's value after selected...
0
by: Jim | last post by:
I am having some trouble with user controls and would appreciate any input / advice on where to go with this... :) 1. The first problem, and perhaps the root of the others, is that I have...
0
by: Jim | last post by:
I am having some trouble with user controls and would appreciate any input / advice on where to go with this... :) 1. The first problem, and perhaps the root of the others, is that I have...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
8
by: David Lozzi | last post by:
Howdy, I have a user control that is a report to display data. On the page the control is inserted in, I have filter options to filter the report. When I try to do something like this, nothing...
4
by: Michael | last post by:
Dear all .. If I want to use develop a user control and declare a public property which the type is System.Windows.Forms.GridTableStylesCollection For example : Public Class LookAndView...
3
by: George Jordanov Ivanov | last post by:
Folks, I am implementing a WebUserControl, which will have its own custom event StateChanged. Now, I want to add this event to the Events tab in the control properties, so that the users of my...
3
by: Steve Long | last post by:
Hello. Can anyone tell me the proper way to save the properties of a user control between design time and run time? So, I've got this user control with the following properties: BarColor1...
11
by: Rimpinths | last post by:
I'm new at developing user controls in C#, and one thing I've noticed right off the bat is that the constructor gets called twice -- once at design time, once at run time. In short, I'm trying...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.