DevTrain Startseite Visual Studio 1 Magazin  
  
  
SUCHEN:  
ARTIKEL ONLINE: 525   

Kategorien
.NET
Datenbanken
Web
XML

Allgemein
Camp
Foren
Events
Persönliche Einstellungen
Registrieren
Prämien Shop
Kontakt
Impressum
Über DevTrain

Autoren



 

Forum: VB.NET | Thema: Re: visible() bei textboxen ! | Von: G. Guest ( 31.01.2006 18:16)

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebFragebogen.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>der webbasierte Fragebogen</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body text="#000000" bgColor="#cccccc">
<form id="Form1" method="post" runat="server">

.
.
.
<P><asp:checkbox id="FII5Beschwerde" runat="server" Font-Size="X-Small" Font-Names="Arial" Text="Beschwerde"
AutoPostBack="True"></asp:checkbox></P>
<P>    
<asp:textbox id="FII5Beschwerde2" runat="server" Width="350px" TextMode="MultiLine" Height="50px"
Visible="False"></asp:textbox></P>
<P><asp:checkbox id="FII5Sonstiges" runat="server" Font-Size="X-Small" Font-Names="Arial" Text="Sonstiges"
AutoPostBack="True"></asp:checkbox></P>
<P>    
<asp:textbox id="FII5Sonstiges2" runat="server" Width="350px" TextMode="MultiLine" Height="50px"
Visible="False"></asp:textbox></P>
<P> </P>
.
.
.
<P align="center"><asp:button id="senden" runat="server" Width="93px" ForeColor="DarkGray" BackColor="DarkRed"
Font-Size="X-Small" Font-Names="Arial" Text="senden" BorderColor="DimGray" Font-Bold="True" BorderWidth="3px"></asp:button>           
<asp:button id="zuruecksetzen" runat="server" Width="102px" ForeColor="DarkGray" BackColor="DarkRed"
Font-Size="X-Small" Font-Names="Arial" Text="zurücksetzen" BorderColor="DimGray" Font-Bold="True"
BorderWidth="3px"></asp:button></P>
</form>
</body>
</HTML>

so das war jetzt die .aspx-Seite

und das ist die die aspx.vb-Seite:

Public Class WebForm1
Inherits System.Web.UI.Page

#Region " Vom Web Form Designer generierter Code "

'Dieser Aufruf ist für den Web Form-Designer erforderlich.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub
Protected WithEvents Image1 As System.Web.UI.WebControls.Image
Protected WithEvents woche As System.Web.UI.WebControls.RadioButton
Protected WithEvents monat As System.Web.UI.WebControls.RadioButton
Protected WithEvents weiter As System.Web.UI.WebControls.RadioButton
Protected WithEvents telefon As System.Web.UI.WebControls.RadioButton
Protected WithEvents mail As System.Web.UI.WebControls.RadioButton
Protected WithEvents senden As System.Web.UI.WebControls.Button
Protected WithEvents zuruecksetzen As System.Web.UI.WebControls.Button
Protected WithEvents persoenlich As System.Web.UI.WebControls.RadioButton
Protected WithEvents FII5Sonstiges As System.Web.UI.WebControls.CheckBox
Protected WithEvents FII5Sonstiges2 As System.Web.UI.WebControls.TextBox
Protected WithEvents FI1Dienststelle As System.Web.UI.WebControls.DropDownList
Protected WithEvents FII1Anzahl As System.Web.UI.WebControls.RadioButtonList
Protected WithEvents FII4Abteilung As System.Web.UI.WebControls.CheckBoxList
Protected WithEvents FII5Grund As System.Web.UI.WebControls.CheckBoxList
Protected WithEvents FII5Beschwerde As System.Web.UI.WebControls.CheckBox
Protected WithEvents FII5Beschwerde2 As System.Web.UI.WebControls.TextBox
Protected WithEvents FIII1Erreichbarkeit1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Erreichbarkeit2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Erreichbarkeit3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Erreichbarkeit4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Kompetenz1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Kompetenz2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Kompetenz3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Kompetenz4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Schnell1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Schnell2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Schnell3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Schnell4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Verstaendlichkeit1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Verstaendlichkeit4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Freundlichkeit1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Freundlichkeit2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Freundlichkeit3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Freundlichkeit4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Auftreten1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Auftreten2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Auftreten3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Auftreten4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2A1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2A2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2A3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2A4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2A5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2B1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2B2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2B3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2B4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2B5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2C1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2C2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2C3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2C4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2C5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2D1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2D2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2D3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2D4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2D5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2E1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2E2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2E3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2E4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2E5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2F1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2F2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2F3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2F4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2F5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2G1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2G2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2G3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2G4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2G5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2H1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2H2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2H3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2H4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2H5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2I1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2I2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2I3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2I4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2I5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2J1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2J2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2J3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2J4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII2J5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII3Zufrieden1 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII3Zufrieden2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII3Zufrieden3 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII3Zufrieden4 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII3Zufrieden5 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII4Erfahrung As System.Web.UI.WebControls.TextBox
Protected WithEvents FIII5Anmerkung As System.Web.UI.WebControls.TextBox
Protected WithEvents FIII1Verstaendlichkeit2 As System.Web.UI.WebControls.RadioButton
Protected WithEvents FIII1Verstaendlichkeit3 As System.Web.UI.WebControls.RadioButton

'HINWEIS: Die folgende Platzhalterdeklaration ist für den Web Form-Designer erforderlich.
'Nicht löschen oder verschieben.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: Dieser Methodenaufruf ist für den Web Form-Designer erforderlich
'Verwenden Sie nicht den Code-Editor zur Bearbeitung.
InitializeComponent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Hier Benutzercode zur Seiteninitialisierung einfügen
End Sub

Private Sub FII5Sonstiges_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FII5Sonstiges.CheckedChanged
If FII5Sonstiges.Checked = True Then
FII5Sonstiges2.Visible() = True
End If
End Sub

Private Sub FII5Beschwerde_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FII5Beschwerde.CheckedChanged
If FII5Beschwerde.Checked = True Then
FII5Beschwerde2.Visible() = True
End If
End Sub
End Class


Betreff Von Datum
Re: visible() bei textboxen !
Siehr für mich soweit korrekt aus. Eventuell fällt Hannes noch was auf.<br><br>Eigenartig, dass es auch zu keiner Fehlermeldungen kommt. <br><br>Ein Postback wird ja ausgelöst oder?
Bernhard Grojer 31.01.2006 18:22
Re: visible() bei textboxen !
ja ein postback wir eventuel aufgelöst, es wird so zu sagen eine seiten-aktualisierung durchgeführt, aber die Textbox ist immer noch nicht zu sehen.<br><br>danke<br>josef
G. Guest 31.01.2006 18:24
Re: visible() bei textboxen !
hehehe ... jetzt nach dem debuggen, wird die Textbox immer visible, d.h. egal ob die checkbox markiert ist oder nicht ist die textbox immer zu sehen ... :(<br>ich geh kapput :)<br><br>josef
G. Guest 31.01.2006 18:34
Re: visible() bei textboxen !
naja ist ja klar du hast ja keine Else Zweig in deinem Handling fürs VIsible setzen.<br><br>sprich du müsstest noch beim <br><br>If checkbox.checked = true <br> txt.visible = true<br>else<br> txt.visible =...
Bernhard Grojer 31.01.2006 18:40
Re: visible() bei textboxen !
hehehe ... hey das funktioniert :)<br>man war ich blöd ... lol<br><br>danke Bernhard, war mir echt eine große hilfe ;)<br><br>Gruß<br>josef
G. Guest 31.01.2006 18:44
Re: visible() bei textboxen !
Was du noch versuchen könntest ist ein "handles FII5Beschwerde.Click" aus dem "handles ... changed" zu machen.<br><br>Ansonst fällt mir nichts mehr ein.
Bernhard Grojer 31.01.2006 18:35
Re: visible() bei textboxen !
hmmm ... wie meinst du das ? es gibt da kein handles ....click bei checkboxen.<br><br>oder habe ich da was falsches verstanden ?
G. Guest 31.01.2006 18:41

Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!

 Betreff:
 Nachricht: Den Beitrag finden Sie nun unter: http://beta.devtrain.de/foren Die Benutzerdaten und Foreninhalte von beta.devtrain.de und www.devtrain.de sind die selben.
Sie können sich dort sogar per RSS über neue Inhalte informieren lassen.
Bei Problemen bitte direkt Mail an asp [AT] ppedv.de.

 Signatur:

  



Login
Username:


Passwort:






Passwort vergessen?

Visual Studio 1 Magazin

© Copyright 2003 ppedv AG