.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

Browser specific troubles

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :ASP.Net
 

I have an ASP.NET 3.5 application written in VB.NET that works just fine when viewed from my developmental box on IE8, but when I browse to the site using Firefox or Safari it doesn't work so well.

How do I handle this problem?  What is this problem called?  Please advise.  Thanks.




View Complete Post


More Related Resource Links

prevent browser specific url encoding

  

hello everyone,


postBackEventReference = this.Page.ClientScript.GetPostBackEventReference(postBackOptions, true);


has a different result depending on the agent which made the request.
I need to overwrite this behaviour in a server control and return exactly the same code for IE/FF/Chrome/...

My custom server control inherits from LinkButton. I'm overriding

protected override void AddAttributesToRender(HtmlTextWriter writer)


For example I'm adding a custom postback url. This url contains "<" in its markup which of course needs to be escaped to %3c.
The GetPostBackEventReference(..) method returns %3c if the request was made with FF/Chrome and so on and %253c if the Request was made with MSIE.
I'm having serious trouble getting %3c encoded urls to work in FF/Chrome and so on. So I went on and replaced escaped all '%' to '%25' one more time.

Unfortunately modifying the result of the GetPostBackEventReference(...) method has little effect. As soon as

writer.AddAttribute(HtmlTextWriterAttribute.Href, postBackEventReference);


is called, my postBackEventReference string is stripped of all the extra %25 encodings I put into the F

How to setup a Mobile Browser Emulator in Windows Mobile 6:

  
In the following tutorial, I cover the process of Setting up Windows Mobile 6 for Mobile Browser Emulation using the Microsoft Device Emulator. This enables a user to experience Windows Mobile 6 on a PC via Emulation without even owning a Windows Mobile 6 product. It can be a great way to test drive Windows Mobile 6 before purchasing a product with it installed. In our case, it allowed us to Emulate Windows Mobile Browsing so that we could optimize our sites for the Mobile viewing audience. Installation and Emulation is simple and fairly straight forward.

*.axd script references not being rendered to browser

  

I'm running VS2010 with .net 4.0, and am running into issues with the .net ajax script tags mysteriously not being rendered to the browser.

So far I've reduced it to a scenario where I set the DataSourceID property of a databound control.  More specifically, I've only tested it on a Gridview and a DropDownList.

This can be reproduced fairly easily on my machine by following these steps:


1. Create a new empty Web Application Project

2. Create a new Web Form

3. Add a ScriptManager inside the form

4. Add a DropDownList and a DataSource (I used an ObjectDataSource)

5. Set the DataSourceID property of the DropDownList to the ID of the DataSource.  This can be done either declaratively on the .aspx page, or in the code behind in the aspx.cs page, and both produce the same results.

6. Open the page in a browser and watch as you get a javascript error stating "Sys is not defined" and notice that the page source contains no script tags referencing *.axd scripts.


Here's my source code showing my set up:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ScriptResourceFAIL.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T

WebDev.WebServer.exe has encounted a problem and needs to close when trying to view page in browser

  

Hi, whenever I load an aspx page in vwde2008, I get the message in the subject of this post.  After I click Ok on that, I get a dialog box, Unable to Connect to the ASP.Net development center.  What can I do to troubleshoot?

I am using Windows XP SP3, vwde2008 with SP1, on a HP desktop.  Also using Office 2003 if that is relevant at all.

Thanks, Justin


Button specific code

  

I have 2 submit buttons on my page. Right now, the only way to run the code behind with razor is to to If(IsPost). Since I have 2 buttons, how would I destinguish between the two in post? Is there a way to request a button that sent a post request?  


browser gives jibberish when State manager (sql) is turned on

  

Hi all, we're testing our web app with a state manager so that we can do distributed rollouts. We're not getting any errors, but we are getting jibberish returned for every page request. 

