javascript in asp.net

A

archana

Hi all,

I am having one question regarding javascript in web page. I have
seen so many website using javascript a lot.

My question is if some browser doesnot support javascript then
javascript which web site is using will not gets call.

I am creating new website, so can i use javascript in my web site or
do all things on server side so if any browser does not support
javascript still my web site will work?

Can any one shed some light on this that is upto what extend i can use
javascript?

I read somewhere that postback is handled using dopostback javascript
but what if javascript is disable?

Still postback is working how this happens?

thanks in advance.
 
K

Kevin Spencer

If JavaScript is disabled, an ASP.Net application is highly likely to
misbehave in many ways. While it is possible for you to write an ASP.Net
application that doesn't use it, it is not a picnic. For one thing, you
would need to disable ViewState. Many Controls indeed use JavaScript to do
PostBacks. But it is possible. Still, there are very few browsers out there
with JavaScript turned off, and anyone who turns it off completely is
probably too ignorant to care about.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
M

Mark Rae [MVP]

anyone who turns it off completely is probably too ignorant to care about.

Hear! Hear!

I always include some instructions on the home page which advise people how
to turn JavaScript back on, which anyone can use - disable JavaScript and
then go to the website in my sig...
 
B

bruce barker

there is no need to disable viewstate. if you want your site to run
without javascript, then use only submit and image buttons. link buttons
(and thus paging on grids) will not work. autopostback will not work,
but shouldn't be used on an internet site anyway (poor user experience).


instead of javascript menus and flyouts, use the css versions (google
for examples, .net has no builtin ones)

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top