Return the same URL and change the aspx Asp.net label

Asked

Viewed 162 times

-1

I am doing a validation in a sales system, where if the seller clicks on a customer who is in debt access is not allowed. So far no problem, I made the connection with the DB and validation.

I would like that when this scenario happens, the user stays on the same page and the system changes the value of a Label. I already made the code to change the value of Label, but I do not know how I remain on the same page, because when using the response.Request, the system back to the home page of customers

The system uses the Asp.net 2.0

  • 2

    Thiago, provide more details, your question is very open. It would be interesting to also put the part of the code where you are struggling.

1 answer

1

The control that initializes the event can have the property AutoPostBack=True this means that an event on it will cause a page resubmission

but one can control to update only the part you want then you use the component "UpdatePanel" for that reason and also has to have the "ScriptManager" to do this

Browser other questions tagged

You are not signed in. Login or sign up in order to post.