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


Top 5 Contributors of the Month
Imran Ghani
   

 


panel problem with opera,safari and chrome

  

Hi,

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


Rich Text Editor in Google Chrome

  

 I'm tring to put up a AjaxControlToolkit.HTMLEditor it works in all the browsers except Chrome has any one had this problem


problem in search (suggestion box like google) while using '

  

HI THERE ,

                 i m using javascript n ajax for suggestion in search textbox , it works fine if i m not using ' , it throws error , so i replace it with ", but still problem occurs when name like " alex's shope " because i m passing value in keyup event, so when it reach to ' it throw error


AutoCompleteExtender + backspace problem in IE8

  

Hi guys!

I've got an AutoCompleteExtender on one of my pages, it seems to be working fine aside from this strange behaviour:

Let's say I key in 2 characters, the suggestion list would display. When I press on backspace to delete those 2 characters, wait until the suggestion list to disappear, and re-enter those 2 characters, the suggestion list would no longer display (or sometimes would flicker for about a second after losing focus from the textbox) and I'll need to refresh the page just to get it working again.

However, if I do press backspace and delete those 2 characters but not let the suggestion list to disappear and re-enter new characters, it would continue displaying with correct suggestions. This behaviour seems to happen only in IE8, (although it works with IE8 using Compatibility View and Firefox)...

My code is almost the same as the sample on this site except for the animations, and the service looks up in a database table.

<asp:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="searchTextBox"
                        ServicePath="~/common/AutoComplete.asmx" ServiceMethod="GetJobNumberList" MinimumPrefixLength="2"
                        CompletionInterval="1000" EnableCaching="true"

Awesome HTML minifying function but causes problem at Google Adsense ads - Very Important !

  

function works perfectly. everything works without any problem and source code becomes single line. but problem is about adsense ads. it is getting messed at screen.

 

ads are displayed but their locations are not correct. can anybody help me i appricate that alot

 

