Hello,
I am new to html and c# my life been in engineering.
I am trying to create a simple login page, I have used html for the page structure and I am using c# for the login authentication. I have a table database with MS Access but I can’t seem to be able to get c# to verify the login info from the table…any ideas or tutorial I can refer to thanks is advance…. Here is my code
p.s. i am using dreamweaver 8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Another Square</title>
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style2 {
	font-size: 15px;
	font-weight: bold;
}
.style4 {font-family: Arial, Helvetica, sans-serif}
.style7 {font-size: 12px}
.style9 {
	font-size: 36px;
	font-weight: bold;
	font-family: Geneva, Arial, Helvetica, sans-serif;
}
.style10 {font-size: 10px}
-->
</style>
<script language="c#">


//some code will run for the validation of the username and //passwrod;
// include login function...but i don't know what to put 


</script>
</head>
<body>

<div id="wrap">

<div id="header">
<h1 class="style4">&nbsp;</h1>
<p class="style4">&nbsp;</p>
<p align="right">     Friday, July 10, 2009	</p>
<p>&nbsp;</p>
</div>

<div id="menu">
<p align="left" class="style2">  &nbsp;&nbsp;&nbsp;&nbsp;</p>
</div>

<div id="content">
  <div class="right">
    <h6 class="style7">&nbsp;</h6>
    <h6 class="style7">&nbsp;</h6>
    <h6 class="style7">&nbsp;</h6>
    <h6 class="style7"><br /> 
          <br />
        <br />
        <br />
 </h6>
    </div>

<div class="left"> 

<h2>Login here: </h2>

<form id="form1" method="post" action="verify.asp">
  <p>
    <label><span class="style1"> &nbsp;&nbsp;User name:
      </span>
    <input type="text" name="username" tabindex="1" />
      </label>
  </p>
  <p>
    <label><span class="style1">&nbsp;&nbsp;Password&nbsp;&nbsp;: </span>
    <input type="text" name="password" tabindex="2" />
    </label>
  </p>
  <p>
    <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="submit" name="Submit" value="Login" tabindex="3" />
    </label>
    <label>
    <input type="submit" name="Submit2" value="Sign Up" tabindex="4" />
    </label>
  </p>
  <p>
    <input type="checkbox" name="checkbox" value="checkbox" id="checkbox" />
    <label for="checkbox"><span class="style1">Forget Username and Password</span></label>
  </p>
  <p>
    <input type="checkbox" name="checkbox2" value="checkbox" id="checkbox2" />
    <label for="checkbox2"><span class="style1">Remember me on this computer</span></label>
  </p>
</form>
</div>
<div style="clear: both;"> 
  <p>&nbsp;</p>
  <p align="center">Links and other things to be defign later</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
  <p align="center">&nbsp;</p>
</div>

</div>

<div id="footer"></div>

</div>

</body>
</html>

I don't know that this question related to C# or ASP.NET but it is closer to ASP.NET than C#. Please direct markup questions over to that forum.

Also use code tags when you post:

[code=html] ...code here

[/code]

Advice:
You should be designing your markup with visual studio so that it can hook up the HTML with C# code and you can call functions to read/write on the database. Is there any particular reason you are not doing this? I don't know how to connect the site you have designed in dreamweaver with C#.. i'm sure its possible but I would rather use VS to do it all

thanks, that helped. i have moved everything over to VB. but i still can't figure out the functions of c# to read my data for the login authentication, any ideas were i can refer to. should i use something else other than c# for this page ?

thanks in advance.

This article has been dead for over six months. Start a new discussion instead.