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

Top 5 Contributors of the Month
Gaurav Pal




<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="Player1" width="200" height="100">
    <param name="URL" value="<s:property value="adFilePath"/>">
    <param name="http://path_to_the_video">
    <param name="AutoStart" value="0">
    <param name="ShowControls" value="1">
    <param name="ShowStatusBar" value="1">
    <param name="ShowDisplay" value="1">
    <param name="stretchToFit" value="1">
    <embed type="application/x-mplayer2"
width="200" height="100" src="<s:property value="adFilePath"/>"
filename="<s:property value="adFilePath"/>" autostart="0" showcontrols="1" showstatusbar="1" showdisplay="0">


Above code in the place file name i am using <s:property> of struts 2 thi

Treeview expand problem in modal popup in firefox


Hello All,

I am using ASP.NET 2.0, i have one form in which on click of button, one modal popup opens in which one treeview is there but when i click on the plus sign of tree's node, nothing is being happened, instead plus sign becomes an image and can be pulled over the form also. This problem is not in Internet Explorer 7. But in FireFox and Google Chrome the same problem is there and this problem is only with tree placed in modal pop up.

Help me if anyone has any solutions.

Thanks in advance


JavaScript problem for mozilla firefox


Hi all,

i have developed one site. My requirement is that in the signup form i have denied entering of alphabets using javascript

script is as follows


if ((e.keyCode>=65 && e.keyCode<=90 )||(e.keyCode>=97 && e.keyCode<=122 ) ||  e.keyCode==32 || e.keyCode==46)
              alert('Please Enter Only Alphabet');


This script Works very fine on IE 6,7,8 but when i switched to mozilla firefox it wont works

plz help me

Problem in firefox and safari to call ajax method?


why does my below method not work with firefox and safari, every time it goes on OnFailed method?

is there setting requirement in browser to call page Method ?

also In IE method is calling sucessfully, but why alert message does not come ?

