Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

javascript in asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
archana - 10 Dec 2007 11:17 GMT
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.
Kevin Spencer - 10 Dec 2007 11:51 GMT
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.

Signature

HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

> Hi all,
>
[quoted text clipped - 17 lines]
>
> thanks in advance.
Mark Rae [MVP] - 10 Dec 2007 12:37 GMT
> 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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

bruce barker - 10 Dec 2007 16:31 GMT
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)

> 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
[quoted text clipped - 3 lines]
> with JavaScript turned off, and anyone who turns it off completely is
> probably too ignorant to care about.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.