Hallo leute,
Hab wiedermal ein kleines problem
Ich hab einen htmltable
<table id="mein_table">
<tr id="meine_tablerow">
<td>
irgendwas
<td>
<td>
<asp:textbox>
<td>
</tr>
</table>
Eigentlich hab ich mir gedacht wenn ich jetzt im code
Einfach das object als
protected System.Web.UI.HtmlControls.HtmlTableRow meine_tablerow;
Definier und dann irgendwo im code ein meine_tablerow.Visible = false
mach
Dann verschwindet das ganze vom bildschirm. Tut es aber nicht, ich
bekomm dann einen fehler:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.
Source Error:
Line 145: cb_productcode.Checked=true;
Line 146: else
Line 147: set_productcode.Visible=false;
Die zeile mit dem set_productcode.Visible=false; ist in dem fall
meine_tablerow
Kennt irgendwer einen workaround? Soweit ich weis kann man zwischen <tr>
ja keine <span> oder <div> tags setzen ? Oder bleibt mir da nix anderes
uebrig als viele kleine tables zu machen und um alle zu verstecken dann
nochmal ein <span> drueber?
Cheers,
Schoenen abend
dan
_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net