Le site web rouge
:: HTML
Seite 1 von 1
Le site web rouge
Hallo meine Lieben!
Hier eine Standard HTML/CSS-Webpage, welche ich erstellt habe.
Bei Fragen einfach melden!
HTML
CSS
Hier eine Standard HTML/CSS-Webpage, welche ich erstellt habe.
Bei Fragen einfach melden!
HTML
- Code:
<body>
<form id="form1" runat="server">
<div>
<div id="Main">
<div id="Header">
</div>
<div id="Menu">
<ul>
<li>Navigation</li><br />
<li><a href="register.aspx">Registrieren</a></li>
<li><a href="ha.aspx">Hausaufgaben</a></li>
<li><a href="haV.aspx">Persönlich</a></li>
</ul>
</div>
<div id="Content">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
CSS
- Code:
body {
color: #FFFFFF;
font-family: Arial;
}
#Main {
background-color: #840401;
width: 920px;
height: 1000px;
position: absolute;
}
#Header {
background-color: lightblue;
height: 150px;
width: 900px;
margin: 10px;
position: absolute;
}
#Menu {
margin-top: 170px;
font-size: 14px;
position: absolute;
margin-left: 10px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 95px;
height: 180px;
background-color: #DF423E;
padding: 5px 5px 5px 5px;
}
li a {
display: block;
color: #000;
text-decoration: none;
background-color: #AC2D29;
}
/* Change the link color on hover */
li a:hover {
background-color: #AC2D29;
color: white;
}
#Content {
background-color: #B80601;
width:775px;
height: 810px;
padding: 5px;
margin-top: 170px;
margin-left: 125px;
position: absolute;
}
hacker86- Anzahl der Beiträge : 3
Anmeldedatum : 27.01.16
Re: Le site web rouge
Gezielt Suchen:
- Code:
SqlConnection conDBTodo = new SqlConnection(ConfigurationManager.ConnectionStrings["CSTest"].ConnectionString);
// this.lblAusgabe.Text zuerst leeren
this.lblAusgabe.Text = "";
//SqlCommand vorbereiten, Verbindung zur Tabelle
SqlCommand comDemoSelect = new SqlCommand();
comDemoSelect.Connection = conDBTodo;
//comDemoSelect.CommandType = comm
comDemoSelect.CommandText = "SELECT ID_HA, F_ID_Person, HAText, DateBis FROM tabHausaufgaben WHERE F_ID_Person = @FIDPers";
comDemoSelect.Connection.Open();
comDemoSelect.Parameters.AddWithValue("@FIDPers", this.txtID.Text);
//Datareader um Daten anzuzeigen
SqlDataReader drTodo = comDemoSelect.ExecuteReader();
//Datenausgabe in Labelfeld mit Datareader
if (drTodo.HasRows == true) //Sind Datensätze vorhanden?
{
while (drTodo.Read())
{
this.lblAusgabe.Text = this.lblAusgabe.Text + String.Format("{0:000}", Convert.ToInt64(drTodo["ID_HA"].ToString())) + " " + drTodo["F_ID_Person"].ToString() + " " + drTodo["HAText"].ToString() + " " + drTodo["DateBis"].ToString() + "<br />";
}
}
else
{
this.lblAusgabe.Text = "Noch keine Daten vorhanden";
}
//Schliessen aller Verbindungen
drTodo.Dispose();
drTodo.Close();
comDemoSelect.Dispose();
comDemoSelect.Connection.Close();
conDBTodo.Dispose();
conDBTodo.Close();
hacker86- Anzahl der Beiträge : 3
Anmeldedatum : 27.01.16
:: HTML
Seite 1 von 1
Befugnisse in diesem Forum
Sie können in diesem Forum nicht antworten
|
|