function SendMessage() {
      var user = document.getElementById('<%=User.ClientID %>');
      var val = user.value;
      var random = 2345;
      var nonRandom =12345;
        var toAddress = val;
        PageMethods.SendResetMailMessage(toAddress, random, nonRandom, CloseWindow, OnFailed);

    function CloseWindow(ret) {
      // Below code is usedOnClick="OnForgotPassword_Click" to close the window, if mail has been sent to the user sucessfully.
      if (ret == "1") {
        var windowObj = window.self;
        windowObj.opener = window.self;

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:

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.

This sharpoint 2010 problem solving threads

Hi friend,

you can use this thread to solving problem and solutions.

Virtual Path Problem


 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-


Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"

        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Strange Photo upload problem


I'm working project it's live on shared hosting

we'er uploading photos to a file on the server everything works fine the photo is resized renamed and sent to the folder

the upload page returns the thumbnail and the full size photo it's there all the photos have to be approved by an admin

twice now after they have been approved they disapear I checked the folder they are not there could there be anywhere

on the server they could get hung up before they go into the folder I have it setup so when you delete the data base entry it deletes the photo from the folder othe than that you need to open the folder and delete the photo this has hapened twice now I tried to recreate it with no luck

thaks for your help in advance

ASP.Net Caching problem ??


I'm having a problem with an asp.net 3.0 application using a gridview to display data.  The problem seems to be that despite a brand new .selectCommand being sent to the sqlDataSource, the gridview starts displaying data from *someone else's* query.  For example, user A is logged in and will be working fine until a few page submissions later when the gridview data starts suddenly showing information that belongs to another user. 

This is my first asp.net application, though I've been working with classic asp and ADO for years so I'm used to sending a SQL string and getting back the results from that string.  Apparently there is a complex caching system which is interferring which I do not at all understand so at this point I just want to stop the server from caching any data whatsoever.  Is this possible?

Any and all help will be much appreciated!!

Post New Web Links

collapsiblepanelextender problem with firefox

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :ASP.Net
Hiiii Coders, I m trying to expand all the collpsible panels at the same time by clicking on expandall linkbutton and similarly i am trying to collapse all  collapsible panels by clicking on collapse all linkbutton. i have 4 collapsible panels. i have been using javascript code for that provided by sansan. It is working very much fine in Internet Explorer. But it does not work in Firefox. Here is my javascript code-<script type="text/javascript"> function TogglePanels(flag) { var panels = ["cpe1", "cpe2", "cpe3", "cpe4"]; for (var i = 0; i < panels.length; i++) if (flag) $find(panels[i])._doOpen(); else $find(panels[i])._doClose(); } </script> Here is my code for expandll and collapseall linkbuttons-<asp:LinkButton ID="L1" runat="server" Text="expand all" OnClientClick="TogglePanels(true);return false;"> </asp:LinkButton> <asp:LinkButton ID="L2" runat="server" Text="collapse all" OnClientClick="TogglePanels(false);return false;"> </asp:LinkButton> I don' know what is the problem plz provide code snippets as soon as poss as i m new to javascript. thanx and

View Complete Post

More Related Resource Links

Firefox 3 problem with Sys.Application.add_load

In the following aspx page, although the ffalert is always displayed, the ff1 alert is only displayed intermitently on a page refresh (about 7 out of 10 times). This works fine with FF2 and IE. FF3.aspx:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="hd" runat="server"> <title>FF3 Test</title> </head> <body> <form id="frm" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> FF3 Test <script type="text/javascript"> function page_load() { alert("ff31"); } window.onload = function () {Sys.Application.add_load(page_load); alert("ff30");} </script> </form> </body> </html>  

Printing Problem :- Style.Overflow property in Firefox


Hi All,

I have a web application which has two DIV, one is main and one is child. I am having  problem in printing multiple pages. There is a lot of data in the child DIV and i am using JavaScript functions to control the print functionality. When i print using window.print(), only the data on the main page currently being showed is printed. I further researched and checked out the Style.Overflow property.

Now i am using divMain.style.overflow = "visible"

After this the complete print comes. But in Firefox, the scroll bar disappears and only single page is left with no scroll bar

Now if after print i give divMain.style.overflow = "Auto" OR divMain.style.overflow = "Scroll", still the scroll bar doesn't come and if it comes then its inactive. I am unable to see the complete data on the page after the print is taken.

The problem is not coming in I.E and the full data with scroll bar is recovered in I.E.

Please help me how to get the normal page with full data and scroll bar after printing in Firefox. 




Printing Problem :- Style.Overflow property in Firefox


Hi All,

I have a web application which has two DIV, one is main and one is child. I am having  problem in printing multiple pages. There is a lot of data in the child DIV and i am using JavaScript functions to control the print functionality. When i print using window.print(), only the data on the main page currently being showed is printed. I further researched and checked out the Style.Overflow property.

Now i am using divMain.style.overflow = "visible"

After this the complete print comes. But in Firefox, the scroll bar disappears and only single page is left with no scroll

Textbox WebControl Enabled/Disabled problem: Disabled controls looks great in Firefox but in IE they


Hi everyone,

I don't know if you face the same problem when your page logic has to set the enabled textbox's property to FALSE.  If i use FireFox to browse the page, my disbled controls are show with a dark-silver background color (perfect for me), but when i browse with IE, disabled or enabled textboxes are show the same way (no color differences).

Is there a way to manage controls appearance depending on the Enabled property?

I appreciate your support.


css div problem on firefox


hi! i make a category part on the left sside of page.there are category names. when if mouseover on category name, a div will open and show subcategories.(i take subcategories and categories on DB). It works on Ie, but it has problems on FF. problem is that:

#leftbar div contains my left side page. its width:200px. category div is div that i show categories on it. its width:170px; when i mouseover on a category a div opens to the right. it show subcategories with their pictures. i show categories in repater and subcategories in a datalist. ie shows this properly. the picture below is in ie. it works proper.the red line on the right is border of leftbar div.

this picture is taken in FF . div that show the subcategories isn't shown properly.what does the problem  concerner about?Thanks

CollapsiblePanelExtender Extending problem


I use two different collapsiblepanelExtenders with similar colapsedControlID which is not a matter here. Since both of them working but with some misbehaviour, for example if the first one is open and I click wherever on it , the second one extends. also by clicking on the second one it collapses.

That means that some how an event triggers and makes them collapse or extend.

I have a kind of editing panel inside each extandedPanel which are used to update something on the page. the problem is that by clicking on each textbox or fileupload, the second panel collapses again. before any other action. So that I can not enter the textboxes. I can do that if I use tab button on keyboard. but that sucks really.

<asp:Panel ID="OIOuterPanel" runat="server">

<asp:panel id="ExtPnl_orgInfo" runat="server" >


<asp:Panel id="ColPnl_orgInfo"  runat="server" >

<asp:panel id="OIOuterPanelExt" runat="server" >



                         <asp:CollapsiblePanelExtender ID="OICPEOuer" runat="server" TargetControlID="OIOuterPanelExt"

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