473,513 Members | 2,406 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prblm Web Control

26 New Member
i have having problem regarding web user control
i want to make a property from which user can select the mode of the control
like the type of char. textbox can accept as 'only char' or 'only number' etc
how can i do this
Plz help me regarding this
Thanx
May 26 '07 #1
3 1079
kenobewan
4,871 Recognized Expert Specialist
Have you tried using a class?
May 27 '07 #2
oohay251
27 New Member
That's exactly what you must do - make a Property.

In your control:

private _onlyChar = false; //or whatever default value you want for the control
public bool onlyChar
{
get { return _onlyChar; }
set { _onlyChar = value; }
}

the property will be exposed for use:
<%@ Register src="~/mycontrol.ascx" Tagname="myCtl" Tagprefix="ctl" %>

<ctl:myCtl onlyChar="true" .... />
May 27 '07 #3
mohitkatariya
26 New Member
Have you tried using a class?
No I have used Class in this problem how can i use class to solve this prblm, if u have any suggestions plz write
Thanks
May 28 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
3390
by: Bruce Rusk | last post by:
I'm using Stephen Lebans' RTF2 control in a report, and have discovered what may be a slight bug in it. I have a lot of non-Western language (Chinese) text in my RTF field, and such records get...
3
1117
by: sudheer dacha via .NET 247 | last post by:
When iam including System.Management Namespace and working with it its raising an error : Invalied Namespace. Its working fine on one system and when the same application is being executed on...
6
11269
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
2
3606
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
20
5594
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
5
3568
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
2
4901
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
15
6477
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
3
1300
by: nagarwal | last post by:
Hi All, I am having prblm in comparing date, I have to pass a date and if the date is a past date compared to today's date I have to notify.. this is urgent plz reply. The format is mm/dd/yyyy but...
0
7166
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
7386
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,...
1
7106
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
5689
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3226
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.