Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
how to wire 2 User Controls together with ID
sammi taylor
Apr 20 2015 7:14 PM
436
Reply
I have a CaseForm with these controls placed in it. UserControl1 is above UserControl2.
TabControl1 has UserControl1
TabControl2 has UserControl2
UserControl1-upon btnSave(), it generates a new case number and a new caseID. Which saves to db. This works fine.
The caseID is the key ID for both. UserControl2 case is part of the UserControl1 case.
A case has to be created in UserControl1, in order to create a new subcase in UserControl2. It needs to pass the caseID to it.
Now I get null object error in my Save() here:
CaseRecord.SubCase.CaseID = CaseRecord.CaseID.Value;
How do I pass the caseID from UserControl1 to UserControl2 to save.
Thank you for any help!
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Not able to convert word document to pdf size(50 MB- 200 MB)
Pause the process