Web Forms :: Showing Temporary UI To User Before Page Is Rendered?
Feb 24, 2010
In the ASP.NET application that I'm working on, the home/landing page takes around 20-25 seconds to load.
And, that is expectable by everyone, as the application loads huge data, calls multiple services before the first page can be loaded.
I am looking to show some kind of HTML UI to the user while the page loads up.
I tried multiple things but the earliest that something shows up on the page is through Response.Write() in the Page Init and hide that HTML content in jQuery's $(document).ready(). In this case also, something shows up after 60% or the wait time has passed.
I want something to show up as soon as the authentication is done (form the login page) and before the home page shows up. Something similar to what shows up on Orbitz.com or [URL], some kind of UI between clicking search and the actual search result is shown.
If it was ASP.NET MVC, I can think of good solutions as you have complete control on the rendering but we are using ASP.NET 3.5 with server side Ajax controls.
Here's what currently takes place before the home page:
Login page submit actions -
Authenticate,
Load SSO Data,
Redirect to home Page.
View 4 Replies
Similar Messages:
Dec 28, 2010
i'm creating a cookie with an expiration of 12 hours from now. when i run my solution locally and go into C:Users..AppDataLocalMicrosoftWindowsTemporary Internet Files and look at the expires property of my cookie the date and time are correct. However, when I deploy this to our web server and go to the website i notice the cookie that got created for it has an expiration date of 2 years from now, minus a day. So the cookie should be set to expire on 12/29/2010 8:00 PM for example instead shows 12/28/2012 8:00 PM. Here's the code i'm using to create the cookie, pretty basic. And yes, the date on the web server is correct. I really want the cookie to expire in 12 hours, not 2 years.
[Code]....
View 6 Replies
May 7, 2015
URL.... Still there will be need of url in ajax method if i put javascript in site.master.cs . As what i have understood from that mysite.master.cs will be like this :
protected void Page_Load(object sender, EventArgs e) {
try {
if (Session["Prefix"].ToString().Trim() == "sys_admin") {
UserNameMasterLabel.Text = Session["UserName"].ToString().Trim() + " (ADMIN)";
[code]....
And site.master will be like this :
And I have to put next method in DailyLog.aspx page ? like this
System.Web.Services.WebMethod(EnableSession = true)]
public static int RefreshSession() {
HttpContext.Current.Session["Name"] = "BSD";
Configuration config = WebConfigurationManager.OpenWebConfiguration("~/Web.Config");
SessionStateSection section = (SessionStateSection)config.GetSection("system.web/sessionState");
int timeout = (int)section.Timeout.TotalMinutes * 1000 * 60;
return timeout;
}
But I have several pages in my website , by doing the above story will it work for Builder.aspx ? or any other page rather than dailylog.aspx ?
View 1 Replies
Mar 22, 2010
We are making a site in asp.net 3.5 C# and i am showing my all user activites on one page (i am making a call to db at page load) but to get updated user activities i have to refresh the page so that again one hit go to the db and get all updated data.
But i want to update this feature like this site : [URL]
Objective: i want when user open activity page first time then in first hit it will get 20 latest user activities but after that i dont want to make a database call for that again and again. but each new activity of user's will automatically append to my activity list one by one.
View 5 Replies
Jan 31, 2011
I know there are a number of ways to show the user that a page is loading with a visual image.What is the slickest and most effective way of doing that. I would like to use Javascript if possible.Presently I can turn on an image calling a function form pageLoad() method of Javascript, but I can't figure out a way to turn it off. Couldn't get pageUnload() to be called.
View 1 Replies
Nov 27, 2010
I am using a <a href=[URL], an open source e-commerce platform, for one of my projects, and I noticed that they use Master Pages as well as user controls. When I looked some of this up, some people made it appear as if Master Pages were intended to replace user controls. Is this true? In my opinion, if I were to start an ASP.NET app from scratch, I would think a Master Page would be enough, but I guess user controls could be utilized.
View 2 Replies
Jan 26, 2011
I need to create a temporary page in asp.net which will be able to present a report will retrieves data from the database and provide feature to convert the page into a word document.
View 4 Replies
Nov 5, 2010
I have one parent gridview where each record will link to its details page (another child gridview in modal popup). May I know how do I store the values of the child gridview temporary (maybe in session) and repopulate the data into the parent gridview? Current problem is: once I click save in the child modalpop gridview, it binds the parent gridview before the child gridview data is stored in session. I want to store the data temporary until user click save in the parent gridview.
View 4 Replies
Mar 22, 2010
I have a Java Script popup messae box that is displayed when an application user first displays the web page. Everything works great, but when the popup displays the background of the screen is white, with the popup in front of it. Instead I would like for the popup to be displayed in front of the web page after it has been rendered with all of the controls on it.
<%@ Page Language="C#" codebehind="Default.aspx.cs" inherits="Colso.Site.Default" masterpagefile="~/Master.Master">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
sb.Append("<script language='JavaScript'>");
sb.Append("alert('message to client')");
sb.Append("<");
sb.Append("/script>");
ClientScript.RegisterStartupScript(this.GetType(), "PopupSb", sb.ToString(), false);
}
</script>
<asp:Content id="contentPage" runat="server" contentPlaceHolderRoot">
// Controls not shown because I don't want too many lines
</asp:Content>
View 5 Replies
Jul 20, 2013
How to Disabling the form elements until the page is rendered completely.
View 1 Replies
Jul 3, 2010
I have a problem only in IE where my JQuery filetree cannot be refreshed unless the browser is closed, or temporary internet files is deleted via Tools -> Internet Options
Anyone know of a way so that this particular page never gets cached into temp internet files?
I've tried putting this in the header
[Code]....
As described here: [URL]
Nothing seems to work :
Preferably a solution for both IE8 and IE6 (yes i still have to support that goddamned browser)
View 2 Replies
May 25, 2010
I have a simple user control which is nothing but a simple input field with runat="server":
<input id="mySimpleTextBox" type="text" runat="server"/>
My observation so far in the output rendered by a datalist (when I use this user control inside it) is that the value for the name attribute is the same.I want to use this control inside a datalist/repeater such that I'd want a unique value for the input element's name attribute when the datalist/repeater renders. How is this done?
EDIT: My bad obversation. Actually the names are unique. However, when I try to post the page to another web page which outputs the key & value of all the items in Request.Form I don't see the input elements...
View 5 Replies
Sep 29, 2010
I'm working on a web page that is going to be used to enter data into a database. The page is going to be dynamic in that the user has the ability to add a row to the table with the same fields, ie lname1, fname1, mi1 then lname2, fname2, mi2
I'm wanting to use a variable to keep track of how many lines there are so that when I generate the added line I am creating a new field with the ID of lname+# . Whats the best way to do this, a global variable, session variable? As side note, first time programming in .Net or C#.
View 3 Replies
Feb 7, 2011
I have a few controls (a panel containing some textboxes and dropdownlists) that are hidden until the user clicks a button to toggle their visibility. The toggling is done via JQuery and works great. One thing that bothers me is that although this panel is hidden when the page finishes loading, you can see it while the load/render process is taking place. So you can see it and then all of a sudden it fades out. Is there a way to hide it earlier in the process so we don't see it at all? I did try putting visible = "false" on the panel definition, and then you can't see the panel on loading which is good, but then my JQuery code won't toggle it to visible. Perhaps my JQuery code needs tweaking.
[Code]....
View 3 Replies
Apr 13, 2010
We are rendering usercontrols dynamically like this:
[Code]....
This lets us the same user controls when rendering pages normally as we do when rendering responses to ajax calls. However, when adding controls which themselves contain a scriptmanagerProxy we run into the problem that the newed up Page object doesn't contain either a ScriptManager or the HtmlForm in which the ScriptManager needs to run.
View 3 Replies
Dec 1, 2010
I can remember reading something on this in a book but I can't remember. How do you ensure that certain graphics have been loaded to the users computer before any of the page is rendered?
View 2 Replies
Mar 17, 2011
I have a rendered html page which i am exporting to MS-word and downloading on a button click.
The code snippet in the button click.
Me.EnableViewState = False
Response.ContentType = "application/vnd.ms-word"
Response.AddHeader("Content-Disposition", "attachments;filename=XXXXXXX.doc")
Response.Buffer = True
Response.BufferOutput = True
The functionality works perfectly well in FireFox & IE when i checked in system testing envirenment(locally).However when in was moved on to hosting server(production environment) the functionality is not working in IE , however it is working perfectly in FireFox.
I am not sure on where to check the exact issue for.Will it be any caching related problem?.
In IE it is just not opening the download window which we will obtain when the rendered html content type is changed and response stream flushed.No exception is thrown.
I received the following response header :
HTTP/1.0 200 OK
Cache-Control: private
Content-Length: 15189
Content-Type: application/vnd.ms-word;
charset=utf-8 Server: Microsoft-IIS/7.5 X-AspNet-Version: 2.0.50727
Content-Disposition: attachments;filename=NewAccountForm.doc X-Powered-By: ASP.NET
Date: Fri, 18 Mar 2011 10:18:07 GMT X-Cache: MISS from Gateway X-Cache-Lookup: MISS from Gateway:808 Via: 1.0 Gateway (squid/3.0.STABLE10) Proxy-Connection: keep-alive
View 2 Replies
Mar 17, 2010
I am working with .net c#. Is there a way to see the rendered html code under the updatepanel?
more info:
I dynamically generate UI controls and place them in a asp:Panel control I have under updatePanel. My page is initially almost empty, and I add about 50 new controls upon button click. However, I cannot see the html code generated in the page source. as in, I can see my textfield on the screen but I cannot see the corresponding code in the html source on my browser.
View 4 Replies
Feb 26, 2010
Does anyone know a good tutorial to add a loading image to your webpage while the content is being rendered/created...
View 4 Replies
Jul 20, 2010
I have a page (generic handler) on which I want to return the status code 500 to the client to indicate that something is wrong. I do it like this:
Response.StatusCode = 500;
Response.StatusDescription = "Internal Server Error";
And at the same time I render a friendly message telling the user that something went wrong. But instead of seing my message, I get the default IIS message saying something like this:
Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
And if I go in to IIS and remove the error page for 500, I get this message:
The page cannot be displayed because an internal server error has occurred.
It works as intended in IIS6, but not in IIS7. What should I do to get it working in IIS7?
View 1 Replies
Mar 24, 2010
I recently added a Telerik control to an ascx that is included in an aspx page. This page has a "Send email" button, which when clicked will email the user the rendered output of the page. The Telerik control I added requires a ScriptManager, so I added that to the ascx. However, now the email button won't work. I get the following error:
The control with ID 'myIdHere' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.I know the script manager exists because the page works fine when I go that url, it is only failing when it tries to email the rendered output.Here's a code snippet, any ideas as to whether there is a problem with scriptmanager when doing this sort of thing?
Page EmailPage = new EmailBasePage();
System.Web.UI.HtmlControls.HtmlForm EmailForm = new System.Web.UI.HtmlControls.HtmlForm();
[code]...
View 1 Replies
Apr 27, 2016
When a user wants to view another user profile on user profile page this error will show up
ERROR
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 72: protected void OnDataBound(object sender, EventArgs e)
Line 73: {
Line 74: string userName = (FormView1follow.Row.Cells[0].FindControl("hfUserName") as HiddenField).Value;
Line 75: string friendsUserName = (FormView1follow.Row.Cells[0].FindControl("hfFriendsUserName") as HiddenField).Value;
Line 76: string followStatus = (FormView1follow.Row.Cells[0].FindControl("hfFollowStatus") as HiddenField).Value;
HTML
<div class="text-center">
<asp:FormView ID="FormView1follow" runat="server" OnDataBound="OnDataBound" Width="100%">
<ItemTemplate>
<asp:HiddenField ID="hfUserName" runat="server" Value='<%# Eval("UserName") %>' />
<asp:HiddenField ID="hfFriendsUserName" runat="server" Value='<%# Eval("FriendUserName") %>' />
[Code] .....
View 1 Replies
Jun 28, 2011
In the IIS, it shows that the web app (i'm using) is using an application pool that uses NETWORK SERVICE account for identity. But when I debug/run my web app, User.Identity.Name shows that my windows user login instead. I checked my web.config file, and it does not have Impersonate enabled. In fact, I set it to false, and it still shows the same.
View 1 Replies
Mar 16, 2010
I'm trying to create a .net charting control completely in the code behind and insert that chart at a specific location on the web page.
Here is my html page:
[Code]....
I want to render the charting control inside the div with id="chart"
View 2 Replies
Aug 3, 2010
I developed a basic web page in MVC 2 for learning the framework, and I am stuck in this situation:
I have 3 classes: Client - Product - New. And for all need to display a modal popup to create/edit action. For display the modal i used JQuery and jqModal plug-in.
I created the controllers for all objects, the views for Index action, and Delete action. For the Create/Edit Action I created a partial view named ModalBox. Inside this partial view, I have an Ajax.BeginForm, and it calls another partial, that represent the form of the objects.
This works very fine, ... for the project object! in FireFox 3.6, for others object's the form tag is missing...
View 1 Replies