asp.net ÍøÕ¾ÔËÐÐʱ´íÎó
ºÜ¼±µÄÎÊÌ⣬ÔÚÎÒ±¾»úÉÏÔËÐУ¨ASP.NETÍøÕ¾£©Ã»ÓÐÈκÎÎÊÌ⣬·Åµ½Ô¶³Ì·þÎñÆ÷ÉϾͳöÏÖÁËÈçÏ´íÎó£º
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 33: User user = mu.M_SelectUserByID(id);
Line 34: this.lblID.Text = id.ToString();
Line 35: this.lblTel.Text = user.QB_TEL.ToString();
Line 36: this.lblState.Text = user.QB_STATE.ToString();
Line 37: this.lblNum.Text = user.QB_NUM.ToString();
Source File: d:\suntek\jxtweb\User\ShowUser.aspx.cs Line: 35
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
User_ShowUser.Page_Load(O
Ïà¹ØÎÊ´ð£º
aspÏÂÃæ£¬µ±Òª¸ù¾Ý²»Í¬µÄȨÏÞÏÔʾһЩ¹¦Äܰ´Å¥µÄ»°»áд³É
<%
if ȨÏÞ=1 then
%>
<input type="submit" name="Submit" value="Ìá½»" />
<%
end i ......
ǰ¶Îʱ¼äÅöµ½Ò»µÀÃæÊÔÌâÈçÏ£º
test.aspxÒ³ÃæÓÐÈçÏ´úÂ룺
Response.Write(Test.GetDate());
TestÀàÈçÏ£º
public class Test
{
static string dt="";
public static s ......
±È½ÏºÃµÄѧϰasp.netµÄÊéÍÆ¼öһϰɣ¬Ð»Ð»~~~
書µÄ話µÈ¸ßÈËÍÆ薦, ÎÒ認為¶àÉÏÉÏwww.asp.net對Äã幫Öúͦ´ó, ÄÇÀïÓкܶà視頻, Èç¹ûÊÇÐÂÊÖµÄ話, 視& ......
ÓÃDWдµÄaspxºÍvs C#дµÄÍøÕ¾ÏµÍ³(Ö÷ÒªÒ³ÃæÎļþÒ²ÊÇaspxµÄÎļþ)ÓÐÊ²Ã´Çø±ð,VSдµÄÍøÕ¾·¢²¼ºó,ËùÓеĴúÂ벿·ÖºÏ³ÉÒ»¸öDLLÎļþ,¶øDW¾ÍûÓа취,ÕâÁ½¸ö¹¤¾ßд³öÀ´µÄÍøÕ¾Í¬ÑùÊÇaspxµÄÎļþ,µ«Çø±ðºÜ´ó°¡.
°ïÄã¶¥ÏÂ~£¬Çó ......
ÇëÎÊһϣ¬ASP.NETÎÒÓÃÒ»¸ö²ãÖзÅÁËÒ»¸öÈÕÀú¿Ø¼þ£¬ÔÚµãÒ»¸ö°´Å¥Ê±£¬ÏÔʾÕâ¸ö²ã£¿ÏÖÔÚÎÊÌâÊÇÎÒÔڵ㰴ťʱ£¬ÎÒÏë°Ñ²ãÏÔʾÔÚ°´Å¥µÄÏ·½£¿¾ÍÏñÏÂÀÈÕÆÚ¿Ø¼þÒ»Ñù£¬ÎÒÓÃÊǵÄASP.NET C#
ÎÒÓÐÕâôһ¸öÈÕÆÚ¿Ø¼þ£¬£¡µã»÷¿ÉÒÔÑ ......