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

Top 5 Contributors of the Month
david stephan
Gaurav Pal


javascript not supporting chrome,opera,IE8

<asp:DropDownList ID="ddlEmpId" runat="server" Width="125px" CssClass="txtReport" onChange="ddlEmployeeId();return false;">

Im using the following function to get selected value of dropdown through javascript.
Script works fine in IE6.
But it is not supporting IE8,opera,chrome??????

 <script type="text/javascript">
   function ddlEmployeeId()
        var ddlReport = document.getElementById('ddlEmpID'); 
        //var Text = ddlReport.options[ddlReport.selectedIndex].text; 
        var Value = ddlReport.options[d

problem with user control+update panel+javascript


hai all,


Im having a aspx page which has 5 tabs inside a update panel..also I have a user control

Wen I click each tab im dynamically loading dat user control .

The problem is im using javascript in dat user control..

the user control has a button which displays a panel containing three grid views  n s activated by a java script as given below..

function Elig()



'<%=btnLegend.ClientID %>')).click(function(){


('<%=pBody.ClientID %>')).slideToggle('slow');




Wen i run the aspx page the first tab  successfully loaded with dat user control n a

Small problem with displaying custom calendar cell text from db in Safari


using VS2010

I'm using the calendar control to create a simple event calendar. I want to add a small bit of custom text just below the date of any cell that contains an event on that date.

The code:

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
      string connString = ConfigurationManager.ConnectionStrings["CalendarConnectionString1"].ToString();
      SqlConnection myConnection = new SqlConnection(connString);
      SqlDataAdapter myAdapter = new SqlDataAdapter("GetEvents", myConnection);
      DataSet myDataSet = new DataSet();
      myAdapter.Fill(myDataSet, "Table");
      //If the month is CurrentMonth
      if (!e.Day.IsOtherMonth)
        foreach (DataRow dr in myDataSet.Tables[0].Rows)
          if ((dr["Date"].ToString() != DBNull.Value.ToString()))
            DateTime dtEvent = (DateTime)dr["Date"];
            if (dtEvent.Equals(e.Day.Date))
              e.Cell.BackColor = Color.MediumAquamarine;
              Label label = new Label();
              label.Text = "</br>";
              label.Text += dr["Title"].ToString();              

Back button and update panel problem



I have a search page that uses an AJAX update panel to deliver results to the user. They can then navigate to a product page for more info. So far so good...

My problem occurs when they are on a product page and use the back button. They are redirected to the search page, but its a blank search page and not the one they left when they clicked for product details. I realise this is because the browser only made a history 'marker' (I dont know the technical term) when they first came to the search page, so this is what it returns them to.

Does anyone know how I can make the back button redirect the user to the search page as it was when they left it? I have tried making the page expire immediately and storing the search terms in session state so I can rebuild the page when they click 'back'. This works in IE, but not in Firefox as it seems to just load out the old page from the cache regardless of the expiration policy I set. As if that werent bad enough, this also causes 'corrupted state information' error when they try to search again.

Any suggestions? Any help would be very much appreciated.

Thank you

(PS -  I have seen various solutions to the back button/ajax problem, but none of them seem to address my problem. Or have I missed something?)


Post New Web Links

panel problem with opera,safari and chrome

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


I have an update panel on a form with two panels inside,one of them is hidden on pageload,there are divs inside panels and inside the hidden div there's an iframe. By clicking linkbutton the visible div become hidden and hidden become visible.At Internet Explorer and Firefox,there's no problem but at Chrome,Safari and Opera the second div that become visible by clicking linkbutton is not shown properly,it's sliding to right. I tried all possibilities about positioning at css for second div.Absolute,relative,fixed but none of them worked,i also tried without positioning but nothing changed. Is there any idea ? Thank you

View Complete Post

More Related Resource Links

Page not rendering correctly in IE or Opera but works as expected in FF, Safari, Chrome


I have a page that implements a 3rd party's calendar coded in asp script.  The pages are designed to be centered in the browser window, however, the page that implements the calendar application is aligned left and it appears to ignore the div that contains my footer. This phenomenon happens only in IE. Opera, FF, Safari and Chrome render the content in the middle of the browser window.

In Opera, all of the pages are rendered centered, however, a space is appearing between the footer and content divs. Moreover, the page that renders the calendar seems to ignore the footer div like IE does.

The way the calendar is rendered is via the %%CONTENT%% token in the table that exists in the "textContent" div.

To see the issue live: http://www.batiksgalore.com/calendar.asp

The code for the calendar page is below:

<!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">
  <meta http-equiv="Content-Language" content="en-us" />
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
  <title>Batiks Galore Eve

Problem with master page and update panel (I think)



the app I am working with is made up of three nested master pages that have the following design:

The first master page ha only realize the HEADER, BODY and FOOTER divs.

The second one specialize the Body content placeholder and divide it in three more layers: NAVIGATOR, PAGE TITLE, BODY CONTENT.

The final layer specialize the BODY CONTENT in PAGE CONTENT and ACTIONS.

In one of my content pages I have (inside the PAGE CONTENT area) 

  • 1 Update Panel that contains a gridview object
  • 1 Update Panel that contains some HTML code to show in a PopupModalExtender

The PopupModalExtender can be either triggered from inside the gridView and also from a series of LinkButtons that are in the ACTIONS area.

The problem is that when the PopupModalExtender shows the FOOTER and the ACTIONS areas are not dimmed from the style I apply as background to the modal popup. An example of what I am trying to explain can be viewed in the following screenshot.

Why this is going to happen? Has anybody any suggestion on how to solve this problem?

Thanks a lot

Document Information Panel problem with Infopath

Hi, I have created a custom document content type that uses a specified word template deployed by a feature for a sharepoint site collection. The Content Type is defined in site collection level i have add a column also defined as a site column called "Abstract", and I added this column to my content type. Now I want to create a custom DIP using Infopath, when infopath is launched it maps all column from this content type. The problem that the "Abstract" column wich is defined as rich text and optional column is not mapped correctly Infopath show that field as a required field and can not be blank. When i added this content type to a document library and try to create a new document i have an error "Document Information Panel cannot create.. problem on the schema with Abstract field". When i try to modify the xsn file at the document library level and republish the form it works but when i do it in the site collection level it's impossible to map the field properly. Any suggestions about what might be causing this problem or how to fix it would be greatly appreciated. ABT

Autocompleteextender problem in google chrome

Hi, I've used autocompleteextender inside a repeater control. On OnClientItemSelected event of autocompleteextender i am setting some hidden field value to use it on server. The code is working fine in all browsers except google chrome. Actually when i traced the code, event is occuring and hidden field is getting value set but the hidden field value is not appearing on the server. On the server i got empty hidden field.  

problem with update panel height

I am using ajax update panel to show a tree without postback there is a label that is at the top of the panel I am hiding the label while showing the tree. document.getElementById('ctl00_phldDialogBody_lbltext').style.display = "none"; in the javascript but even after hiding the space of the label is still left blank causing the tree to be moved down pls help to fix it i want the tree to be at the same position

Response.Redirect problem in Google Chrome

I'm building an ASP.NET 3.5 webapplication using VB.NET, and I'm having problems redirecting to another URL when using Google Chrome. Other browsers like IE and Firefox are fine.My data entry forms all have an OK and an Cancel button, which are both handled server-side. The Cancel button just redirects back to the originating page, while the OK button will add or update a database record and then redirect to the originating page.The redirect to the originating page is done by calling the following shared sub on a general utilities class in my appication: Shared Sub Redirect(ByVal p_sURL As String) Dim l_sURL As String = p_sURL.ToLower If Left(l_sURL, 1) = "~" Then Dim l_oControl As New System.Web.UI.Control l_sURL = l_oControl.ResolveUrl(l_sURL) End If If Left(l_sURL, 1) <> "/" Then If Left(l_sURL, 7) <> "http://" AndAlso Left(l_sURL, 8) <> "https://" Then l_sURL = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) & wsUtils.SiteRoot & l_sURL End If End If HttpContext.Current.Response.Redirect(l_sURL) 'HttpContext.Current.Response.Redirect(l_sURL, False) End Sub As you can see, I've tried using the extra argument in the Response.Redirect call, but that