(it won't even let me paste it in here)

HOw do I get it to serve the pages normally?


Thanks!


displaying xsl results in browser

  

Hi guys,


How can I test what my xsl spits out in the browser, rather than just viewing the xsl itself?


thanks


Getting list of users reporting from specific Manager from Active Directory

  

Dear All,


I am have requirement like displaying all the user information reporting to specific manager from Active Directory.


Please help me regarding this.


Regards

Prakash


Browser detection and content adaptation

  

hi everyone

 Here i'm creating two sites for internet version and mobile version.

 When the user enters site name, we would detect the mobile browser automatically and redirect the user to mobile version of the site .

is it possible??

if yes, please tell the way i need to develop the application for mobile web application

Detect Browser Screen Size??

  

Hi Everyone,  I need to detect the size of the user's screen for mobile devices (especially the BlackBerry). I've read a lot of pages that seem to refer me to the Request.Browser object, but I'm finding that this object doesn't have the correct values. For example, I have a BlackBerry and when I use the Request.Browser to get the screen size, it tells me it is 640x480. Well, I know it's not that big since an image of 300px wide just barely fits. Also, when I run on my desktop browser, it also says my screen is 640x480. I can assure you, it is not 640x480! ha!

  How does anyone reliably get the browser's screen size?? Do I have to revert to some kind of JavaScript? If so, where can I read more about it? Will it be any more reliable? Someone must have an idea about this. Thanks in advance!!


Mobile phone browser detection

  

Hi i am planning to develop a site for mobiles. My first problem is how to find the mobile browser so that i can redirect to the mobile site for good look. When i searched for that i came accross WURFL which contains the list of mobile user agents? Is this the good solution or anybody having good solution please tell which will be helpful for me.

Waiting for the reply



Need To Create A Mobile App for All Mobile's Models, No WAP Browser Intrection

  

Hi all,

I have an assignment to develop a mobile application for My company's customers (around 250000). its could be download from our website or we can also provide to our customers those are visiting our branches, on their demand.

Requirments:

1- this application should execute/compatible with all kind off mobile phone (Nokia, Samsun, LG, Motrola, Black Berry, iPhone..... every one). when it install on customer phone it will provide some certian option under the my company Icon to the user, like:

         1- Help Line Numbers

         2- Branches Address/Details

         3- My Last Visit Informations.

         4- My Next Appointment.

         5- My Payment History   and more etc etc......

         the user will select any one option and then get the response by return text Message against the option he selected from our Site/Service (I dont konw what we will say this system who will response to the customers)

My Problem is that I saw/Check many fourms and articals they are giving the tips/det

Create web site specific to mobile device, how to detect?

  

Hi

I have a website that is written in .Net 2.0 which uses all the nice rich functionality of the web (Ajax, javascript etc..).  However I have noticed that the site does not display very well on mobile devices. 

So therefore I would like to create a more streamlined version of my site that is better tailored to these devices.  However how do detect that the user has come to the site via a mobile device and how can i redirect them to my tailored page

Many thanks in advance


default.browser from asp.net 3.5 to asp.net 4.0

  

hello, it's me again :-)

a (maybe) stupid question:

in asp.net 3.5 i've this .browser file:

...snip...

<browser refID="safari1plus">

<controlAdapters>

<adapter controlType="System.Web.UI.WebControls.Menu" adapterType="" />

</controlAdapters>

</browser>

</browsers>

 

now i suppose that in asp.net 4.0 this is not useful.

So what i've to do? I've simply to delete "App_Browsers" folder in my converted project or i've to put in this folder:

.blackberry.browser

.chrome.browser

.Default.browser

.firefox.browser

.gateway.browser

.generic.browser

.ie.browser

.iemobile.browser

.iphone.browser

.opera.browser

.safari.browser

 

?

What's the best way?

Thank  you very much!


Patterns in Practice: Internal Domain Specific Languages

  

Jeremy Miller explains how internal Domain Specific Languages can help you craft code that is easier to read and write. His bag of tricks to improve your programming includes extension methods, fluent interfaces, object extensions and use of the semantic model.

Jeremy Miller

MSDN Magazine January 2010


Data Points: Building An Out-of-Browser Client With Silverlight 3

  

Silverlight 2 applications are restricted to running inside a browser. However, Silverlight 3 applications can run inside the browser or out. Here we build a social networking app as a standalone Silverlight 3 application.

John Papa

MSDN Magazine June 2009


Cutting Edge: Browser Interoperability In Silverlight 2

  

This month Dino Esposito explains how the browser interoperability layer in Silverlight addresses a number of your Silverlight / Web page interaction needs.

Dino Esposito

MSDN Magazine November 2008


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend