Ask a Question related to ASP.NET General, Design and Development.
-
Stephen Russell #1
Dynamic add labels to a form.
I have this in code:
Label myLabel1 = new Label();
myLabel1.Text ="Pick the Row you need changed in the Database";
myLabel1.Enabled = true;
myLabel1.Visible =true;
I don't see the lable on my webform. How do I referesh() the page like a
post_back?
--
Stephen Russell
S.R. & Associates
Memphis TN
901.246-0159
Stephen Russell Guest
-
Need help creating dynamic form
I guess I am just looking for some php help here more than anything. I want to know if it is possible to do the following things in php. I have a... -
Dynamic form problem
I have a form that generates dynamic fields that the user can fill. The problem I'm having is with the form processing. So for example if a user... -
Dynamic Labels Flash CFMX7
Well, I've been working almost all of my datafield problems and I realized I need to put info on the form that updates when a button is clicked.... -
[PHP] Dynamic Form checking
if $quantity isn't filled you get NULL or FALSE. so you could use: if ($_POST) etc. Try posting less code and more question to the list. ... -
Dynamic Form checking
hi this is the dynamic forms ... -
Marina #2
Re: Dynamic add labels to a form.
You never added the label to your page. You only created the object.
"Stephen Russell" <srussell@notat_lotmate.com> wrote in message
news:%23ZYuOVEYDHA.652@tk2msftngp13.phx.gbl...> I have this in code:
> Label myLabel1 = new Label();
>
> myLabel1.Text ="Pick the Row you need changed in the Database";
>
> myLabel1.Enabled = true;
>
> myLabel1.Visible =true;
>
>
>
> I don't see the lable on my webform. How do I referesh() the page like a
> post_back?
>
>
> --
> Stephen Russell
> S.R. & Associates
> Memphis TN
>
> 901.246-0159
>
>
Marina Guest
-
Stephen Russell #3
Re: Dynamic add labels to a form.
How do I do that dynamically? I have a page that needs a few things added
and by selection different stuff happens.
Thanks for the quick response!
__Stephen
"Marina" <zlatkinam@nospam.hotmail.com> wrote in message
news:%23Zei6XEYDHA.2328@TK2MSFTNGP12.phx.gbl...a> You never added the label to your page. You only created the object.
>
> "Stephen Russell" <srussell@notat_lotmate.com> wrote in message
> news:%23ZYuOVEYDHA.652@tk2msftngp13.phx.gbl...> > I have this in code:
> > Label myLabel1 = new Label();
> >
> > myLabel1.Text ="Pick the Row you need changed in the Database";
> >
> > myLabel1.Enabled = true;
> >
> > myLabel1.Visible =true;
> >
> >
> >
> > I don't see the lable on my webform. How do I referesh() the page like>> > post_back?
> >
> >
> > --
> > Stephen Russell
> > S.R. & Associates
> > Memphis TN
> >
> > 901.246-0159
> >
> >
>
Stephen Russell Guest
-
S. Justin Gengo #4
Re: Dynamic add labels to a form.
Stephen,
If you're going to be dynamically loading different controls onto your page
you could take a look at a bit of sample code I have on my website,
[url]www.aboutfortunate.com[/url]. Just search the code library for: "Create dynamic
controls" or something similar.
The sample code I provide specifically adds text boxes to the form. The
trick to the code is recreating the controls on post back in order to be
able to access their values.
You would be able to add a label control the same way I'm adding the text
boxes. You just wouldn't need to recreate them on post back.
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Stephen Russell" <srussell@notat_lotmate.com> wrote in message
news:%23$UupaEYDHA.1748@TK2MSFTNGP12.phx.gbl...like> How do I do that dynamically? I have a page that needs a few things added
> and by selection different stuff happens.
>
> Thanks for the quick response!
>
> __Stephen
>
>
> "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
> news:%23Zei6XEYDHA.2328@TK2MSFTNGP12.phx.gbl...> > You never added the label to your page. You only created the object.
> >
> > "Stephen Russell" <srussell@notat_lotmate.com> wrote in message
> > news:%23ZYuOVEYDHA.652@tk2msftngp13.phx.gbl...> > > I have this in code:
> > > Label myLabel1 = new Label();
> > >
> > > myLabel1.Text ="Pick the Row you need changed in the Database";
> > >
> > > myLabel1.Enabled = true;
> > >
> > > myLabel1.Visible =true;
> > >
> > >
> > >
> > > I don't see the lable on my webform. How do I referesh() the page> a>> >> > > post_back?
> > >
> > >
> > > --
> > > Stephen Russell
> > > S.R. & Associates
> > > Memphis TN
> > >
> > > 901.246-0159
> > >
> > >
> >
>
S. Justin Gengo Guest



Reply With Quote

