The BodyID used in that method is the one that has been passed to the method as a parameter. Where are you calling that method and which value are you passing for that BodyID?
method was called in DCA_AddDiagnostic.aspx.cs page
calling Method(which is given in query) is in Common.cs class
I Have Declared BodyID in DCA_AddDiagnostic.aspx.cs page
in source code of DCA_AddDiagnostic.aspx
<body id="bi" runat="server">
in DCA_AddDiagnostic.aspx.cs
if i assign BodyID=bi;
then getting error in IE:
----------------------------------------------------------------------------------------------------------
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:
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.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
MagicAjax.Util.GetPrivateField(Object instance, Type type, String fieldName) +43
MagicAjax.AjaxCallHelper.GetPageHiddenDictionary(P age page, String fieldName) +46
MagicAjax.AjaxCallHelper.HandleClientScriptBlocks( Page page, Boolean reflectToClient) +37
MagicAjax.AjaxCallHelper.Page_PreRender(Object sender, EventArgs e) +292
System.Web.UI.Control.OnPreRender(EventArgs e) +2066956
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
--------------------------------------------------------------------------------------------------------
with out showing any fault with code...