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

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

Browser problem

Posted By:      Posted Date: October 26, 2010    Points: 0   Category :ASP.Net

Dear Friends,

       Below code working in IE browser but not working other browser. How to solve it...

Plz help me...

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script language="javascript" type="text/javascript">
            var i=0;
        function funAdd()
            addToTypesList(document.getElementById('FileUpload1').value, i);
            return false;
        function addToTypesList(text, value) 
            var Ckb = document.createElement('input');
            var CkbLabel = document.createElement('label');
            var nline = document.createElement('<br>');
            Ckb.type = 'checkbox';
            CkbLabel.innerHTML = text;
            Ckb.value = value;



View Complete Post

More Related Resource Links

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

problem in css for Mozilla browser



I am displaying data in crystal report and I want to data to be displayed in vertical format. I am getting the proper alignment in all the bowsers ie. IE,chrome and safari. But having the problem with Mozilla.

The problem is with text alignment with any symbol eg. (% of hours), I want to display it in a single vertical line. But when a symbol is encountered (here it is %), it is displaying that in the next line.

Can anyone help me on this ? Its urgent.

Please find my CSS below.

    font-family:Arial,Verdana, Geneva, Helvetica, sans-serif;
    font-size: 10px;  
    -moz-transform: rotate(-45deg);
    -moz-transform-origin: 70px 55px;




Problem with ASP.NET Ajax, Framework version 4.0 and the SeaMonkey browser...

I have a site that I'm upgrading to the 4.0 framework and I've come across an issue with asp.net ajax and the SeaMonkey browser. It seems like the script manager is not registering the scripts on the page in seamonkey (but it works fine in IE, Firefox, Chrome, Opera, and Safari). Now, if I change the user agent string in SeaMonkey to use the user agent string from any of those other browsers, it works fine. So I guess my question is does ASP.NET Ajax check the browser's user agent to determine what scripts to register and, if so, is it possible that SeaMonkey is not included in the list in the 4.0 framework (I should add that it's working fine in the 3.5 framework so it seems to me like this is a difference between the two framework versions).

Is this problem of browser(IE7)

0 down vote favorite This is the dynamic example jsFiddle dynamic DEMO CLICK ME and This is static example jsFiddle static DEMO CLICK ME When I load markup dynamically into div it is not working in IE7. But if it is static it works fine. Yesterday I was unable to state my problem clearly so I made this fiddle. Please check it out and reply.

Browser problem IE8



we are facing a problem while running the appliaction in IE8 and the details are as below.

1. Deployed the application using integrated windows authentication.

2. used asyn file upload conrtol.

3. while we browe a file we are getting the below error."Unhandeled Exception:Access is denied."

but this is working as excepected in other browser like mozilla firefox, and also in IE7, the problem is in IE8.

Please let us know if any of u have an idea regading the solution of this issue.

Thanks and Regards

Bhupal Koushik


ModalPopupExtender problem with browser back button


ModalPopUpExtender shows popup when user clicks browser back button.

I saw this thread but I could find the solution for this problem.


mesajrapor1 is my user control which contains the modalpopupextender

Here is my code:


protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
        HyperLink hyp = (HyperLink)e.Item.FindControl("hypGonderenAD");
        Label lblicer = (Label)e.Item.FindControl("lblIcerikMesaj");
        Label midlbl = (Label)e.Item.FindControl("lblIdMesaj");
        Label sidlbl = (Label)e.Item.FindControl("Label3");

        if (e.CommandName == "SikayetEt")
            mesajrapor1.RaporGonder(hyp.Text.ToString(), lblicer.Text.ToString(), Convert.ToInt32(midlbl.Text), Convert.ToInt32(sidlbl.Text));

Login problem with existing browser window


Hi All,

We are developing ASP.net 2.0/C# web application.

Once Login is expired the page is redirected to login page automatically. again If I am trying to login with same window, login is not working. Login is working when the application is opened in new browser.

What is the problem and how can i fix that error?

Session Ending or FormsAuthentication problem after the browser tab closing


In my project user logs in the site with login.aspx page. Then user is redirecting to homepage (anasayfa.aspx)

User close the browser tab (not the browser) then user tries to open the site again and the page is default.aspx

Default.aspx is useless in my project. Host area needs a default.aspx, index.html like something and I added this default aspx.

I want:

After user close the browser tab, if he/she wants to open the site again, the first page must be his/her homepage not default.aspx

I didn't use asp.net membership provider or anything like that.

