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

Top 5 Contributors of the Month
Gaurav Pal


There are different behavior for location between IE and FireFox, Chrome!


I have set location=no and location will not displayed in IE pop-up window , but I run the same code in FireFox or Chrome, I find location is displayed Pop-up window, why?

string s = "window.open('DisplayFullCode.aspx','WindowName533','location=no,height=640,width=820,scrollbars=yes,left=140,top=110,resizable=yes');";
ClientScript.RegisterStartupScript(typeof(Page), "HicalcWindow", s, true);

Firefox and google chrome textbox wrap is not working


Hi there, i have did some research on this topic. But what i have try to search still cannot solve my problem in Firefox.

 I have a textbox with textmode= multiline. i put a wrap= true is becoz i wan to display the address line by line and same as how the users input. I have tested in IE,Google Chrome and Firefox, two browser is not working except the IE.


<asp:TextBox ID="txtContactAddress" runat="server" CssClass="txtbox"

Video (application/x-oleobject) not playing in Firefox,Chrome and Opera



I have a WebForm in which I need to play a video file (wmv, mpg or mpeg). Here is my code:

<object id="vid" width="320" height="240" 
style="position:relative; left:10;top:10;"
<param name="URL" value='<%=Session["videourl"]%>'/>
<param name="SendPlayStateChangeEvents" value="True" />
<param name="AutoStart" value="False" />
<param name="uiMode" value="full" />
<param name="PlayCount" value="9999" />

This works well in Internet Explorer. I get the little media player with its controls(play, stop, pause etc) and everything works fine. However, in Firefox (3.6.12), Opera, Chrome, I don't get anything, just a blank space where the media object should appear.

I did some googling and... the problem should be that, the object is an ActiveX control and only IE supports ActiveX, so thats why it only shows in IE. Well, can anyone give some suggestions to make this work in any browser (Firefox, Chrome, Opera)

images are not rendering in Firefox but are in Safari



i'm not sure i'm posting in the right form thread so apologies if this belongs elsewhere. 

I have a website www.findmyhomefromhome.com . When you click on any thumbnail image Safari renders the images but in Firefox show up as binary garbage. (safari does not render gif images but does .jpeg images)

in my .cs file for the gridview itemtemplate I supply the following string

string stringvalue = "<a href=\"javascript:void(window.open('FullImage1.ashx?picid="

            + picid

            + "','_blank','toolbar=no,menubar=no'))\" > <img src='ThumbNailImage.ashx?picid="

            + picid

            + "'> </a>";


The images are mostly of type jpeg but i'd like to support other image types as well if that's not too much of a hack. 

I don't know what other information is relevant so i'll wait to be asked. 



login control logsout immediately in IE8 (but not Chrome, Firefox)


I am setting up a simple website which includes an asp.net login control.

Problem: When a registered user logs in using IE8 he is immediately logged out again.

(You can tell that he did get logged in because the "LastActivityDate" entry gets updated, there is also no "login failed" message.)

