473,322 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

caching problem


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
Nov 18 '05 #1
2 1097
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.

--
Scott
http://www.OdeToCode.com/blogs/scott/

Nov 18 '05 #2
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.

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Rajani" <Ra****@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...

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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hypo | last post by:
Im relatilvly new to a web programming in general, and here's the situation i have: I have a default page with dynamic content, and one button with onclick code something like this: { // do...
0
by: Martin | last post by:
Hi. I had a very frustrating afternoon and evening but I have got it all under control now so all of a sudden I am in a good mood. I want to share some insights on output caching with you lot. ...
3
by: Janaka | last post by:
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be...
1
by: Leo Muller | last post by:
I am impressed by the caching performance of .NET. However, there is one major obstacle that I haven't managed to solve yet. What I want to do is the following: I have a normal site, and a...
8
by: tshad | last post by:
I am having a problem with IE on one machine where it will not work after the first time on certain pages. It appears to be going to the cache all the time. On other machines I don't have that...
2
by: lanem | last post by:
I am working on a ASP.NET 2.0 web site that has some PDFs that users can download. I'm using an HTTP module to see if the user has permission to view the PDF before loading it. This all works...
0
by: Jonaed | last post by:
Hello, I am having a problem with caching, or at least I think it is with caching. I have a simple <%= "text " + DateTime.Now.ToString() %> in one of my aspx files (that is included thru the...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
4
by: Hermann | last post by:
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature. So......
2
by: Toni | last post by:
Hello! I'm trying to use ASP.NET caching with my web site and SQL Server, but I have a problem. I try to do everything according to the instructions like this page here:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.