An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[NullReferenceException: Object reference not set to an instance of an object.]
TerminatorSalvation.Pages.Location.Page_Load(Object sender, EventArgs e) +28
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3047
View Complete Post
Recently I converted a project to VS.NET2010 and ASP.NET 4.0 (not convinced this is the problem, but regardless this is when the problem began) and now I am having an issue with an AJAX UpdateProgress showing. Here is the abrriviated code:
<asp:UpdatePanel ID="UpdatePanelPostPageLoad" runat="server">
<asp:Timer ID="tmrPostPageLoad" Enabled="false" Interval="100" OnTick="PostPageLoad_LoadData"
<asp:Timer ID="tmrPostPageLoadPt2" Enabled="false" Interval="1" OnTick="PostPageLoad_LoadDataPt2"
<%--Placing the UpdateProgress inside the UpdatePanel targeted--%>
<asp:UpdateProgress ID="UpdateProgressPostPageLoad" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanelPostPageLoad">
Updating blah blah....
I am developing a website in asp.net.How can i make my web pages view same in different screen resolutions.I am using 1024*768 resolution
Is it possible to Print Screen and then immediately Paste into a .NET app and upload to a server? I'd like to skip the step of the user having to first paste the screen into an image program and save as a jpg, gif, etc. Thanks!
Hi Everyone, I need to detect the size of the user's screen for mobile devices (especially the BlackBerry). I've read a lot of pages that seem to refer me to the Request.Browser object, but I'm finding that this object doesn't have the correct values. For example, I have a BlackBerry and when I use the Request.Browser to get the screen size, it tells me it is 640x480. Well, I know it's not that big since an image of 300px wide just barely fits. Also, when I run on my desktop browser, it also says my screen is 640x480. I can assure you, it is not 640x480! ha!
I am trying to get the screenHeight and width:
// Get MobileCapabilities from current Request.Browser
MobileCapabilities currentCapabilities = (MobileCapabilities)Request.Browser;
// get a property of the browser
Response.Write(currentCapabilities.ScreenPixelsHeight + " <br>");
Response.Write(currentCapabilities.ScreenPixelsWidth + " <br>");
but this is always show that the Height is 480 & the width is 640
I am trying on HTC with Opera Mobile 9.5
This article describes methods for designing screens in a user interface and the technology frameworks that support screen design.
Ambrose Little, Charles B. Kreitzberg
MSDN Magazine September 2009
Charles Cox and Michael Klucher
MSDN Magazine May 2007
MSDN Magazine November 2005
My four-year-old son has decided that he wants to be like his dad when he grows up. He is planning to work in my office, and write computer programs just like I do. But there is one problem-he thinks I write games.
MSDN Magazine October 2005
Edited by Nancy Michell
MSDN Magazine April 2005
MSDN Magazine December 2002
MSDN Magazine December 2001
MSDN Magazine January 2001
MSDN Magazine March 2000