473,386 Members | 2,129 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,386 software developers and data experts.

dynamic controls - disapear after postback

I have created several grids dynamically and have added them to different
HTML placeholders on a vb.net web form. The grids and controls within them
come up and view beautifully when the web page first starts, but when I
click on a button, and the page comes back, my dynamically created grid and
controls are not visible. Any thoughts? Please view my sample code below.

If Not ispostback then
creategrids
end if

Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a placeholder
and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True

End Sub

Thanks in advance for your help!
Chris Thunell
ct******@pierceassociates.com
Nov 18 '05 #1
13 3637
Because the controls are not generated when you postback the form (e.g when
you click the button the CreateGrid function will not fire thus the form
will render without the controls)

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
I have created several grids dynamically and have added them to different
HTML placeholders on a vb.net web form. The grids and controls within them come up and view beautifully when the web page first starts, but when I
click on a button, and the page comes back, my dynamically created grid and controls are not visible. Any thoughts? Please view my sample code below.
If Not ispostback then
creategrids
end if

Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a placeholder and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True

End Sub

Thanks in advance for your help!
Chris Thunell
ct******@pierceassociates.com

Nov 18 '05 #2
Yes - you need to call creategrids every time the page loads - not just the
first time. Dynamically created controls are not going to automatically be
recreated for you.

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
I have created several grids dynamically and have added them to different
HTML placeholders on a vb.net web form. The grids and controls within them come up and view beautifully when the web page first starts, but when I
click on a button, and the page comes back, my dynamically created grid and controls are not visible. Any thoughts? Please view my sample code below.
If Not ispostback then
creategrids
end if

Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a placeholder and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True

End Sub

Thanks in advance for your help!
Chris Thunell
ct******@pierceassociates.com

Nov 18 '05 #3
It's pretty simple. They're generated the first time, but during postback
you are not calling the CreateGrids function as you've told it not to with
the if not ispostback statement, thus they aren't getting created on
subsequent calls. You need to toy with the determination of what isn't
required during a postback. It could be that in certain button click events
you'll want to add a call to the CreateGrids sub while in others you won't.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
I have created several grids dynamically and have added them to different
HTML placeholders on a vb.net web form. The grids and controls within them come up and view beautifully when the web page first starts, but when I
click on a button, and the page comes back, my dynamically created grid and controls are not visible. Any thoughts? Please view my sample code below.
If Not ispostback then
creategrids
end if

Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a placeholder and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True

End Sub

Thanks in advance for your help!
Chris Thunell
ct******@pierceassociates.com

Nov 18 '05 #4
How do i get the information from the controls before RECREATING the
controls? When the form first loads with all the controls, i enter some
information in these dynamic controls. So i need to get that information
out of the dynamic control, before i recreate teh control with blank
information again. When i push my button to "save" the information... the
controls are already gone and i can't access their information
Help help! :)
Chris Thunell
ct******@pierceassociates.com
"Marina" <so*****@nospam.com> wrote in message
news:us***************@TK2MSFTNGP10.phx.gbl...
Yes - you need to call creategrids every time the page loads - not just the first time. Dynamically created controls are not going to automatically be
recreated for you.

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
I have created several grids dynamically and have added them to different HTML placeholders on a vb.net web form. The grids and controls within

them
come up and view beautifully when the web page first starts, but when I
click on a button, and the page comes back, my dynamically created grid

and
controls are not visible. Any thoughts? Please view my sample code

below.

If Not ispostback then
creategrids
end if

Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a

placeholder
and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True

End Sub

Thanks in advance for your help!
Chris Thunell
ct******@pierceassociates.com


Nov 18 '05 #5
I don't know the details of your conrols, but recreating them should be
enough for viewstate to do its thing and populate the controls with data.

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:OZ****************@tk2msftngp13.phx.gbl...
How do i get the information from the controls before RECREATING the
controls? When the form first loads with all the controls, i enter some
information in these dynamic controls. So i need to get that information
out of the dynamic control, before i recreate teh control with blank
information again. When i push my button to "save" the information... the controls are already gone and i can't access their information
Help help! :)
Chris Thunell
ct******@pierceassociates.com
"Marina" <so*****@nospam.com> wrote in message
news:us***************@TK2MSFTNGP10.phx.gbl...
Yes - you need to call creategrids every time the page loads - not just

