Asp greska

Molim o pomoc o kojoj gresci se radi ? Hvala

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 43: protected void Page_Load(object sender, EventArgs e)
Line 44: {
Line 45: meniRadMenu.DataSource = tablica = DohvatiDataTableStranica();
Line 46:
Line 47: meniRadMenu.DataBind();

Source File: c:\inetpub\vhosts.net\httpdocs\Cms\Controls\CMS\MeniRadMenu.ascx.cs Line: 45

Stack Trace:

[quote=“Asp”]Molim o pomoc o kojoj gresci se radi ? Hvala

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 43: protected void Page_Load(object sender, EventArgs e)
Line 44: {
Line 45: meniRadMenu.DataSource = tablica = DohvatiDataTableStranica();
Line 46:
Line 47: meniRadMenu.DataBind();

Source File: c:\inetpub\vhosts.net\httpdocs\Cms\Controls\CMS\MeniRadMenu.ascx.cs Line: 45

Stack Trace:[/quote]

Line 43: 	protected void Page_Load(object sender, EventArgs e)
Line 44: 	{
Line 45: 		meniRadMenu.DataSource = tablica = DohvatiDataTableStranica();
Line 46:           meniRadMenu.DataBind();
Line 47: 		

uradi ovako

tablica=DohvatiDataTableStranica();
if(tablica!=null)
{
meniRadMenu.DataSource=tablica;
meniRadMenu.DataBind();
}
else
{
Response.Clear();
Response.Write("Nema podataka u bazi");
Response.End();
}

tablica=Dohvati


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja