Also mir geht es nicht darum, eine Variante zu finden, die 2. Textbox so
clever wie m�glich zu verstecken, sondern darum, die Page und/oder die
Elemente so zu konfigurieren, dass auch mit einer TextBox kein PostBack
durchgef�hrt wird.
Es liegt auch nicht daran, dass es ein Control ist, wer mag, kann das mal in
einer einfachen Seite nachvollziehen.
Eine Textbox reinziehen.
Im PageLoad:
if(IsPostBack)
{
Response.Write("PostBack");
}
Und dann den Fokus auf die TextBox und Enter dr�cken.
Danach mal mit einer 2. TextBox probieren...
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag von
> [EMAIL PROTECTED]
> Gesendet: Dienstag, 3. Juni 2003 10:30
> An: [EMAIL PROTECTED]
> Betreff: RE : RE : RE : [Asp.net] Eine Textbox und Postback bei Enter
>
>
> Zusammenfassung (fuer visibility CSS2). Genaueres findest Du
> auf w3.org The visibility property sets if an element should
> be visible or invisible.
>
> Note: Invisible elements takes up space on the page. Use the
> "display" property to create invisible elements that do not
> take up space.
>
> Note: This property is used with scripts to create Dynamic HTML.
>
> Inherited: No
>
> Example
> p
> {
> visibility: visible
> }
>
> Possible Values
> Value Description NN IE
> visible The element is visible 6.0 4.0
> hidden The element is invisible 6.0 4.0
> collapse When used in table elements, this value removes a
> row or column, but it does not affect the table layout. The
> space taken up by the row or column will be available for
> other content. If this value is used on other elements, it
> renders as "hidden"
>
> -----Message d'origine-----
> De�: Andre Seifert [mailto:[EMAIL PROTECTED]
> Envoy�: mardi 3 juin 2003 10:22
> ��: [EMAIL PROTECTED]
> Objet�: AW: RE : RE : [Asp.net] Eine Textbox und Postback bei Enter
>
> > <INPUT type="hidden" name="NameOfThisElement">
> >
> > Meinst Du das?
>
> Nein, ich meinte mit Stylesheets so anpassen, dass man die
> TextBox nicht sieht, dazu Enabled=false, also so ungef�hr:
>
> <input name="tb1" type="text" disabled="disabled"
> style="width:1;height:1;border:none;" />
>
> Das funktioniert, ist aber nicht das, was ich mir "voller
> euphorischer Ideale" vorgestellt habe... :-)
>
> _______________________________________________
> Asp.net mailing list
> [EMAIL PROTECTED]
> http://www.glengamoi.com/mailman/listinfo/asp.> net
>
> _______________________________________________
> Asp.net
> mailing list
> [EMAIL PROTECTED]
> http://www.glengamoi.com/mailman/listinfo/asp.> net
>
_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net