the
first time. Dynamically created controls are not going to automatically be
recreated for you.

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
I have created several grids dynamically and have added them to different HTML placeholders on a vb.net web form. The grids and controls within them
come up and view beautifully when the web page first starts, but when
I click on a button, and the page comes back, my dynamically created

grid and
controls are not visible. Any thoughts? Please view my sample code

below.

If Not ispostback then
creategrids
end if

Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a

placeholder
and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True

End Sub

Thanks in advance for your help!
Chris Thunell
ct******@pierceassociates.com



Nov 18 '05 #6
Please read what i sent to Marina in the group.
Thanks!
Chris Thunell
ct******@pierceassociates.com

"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:OW****************@TK2MSFTNGP10.phx.gbl...
It's pretty simple. They're generated the first time, but during postback
you are not calling the CreateGrids function as you've told it not to with
the if not ispostback statement, thus they aren't getting created on
subsequent calls. You need to toy with the determination of what isn't
required during a postback. It could be that in certain button click events you'll want to add a call to the CreateGrids sub while in others you won't.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
I have created several grids dynamically and have added them to different HTML placeholders on a vb.net web form. The grids and controls within

them
come up and view beautifully when the web page first starts, but when I
click on a button, and the page comes back, my dynamically created grid

and
controls are not visible. Any thoughts? Please view my sample code

below.

If Not ispostback then
creategrids
end if

Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a

placeholder
and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True

End Sub

Thanks in advance for your help!
Chris Thunell
ct******@pierceassociates.com


Nov 18 '05 #7
If i recreate the controls.. i get an error:
Multiple controls with the same ID 'cbMechSubAwarded_5_736' were found.
"Marina" <so*****@nospam.com> wrote in message
news:OK****************@TK2MSFTNGP10.phx.gbl...
I don't know the details of your conrols, but recreating them should be
enough for viewstate to do its thing and populate the controls with data.

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:OZ****************@tk2msftngp13.phx.gbl...
How do i get the information from the controls before RECREATING the
controls? When the form first loads with all the controls, i enter some
information in these dynamic controls. So i need to get that information
out of the dynamic control, before i recreate teh control with blank
information again. When i push my button to "save" the information... the
controls are already gone and i can't access their information
Help help! :)
Chris Thunell
ct******@pierceassociates.com
"Marina" <so*****@nospam.com> wrote in message
news:us***************@TK2MSFTNGP10.phx.gbl...
Yes - you need to call creategrids every time the page loads - not
just the
first time. Dynamically created controls are not going to

automatically be recreated for you.

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
> I have created several grids dynamically and have added them to different
> HTML placeholders on a vb.net web form. The grids and controls within them
> come up and view beautifully when the web page first starts, but
when I > click on a button, and the page comes back, my dynamically created grid and
> controls are not visible. Any thoughts? Please view my sample code
below.
>
> If Not ispostback then
> creategrids
> end if
>
> Sub CreateGrids
> 'lots of code above
> phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a
placeholder
> and MatrixInsul is my grid
> phGC.Controls.Add(MatrixGC)
> phSM.Controls.Add(MatrixSM)
> phControls.Controls.Add(MatrixControls)
> phInsulation.EnableViewState = True
> phGC.EnableViewState = True
> phSM.EnableViewState = True
> phControls.EnableViewState = True
>
> End Sub
>
> Thanks in advance for your help!
> Chris Thunell
> ct******@pierceassociates.com
>
>



Nov 18 '05 #8
Chris,

