Showing posts with label textboxes. Show all posts
Showing posts with label textboxes. Show all posts

Thursday, March 22, 2012

Strange Issue egarding ASP:textbox control.

I have a form. I fill the text property of all the textboxes on the form to
display information to the user. If the user changes a value and clicks
save. I save the information to the database.
This sounds all well and good however the record does not get updated, in
fact I have traced it to the fact that the textbox.text property is not
being updated after the user changes the value.
Please, if you have experienced anything like this, please help. This is
very frustrating.That's not much information to go on but I suggest looking for something in
your onload that is rebinding or reloading the textbox with the original
data before you get to the click event of your save button. Remember that
onload is called before the button event.
Also, make sure you're only setting the value of the textbox from the
database when IsPostBack is false. If you're setting it in every case, you
will reset it before you get to the click event.
Good luck,
Dale
"Red" <wreyes@.optonline.net> wrote in message
news:OTvW$ONUEHA.2408@.tk2msftngp13.phx.gbl...
> I have a form. I fill the text property of all the textboxes on the form
to
> display information to the user. If the user changes a value and clicks
> save. I save the information to the database.
> This sounds all well and good however the record does not get updated, in
> fact I have traced it to the fact that the textbox.text property is not
> being updated after the user changes the value.
> Please, if you have experienced anything like this, please help. This is
> very frustrating.
>
Hey thanks alot. I can not beleive I made such a simple mistake. For days I
have been looking at everything accept for when I was displaying the data.
Anyway, thanks again.
"DalePres" <don-t-spa-m-me@.lea-ve-me-a-lone--.com> wrote in message
news:e05xBXNUEHA.2564@.TK2MSFTNGP11.phx.gbl...
> That's not much information to go on but I suggest looking for something
in
> your onload that is rebinding or reloading the textbox with the original
> data before you get to the click event of your save button. Remember that
> onload is called before the button event.
> Also, make sure you're only setting the value of the textbox from the
> database when IsPostBack is false. If you're setting it in every case,
you
> will reset it before you get to the click event.
> Good luck,
> Dale
> "Red" <wreyes@.optonline.net> wrote in message
> news:OTvW$ONUEHA.2408@.tk2msftngp13.phx.gbl...
> to
in
>

Strange Issue egarding ASP:textbox control.

I have a form. I fill the text property of all the textboxes on the form to
display information to the user. If the user changes a value and clicks
save. I save the information to the database.

This sounds all well and good however the record does not get updated, in
fact I have traced it to the fact that the textbox.text property is not
being updated after the user changes the value.

Please, if you have experienced anything like this, please help. This is
very frustrating.That's not much information to go on but I suggest looking for something in
your onload that is rebinding or reloading the textbox with the original
data before you get to the click event of your save button. Remember that
onload is called before the button event.

Also, make sure you're only setting the value of the textbox from the
database when IsPostBack is false. If you're setting it in every case, you
will reset it before you get to the click event.

Good luck,

Dale

"Red" <wreyes@.optonline.net> wrote in message
news:OTvW$ONUEHA.2408@.tk2msftngp13.phx.gbl...
> I have a form. I fill the text property of all the textboxes on the form
to
> display information to the user. If the user changes a value and clicks
> save. I save the information to the database.
> This sounds all well and good however the record does not get updated, in
> fact I have traced it to the fact that the textbox.text property is not
> being updated after the user changes the value.
> Please, if you have experienced anything like this, please help. This is
> very frustrating.
Hey thanks alot. I can not beleive I made such a simple mistake. For days I
have been looking at everything accept for when I was displaying the data.

Anyway, thanks again.

"DalePres" <don-t-spa-m-me@.lea-ve-me-a-lone--.com> wrote in message
news:e05xBXNUEHA.2564@.TK2MSFTNGP11.phx.gbl...
> That's not much information to go on but I suggest looking for something
in
> your onload that is rebinding or reloading the textbox with the original
> data before you get to the click event of your save button. Remember that
> onload is called before the button event.
> Also, make sure you're only setting the value of the textbox from the
> database when IsPostBack is false. If you're setting it in every case,
you
> will reset it before you get to the click event.
> Good luck,
> Dale
> "Red" <wreyes@.optonline.net> wrote in message
> news:OTvW$ONUEHA.2408@.tk2msftngp13.phx.gbl...
> > I have a form. I fill the text property of all the textboxes on the form
> to
> > display information to the user. If the user changes a value and clicks
> > save. I save the information to the database.
> > This sounds all well and good however the record does not get updated,
in
> > fact I have traced it to the fact that the textbox.text property is not
> > being updated after the user changes the value.
> > Please, if you have experienced anything like this, please help. This is
> > very frustrating.