This is my login.aspx page code:

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        SqlConnection con = new SqlConnection();
        con.ConnectionString = cnnstr;
        SqlCommand cmd = con.CreateCommand();
        cmd.CommandText = "Select Roles,UserId,UserName,Sifre,AccountType From ProfilBilgileri Where UserName = @txtLoginUserName AND Sifre = @txtLoginSifre and Durum=1";
        cmd.Parameters.Add("@txtLoginUserName", SqlDbType.NVarCh

browser compatibility problem with datagrid with fixed header using CSS way


Hi Everybody,

I am trying to create a datagrid with fixed header and I was using the CSS way to implement this using:


However, this only works in IE and not in FF. The other alternative that I found was to create the header in a separate table and to use scrollbars on the datagrid. But, I want to stick to the first option and want to make it work on both browsers. The problem is I don't know how. Any inputs on this is greatly appriciated.


InfoPath 2007 browser form problem in SPS2010



i've one issue with an InfoPath browser form in SharePoint 2010 struggling with it for 2 days now.

I have an InfoPath 2007 browser form with PeoplePicker controls in it and custom code for XMLChangedEventHandler assigned to the PeoplePicker.

Below this Control i have a repeating table with a simple rule: "If the DisplayName is empty, don't show this section."
So if somebody picks up a user, normally the section should be enabled and visible to the user.

But for some reason this is not happening, but when i save the form and reopen it again, then the section is visible.
Opening the Form in Preview (F5) Filler Mode the section gets also enabled correctly. After uploading via Central Admin meaning in the browser not.

I also tried in the Browser tab setting the "Always" postback option to all relevant fields but still not working.

I also put code into the ChangedEvent Handler, when somebody adds a user with the PeoplePicker, then it puts a comment to a field for testing purposes.
This is also not happening by runtime, instead when i reopen the Form, then i can see the comment.

I increased also the Number of Postbacks in Forms Services in the Central Administration without success.
Can anybody help or had the same problem???

Popup problem in WPF browser appliction.


If i set the AllowTansparency =true explicitly, It automatically changes in to the false. Why what is the reason for this?. Is there any work around?.\


David C

Problem Imager in other browser


Hello, I  'm new in this area, I build a page in Microsoft Visual Web Developer and I put some image in the page, this image is a link to other page, the page works perfectly on Internet Explorer but when I call the page from Safari or opera doesn't show the image, if somebody can help me with this issue, thanks in advance.

Browser Based Infopath form Opening Problem



 I am having some problem regarding infopath form.Actually i m using Browser based infopath form.

 I created the browser based infopath form and then i choosed full trused and added the certificate and then published with admin approved and then installed and activated from the central admin.

if client machine is having the Infopath Installed on that machine, I m facing some prob to open that infopath form on the client machine(asking windows crediantial again and again and at last the form was opended but the webservice was not retrieving the data on the infopath form) .

But if the client machine is not having the infopath installed then the infopath form is opening in single click.there is no issue in this case.

 so can u confirm me that if we are creating browser based infopath from then the client machine should not have infopath installed on that machine. Is this right?

Actually i m working on client site and lot of..... 1000 machines is here and every machine is having infopath form installed. So will every machine need uninstall of infopath?

Pls try to give me the solution.


Regards- Sharad

Formatting problem with Email from an Browser Enabled InfoPath 2010 Form in SharePoint 2010


I'm creating a form in InfoPath 2010 to be filled out in the browser within our SharePoint 2010 instance. It's pretty simple, four columns with total table width of about 650 pixels, textboxes, checkboxes, datepicker and one multiselect list box. The form is working fine up to the point where I invoke a data connection which emails the form to myself. When it arrives in my inbox, the format of the form included in the body of the email is funky. When I open the email and set it to a full screen viewing window (1440X900) the area that takes up the form exceeds the width of my viewing window and requires scroll bars to see all the fields on the form.

When printing the form from my email the area is so large that no data will show up in the printable area (it appears to be centered on the form and it is cutting off the "extra content" to the left and right which contains the form data as the user entered it). I'm using Outlook 2007. I also forwarded the email to a person who's using Outlook 2010 and they experienced the same problems as myself.

Things I've tried to fix it: Setting each column width, setting each control width to a pixel length (instead of using %). I added some code behind to switch the view to a two column view with a table width of 400px before it sends out the email. It's closer to being at a state where it's

Browser problem with silverlight


Hi friends, i developed one silverlight application in windows and hosted in IIS 7....it runs fine in windows OS...while i try to view the same page in Linux(RHEL5),,it shows blank screen.

i downloaded and installed FireFOx 3.6.15 in RHEL5....it asked install Moonlight plug in......i installed that plugin also....but it alwalys shows that Microsoft silverlight icon in browser...

Can you please help me?

On browser back button click again login in Application problem



In my project I am using the FormsAuthenticationTicket and maintain session when any user login in the application. On logout I am expire the seesion using Session.Abandon (); but when I click on the browser back button after logout it again login in the application. I want after logout if any user clicks on the browser back button it do not again login in the application it redirect it on login page. But I do not how it could be possible.


Below is my code


protected void btnLogon_Click(object sender, EventArgs e)


            propertyStore.BusinessLayer.Users objUser = new propertyStore.BusinessLayer.Users();

            if (objUser.IsAuthentic(txtUserName.Text, txtPassword.Text))



                FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(


Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:
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