Subject: Insert News UserId -1
Posted By: seanmayhew Post Date: 11/14/2004 10:59:37 AM
For some reason any time I insert a new news item its inserting -1 into the userID field. I've placed a temp label on the front page of news.aspx and set its text property to the (PhileIdentity)Context.User.Identity and its displaying the correct UserID in the label but Im getting that same -1 in the UserID field of the News_News table any ideas?

Reply By: englere Reply Date: 11/14/2004 7:57:55 PM
Put a breakpoint in the Submit_Click handler in SumitNews.aspx.cs (assuming C# version) and then step through the code to see what happens.

Eric

Go to topic 20718

Return to index page 716
Return to index page 715
Return to index page 714
Return to index page 713
Return to index page 712
Return to index page 711
Return to index page 710
Return to index page 709
Return to index page 708
Return to index page 707