This doesn't happen if the user is using Chrome or Firefox - these browsers let you login ok. The problem also doesn't occur when using IE8 on the development machine, (running the site through Visual Studio) - it only occurs when deployed (I'm using IIS 5.1 on WinXP Pro).

After a lot of Googling the closest I have found to someone else experiencing this was at:


However the solution offered on the above link (ie don't have an IMG tag with an empty "" source( doesn't seem to apply to my website. Also - I'm guessing that his problem might occur in other browsers.)

I seem to have reached a dead end here, can anyone offer any suggestions?




Menu control appears slighlty off in Chrome and Firefox


The right sides of the dynamic menu items are being chopped off. Also, the entire menu is moved slightly to the left in both browsers. I have been searching for a solution but everything I find so far with Google talks about a problem with the menu not starting on the correct node but I am not having that issue.

You can view the site here.

the images not showing with Firefox



I was develop new site asp.net with VB, but I got error with reading the images from DB and Javascript Code

this the demo for the site (cobonaty.dhdesigner.net)


Thank's All ;)

Images in WPF

How to create a Thumbnail of an Image. How to automatically crop an image. The following method allows you to automatically crop an image to it's content.

Reading and Writing Images From a Windows Mobile Database using UltraLite 10(C#)

Periodically I get a request for information on how to read and write binary data to a database running on Windows Mobile. If you search the Internet you can typically find examples that are available on Windows Desktops or allow you to read and write to a local file system. The problem is that it can take a bit of work to get this code to work on Windows Mobile accessing a database.

Ultimately you might be asking, why would I want to store and image in a database? Well in an environment where you synchronizing data between a local mobile database and a consolidated (central) database this can be extremely useful. Imagine if an insurance adjuster went to an accident scene, took a picture of a damaged car, loaded it into his Windows Mobile database and then replicated that image up to the Insurance headquarters for approval. All of this could be done in a very short period of time when using images in the database. Another good example might be a doctor who was waiting for a patient chart to become available. If you could store the image in a database this chart could be sent down to the doctor's device once it became available.

For this article I am not going to get into how to synchronize the images to and from a remote and central database as this is typically fairly straightforward when using a data synchronization technologies like MobiLink

Save images to SQL CE

Storing binary objects (such as image, office document etc.) into database is a little cumbersome when it comes to retrieval. Hence the most commonly accepted way is only store the file path in the database, and to store the documents on a file share.

Store and Display Images from MS Access Database Using C#

There is only the difference of coding syntax to stream the binary data of image content type to upload it into MS Access Database using C#/VB in ASP.Net 2.0

Namespaces required:-
using System.Data.OleDb;

OleDb is used to connect the web site forms with MS Access Database using Microsoft.Jet.OLEDB.4.0

Open File Print File Excel

Batch print many Excel files without having to open each one at a time. Quickly print mass amounts of xls files at once with this program. You must have Excel installed on your machine..
Post New Web Links

Images not displayed in IE8, but shown in Chrome & Firefox

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :SharePoint

I have added a image in SiteAssets library. I have referred to that image in my aspx page. While redering page, image is not rendered in IE. While same image is rendered correctly in Chrome / Firefox . Am I missing something here?

Thanks for help in advance.


View Complete Post

More Related Resource Links

Has anyone experienced problems using a reorder list control in Chrome/Firefox?


I have three reorder lists on a page, one does not want to work. It is no different to the others, but is behaving like it is not enabled.

All working fine in IE 7 + 8.

Any ideas appreciated :)

Javascript fails in chrome and firefox, works fine in IE



I am customizing Newform.aspx i.e. hiding some fields, making other readonly etc. It works fine in IE but fails miserably in chrome and firefox i.e. readonly are no more readonly, hidden are no more hidden. Here is my code:

<script language="javascript" type="text/javascript">
    function autoFillFields()
       var ctrl = findacontrol("Reference Customer");
    var param = getURLParam('RefFromCust');   
    var properParam = replaceCharacters(param);
    ctrl.value = properParam;
    var ctrl = findacontrol("RefReqOpptyId");
    var param = getURLParam('OpptyId');   
    var properParam = replaceCharacters(param);
    ctrl.value = properParam;

    param = getURLParam('RefFromAE');
    properParam = replaceCharacters(param);
    setPeoplePicker("People Picker", properParam);
    hideFldCtrl("Approval Sta

TopNavFlyOuts won't display in IE but will display in FireFox, Chrome etc

My company decided it would like to add 1 level flyouts to the website which seems easy enough but I have an issue I just can't figure out. I changed the master to display 1 level and added CSS to format the flyouts. In Internet Explorer, the flyouts are a big blank white box and no text that can be clicked, no colors, nothing, but the width of the flyouts is just as expected and it's placed on the page as expected. So it picked up a couple of properties in the CSS but nothing else. In FireFox, Chrome and Safari, the flyouts are showing up just fine. This is just wacky to me. Has anyone run across? Any ideas? Thanks in advance.

My pictures in FireFox will not be displayed



why some of my pictures in firefox will not be displayed????

<img width="200" border="0" alt="[context]" src="Ads\ClassC\pic.jpg" />

event.keyCode problem in Firefox and chrome


Following code is working in IE but not in Firefox and chorme

TextBox1.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('"+Button1.UniqueID+"').click();return false;}} else {return true}; "); 

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