chrome and safari problems with log ins and sign ups in update panels

Hi,This is probably a common problem.I have log in and sign up controls in update panels. They are being focussed on when the user clicks the appropirate button. Once done, hitting the sign-up or the log-in button, the browser (FF, IE) updates the update panels and all looks nice.In chrome and safari however, this does not work quite as nice. Login and sign up still happen. But focussing the controls does not, neither does the update panel update. The user has to reload the page to see that he is actually logged in or has signed up.This is really not nice and I found a very strange error, given that update panels work fine under other circumstances.Whats the problem here and how can this be solved?Thank you very much.Regards,D

update panel and jquery problem

I m working on JQuery, I have one UserControl in that I have taken one button(it is present inside an updatePanel).  when i m clicking on button on that time i want to show alert from server side for that i have written-  ScriptManager sm = ScriptManager.GetCurrent(Page); string strScript = "alert('hi')"; ScriptManager.RegisterStartupScript(this, typeof(UserControl_FrmUConFriendList), "AlertKey", strScript , true); But it is not working, if i m removing updatePanel then it is working. So plz help me. Thank's in advance.    

dropdownlist - css - problem chrome


          <asp:Label ID="Label18" runat="server" Text="Vrsta kreditne kartice"></asp:Label></span><span
class="formw"><asp:DropDownList ID="DropDownList2" Selected="True" width="200px" runat="server">
              <asp:ListItem>Diners Club Card</asp:ListItem>

div.row {
  clear: both;
  padding-top: 5px;

div.row span.label {
  float: left;
  width: 175px;
  text-align: left;

div.row span.formw {
  float: left;
  width: 500px;
  text-align: left;
/*  margin:0 0 0 10px;*/


I have a

Upload panel problem



   I have used update panel in one my application page,but it takes too long to load when any event is fired on that page.If I remove update panel then that page works fine with post back and taking normal time to load.But when I add update panel it takes too long almost 1 minute to load.Can any body help to resolve this problem?


Thanks & Regards,


Problem with User Control, Update panel and flicker


I have  block of code that consists of a textbox a button and a dropdown. The text entered in the text box filters the dropdownlist when the user clicks the button. The Ajax works great when it is in a simple page but if I put the same code in a User control I get flicker. Can anyone assist with this issue?

report not visible in chrome/safari if row group is used


I am just getting started with SSRS (using 2008R2), and find that my reports, after deployment, show up empty (blank) when viewed in chrome or safari (windows). IE(8), FF and Opera work fine.

A simple table report (no grouping, etc) displays fine in all browsers, but if I add a row group, the data disppears from Chrome and Safari. The report page navigation is still present and has the right number of pages, but all display blank. Saving the report as PDF or Word file still works, so this appears to be an HTML or Javascript problem.

Is this a known problem and if so, is there a work around?



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