I have an application where I currently are calling stored procedures, reading tables and filling GridView at PageLoad (If Not IsPostBack Then ...). The process takes some time and leaves the client waiting for this process to be completed even before showing the page.Now, is there a way where I can open the page, show a hour glass (or similar) and then automatically fill the gridviews? Is this where I should use threading (or backgroundworker) ?
I want to allow the current user to log in but log off any other person logged in under the same username as the current user. (just like like Y!M does when you log in from a different location: It signs you out from the initial location) For managing log in and sign up i am using visual studio createuserwizard and log in cotrol.
I was wondering if there is an option to change the debugger url when I initialize the debugger. I want it to start off at http://localhost:xxxx/controller/view rather than just http://localhost:xxxx/.
When I make a simple change to a style property in a CSS class the change only effects the webform in design mode. It has no effect on the web form when viewed in a browser. Why?
I tried the Hotfix above "Design view does not update HTML" to no avail. Is there a 64 bit version of this hotfix?
I have a masterPage on that i am using AjaxModalPopup for login purpose.My requirement is when i login via Master page then it should show the Logged-in User details on the current Content Page that is using same master page.
Here i am using following code to get it back to the same content page after succesful login but it does not show the user details on the same content page rather when i go to next page then it appears.
Have an application with several gridviews where user can enter query parameters for each grid view. I am using "DropDownList_SelectedIndexChanged" to call methods that will fill and show each grid view.
For some of these queries the processing time could be several seconds, so I thought I could use and display Ajax progress control.
Code:
<div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Label runat="server" ID="Label15" Text="Load in progress....." /> <img src="Icons/ajax-Loader.gif" alt="The spinner should be here" /> </ContentTemplate> </asp:UpdatePanel> </div>
How can I trigger progress control to show out of my selectedindexchanged events?
Why would only some of the controls show in the toolbox of VS2008? I am using Ajax 3.0 and was working fine for a couple years. Now I do not have all of the extenders available to controls. I removed the reference and added it back for the dll. Still the same.
I have a simple chart control on my form. it displays data fine in X and Y axis. On X axis, i have time period (1 day,1 week, to 30 Years- total of 27 points on x axis) and Y axis has interest rate.
when the cursor is moved in the chart area, I want to show the exact value of Y axis. Just like yahoo finance shows when we click on a graph of a stock symbol. Say on my chart, when user hovers on say 2 Y on the graph, it should show the exact interest rate which is on the Y axis.
I have a web page that when the user presses the "Go Back" button, if the formview is not in ReadOnly mode, to ask if they want to exit without saving.
I was thinking of having a pop-up window to ask this question, but I am unsure of how to do this.
First, I'm running my application on my local Win 7 box, and viewing the site on the same box.
I have several session variables set while interacting with my application. When I go to check the data in the database through the Database Explorer (Show Table Data), my session is lost. This is instant.
Why does this happen? Is there a way to prevent it?
I have VS.NET 2003, 2005 and 2008, when I use VS.NET 2005 and clic on new project, this doesn't show me the business intelligence option, this only work with .NET 2008, what sould i do?
This is my third site that I use role management, but the first time this happens. I have two roles: Member and Admin. If Admin user login, Admin node on sitemap shows. It works very well on my local machine in Visual Studio Express 2008 and in Visual Studio Team 2008. But once I deploy files to live site, even admin login, the Admin node doesn't show. I have a Member management page from which I may see member's role, and I can see that user name is in the role Admin. What could be wrong?
I used ASP.Net Configuration manager to create roles, users, and access roles. Here is the code:
Is it possible to have an initial drop box item that has a null value. For instance I have a drop box that iss linked to the EmployeeName column in the table Employees in and SQL Database. When running the page it shows the first employee, cn i hae it so when the page loads instead of selecting the first employee it would say something along the lines of "Please select employee..." Maybe have the text in grey to show that it needs something selecting.
I encounter a weird problem when I am run the app via F5 or View In Browser. When I run the following page for the first time, "Hello" is shown on the textbox. Clicked on the 'Click Me' button, the text is changed to "Clicked!". That's fine. Close the brower and run F5 (or View in Browser) again, the Textbox shows "Clicked!". It doesn't display the initial value anymore. I see this problem on IE6 (and thatis the only option for my employer), but not on FF3.6 nor Googgle Chrome 4.x. I thought it could be related ViewState. But, the problem persists after ViewState is disable.
Default.aspx File below:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!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">
I'm writing a simple web site using codebehind for each page, however using the "codefile" directive, not "codebehind" as such, because I'm not precompiling. I'm just using a text editor to edit the aspx and codebehind files. Problem is, every time I make a change to the code or the aspx file, and refresh the page in the browser, it takes a 2 or 3 seconds to come up the first time, like it's doing an on-demand initial compile. I assume that's what it's doing, as after the initial load, the page refreshes without any delay at all.
This behaviour is quite frustrating when making small changes to the html or code. I'm coming from classic ASP, where you could edit-refresh-edit-refresh etc. all day without your "stride" being broken by waiting for a "compile", you know? So I'd love to know if there's a setting which prevents this initial delay. When I want to deploy, I can do a compile or something, but while making lots of small edits, I just need the page to run without that initial delay.
I have an application where different users can log in via a single portal login. When they log in, if they belong to more than 1 company they have to select the company they belong to. The theme will change if there is a custom theme for that company. Each page my application has inherits a "CustomPage" class. Here is the code for the custom page:
When the customer belongs to more than 1 company, and they select the company they belong to, the theme loads just fine. So, the problem I am having is this: If they belong to just 1 company, the company is automatically selected but the theme does not load right away. However, if I refresh the page, the theme loads just fine. Even the default theme will not load. The page has no css at all until I refresh.
I even view source and look for my css names and they are not there. I refresh and do the same thing, and they are there. I am not using forms authentication and the default theme in the web config is "Default"
My application is hosted on IIS6.0 web server. And we observed that the initial page load time is high (30-40 sec) and further page loads take only 5sec.To bring down the page load time, I have deployed the precompiled web solution on IIS.But unfortunately the initial page load time did not came down to larger extent.
What is the value of SomeId after I create an instance of my object? I was testing it with SomeId == 0 but it wasn't working. Then I tried null which gives me an error.
What is the right way to handle this? Am I to assign an initial value to my objects' properties in the object? If not, how do check if my object has any values assigned to its properties -- in particular, int values?
I have the following string John Adams, however I would like to get JA where J is the first intial of the firstname and A is the first initial of the lastname..How do I do so? Thank you.