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

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

strange Cache and GridView bug after googlebot crawls a page

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :ASP.Net

I have a strange ui bug in GridView !

GridView adds <font color="#000FFF"> after a page is accessed by a Google crawler and then when the page is views from the cache created by the bot  !!!

It is happening in the HeaderText "th" and TemplateField's and HyperLinkField's

I never set the color to <font color="#000FFF"> and i have CSS class's and ForeColor with all different colors

When a user enters a page it doesn't happens and no font tag is added !!!

please help...

View Complete Post

More Related Resource Links

update parentpage gridview with the values from child page?


hi   i am having a gridview on each row i am having a update and add button.

on click of either of the button i am opening a popup where the end user will enter data and on clck of ok button in the child page

based on the click ie

if i clicked update i need to update that particular row with the values from child page.

if i clicked on add i need to add a row below the row where i clicked add button .

can anyone help me with this?

Gridview extends past edge of div and page when editing users


I have a gridview pulling all data from one user. This gridview has an edit button and when that is clicked the gridview becomes too wide for the div/screen and I get a scroll bar. Since this gridview can only have one user in it anyway is it possible to display each field on seperate lines instead?

Gridview Sorting and Page Orientation


Hi there,

I have looked at several posts on Gridview sorting but can't seem to get it to work in my code. I am using Subsonic objects as the DataSource. Every time I click on a page or sorting link it does a postback but the page orientation is left at the top, not where the gridview is on the page. Is there a way around this?

This is the code I have written for it:

        protected void PublicNoticeGridview_Sorting(Object sender, GridViewSortEventArgs e)
            MidvaleSiteDBDB db = new MidvaleSiteDBDB();
            SqlQuery pubNoticeQuery = db.Select.From<publicnotice>();

Master-Detail GridView in Single Page example with paging throws error

___http://www.java2s.com/Code/ASP/Data-Binding/MasterDetailGridViewinSinglePage.htmI followed example at the link above.When I enablind paging=true (by pagesize=3).and clicking to pages 2|3|4 etc and so;error occuringIndex was out of range. Must be non-negative and less than the size of the collection.at cs line :sourceProducts.SelectParameters[0].DefaultValue = gridMaster.DataKeys[e.Row.DataItemIndex].Value.ToString();got any idea?what should I make to fix this ? is this error  fixable ?thanks much.

How to return back to a specific page in a gridview list?

Hello,  I have a gridview with paging. So for instance, I'm on say the page number 10, and I open the form details on a specific record_id (link). After I update/submit the form, it returns to page number 10. But, if I go to another page, for instance page 5, and submit the form, it returns to page 10. I've tried some things, for instance history.back(), but it returns to the first page I went to, in this case page number 10 (or whatever the first page I go to). Hopefully this code helps to understand what I'm asking: <asp:GridView DataKeyNames="Referral ID" ID="gvList" runat="server" CellPadding="4"     ForeColor="#333333" GridLines="None" OnRowCommand="gvList_RowCommand"     OnRowDataBound="gvList_RowDataBound" OnRowDeleted="gvList_RowDeleted"     OnRowDeleting="gvList_RowDeleting" AllowPaging="True" PageSize="20"     AutoGenerateColumns="False" OnPageIndexChanging="gvList_PageIndexChanging"    OnRowCreated="OnRowCreated" AllowSorting="True" OnSorting="OnSort"> protected void gvList_PageIndexChanging(object sender, GridViewPageEventArgs e)        {   &nb

jpg files will not display in gridview on aspx page

I have an image object in a template of a gridview The datasource of the image object evaluates to the path of the jpg file. However, the aspx page displays a little red x instead of the picture. How do I get the image to display/Frank learning vs 2005

TypePerf, Buffer Cache Hit Ratio, Page Life expectancy and some other counters....

Hello, I 've scheduled a Task on a Windows 2008 R2 Server (a Blade with 2 Processors (6 core HT) and 18 GB RAM) to check some SQL Server 2008 Performance Counters. The task runs TypePerf that checks the Counters every 15 seconds for 10 minutes. The task is scheduled every hour. The strange result is that Buffer Cache Hit Ratio, Page Life expectancy and some other Counters are ALWAYS = 0 but if I run PerfMon, Buffer Cache Hit Ratio is 100 and  Page Life expectancy >>>> 300. Any Idea? Thank youLuca Bovo MCTS - MCITP SQL Server 2005 (Database Administrator and Database Developer)

Templatefield CheckBox in gridview acting strange

I have an ASP.NET page that contains a gridview. I have to create columns dynamically based on a datatable, some field type info and some header texts. I do that by creating templates. It created the grid fine and all looks good, however when i click a checkbox and the checkedchanged event fires then something odd happens The first time i click its fine and i get the expected values in the event But the second time then the event gets fired with the values from the first time and then again with the values from the checkbox that i actually clicked.. The third time the event gets fired 3 times, first 2 times with the old values and the third with the correct value. And it just keeps going like that Furthermore Let us say i have 10 checkboxes that are checked when i uncheck one the checkedchanged event fires but if i check it again the event doesnt fire and also if i have unchecked 3 checkboxes(and get the extra events) then if i check one of them again i get 2 checked changed events fired for the ones that are still unchecked but no event gets fired for the box that i checked  so now im just baffled   See pastebin link below for code: http://pastebin.com/stcwqsYa 

