Page 1 of 1

liveReporting

Posted: Sun Mar 08, 2009 3:03 am
by junglebird
Hi
I did exactly the same as the sample of stimule .net 2007 .but the problem is when i click on each the bookmark value would pass to form with null value ! and this caused thethe Null object refrence Exception in VS.net !

Code: Select all

StiComponent comp = sender as StiComponent;
            int customerID = Int32.Parse( comp.BookmarkValue.ToString());
as you see the only diffrent between my code and the LiveReport C# sample is that I ve used an Integer as bookmarkvalue
. Im so confused! is there any bug?
Thanks

liveReporting

Posted: Mon Mar 09, 2009 6:49 am
by Edward
Hi

Please make sure that BookmarkValue actually has values of an int type.

In case if BookmarkValue could equal zero, then please use Int32.TryParse(string, out Int32) function instead.

Thank you.