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

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

Function not working in IE but work in all other browsers

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


I tested a JQuery function to create a Facebook like progress image. It works like a charm in all browsers (Chrome, Safari, Firefox, Opera) except IE8.

Any idea why?


    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('a').click(function (e) {
                var el = '';
                switch (e.target.text) {
                    case "Box 1":
                        el = '#box1';

View Complete Post

More Related Resource Links

javascript function not working with datalist


I have a datalist and there is a check box within this datalist in a .ascx page.  But I have to have an image out side the datalist.  So here is the code and its not owrking.  When I click on the image, I dont see any alert box. 


<script Language="JavaScript" type="text/javascript">


function validate_checkbox()



// set var checkboxSelect to zero

var checkboxSelect = 0;

var sProducts = "";


var multiCheck = window.document.forms["frmCompare"].CompareCheck.length;


if (multiCheck != null)


    // Loop from zero to the one minus the number of checkbox button selections

    for (counter = 0; counter < window.document.forms["frmCompare"].CompareCheck.length; counter++)


        if (window.document.forms["frmCompare"].CompareCheck[counter].checked)


            var seperator = (checkboxSelect > 0)?",":"";

            sProducts += sep

Why sum function work fine in infopath and not in web browser

Hi,   I used the sum function in infopath, it work fine in infopath client, but the same open in web browser it not working correctly, it show the double the value. why it happen?

WCF function call in page load not working asynchronously

Hi all, I am trying to implement the WCF async function call in my page load event but, it not working asynchronously. Which means page content is displayed only after the asynchronous event is completed. This is my code         protected void Page_Load(object sender, EventArgs e)         {             if (!IsPostBack)             {                 ServiceReference1.Service1Client srv = new WebApplication1.ServiceReference1.Service1Client();                 srv.GetListCompleted += new EventHandler<WebApplication1.ServiceReference1.GetListCompletedEventArgs>(srv_GetListCompleted);                 srv.GetListAsync();             }         }           void srv_GetListCompleted(object sender, WebApplication1.ServiceReference1.GetListCompletedEventArgs e)         {         

i have tested the same coding with dropDownlist but its working fine..I don't know why its not work

Dear Members,              I have used the following to bind the data from database into Ajax comboBox...but it's not working...             Actually i have tested the same coding with dropDownlist but its working fine..I don't know why its not working with Ajax ComboBox..          DropDownList Coding  private void LoadDropDownCatetory() { string connectionString = ConfigurationManager.AppSettings.Get("mcrmdb"); dropDownListTest.DataSource = ProductDataAccess.FillProductCategory(connectionString); dropDownListTest.DataTextField = "CATEGORY"; dropDownListTest.DataValueField = "CATEGORY"; dropDownListTest.DataBind(); } AjaxComboBox Codingprivate void LoadProdutCategory() { string connectionString = ConfigurationManager.AppSettings.Get("mcrmdb"); comboBoxProductCategory.DataSource = ProductDataAccess.FillProductCategory(connectionString); comboBoxProductCategory.DataTextField = "CATEGORY"; comboBoxProductCategory.DataValueField = "CATEGORY"; comboBoxProductCategory.DataBind(); } Design

Possible bug: Calendar views browse month function not working when list is inserted as webpart.


Inserted a custom list with a calendar view on a page as webpart. Browse month function does not work, there is a postback but month is still the current month instead of the next or previous.

Is this a know issue/bug?

How can I adapt the Javascript function below to work with my TextBoxes?


Hi all,

How can I adapt the Javascript function below to work with my TextBoxes?

<head id="Head1" runat="server">   
    <title>Untitled Page</title>   
    <script type="text/javascript">   
        function f(ta_id)   
            var d=document, ta, rng;   
                if(ta && ta.createTextRange)   
                 <asp:TemplateField HeaderText="Comments" SortExpression="Comments">
                      <asp:TextBox ID="txtBoxComments" runat="server" Width="800px" MaxLength="1000" ReadOnly="true" Rows="1" Text='<%# Eval("Comments") %>'
                       TextMode="MultiLine" Wrap="true" onscroll="f('txtBoxComments')" />

When I look at the "View Source" I

iframe function working in firefox but not working in internet explorer


I have a page where it will store temporary data in gridview,before we send the values to database.The values in temporary table gridview will give a link to google,where it will search the word and display results in iframe.
This works fine in firefox,but not working in internet explorer.
Is there any ways to overcome this guys?

Here's my aspx code :


    <td class="style1">
    <asp:Label ID="Label1" runat="server" Text="Caller Info :"></asp:Label>
    <td style="width: 100px">
    <asp:TextBox ID="TxtName" runat="server" class="cls" onekeypress=""  autocomplete="off" ToolTip="Press Enter key for new input"></asp:TextBox>
  <td class="style1">
      <asp:Label ID="Label2" runat="server" Text="Date :" Visible="False"></asp:Label>
  <td style="width: 100px">
  <asp:TextBox ID="TextBox3" runat="server" ReadOnly="True" Visible="False"></asp:TextBox>


Sorting function does not work fine -- Please help



          We have few SSRS 2008 reports.Some of the reports are plain simple table reports and few reports are grouped reports ( table reports). The issue is, sorting function works fine in simple reports whereas its not working good in the reports where grouping is involved. Could you please help me to resolve it?

max() agreate function and having clause not working as expected


I wil try to describe below my issue, starting with the query i use.

SELECT     b.[id_training_MD],
FROM [training_MasterData] as a
inner join [training_Log] as b
    on a.id_training_MD = b.id_training_MD
inner join [training_Q_Log] as c
    on b.id_training_Q_Log = c.id_training_Q_Log
WHERE (a.[Category] = 'Networking')  and  (c.[employeeID] = '123')

group by b.[id_training_Q_Log],b.[id_training_MD],b.[trainingScore]   
having b.[id_training_Q_Log] = (select distinct max(b.[id_training_Q_Log]) FROM [training_Log])

My tables are:

CREATE TABLE [dbo].[Training_MasterData](
    [id_Training_MD] [int] IDENTITY(1,1) NOT NULL,
    [Category] [varchar](50) NOT NULL,
    [TrainingName] [varchar](100) NOT NULL

Example of data from table:
[id_Training_MD]    [Category]         [TrainingName]

Making a link work in a JS function



I'm new to jQuery, but learning fast, and loving the new functionality!
I'm using a Flash upload component that all works fine, and once it's complete (file uploaded) it calls the following function:
function EAFlashUpload_onResizedImagesUploadEnd() {

How to jquery get function work in different folder page i mean.....


this is work

$.get("QC_GridView.aspx",{ QcSearch: "" + "All" + "" },
                        function(data) {

but this is not work   how to run below code

$.get("UserControl/QC_GridView.aspx",{ QcSearch: "" + "All" + "" },
                        function(data) {

Search Function Stopped Working

Sharepoint search function suddenly stopped working.  When I first created my site, I was able to use the search function without any issues.  Suddenly, the search function no longer works on my site.  Every time I search for something (no matter what it is), I get a screen saying no results found.  I have access to several other sharepoint sites on the same server and the search function works fine for all of them - it is only my site that no longer works.  I have had some people in the site (using sharepoint designer) adding workflows, could they have changed a setting or disabled something to cause this?  Anyone have any ideas on how to resolve this?

VBScript IsNull() function not working as I expect



I've written some VBScript code that takes an incoming integer that represents NumberOfSeconds and converts it to a time in words (e.g. "1d 3 h 34m 6s"). The code is below, unfortunately its failing with an error:

 "There is an error on line 2 of custom code : [BC30451] Name 'IsNull' is not declared."

Any ideas?

Thanks in advance

Function TimeInWords (RemainderTimeInSeconds as Integer) AS String
	Dim ReturnValue As String
	IF (IsNull(RemainderTimeInSeconds) = True)
		RemainderTimeInSeconds = 0
	IF (RemainderTimeInSeconds > 86400)
		ReturnValue = TimeInDays(RemainderTimeInSeconds )
	ELSE IF (RemainderTimeInSeconds > 3600)
		ReturnValue = TimeInHours(RemainderTimeInSeconds )
	ELSE IF (RemainderTimeInSeconds > 60)
		ReturnValue = TimeInMinutes(RemainderTimeInSeconds )
		ReturnValue = TimeInSeconds(RemainderTimeInSeconds )
	End If
	Return ReturnValue
End Function

Function TimeInDays (RemainderTimeInSeconds AS Integer) AS String
	Return CStr(Round(RemainderTimeInSeconds / 86400)) + "d " + TimeInMinutes(RemainderTimeInSeconds Mod 86400)
End Function
Function TimeInHours (RemainderTimeInSeconds AS Integer) AS String
	Return CStr(Round(RemainderTimeInSeconds / 3600)) + 

Cannot make filter function work the way I want it to on a drop down box

Building a template based on a database in order to submit data to the database. Key components are a separate Materials database qry providing material name and type and then the process data that will feed into the main connection the "process database".  On the Process form, I'm trying to understand how to set up a filter that when the material name is selected from the drop down box that pulls from the materials qry, then the material type automatically populates in a separate ???? type box??  I need the Material type to match the material name (one to one).  I'm just not too sure about filters???

javascript function is not working with Firefox



    Javascript function is not working with Firefox. Its working fine with Chrome + IE.


function rdblstSec5SystemOnly_SelectedIndexChanged()
    var rdblstSec5SystemOnly = document.getElementsByName('<%= rdblstSec5SystemOnly.ClientID %>');
    var SelValue;
    //loop through the items in radiobuttonlist
        for (var j = 0; j < rdblstSec5SystemOnly.length; j++)
            if (rdblstSec5SystemOnly[j].checked) 
                SelValue = rdblstSec5SystemOnly[j].value.toLowerCase();
                if(SelValue == "yes")
                     trSec5ProductOrderForm.style.visibility = "hidden";
                else if(SelValue == "no")
                     trSec5ProductOrderForm.style.visibility = "visible";

<asp:RadioButtonList ID="rdblstSec5SystemOnly" runat="server" RepeatDirection="Horizontal"
                                                            <asp:ListItem Text="Yes" Value="Yes" />

RE: Website not working on Firefox 4. Works on all other browsers

<p>I got following error when I open my site on Firefox 4: Please suggest what is causing this problem in Firefox 4.</p> <p>&nbsp;</p> <p><span>&nbsp;</span></p> <p>Object reference not set to an instance of an object.</p> <p>[NullReferenceException: Object reference not set to an instance of an object.]</p> <pre> Mobile.Devices.MobileDevices.GetDeviceInfo(HttpRequest request, Handler[] handlers) +109 Mobile.Devices.MobileDevices.GetDeviceInfo(HttpRequest request) +220 Mobile.Browser.Detector.get_IsMobileDevice() +47 Mobile.Browser.Detector.BeginRequest(Object sender, EventArgs e) +13 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +75</pre> <p>&nbsp;</p>
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