Browser Independence

  • Thread starter Thread starter Benedictum
  • Start date Start date
B

Benedictum

How do you write an aspnet browser-independent apps? I develop and browse
with IE but it looks differently with Opera or Firefox. Any suggestion?

Thanks,
 
Benedictum said:
How do you write an aspnet browser-independent apps? I develop and browse
with IE but it looks differently with Opera or Firefox. Any suggestion?

You don't use ASP.NET form or Web controls, you use Ajax Pro for .NET (free)
and you use HTML and JavaScript. That will make the application more browser
independent, because of the use of HTML and JavaScript. There is no Postback
event, and the Code Behind file is used to retrieve and save data to a
database, keep object state/persist, etc, etc, using proxies.

http://www.codeplex.com/AjaxPro
http://www.google.com/search?q=what+is+ajaxpro+for+.NET&hl=en&start=10&sa=N
 
Thanks Mr. Arnold.
I'll look into this.

Mr. Arnold said:
You don't use ASP.NET form or Web controls, you use Ajax Pro for .NET
(free) and you use HTML and JavaScript. That will make the application
more browser independent, because of the use of HTML and JavaScript. There
is no Postback event, and the Code Behind file is used to retrieve and
save data to a database, keep object state/persist, etc, etc, using
proxies.

http://www.codeplex.com/AjaxPro
http://www.google.com/search?q=what+is+ajaxpro+for+.NET&hl=en&start=10&sa=N
 
Hello Benedictum,

The first way is to make your html XHTML 1.1 compliant - use XHTML validators.
Then check how your JS code works in different browsers and fix it. The same
JS code may work unstable in browsers, due to object model differences in
FF/IE/Opera

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

B> How do you write an aspnet browser-independent apps? I develop and
B> browse with IE but it looks differently with Opera or Firefox. Any
B> suggestion?
B>
B> Thanks,
B>
 
I managed to make the pages work in three browsers just by plugging in the
browsercap directives in the web.config file. I still see differences (e.g.
rendering of gradients). This is usable and not as irritating as before.
 
Back
Top