thank you

 

    protected override void Render(HtmlTextWriter writer)
    {
        if (this.Request.Headers["X-MicrosoftAjax"] != "Delta=true")
        {
            System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex(@"<script[^>]*>[\w|\t|\r|\W]*?</script>");
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            System.IO.StringWriter sw = new System.IO.StringWriter(sb);
            HtmlTextWriter hw = new HtmlTextWriter(sw);
            base.Render(hw);
            string html = sb.ToString();
            System.Text.RegularExpressions.MatchCollection mymatch = reg.Matches(html);
            html = reg.Replace(html, string.Empty);
            reg = new System.Text.RegularExpressions.Regex(@"(?<=[^])\t{2,}|(?<=[>])\s{2,}(?=[<])|(?<=[>])\s{2,11}(?=[<])|(?=[\n])\s{2,}|(?=[\r])\s{2,}");
            html = reg.Replace(html, string.Empty);
            reg = new System.Text.RegularExpressions

Awesome HTML minifying function but causes problem at Google Adsense ads - Very Important !

  

function works perfectly. it makes source code single line. but problem is about Google Adsense ads. their locations get messed up. what might be the reason ?

programming language is c# asp.net 4.0

here the function

 

 

  protected override void Render(HtmlTextWriter writer)
  {
    if (this.Request.Headers["X-MicrosoftAjax"] != "Delta=true")
    {
      System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex(@"<script[^>]*>[\w|\t|\r|\W]*?</script>");
      System.Text.StringBuilder sb = new System.Text.StringBuilder();
      System.IO.StringWriter sw = new System.IO.StringWriter(sb);
      HtmlTextWriter hw = new HtmlTextWriter(sw);
      base.Render(hw);
      string html = sb.ToString();
      System.Text.RegularExpressions.MatchCollection mym

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"

.NET Framework and Google Chrome

  

Earlier today I was attempting to install a piece of software and it told me that I needed .NET Framework 1.1.432 for it to work. Not knowing very much about what .NET is, I went in search of what to do. I believe I installed .NET Framework 1.1.432 because the program I was originally working on started working. Well, after this happened, my Google Chrome completely stopped working. No matter what page or site I go to, I get the blue screen that says "Aw, Snap! Something went wrong..." and blah blah blah. This was the ONLY program effected. I'm on Firefox right and it's fine. Anyways, I really like using Chrome so I'm hoping someone can work with me to resolve this. There may not be a lot of information in this question but if someone is to help me, I'll explain it in more detail.

 

Thanks in advance!


Post New Web Links

Autocompleteextender problem in google chrome

Posted By:      Posted Date: August 30, 2010    Points: 0   Category :ASP.Net
 
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.  


View Complete Post


More Related Resource Links

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

Adjacent combo boxes take space according to their data on google chrome

  
I have a page where I want to keep several combo boxes adjacent to each other. I have put them in divs that are floated left.This works fine in IE, Firefox. But when I render the same page on Chrome I observe the uneven gap between combo boxes. Upon analysis I found out that each combo box is occupying space based on the data inside it.This happens because on Safari and Chrome, the option list control is placed differently as compared to that on IE and Firefox.Please see the following code from ComboBox.pre.js (in AjaxControlToolkit source/Server/) // force inline display on Safari by moving the list to the bottom of the form. if (Sys.Browser.agent === Sys.Browser.Safari || Sys.Browser.agent === Sys.Browser.WebKit) { this.get_element().removeChild(optionListControl); var parent = this.get_element().parentNode; while (typeof (parent) != typeof (document.forms[0])) { parent = parent.parentNode } var safariListContainer = document.createElement('div'); safariListContainer.className = this.get_element().className; safariListContainer.appendChild(optionListControl); parent.appendChild(safariListContainer); } This is how it looks:I have tried doing the following but none of them helped:Changed the RenderMode of combo box to 'block' fro

maintainscrollpositiononpostback is not working in Google Chrome 5.0.353.70 beta

  
All --I think that sometimes maintainscrollpositiononpostback is not working in Google Chrome 5.0.353.70 beta.Has anyone else experienced this?Does anyone have a fix for this?Does anyone have an alternative for this?Please advise.Thank you.-- Mark Kamoski

TempData Bug in Google Chrome

  
So TempData works on my local machine in chrome, but not out on the server. It works fine in IE and firefox. I'm using the default Session State as InProc. I can see the cookie in chrome by looking at the developer tools.

AutoCompleteExtender ContextKey with Session Problem

  
I have a aspx page with an AutoCompleteExtender and I retrieve users from database.While user log in, I get user's id from database and set to Session["iduser"]. I want to use Session["iduser"] as a contextkey in AutoCompleteExtender. I tried different ways for this but it didn't work...Also I am using a updatepanel.<asp:ScriptManager ID="ScriptManager1" runat="server">    <Services>     <asp:ServiceReference Path="WebService.asmx" />    </Services>    </asp:ScriptManager>my source code:<asp:TextBox ID="txtPost" runat="server"  CssClass="form_text_ozellik"         BackColor="Transparent" BorderStyle="None"></asp:TextBox>     <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" TargetControlID="txtPost" ServicePath="WebService.asmx" ServiceMethod="GetUsers"   MinimumPrefixLength="1" CompletionSetCount="12"  DelimiterCharacters="," UseContextKey="true" CompletionInterval="200" EnableCaching="true">    </cc1:AutoCompleteExtender>my web service code:[We

google map custom field type Rendering problem

  

Hi all,

I have rebuild the codeplex project of googlemapfield in visual studeio 2010 for sharepoint foundation 2010.It is able to show custom field when adding new column. I am unalbe to get  google map in display form.. I don't know where it went wrong. I am able to load a text pargaraph from control template file which is delcared in <div> as <p><cite>The Complete Manual of Typography</cite>, James Felici</p>. But not google map.

I have added safe control in web.config file and also enabled activex control scriptings in IE.

Here is my .ascx file code

<%@ Assembly Name="GoogleMapField64,Version=1.0.0.0, Culture=neutral, PublicKeyToken=268a24657b14d504" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" 

dropdownlist - css - problem chrome

  

<div>
      <span>
          <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>Visa</asp:ListItem>
              <asp:ListItem>MasterCard</asp:ListItem>
              <asp:ListItem>Diners Club Card</asp:ListItem>
              </asp:DropDownList>
          </span>
    </div>


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

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

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

  } 

I have a

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}; "); 

Categories: 
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