Log Cache Page size

Hello: trying to get more details about Log Cache. i am aware that Data page size is 8KB. want to know the size of page in Log Cache, as i am not able to see that inofrmation in BOL & at MSDN. Any link or pointer is highly appreciated. Thanking in advance. Thanks

how can i add a new page in gridview

Hi, i have a really simple gridview. at the moment when the page loads, it populates the grid with 10 rows - via a datatable. the grid has been set to enable paging - 10 items per page  i have a button in the footer.. what i would like this button is to add a new page in the grid. so when this button is clicked a new page it added and it is populated with 10 rows in the grid and from there on i can flick through the pages.   please can someone help me work this out as i have been tring for a long time now. the following is my aspx and cs page. any suggestions and examples would be much appreciated.   many thanks<div> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" style="width: 201px" ShowFooter="True" AllowPaging="True" PageIndex="10" OnPageIndexChanging="Grid_PageIndexChanging"> <PagerSettings FirstPageText="First" LastPageText="Last" NextPageText="Next" PreviousPageText=&qu

A help in gridview to pass another page but its very twist solve

Hi...1)I have a grid view binded using sql datasource in a page ...On button click the same gridview should be displayed in another page in a popup model.The pop model should be visible until the user closed by him self.Note : Here i have used master page.

have print friendly page, want to hide columns of gridview

using vb.net/asp.net 2005I have linkbuttons calling the javascript function at the bottom of this post to print out the contents of a div and this is working ok but theissue that i have is inside the div is a gridview that displays links and another text column (among other colums) and I would like tohide the links and the text column next to it using css.Has anyone done this?btw, here is the javascript print function# function printThisDiv() # { # try{ # var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; # sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; # # var sWinHTML = document.getElementById('dvTheDivIWantToPrint').innerHTML; # # # var winprint=window.open("","",sOption); # winprint.document.open(); # winprint.document.write('<html><body>'); # winprint.document.write(sWinHTML); # winprint.document.write('</body></html>'); # winprint.document.close(); # winprint.focus(); # # }catch(err){ # txt="There was an error on this page.\n\n"; # txt+="Error description: " + err.description + "\n\n"; # txt+="Click OK to continue.\n\n"; # alert(txt); # } }

gridview hyperlinkfield link to point on another page

I have several gridviews on an aspx and each has a hyperlinkfield.  All of them redirect to another page with a single gridview.  I am trying to figure out how to get each hyperlinkfield to redirect to the actual point on the receiving page with the corresponding value. In the sample data below, I need to be able to click on 'def' and open aspx page 2 to the point on the page where 'def' is located.  All values still need to be visible.  Sorry for this sad sample, but I wasn't sure how else to explain.  Can anchors be used in gridviews???  If so, how?  Please advise. aspx page 1: (gridview1) hyperlinkfield1             field2                field3 abc                              f2data1             f3data1 def                               f2data2             f3data2   (gri

Page load is Loading Twice in gridview on navigating to next page.

Hi All i have implemented master page in my application, in its child page i added GridView control, there i used PagerSettings and its attribute to set paging style. In this i have an optoin to set the mode and its images for navigating to different page. my problem is when i not set any image the page will work correctly if i use any image for its navigate button, then every event is fireing twice. if u have faced same problem, pls answer for this query.. My code is:     <asp:GridView ID="grid" runat="server" AutoGenerateColumns="false" AllowPaging="true"         PageSize="3" OnPageIndexChanging="grid_PageIndexChanging" EnableViewState="true" EnableCaching="true" >         <Columns>             <asp:TemplateField>                 <HeaderTemplate>                     <input type="checkbox" id="CheckALL" runat="server"  enableviewstate="true" />             &nbs

GridView go to top of page when page is changed using bottom pager


I have a grid view where the user can change pages at either the top or the bottom of the grid view. 

I want the view to go back to the top whenever a user changes the page, whether they are changing from the top or the bottom.  I've tried using anchors and javascript to achieve this but it does not work.  The javascript is executed and the user is taken to the top of the gridview, this can be seen by placing an alert after the javascript to change the view.  But the last thing that happens on the page change is that the window is returned to it's previous position (the bottom of the page).  Is there any way of doing this?

Strange error trying to Edit new ASPX page in Advanced mode


Steps to duplicate error:

  1. Create new ASPX page in Site Pages.
  2. Right click on it and choose "Edit file in Advanced Mode"

I get this error:
"soap:ServerServer was unable to process request. ---> Value does not fall within the expected range."

I've googled this and haven't found anything that resembles a fix....any ideas?


best way to remove (or hide) a gridview column in a custom page


can someone tell what the best way to remove (or hide) a gridview column is within a custom page?

I dont want to show the link column that is automatically generated as a result of the relationship between the table in question and a parent table.



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