Return the same URL and change the aspx Label asp.net

-1

I am doing a validation on a sales system, where if the seller clicks on a customer that is in debit access is not allowed. So far without problems, I made the connection with DB and validation.

I would like that when this scenario happened, the user would stay on the same page and the system would change the value of a Label . I have already done the code to change the Label value, but I do not know how to stay on the same page, because when using response.Request , the system returns home page

The system uses asp.net 2.0

    
asked by anonymous 31.03.2014 / 15:02

1 answer

1

The control that initializes the event can have the property AutoPostBack=True this means that an event in it will cause a page to be redirected

but you can control to update only the part you want hence you use the "UpdatePanel" component for this and you must also have "ScriptManager" to be able to do this

    
01.04.2014 / 20:04