Showing posts with label posting. Show all posts
Showing posts with label posting. Show all posts

Saturday, March 31, 2012

Text box

Could someone help me.

After hitting the submit page how do get the text box to clear? The
page is posting back to itself. What do I put on the code behind page?Just change the "EnableViewState" property of the Textbox to "False" in the
Properties Windows at design-time. No code necessary.

"JJ297" <nc297@.yahoo.comwrote in message
news:1193771080.275874.158090@.y42g2000hsy.googlegr oups.com...

Quote:

Originally Posted by

Could someone help me.
>
After hitting the submit page how do get the text box to clear? The
page is posting back to itself. What do I put on the code behind page?
>


"JJ297" <nc297@.yahoo.comwrote in message
news:1193771080.275874.158090@.y42g2000hsy.googlegr oups.com...

Quote:

Originally Posted by

After hitting the submit page how do get the text box to clear? The
page is posting back to itself.


The submit page...?

Quote:

Originally Posted by

What do I put on the code behind page?


What are you trying to do exactly...?

Please clarify precisely what you mean...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net
IMO it won't work as persisting the texbox content is not done using
viewstate. By design field values are posted to a server (this is how an
HTML form works). The viewstate is there for any other property you could
have to maintain between postbacks except the textbox content).

Your best bet is to explicitelty set the value to an empty string in the
submit button event handler...

--
Patrice

"Scott M." <s-mar@.nospam.nospama crit dans le message de news:
udr8XiyGIHA.1184@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

Just change the "EnableViewState" property of the Textbox to "False" in
the Properties Windows at design-time. No code necessary.
>
>
"JJ297" <nc297@.yahoo.comwrote in message
news:1193771080.275874.158090@.y42g2000hsy.googlegr oups.com...

Quote:

Originally Posted by

>Could someone help me.
>>
>After hitting the submit page how do get the text box to clear? The
>page is posting back to itself. What do I put on the code behind page?
>>


>
>


Just add this to your code:
MyTextBox.text=""

--

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup

"JJ297" <nc297@.yahoo.comwrote in message
news:1193771080.275874.158090@.y42g2000hsy.googlegr oups.com...

Quote:

Originally Posted by

Could someone help me.
>
After hitting the submit page how do get the text box to clear? The
page is posting back to itself. What do I put on the code behind page?
>


On Oct 30, 3:37 pm, "David Wier" <d...@.dw.comwrote:

Quote:

Originally Posted by

Just add this to your code:
MyTextBox.text=""
>
--
>
David Wierhttp://aspnet101.comhttp://iWritePro.com- One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
>
"JJ297" <nc...@.yahoo.comwrote in message
>
news:1193771080.275874.158090@.y42g2000hsy.googlegr oups.com...
>
>
>

Quote:

Originally Posted by

Could someone help me.


>

Quote:

Originally Posted by

After hitting the submit page how do get the text box to clear? The
page is posting back to itself. What do I put on the code behind page?- Hide quoted text -


>
- Show quoted text -


Thanks I added the text to my code and the box is now clear after
hitting the submit button.
On Oct 30, 3:37 pm, "David Wier" <d...@.dw.comwrote:

Quote:

Originally Posted by

Just add this to your code:
MyTextBox.text=""
>
--
>
David Wierhttp://aspnet101.comhttp://iWritePro.com- One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
>
"JJ297" <nc...@.yahoo.comwrote in message
>
news:1193771080.275874.158090@.y42g2000hsy.googlegr oups.com...
>
>
>

Quote:

Originally Posted by

Could someone help me.


>

Quote:

Originally Posted by

After hitting the submit page how do get the text box to clear? The
page is posting back to itself. What do I put on the code behind page?- Hide quoted text -


>
- Show quoted text -


Thanks it worked!

Thursday, March 22, 2012

Textarea-control

First, posting images in a newsgroup is poor netiquette. However, I'll put
that down to inexperience with newsgroups.

However, second, you're expecting some ready-made control to be manufactured
somewhere that does whatever that dialog box from an executable does? I
thought -I- was optimistic!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Bart Schelkens" <bschelkens@dotnet.itags.org.hotmail.com> wrote in message
news:OsORcNPGFHA.3792@dotnet.itags.org.TK2MSFTNGP10.phx.gbl...
> Hi,
> I'm looking for a control that allows a user to use buttons so he can put
> some html in his text.
> Something like the ones in the screen shot.
> Can anyone help me?
> Thanks in advance.The image was so everybody would understand what i was talking about.
And the executable you are talking about, is an existing website written in
asp.
And since I got replies with links to the control i'm looking for, i guess
you should be more optimistic.

"Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uTG$ZcPGFHA.428@.TK2MSFTNGP15.phx.gbl...
> First, posting images in a newsgroup is poor netiquette. However, I'll put
> that down to inexperience with newsgroups.
> However, second, you're expecting some ready-made control to be
> manufactured somewhere that does whatever that dialog box from an
> executable does? I thought -I- was optimistic!
> --
> HTH,
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Neither a follower nor a lender be.
> "Bart Schelkens" <bschelkens@.hotmail.com> wrote in message
> news:OsORcNPGFHA.3792@.TK2MSFTNGP10.phx.gbl...
>> Hi,
>>
>> I'm looking for a control that allows a user to use buttons so he can put
>> some html in his text.
>> Something like the ones in the screen shot.
>>
>> Can anyone help me?
>> Thanks in advance.
>>
>>
>>
> And since I got replies with links to the control i'm looking for, i guess
> you should be more optimistic.

We'll see!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Bart Schelkens" <bschelkens@.hotmail.com> wrote in message
news:eEfyyCRGFHA.2156@.TK2MSFTNGP09.phx.gbl...
> The image was so everybody would understand what i was talking about.
> And the executable you are talking about, is an existing website written
> in asp.
> And since I got replies with links to the control i'm looking for, i guess
> you should be more optimistic.
> "Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> schreef in bericht
> news:uTG$ZcPGFHA.428@.TK2MSFTNGP15.phx.gbl...
>> First, posting images in a newsgroup is poor netiquette. However, I'll
>> put that down to inexperience with newsgroups.
>>
>> However, second, you're expecting some ready-made control to be
>> manufactured somewhere that does whatever that dialog box from an
>> executable does? I thought -I- was optimistic!
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> Neither a follower nor a lender be.
>>
>> "Bart Schelkens" <bschelkens@.hotmail.com> wrote in message
>> news:OsORcNPGFHA.3792@.TK2MSFTNGP10.phx.gbl...
>>> Hi,
>>>
>>> I'm looking for a control that allows a user to use buttons so he can
>>> put some html in his text.
>>> Something like the ones in the screen shot.
>>>
>>> Can anyone help me?
>>> Thanks in advance.
>>>
>>>
>>>
>>
>>