Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: how do I pass a string to a webcontrol ?

Reply
Thread Tools

Re: how do I pass a string to a webcontrol ?

 
 
Kevin Spencer
Guest
Posts: n/a
 
      08-20-2003
Your question doesn't really make sense. You can't "put a string into [a]
webcontrol". You can set a property of the class. The word "webcontrol"
denotes a base class for a whole slew of classes that inherit
System.Web.UI.WebControl. They all have different properties. For example,
if you want to put a string into the "box" part of a TextBox, you would set
the Text property of the class. Example:

MyTextBox.Text = "Some String"

It is critical that you understand object-oriented programming in order to
work with any .Net application.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"THY" <> wrote in message
news:...
> Hi,
>
> I have a page with few webcontrol, but how do I put a string into the
> webcontrol ?
>
> does webcontrol support features like file.ascx?string1=data&string2=data

?
>
> thanks
>
>



 
Reply With Quote
 
 
 
 
THY
Guest
Posts: n/a
 
      08-20-2003
ah, really sorry about that ...

I meant ... let the webusercontrol can get a string value that from outside
the ascx ...

and also how to pass a string value into a object that aren't in the same
form but in the webusercontrol ...

thanks



"Kevin Spencer" <> wrote in message
news:...
> Your question doesn't really make sense. You can't "put a string into [a]
> webcontrol". You can set a property of the class. The word "webcontrol"
> denotes a base class for a whole slew of classes that inherit
> System.Web.UI.WebControl. They all have different properties. For example,
> if you want to put a string into the "box" part of a TextBox, you would

set
> the Text property of the class. Example:
>
> MyTextBox.Text = "Some String"
>
> It is critical that you understand object-oriented programming in order to
> work with any .Net application.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Neither a follower nor a lender be.
>
> "THY" <> wrote in message
> news:...
> > Hi,
> >
> > I have a page with few webcontrol, but how do I put a string into the
> > webcontrol ?
> >
> > does webcontrol support features like

file.ascx?string1=data&string2=data
> ?
> >
> > thanks
> >
> >

>
>



 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      08-20-2003
I'm sorry. You lost me there. My interpretive skills have been sorely
diminished from years of relating mostly to computers.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"THY" <> wrote in message
news:...
> ah, really sorry about that ...
>
> I meant ... let the webusercontrol can get a string value that from

outside
> the ascx ...
>
> and also how to pass a string value into a object that aren't in the same
> form but in the webusercontrol ...
>
> thanks
>
>
>
> "Kevin Spencer" <> wrote in message
> news:...
> > Your question doesn't really make sense. You can't "put a string into

[a]
> > webcontrol". You can set a property of the class. The word "webcontrol"
> > denotes a base class for a whole slew of classes that inherit
> > System.Web.UI.WebControl. They all have different properties. For

example,
> > if you want to put a string into the "box" part of a TextBox, you would

> set
> > the Text property of the class. Example:
> >
> > MyTextBox.Text = "Some String"
> >
> > It is critical that you understand object-oriented programming in order

to
> > work with any .Net application.
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > http://www.takempis.com
> > Neither a follower nor a lender be.
> >
> > "THY" <> wrote in message
> > news:...
> > > Hi,
> > >
> > > I have a page with few webcontrol, but how do I put a string into the
> > > webcontrol ?
> > >
> > > does webcontrol support features like

> file.ascx?string1=data&string2=data
> > ?
> > >
> > > thanks
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom webcontrol that references another webcontrol Fabricio ASP .Net Building Controls 0 09-21-2005 02:55 AM
Trapping an Exception ocurring in a Webcontrol at the Page or parent WebControl level. ASP .Net 2 01-31-2005 06:34 PM
WebControl inside of WebControl and attaching events Kasabaarde Sumta ASP .Net Building Controls 0 12-13-2004 09:51 PM
Can a webcontrol (webcontrol.dll) have a configuration file? Luis Ramírez. ASP .Net Building Controls 2 07-06-2004 04:35 PM
Re: how do I pass a string to a webcontrol ? Steve C. Orr, MCSD ASP .Net 2 08-20-2003 09:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57