Friday, March 16, 2012

Make a postback without using Javascript

Hi:
I have done a page using Asp.net with a searcher and a contact form.
My problem is that it must work in navigators without javascript, and
when I run de web in those navigators I have no postback by linkbuttons or
postback in buttons redirects me to a blank page.
Does anyone can help me?
Thanks a lot and sorry for my bad english.
AlfonsoAlfonso,
Postback is not possible without javascript. Try to convince your boss to
let you use javascript.
Eliyahu
"Alfonso" <fonsi@.futuver.com> wrote in message
news:%23FY392GNFHA.1884@.TK2MSFTNGP15.phx.gbl...
> Hi:
> I have done a page using Asp.net with a searcher and a contact form.
> My problem is that it must work in navigators without javascript, and
> when I run de web in those navigators I have no postback by linkbuttons or
> postback in buttons redirects me to a blank page.
> Does anyone can help me?
> Thanks a lot and sorry for my bad english.
> Alfonso
>
> Postback is not possible without javascript. Try to convince your boss to
> let you use javascript.
Other than using actual form submit buttons, you have to use javascript,
which, as you state, is an issue if it's a public-facing web site and
accessibility is a concern.
For times when I need that, I revert back to good'ol querystrings. I just
redirect the page back to itself with the querystrings and have some logic
on the page_load sub to handle what to do.
Since most of my work is on public facing sites with accessibility concerns,
that's what I use more often than not.
-Darrel
I recently did the same thing. Just make sure that all of your buttons are
submit buttons. Some pages may need to be redesigned.

0 comments:

Post a Comment