In order to retrieve the data, you need to ensure you add the user control
dynamically each time (ie - don't only add it the first time) to the same
place on the page. Also, you should create and add the dynamic control in
the Page_Init rather than in the Page_Load. Once you do that the control
will always be there and you'll always be able to get the values.

--
Hope this helps,
Bryant Hankins
Numinet Systems Inc.
http://www.numinet.com

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:e%******************@TK2MSFTNGP09.phx.gbl...
Please read what i sent to Marina in the group.
Thanks!
Chris Thunell
ct******@pierceassociates.com

"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:OW****************@TK2MSFTNGP10.phx.gbl...
It's pretty simple. They're generated the first time, but during postback
you are not calling the CreateGrids function as you've told it not to with the if not ispostback statement, thus they aren't getting created on
subsequent calls. You need to toy with the determination of what isn't
required during a postback. It could be that in certain button click

events
you'll want to add a call to the CreateGrids sub while in others you

won't.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
I have created several grids dynamically and have added them to different HTML placeholders on a vb.net web form. The grids and controls within them
come up and view beautifully when the web page first starts, but when
I click on a button, and the page comes back, my dynamically created

grid and
controls are not visible. Any thoughts? Please view my sample code

below.

If Not ispostback then
creategrids
end if

Sub CreateGrids
'lots of code above
phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a

placeholder
and MatrixInsul is my grid
phGC.Controls.Add(MatrixGC)
phSM.Controls.Add(MatrixSM)
phControls.Controls.Add(MatrixControls)
phInsulation.EnableViewState = True
phGC.EnableViewState = True
phSM.EnableViewState = True
phControls.EnableViewState = True

End Sub

Thanks in advance for your help!
Chris Thunell
ct******@pierceassociates.com



Nov 18 '05 #9
You'll want to add a distinct id to each
control each time you create it,
for example,
MatrixGC.ID = "MatrixGC"

Jim

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #10
If I apply a distinct id to each control... how will i find that specific
control again in the future (to get data FROM the control)... I'm thinking
of creating an arraylist with the control id and other pertinent data)

Any other suggestions?
"Jim Corey" <jc****@nospamcharter.net> wrote in message
news:uX*************@TK2MSFTNGP11.phx.gbl...
You'll want to add a distinct id to each
control each time you create it,
for example,
MatrixGC.ID = "MatrixGC"

Jim

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #11
THX! I don't know if it helped Chris's problem, but it helped mine. I was
creating my grid and rebinding my data to the grid in the Page_Load on every
pass or I'd see nothing in the grid and the events wouldn't fire. But of
course rebinding the data made me loose the changes. I moved my
CreateGrid() method to the OnInit() method and now I don't have to rebind
the grid and I don't loose my events.

I have no idea it was going to be such a problem to create the grid
dynamically. I think this will solve a random error that my tester is
seeing.

Thanks, again!
Andrea
"Bryant Hankins" <bryanthankins@_NO_SPAM_hotmail.com> wrote in message
news:#G**************@tk2msftngp13.phx.gbl...
Chris,

