Link to home
Start Free TrialLog in
Avatar of Padre_Corleone
Padre_CorleoneFlag for United States of America

asked on

Changes in my codebehind do not reflect when previewing my page

When I make a change on my code behind file and I preview my page from server whether in debug mode using visual stuido.net 2003 or IIS manager, changes do not take place.

OK for example  I had something like this before
******* partial code*********
If dr.Read() Then
            If dr("Pwd").ToString = txtUserPass.Text Then
                FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False)
            Else
                lblMsg.Text = "Invalid User Name"

****** Minor change in my code to this (label) ********************
If dr.Read() Then
            If dr("Pwd").ToString = txtUserPass.Text Then
                FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False)
            Else
                lblMsg.Text = "Invalid User Name and/or Password"

when I view my page I can not see the change on my text label.
I have tried different things

1.  Erase my cookies, temp files in temp folder
2. restart IIS
3. stop and start website
and nothing
I will really appreciate if someone can help me solve this problem.




Avatar of sforcier
sforcier

Let's start with the basics:

Did you recompile your code/update the assemblies in the bin folder after you made the changes?
Have you tried right clicking the page and choosing "Refresh"?


Avatar of Padre_Corleone

ASKER

what i did was, I rebuilded my solution, and rebuilded my application by going to Build > Rebuild.
If that is what i understood, if not how can i recomile?
yes I have tried right click on page and choosing refresh.

ASKER CERTIFIED SOLUTION
Avatar of sforcier
sforcier

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial