Link to home
Start Free TrialLog in
Avatar of Jorge Paulino
Jorge PaulinoFlag for Portugal

asked on

Refresh without using autopostback

Hi everybody,

I want to do something's in my web page (ASP/VB2005) without autopostback and without using AJAX.

1  When selecting the checkbox collect a value from an array and show it.
2  After leaving the textbox show the value in an specify format in a label (like the validation controls do!)

I know how to do everything expect firing the events. I can do it setting the autopostback to true but that reloads the page.


Thanks
jpaulino
Avatar of digitalZo
digitalZo
Flag of India image

You can use AutoPostBack without page reloading by adding  these simple effects:

<meta http-equiv="Page-Exit"
    content="progid:DXImageTransform.Microsoft.Fade(duration=.5)" />

http://www.nikhilk.net/PageTransitions.aspx
^That's for Page-Exit. You can use it for Page-Enter, Site-Enter, etc..

<meta http-equiv="Page-Enter"
    content="progid:DXImageTransform.Microsoft.Fade(duration=.5)" />
Avatar of Jorge Paulino

ASKER

I will look that, but how can I do that, call a function (that will loop throu the control and get a number) and then show it on a label.

Like validation controls !
SOLUTION
Avatar of digitalZo
digitalZo
Flag of India image

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
You will need to write some javascript, something along the lines of

document.getElementById("textboxID") = formatted string

attached to the onchange event of the select control
Sorry for the delay of my answer.

What I want (and maybe I was not clear enough) is to perform actions without open the page again, like validation controls. The validation controls shows the result after you leave the textbox.

I have 12 checkboxes for the 12 months of the year and each month has one value (ex. 15). What I want is to show to the user the total value (sum) of the checked checkboxes before he save it.

Hope its clear know!

Thanks for the help so far &
ASKER CERTIFIED SOLUTION
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