Strange issue with textbox

All

Have a form with 6 textboxes.

3 of these have a white background but for some strage
reason the 3 others are yellow, I cannot for the life of
me find out why the other 3 are yellow backgrounded.

This is a "copied" layout of the form,

Thanks in advanceHave you installed the Google Toolbar by any chance?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.

"yop" <yop@.oceanfree.net> wrote in message
news:06df01c367f5$0fb4c720$a001280a@.phx.gbl...
> All
> Have a form with 6 textboxes.
> 3 of these have a white background but for some strage
> reason the 3 others are yellow, I cannot for the life of
> me find out why the other 3 are yellow backgrounded.
> This is a "copied" layout of the form,
> Thanks in advance
Kevin

I have alright! :)

>--Original Message--
>Have you installed the Google Toolbar by any chance?
>--
>HTH,
>Kevin Spencer
>Microsoft MVP
>..Net Developer
>http://www.takempis.com
>The more I learn, the less I know.
>"yop" <yop@.oceanfree.net> wrote in message
>news:06df01c367f5$0fb4c720$a001280a@.phx.gbl...
>> All
>>
>> Have a form with 6 textboxes.
>>
>> 3 of these have a white background but for some strage
>> reason the 3 others are yellow, I cannot for the life
of
>> me find out why the other 3 are yellow backgrounded.
>>
>> This is a "copied" layout of the form,
>>
>> Thanks in advance
>
>.
There you go!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.

"yop" <yop@.oceanfree.net> wrote in message
news:0ea801c367ff$e0e94050$a501280a@.phx.gbl...
> Kevin
> I have alright! :)
>
> >--Original Message--
> >Have you installed the Google Toolbar by any chance?
> >--
> >HTH,
> >Kevin Spencer
> >Microsoft MVP
> >..Net Developer
> >http://www.takempis.com
> >The more I learn, the less I know.
> >"yop" <yop@.oceanfree.net> wrote in message
> >news:06df01c367f5$0fb4c720$a001280a@.phx.gbl...
> >> All
> >>
> >> Have a form with 6 textboxes.
> >>
> >> 3 of these have a white background but for some strage
> >> reason the 3 others are yellow, I cannot for the life
> of
> >> me find out why the other 3 are yellow backgrounded.
> >>
> >> This is a "copied" layout of the form,
> >>
> >> Thanks in advance
> >.
Thanks Kevin

that was it alright!

>--Original Message--
>There you go!
>--
>HTH,
>Kevin Spencer
>Microsoft MVP
>..Net Developer
>http://www.takempis.com
>The more I learn, the less I know.
>"yop" <yop@.oceanfree.net> wrote in message
>news:0ea801c367ff$e0e94050$a501280a@.phx.gbl...
>> Kevin
>>
>> I have alright! :)
>>
>>
>> >--Original Message--
>> >Have you installed the Google Toolbar by any chance?
>>> >--
>> >HTH,
>>> >Kevin Spencer
>> >Microsoft MVP
>> >..Net Developer
>> >http://www.takempis.com
>> >The more I learn, the less I know.
>>> >"yop" <yop@.oceanfree.net> wrote in message
>> >news:06df01c367f5$0fb4c720$a001280a@.phx.gbl...
>> >> All
>> >>
>> >> Have a form with 6 textboxes.
>> >>
>> >> 3 of these have a white background but for some
strage
>> >> reason the 3 others are yellow, I cannot for the
life
>> of
>> >> me find out why the other 3 are yellow backgrounded.
>> >>
>> >> This is a "copied" layout of the form,
>> >>
>> >> Thanks in advance
>>>> >.
>>
>.