In order to retrieve the data, you need to ensure you add the user control
dynamically each time (ie - don't only add it the first time) to the same
place on the page. Also, you should create and add the dynamic control in
the Page_Init rather than in the Page_Load. Once you do that the control
will always be there and you'll always be able to get the values.

--
Hope this helps,
Bryant Hankins
Numinet Systems Inc.
http://www.numinet.com

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:e%******************@TK2MSFTNGP09.phx.gbl...
Please read what i sent to Marina in the group.
Thanks!
Chris Thunell
ct******@pierceassociates.com

"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:OW****************@TK2MSFTNGP10.phx.gbl...
It's pretty simple. They're generated the first time, but during postback you are not calling the CreateGrids function as you've told it not to with the if not ispostback statement, thus they aren't getting created on
subsequent calls. You need to toy with the determination of what isn't
required during a postback. It could be that in certain button click events
you'll want to add a call to the CreateGrids sub while in others you

won't.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:eq****************@TK2MSFTNGP10.phx.gbl...
> I have created several grids dynamically and have added them to

different
> HTML placeholders on a vb.net web form. The grids and controls within them
> come up and view beautifully when the web page first starts, but
when I > click on a button, and the page comes back, my dynamically created grid and
> controls are not visible. Any thoughts? Please view my sample code
below.
>
> If Not ispostback then
> creategrids
> end if
>
> Sub CreateGrids
> 'lots of code above
> phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a
placeholder
> and MatrixInsul is my grid
> phGC.Controls.Add(MatrixGC)
> phSM.Controls.Add(MatrixSM)
> phControls.Controls.Add(MatrixControls)
> phInsulation.EnableViewState = True
> phGC.EnableViewState = True
> phSM.EnableViewState = True
> phControls.EnableViewState = True
>
> End Sub
>
> Thanks in advance for your help!
> Chris Thunell
> ct******@pierceassociates.com
>
>



Nov 18 '05 #12
Thank you all for your help! I have moved my CreateGrid function to OnInit,
and i also created a new class of web controls through inheritance to handle
additional information for each item. So on the round trip back, i can go
through each of the controls and find out what the control data was for.
aka textbox1.BidNo = xxx, textbox1.JobNo= xxx...

Thank you everyone for your patience in helping this newbie programmer out!
Chris Thunell
ct******@pierceassociates.com
"Andrea Williams" <an*******@hotmailIHATESPAM.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
THX! I don't know if it helped Chris's problem, but it helped mine. I was creating my grid and rebinding my data to the grid in the Page_Load on every pass or I'd see nothing in the grid and the events wouldn't fire. But of
course rebinding the data made me loose the changes. I moved my
CreateGrid() method to the OnInit() method and now I don't have to rebind
the grid and I don't loose my events.

I have no idea it was going to be such a problem to create the grid
dynamically. I think this will solve a random error that my tester is
seeing.

Thanks, again!
Andrea
"Bryant Hankins" <bryanthankins@_NO_SPAM_hotmail.com> wrote in message
news:#G**************@tk2msftngp13.phx.gbl...
Chris,

In order to retrieve the data, you need to ensure you add the user control dynamically each time (ie - don't only add it the first time) to the same place on the page. Also, you should create and add the dynamic control in the Page_Init rather than in the Page_Load. Once you do that the control
will always be there and you'll always be able to get the values.

--
Hope this helps,
Bryant Hankins
Numinet Systems Inc.
http://www.numinet.com

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:e%******************@TK2MSFTNGP09.phx.gbl...
Please read what i sent to Marina in the group.
Thanks!
Chris Thunell
ct******@pierceassociates.com

"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:OW****************@TK2MSFTNGP10.phx.gbl...
> It's pretty simple. They're generated the first time, but during

postback
> you are not calling the CreateGrids function as you've told it not to
with
> the if not ispostback statement, thus they aren't getting created on
> subsequent calls. You need to toy with the determination of what

isn't > required during a postback. It could be that in certain button click
events
> you'll want to add a call to the CreateGrids sub while in others you
won't.
>
> Hope this helps,
> Mark Fitzpatrick
> Microsoft MVP - FrontPage
>
> "Chris Thunell" <ct******@pierceassociates.com> wrote in message
> news:eq****************@TK2MSFTNGP10.phx.gbl...
> > I have created several grids dynamically and have added them to
different
> > HTML placeholders on a vb.net web form. The grids and controls

within
> them
> > come up and view beautifully when the web page first starts, but

when
I
> > click on a button, and the page comes back, my dynamically created

grid
> and
> > controls are not visible. Any thoughts? Please view my sample code > below.
> >
> > If Not ispostback then
> > creategrids
> > end if
> >
> > Sub CreateGrids
> > 'lots of code above
> > phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a
> placeholder
> > and MatrixInsul is my grid
> > phGC.Controls.Add(MatrixGC)
> > phSM.Controls.Add(MatrixSM)
> > phControls.Controls.Add(MatrixControls)
> > phInsulation.EnableViewState = True
> > phGC.EnableViewState = True
> > phSM.EnableViewState = True
> > phControls.EnableViewState = True
> >
> > End Sub
> >
> > Thanks in advance for your help!
> > Chris Thunell
> > ct******@pierceassociates.com
> >
> >
>
>



Nov 18 '05 #13
Another note. If you are creating a dynamic form in a User control, the
CreateGrid() should be put in the Page_Load method, not the OnInit(). If
added to OnInit(), the events fail to fire. At least that 's the behavior
I get....

Andrea

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
Thank you all for your help! I have moved my CreateGrid function to OnInit, and i also created a new class of web controls through inheritance to handle additional information for each item. So on the round trip back, i can go
through each of the controls and find out what the control data was for.
aka textbox1.BidNo = xxx, textbox1.JobNo= xxx...

Thank you everyone for your patience in helping this newbie programmer out! Chris Thunell
ct******@pierceassociates.com
"Andrea Williams" <an*******@hotmailIHATESPAM.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
THX! I don't know if it helped Chris's problem, but it helped mine. I

was
creating my grid and rebinding my data to the grid in the Page_Load on

every
pass or I'd see nothing in the grid and the events wouldn't fire. But of
course rebinding the data made me loose the changes. I moved my
CreateGrid() method to the OnInit() method and now I don't have to rebind the grid and I don't loose my events.

I have no idea it was going to be such a problem to create the grid
dynamically. I think this will solve a random error that my tester is
seeing.

Thanks, again!
Andrea
"Bryant Hankins" <bryanthankins@_NO_SPAM_hotmail.com> wrote in message
news:#G**************@tk2msftngp13.phx.gbl...
Chris,

In order to retrieve the data, you need to ensure you add the user

control dynamically each time (ie - don't only add it the first time) to the same place on the page. Also, you should create and add the dynamic control in the Page_Init rather than in the Page_Load. Once you do that the control will always be there and you'll always be able to get the values.

--
Hope this helps,
Bryant Hankins
Numinet Systems Inc.
http://www.numinet.com

"Chris Thunell" <ct******@pierceassociates.com> wrote in message
news:e%******************@TK2MSFTNGP09.phx.gbl...
> Please read what i sent to Marina in the group.
> Thanks!
> Chris Thunell
> ct******@pierceassociates.com
>
> "Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
> news:OW****************@TK2MSFTNGP10.phx.gbl...
> > It's pretty simple. They're generated the first time, but during
postback
> > you are not calling the CreateGrids function as you've told it not to with
> > the if not ispostback statement, thus they aren't getting created on > > subsequent calls. You need to toy with the determination of what isn't > > required during a postback. It could be that in certain button click > events
> > you'll want to add a call to the CreateGrids sub while in others you > won't.
> >
> > Hope this helps,
> > Mark Fitzpatrick
> > Microsoft MVP - FrontPage
> >
> > "Chris Thunell" <ct******@pierceassociates.com> wrote in message
> > news:eq****************@TK2MSFTNGP10.phx.gbl...
> > > I have created several grids dynamically and have added them to
> different
> > > HTML placeholders on a vb.net web form. The grids and controls
within
> > them
> > > come up and view beautifully when the web page first starts, but

when
I
> > > click on a button, and the page comes back, my dynamically created grid
> > and
> > > controls are not visible. Any thoughts? Please view my sample code > > below.
> > >
> > > If Not ispostback then
> > > creategrids
> > > end if
> > >
> > > Sub CreateGrids
> > > 'lots of code above
> > > phInsulation.Controls.Add(MatrixInsul) 'phinsulation is a
> > placeholder
> > > and MatrixInsul is my grid
> > > phGC.Controls.Add(MatrixGC)
> > > phSM.Controls.Add(MatrixSM)
> > > phControls.Controls.Add(MatrixControls)
> > > phInsulation.EnableViewState = True
> > > phGC.EnableViewState = True
> > > phSM.EnableViewState = True
> > > phControls.EnableViewState = True
> > >
> > > End Sub
> > >
> > > Thanks in advance for your help!
> > > Chris Thunell
> > > ct******@pierceassociates.com
> > >
> > >
> >
> >
>
>



Nov 18 '05 #14

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

Similar topics

1
by: Scott Schluer | last post by:
Hello, I've got myself a small problem and I'm hoping someone can help. I have a DataList called dlProducts (displays products from a database). Within the <ItemTemplate> container of the...
2
by: Dave Williamson | last post by:
When a ASPX page is created with dynamic controls based on what the user is doing the programmer must recreate the dynamic controls again on PostBack in the Page_Load so that it's events are wired...
3
by: Tyler Carver | last post by:
I am trying to use some dynamic controls that are built and then added to tables. The problem that I am having is the timing of when I can populate the controls and have the state remain after a...
5
by: PCH | last post by:
I have an c# asp.net (.net 1.1) web page, viewstate on. The problem I am having is on the button click postback to update. Heres the situation: I have an asp table that has 1 header row. ...
9
by: Tarscher | last post by:
hi all, I have this seemingly simple problem. I have lost a lot of time on it though. When a user selects a value from a dropdownlist (static control) a dynamic control is generated. I have...
1
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
2
by: englishman69 | last post by:
Hello, I have been banging my head against this one for a while... Searches online have revealed many different proposals for correcting my issue but none that I can follow! My basic situation...
4
by: =?Utf-8?B?RHlsYW5TbWl0aA==?= | last post by:
I have a WebForm where I'm dynamically creating some controls and I'm having difficulty understanding how the state is being persisted and how to work with it. I've created a simplified example...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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?
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
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...

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.