.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

Grid becomes invisible on refreshing the page

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


I have an Infragistics  ultrawebgrid inside an asp:UpdatePanel control.The issue is each time the page is refreshed, the grid becomes invisible.But,the data is bound to the grid during postback also.Can anyone help?




View Complete Post

More Related Resource Links

My Grid is not refreshing like it should. It only refreshes through a hard refresh of the page (F5)

Here is the code. I have Javascript in there that runs after the save button on the ExtJS popup is clicked, that is supposed to  refresh the grid to show the uploaded files, but the grid will SOMETIMES show nothing, and sometimes show the files. It ALWAYS shows  the files after a hard refresh of the page (F5). Why is it doing this? <br/> <br/> <%@ Page Language="VB" Inherits="Web.BaseView(Of Lending.Controllers.Workspace.DocumentUploadData)" %> <%@ Import Namespace="WebControls.Forms" %> <%@ Import Namespace="WebControls.Grids" %> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <script language="javascript" type="text/javascript">         function RefreshGrid(result, data) {             if (data.responseText.length > 0) {                 var obj = eval('(' + data.responseText + ')');                 if (obj.Result == false) {                     Global.alertError(obj.UserM

AutoPostback in Repeater in UpdatePanel is refreshing the page

Here's quite a weird problem:I've got a TextBox with AutoPostBack="true" and OnTextChanged property set.The textbox is located inside a Repeater, which in turn is located inside an UpdatePanel.Problem is - whenever the TextBox postsback, the whole page gets reloaded, instead of the UpdatePanel only.Here's how the thing looks:<asp:UpdatePanel runat="server"> <ContentTemplate> <asp:Repeater ID="itemsRepeater" runat="server"> <HeaderTemplate> <ul class="lstProducts"> </HeaderTemplate> <ItemTemplate> <li> <asp:TextBox AutoPostBack="true" OnTextChanged="whatever_Click" runat="server" /> </li> </ItemTemplate> <FooterTemplate> </ul> </FooterTemplate> </asp:Repeater> </div> </ContentTemplate> </asp:UpdatePanel> Interesting thing is, if I take the TextBox out of the repeater, it refreshes only the UpdatePanel.So is if I put a Button inside the repeater - only the UpdatePanel gets refreshed.But whenver I place an AutoPostBack-ing control inside the Repeater, the whole page gets refreshed.Any help would be welcomed,Thanks<asp:UpdatePanel runat="server">             &

Expand rows in a data grid to show details in the same page

<asp:templatecolumn headertext="Purchase Order"> <headerstyle horizontalalign="center"></headerstyle> <itemstyle horizontalalign="center"></itemstyle> <itemtemplate> <%# DataBinder.Eval(Container.DataItem, "PurchaseOrder") %> </itemtemplate> </asp:templatecolumn> <asp:templatecolumn headertext="Order"> <headerstyle horizontalalign="center"></headerstyle> <itemstyle horizontalalign="center"></itemstyle> <itemtemplate> <a href="OrderDetail.aspx?Order=<%# DataBinder.Eval(Container.DataItem, "OrderNumber")%>"> <%# DataBinder.Eval(Container.DataItem, "OrderNumber") %> </a> </itemtemplate> </asp:templatecolumn> <asp:templatecolumn headertext="Ack Date"> <headerstyle horizontalalign="center"></headerstyle> <itemstyle horizontalalign="center"></itemstyle> <itemtemplate> <%# DataBinder.Eval(Container.DataItem, "AcknowledgeDate") %> </itemtemplate> </asp:templ

Page should not be Refreshing

Hi I have a dropDownList on a page that I need to refresh with new database entries whenever new content is added to my DB. Basically, I have a list of usernames in one dropdown, and when I add a new username to the database I want this to be reflected in the dropdown without refreshing the whole page i.e. on the fly. I have  used update panel but partial postback is occuring but i want page should not refreshing at all I hope someone can help, I have looked around and not found any solutions. Thanks in advance.

DataEntry: Refreshing Page re-enters same data again.

Hi,I have a simple page, 2 textboxes & 1 button, wherein when button is clicked the values in both textboxes are added to a database table. code works however, when button is clicked the values are still in the textboxes. I created txt1.text = vbnullstring & txt2.text = vbnullstring after Myconnection.Close() just to delete the values in the textboxes.but when I try to refresh my page, The values are still added to my table. I could redirect to a new page after a successful entry but, I just what to add a label saying "New Entry Added", clear the textboxes and waits for a new entry.How do i do this?Regards,

refreshing (reloading) the self page when it opens the popup window

silbut = e.Item.FindControl("button4")         silbut.Attributes.Add("onclick", "window.open('firmaus.aspx?i=" + rrid.Text + "&s=" + Session("firma").ToString + "')") Hi all,I add an attribute on data bound event to the datalist with following codein studentlist.aspx page :deletebutton = e.Item.FindControl("button4")deletebutton.Attributes.Add("onclick", "window.open('studentus.aspx?i=" + rrid.Text + "&s=" + Session("studid").ToString + "')")but i want deletebutton to refresh parent page (studentlist.aspx) when i click it, with openning the page (studentus.aspx...)how can i add this attribute?thanks for helps.

counting page Sessions based on databound grid row - please help

Hi, I would like to count the number of page views. I am able to use the global.asax file and a label to obtain this. However, this gives me the total count of the page. That is great, however I like to count the number of users accessing the page when the user clicks on a particular gridview row value from the previous page. I have a gridview in the gridview a value that links to a new page. This new page contains the row values. I would like to count the number of users who have accessed this new page based on the gridview row value. As such the page count will be different based on each row. Please assist, if anyone has a sample using gridview and a hyperlink to a new page with a session count of that new page that would be fantastic. Thank you in advance. Nijojo.  

Neatupload refreshing page after upload is complete


I hope someone can help with this.

After the upload completes the page refreshes. I'm using a LinkButton to activate the upload.

Is there anything I can do to prevent this?

Need help on Refreshing grid after deleting a record


I have a form that when I click the delete button I want it to refresh the grid with that record removed from the grid. Does anyone know how to do this. Is this something handled in the code behind? Here is my code for the delete button on the design page:


<asp:button id="deleteButton" CommandName="Delete" 
                    style="background-image:url('Images/Button.gif'); text-align:center;background-color:Transparent; cursor:hand; background-repeat:no-repeat; background-position:left; padding-left:15px;" 
                    Runat="server" Height="25px" BorderStyle=None  ForeColor=White   Text="Delete" 
                    Width="99px" CssClass="style3" onclientclick="return confirm('Are you surely want to delete this record?');"  />


Stop ImageButton from refreshing page


I have an ImageButton programmed to open up a new window with a small onclientclick javascript routine.  But, when the ImageButton is clicked, the page containing the button reloads too, causing both a delay and loss of position on the page.  I don't need the page to reload, just the new window to open.  How do I prevent this?

Problems refreshing parent page



I have a parent page which open a client page with window.open. In this client page I add a data entry. After that I want to refresh the parent page because there is ja list of entrys int the master page. This is the code:

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "RefreshParent", ";window.opener.document.forms(0).submit();", true);

The parent page refreshes but only the content and not the master. My data list is in an updatepanel of the master page.

refreshing a page cause an issue


Hiii coders,

I have a button on my aspx page on clicking which i get a new enquiry no in my textbox. It is working very much fine.

But problem is that even when i refresh my page, it will get a new enquiry no.

I only want a new enquiry no to be displayed in textbox whenever i click on button.

This is my c# code for button_click event-

protected void Button1_Click(object sender, EventArgs e)
        string sql_qry2 = "select dbo.FN_GET_ENQ_NO()";
        Class1 c2 = new Class1();

plz resolve this issue asap

thanx and regards

stop page refreshing when the image button clicked


hi friends,

      I am struggling on stop page refreshing when the image button is clicked.How i can i achieve this?I used triggers,javascript,........

             Thanks in advance.

when pop up came up, parent page should be cover or invisible



I hipe this is right place to ask.

I have parent page and child page.

when i click hyperlink from parent page, child page will pop up . At that time I want my parent page to cover with something or invisible.

bz in the child page, i let user to answer question and answer. when they answering question, i wont let user to click hyper link again from my parent page. how would i disable my parent page.


Refreshing thumbnail image on parent page on body unload of popup window


Hi, I am facing a problem in refreshing the thumnail image on parent page after body unload method of popup is called.

Below is th JS function I am calling on body unload of popup. Please note that parent window is refreshing but image thumbnail still shows old image. After I refresh the page for second time I see the new thumbnail.

Thannks & Regards

  function refreshParent() {





How to assign page to grid cell



I have a page control in my project, which I now would like to assign to a Grid cell of my window using the XAML editor, how can I do this?

Next then will be, that I have to replace this "StartPage" by a other page at runtime so this is my next question: How can I assign a page to a grid cell at runtime?


Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor
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