From: LionsDome on
Hello,

I have a vb.net page which a bunch of checkboxes. A user can select a
checkbox(s) and hit the submit button to store those values in a SQL
Server table. This works fine with no problem the first time the user
submits. However when user submits a second time while changing some
of the selected boxes the page only re-submits the previosly selected
checkbox values. It's like its storing it somewhere in the cache or
something. My page is ready to launch but cannot for this reason
alone. Any ideas as to what is going on here? Any help would be
greatly appreciated.


Thanks.


Anil


From: "Mr. Arnold" MR. on

"LionsDome" <AKhemchandani(a)gmail.com> wrote in message
news:a19f9b46-b4f6-4b8b-9c34-be1d7438d7ea(a)d21g2000prf.googlegroups.com...
> Hello,
>
> I have a vb.net page which a bunch of checkboxes. A user can select a
> checkbox(s) and hit the submit button to store those values in a SQL
> Server table. This works fine with no problem the first time the user
> submits. However when user submits a second time while changing some
> of the selected boxes the page only re-submits the previosly selected
> checkbox values. It's like its storing it somewhere in the cache or
> something. My page is ready to launch but cannot for this reason
> alone. Any ideas as to what is going on here? Any help would be
> greatly appreciated.
>
>
>

You got View State for the controls enabled? That's one way that old data on
a control can return to the control. How are you repopulating the the
controls on the round trip when the user hit's the Submit button, and the
value for a control has changed?


From: LionsDome on
On Dec 5, 6:26 pm, "Mr. Arnold" <MR. Arn...(a)Arnold.com> wrote:
> "LionsDome" <AKhemchand...(a)gmail.com> wrote in message
>
> news:a19f9b46-b4f6-4b8b-9c34-be1d7438d7ea(a)d21g2000prf.googlegroups.com...
>
> > Hello,
>
> > I have a vb.net page which a bunch of checkboxes. A user can select a
> > checkbox(s) and hit the submit button to store those values in a SQL
> > Server table. This works fine with no problem the first time the user
> > submits. However when user submits a second time while changing some
> > of the selected boxes the page only re-submits the previosly selected
> > checkbox values. It's like its storing it somewhere in the cache or
> > something. My page is ready to launch but cannot for this reason
> > alone. Any ideas as to what is going on here? Any help would be
> > greatly appreciated.
>
> You got View State for the controls enabled? That's one way that old data on
> a control can return to the control. How are you repopulating the the
> controls on the round trip when the user hit's the Submit button, and the
> value for a control has changed?

Thanks for response. The values are saved to the database and the
values based on the selected checkboxes get repopulated when the page
is loaded. I set the ViewState for all the checkboxes on the pages to
false and the Page.ViewState to false on page load and I am still
unable to get it to work. Am I missing something here?
From: "Mr. Arnold" MR. on

"LionsDome" <AKhemchandani(a)gmail.com> wrote in message
news:e8d0f3cb-b57f-484a-a645-a01c70a3b32f(a)d61g2000hsa.googlegroups.com...
> On Dec 5, 6:26 pm, "Mr. Arnold" <MR. Arn...(a)Arnold.com> wrote:
>> "LionsDome" <AKhemchand...(a)gmail.com> wrote in message
>>
>> news:a19f9b46-b4f6-4b8b-9c34-be1d7438d7ea(a)d21g2000prf.googlegroups.com...
>>
>> > Hello,
>>
>> > I have a vb.net page which a bunch of checkboxes. A user can select a
>> > checkbox(s) and hit the submit button to store those values in a SQL
>> > Server table. This works fine with no problem the first time the user
>> > submits. However when user submits a second time while changing some
>> > of the selected boxes the page only re-submits the previosly selected
>> > checkbox values. It's like its storing it somewhere in the cache or
>> > something. My page is ready to launch but cannot for this reason
>> > alone. Any ideas as to what is going on here? Any help would be
>> > greatly appreciated.
>>
>> You got View State for the controls enabled? That's one way that old data
>> on
>> a control can return to the control. How are you repopulating the the
>> controls on the round trip when the user hit's the Submit button, and the
>> value for a control has changed?
>
> Thanks for response. The values are saved to the database and the
> values based on the selected checkboxes get repopulated when the page
> is loaded. I set the ViewState for all the checkboxes on the pages to
> false and the Page.ViewState to false on page load and I am still
> unable to get it to work. Am I missing something here?

Is the repopulation of the control being done at PostBack from the database,
and you sure data is being saved to the database?

From: LionsDome on
On Dec 6, 8:53 pm, "Mr. Arnold" <MR. Arn...(a)Arnold.com> wrote:
> "LionsDome" <AKhemchand...(a)gmail.com> wrote in message
>
> news:e8d0f3cb-b57f-484a-a645-a01c70a3b32f(a)d61g2000hsa.googlegroups.com...
>
>
>
>
>
> > On Dec 5, 6:26 pm, "Mr. Arnold" <MR. Arn...(a)Arnold.com> wrote:
> >> "LionsDome" <AKhemchand...(a)gmail.com> wrote in message
>
> >>news:a19f9b46-b4f6-4b8b-9c34-be1d7438d7ea(a)d21g2000prf.googlegroups.com...
>
> >> > Hello,
>
> >> > I have a vb.net page which a bunch of checkboxes. A user can select a
> >> > checkbox(s) and hit the submit button to store those values in a SQL
> >> > Server table. This works fine with no problem the first time the user
> >> > submits. However when user submits a second time while changing some
> >> > of the selected boxes the page only re-submits the previosly selected
> >> > checkbox values. It's like its storing it somewhere in the cache or
> >> > something. My page is ready to launch but cannot for this reason
> >> > alone. Any ideas as to what is going on here? Any help would be
> >> > greatly appreciated.
>
> >> You got View State for the controls enabled? That's one way that old data
> >> on
> >> a control can return to the control. How are you repopulating the the
> >> controls on the round trip when the user hit's the Submit button, and the
> >> value for a control has changed?
>
> > Thanks for response. The values are saved to the database and the
> > values based on the selected checkboxes get repopulated when the page
> > is loaded. I set the ViewState for all the checkboxes on the pages to
> > false and the Page.ViewState to false on page load and I am still
> > unable to get it to work. Am I missing something here?
>
> Is the repopulation of the control being done at PostBack from the database,
> and you sure data is being saved to the database?- Hide quoted text -
>
> - Show quoted text -

When you load the page the first and lets assume the database table is
empty with no records in there. You can select a few checkboxes and
hit the submit button and the values get saved and the page is then
reloaded. When you hit the submit button a second time and select
different checkboxes for soem reason the same checkboxes that were
selected in the first goaround are the only ones that get updated into
the table. Each submit clears out the table for that particular record
id (We have upto 6 different record Id's that user can select from the
dropdown) so I know for a fact that the same ones are getting
populated over and over again. Based on your suggestion, I set the
Viewstate property to false for each checkbox on the page and also set
the page viewstate property to false. I hope I was a little clear in
helping you to understand my problem.

Thanks for taking the time out to help me thru this. I really
appreciate it a lot.

Anil