Click here to Skip to main content
15,897,291 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDoes not diplays the correct position on page Pin
misCafe18-Jun-09 16:43
misCafe18-Jun-09 16:43 
AnswerRe: Does not diplays the correct position on page Pin
Christian Graus18-Jun-09 19:28
protectorChristian Graus18-Jun-09 19:28 
QuestionASP .NET Membership Pin
kenexcelon18-Jun-09 14:17
kenexcelon18-Jun-09 14:17 
QuestionPostback - Variables Deleted AND Listbox.SelectedItem Pin
bnonym081518-Jun-09 10:43
bnonym081518-Jun-09 10:43 
AnswerRe: Postback - Variables Deleted AND Listbox.SelectedItem Pin
Christian Graus18-Jun-09 10:47
protectorChristian Graus18-Jun-09 10:47 
AnswerRe: Postback - Variables Deleted AND Listbox.SelectedItem Pin
bnonym081518-Jun-09 10:55
bnonym081518-Jun-09 10:55 
GeneralRe: Postback - Variables Deleted AND Listbox.SelectedItem Pin
Christian Graus18-Jun-09 11:06
protectorChristian Graus18-Jun-09 11:06 
QuestionNull reference exception in gridview binding to text data Pin
ashutosh_karna18-Jun-09 10:26
ashutosh_karna18-Jun-09 10:26 
I am binding the same gridview to excel or text data based on user selection, and passing the dataview in session to different page for further analysis. It works fine when the user selects excel data; but in case user selects text data, it shows Null Reference exception in another page. Code is as follows:

protected void Button_view_click( object sender, Eventargs e)
{
if(....=="Excel")
{
BindExcel();
}
else(.... == "text")
{
BindTExt();
}
GridView1.EnableViewState = true;
dv = GridView1.DataSource as DataView;
Session["DataViewExcel"] = dv;
}

In anothere page, i am using following code :
Private void PageLoad()
{
DataView dv1 = new DataView();
DataTable dt1 = new DataTable();
dv1 = Session["DataViewExcel"] as DataView;
dt1 = dv1.ToTable(); // Exception occurs here, only in case of text data
}

Stack Trace is as follows :
Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
PreThesisSoftware.DiscreteDistribution.Page_Load(Object sender, EventArgs e) in C:\Users\Ashutosh\Documents\Visual Studio 2008\Projects\UploadFile\PreThesisSoftware\PreThesisSoftware\DiscreteDistribution.aspx.cs:23
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
AnswerRe: Null reference exception in gridview binding to text data Pin
Christian Graus18-Jun-09 10:48
protectorChristian Graus18-Jun-09 10:48 
AnswerRe: Null reference exception in gridview binding to text data Pin
httplover18-Jun-09 15:01
httplover18-Jun-09 15:01 
QuestionRetrieving members of nested groups from AD Pin
Norriskilla18-Jun-09 9:49
Norriskilla18-Jun-09 9:49 
AnswerRe: Retrieving members of nested groups from AD Pin
Abhijit Jana18-Jun-09 11:34
professionalAbhijit Jana18-Jun-09 11:34 
GeneralRe: Retrieving members of nested groups from AD Pin
Norriskilla18-Jun-09 11:53
Norriskilla18-Jun-09 11:53 
QuestionAuthentication Required in Application_Start but not in Application_BeginRequest Pin
mtbvfr18-Jun-09 9:03
mtbvfr18-Jun-09 9:03 
QuestionAlign a paragraph in rich text box Pin
Member 465900118-Jun-09 7:32
Member 465900118-Jun-09 7:32 
Questionpassing Popup wondow values to parent window. Pin
avvaru.murali18-Jun-09 6:35
avvaru.murali18-Jun-09 6:35 
AnswerRe: passing Popup wondow values to parent window. Pin
koolprasad200318-Jun-09 19:56
professionalkoolprasad200318-Jun-09 19:56 
QuestionAJAX Hovermenu on Gridview button field Pin
Ridge Howison18-Jun-09 6:28
Ridge Howison18-Jun-09 6:28 
QuestionMASTER PAGE ISSUE Pin
Amit Patel198518-Jun-09 4:31
Amit Patel198518-Jun-09 4:31 
AnswerRe: MASTER PAGE ISSUE Pin
ToddHileHoffer18-Jun-09 10:03
ToddHileHoffer18-Jun-09 10:03 
Question[Message Deleted] Pin
Veerendranadh18-Jun-09 4:17
Veerendranadh18-Jun-09 4:17 
AnswerRe: Unable to disable backgroup using modalpopup extender Pin
httplover18-Jun-09 4:21
httplover18-Jun-09 4:21 
AnswerRe: Unable to disable backgroup using modalpopup extender Pin
dan!sh 18-Jun-09 4:21
professional dan!sh 18-Jun-09 4:21 
QuestionN-Layer ASP.Net Application Pin
Nutan T.18-Jun-09 3:46
Nutan T.18-Jun-09 3:46 
AnswerRe: N-Layer ASP.Net Application Pin
Vimalsoft(Pty) Ltd18-Jun-09 3:50
professionalVimalsoft(Pty) Ltd18-Jun-09 3:50 

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.