Click here to Skip to main content
15,898,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:02
kathyani7-Jul-08 0:02 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 0:03
Sherin Iranimose7-Jul-08 0:03 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:07
kathyani7-Jul-08 0:07 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 0:11
Sherin Iranimose7-Jul-08 0:11 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:14
kathyani7-Jul-08 0:14 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 0:21
Sherin Iranimose7-Jul-08 0:21 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:25
kathyani7-Jul-08 0:25 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:44
kathyani7-Jul-08 0:44 
i have one problem..
iam getting error .plz guide me .
public partial class PagerControl : System.Web.UI.UserControl
{
private int _pageNumber;
public int PageNumber
{
set
{
_pageNumber = value;
ViewState["PageNumber"] = value;
}
get
{
return int.Parse(ViewState["PageNumber"].ToString());
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (this.PageNumber == 1)
{
lnkPrevious.Enabled = false;
}
else
{
lnkPrevious.Enabled = true;
}
if (this.PageNumber == 11)
{
lnkNext.Enabled = false;
}
else
{
lnkNext.Enabled = true;
}
}


Server Error in '/ucnew' 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 22: get
Line 23: {
Line 24: return int.Parse(ViewState["PageNumber"].ToString());
Line 25: }
Line 26: }
GeneralRe: how to disable link button ? Pin
Arindam Tewary7-Jul-08 0:50
professionalArindam Tewary7-Jul-08 0:50 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:54
kathyani7-Jul-08 0:54 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 1:15
kathyani7-Jul-08 1:15 
GeneralRe: how to disable link button ? Pin
Arindam Tewary7-Jul-08 1:24
professionalArindam Tewary7-Jul-08 1:24 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 1:48
kathyani7-Jul-08 1:48 
GeneralRe: how to disable link button ? Pin
eyeseetee7-Jul-08 0:53
eyeseetee7-Jul-08 0:53 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 0:53
Sherin Iranimose7-Jul-08 0:53 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 1:05
kathyani7-Jul-08 1:05 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 1:16
Sherin Iranimose7-Jul-08 1:16 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 1:23
kathyani7-Jul-08 1:23 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 1:28
Sherin Iranimose7-Jul-08 1:28 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 1:34
kathyani7-Jul-08 1:34 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 1:38
kathyani7-Jul-08 1:38 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 1:42
Sherin Iranimose7-Jul-08 1:42 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 1:45
kathyani7-Jul-08 1:45 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 2:01
Sherin Iranimose7-Jul-08 2:01 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 2:06
kathyani7-Jul-08 2:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.