caching problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am new to asp.net I coded simple login form and placed two textboxes and
button. I want to verify the uid and pwd in my database(access) with the user
entered. After entering the uid and pwd and clicking the submit button it has
to check the database. Where to write that code(same page or diff page?). Coz
i didnt see anywhere in the samples with form tag with action and method
properties. If either of the input is not valid form should be available to
enter new.

And, when i run the page from IE it is not updating the modified code. Means
even though i modified code in the button click event and save (in VS.NET)
and refresh, still getting the old output. If i go to VS.NET and stepped thru
debug and accessing in IE, getting the new output. What could be the problem.

Thanx in advance
 
Hi Rajini:
I am new to asp.net I coded simple login form and placed two textboxes and
button. I want to verify the uid and pwd in my database(access) with the user
entered. After entering the uid and pwd and clicking the submit button it has
to check the database. Where to write that code(same page or diff page?). Coz
i didnt see anywhere in the samples with form tag with action and method
properties. If either of the input is not valid form should be available to
enter new.

To get started, you can place the code inside the button click event
you mentioned below. In ASP.NET you don't have to worry much about
form inputs, action, and method properties, as ASP.NET tries to
abstract all this away for you. You have a button on the form, and
when the user clicks the button event will fire. From inside the
button even you can read the textbox values and query the database.
And, when i run the page from IE it is not updating the modified code. Means
even though i modified code in the button click event and save (in VS.NET)
and refresh, still getting the old output. If i go to VS.NET and stepped thru
debug and accessing in IE, getting the new output. What could be the problem.

The code behind a page in ASP.NET must be compiled into a .dll. When
you debug, the IDE will compile for you. If you just save changes to
the code behind file and hit refresh, the updated code won't be in the
dll as yet. You'll have to edit, compile, and then refresh the
browser.
 
You need to compile your code behind page before you access that page. When
you debug in vs.net, your changes in code behind is compiled internally. So
you are able to see the changes during debugging.
 
Back
Top