c# - Can';t work using html textbox to login -
because using html buttons , textbox login, must code behind in javascript in source code in order code behind. whether login using correct username , password admin , 123 , click login button, or type in nothing , click login button, redirects me resultdetails.aspx. means login fail. login pass if redirect me search.aspx. what's wrong? if change .value .text, still same effect my source code <%@ page language="c#" autoeventwireup="true" codefile="login.aspx.cs" inherits="login" %> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> </style> <link rel="stylesheet" type="text/css" href="stylesheets/loginstyle.css"...