Click here to Skip to main content
15,888,461 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Setting x-microsoftajax: Delta=true header is giving http error 400 Pin
Ash_VCPP3-Sep-09 21:35
Ash_VCPP3-Sep-09 21:35 
Question[Message Deleted] Pin
ToddHileHoffer3-Sep-09 3:06
ToddHileHoffer3-Sep-09 3:06 
AnswerRe: Entity Model Insert Pin
Not Active3-Sep-09 3:35
mentorNot Active3-Sep-09 3:35 
GeneralRe: Entity Model Insert Pin
ToddHileHoffer3-Sep-09 3:53
ToddHileHoffer3-Sep-09 3:53 
GeneralRe: Entity Model Insert Pin
ToddHileHoffer3-Sep-09 4:09
ToddHileHoffer3-Sep-09 4:09 
GeneralRe: Entity Model Insert Pin
Not Active3-Sep-09 4:46
mentorNot Active3-Sep-09 4:46 
GeneralRe: Entity Model Insert Pin
ToddHileHoffer3-Sep-09 4:51
ToddHileHoffer3-Sep-09 4:51 
GeneralRe: Entity Model Insert Pin
ToddHileHoffer3-Sep-09 4:52
ToddHileHoffer3-Sep-09 4:52 
I was able to get my code to work with the following, but it seems inefficient.
<br />
       int baRequestTypeId = int.Parse(this.rblMode.SelectedValue);<br />
            int baAssociateTypeId = int.Parse(this.rcbAssociateType.SelectedValue);<br />
            int baBusinessTypeId = int.Parse(this.rcbBusinessType.SelectedValue);<br />
<br />
<br />
<br />
            SqlData.BusinessAssociateWorkFlowData dataContext = new BusinessAssociateWorkFlow.SqlData.BusinessAssociateWorkFlowData();<br />
            SqlData.BusinessAssociateContactChangeRequest baContact = new BusinessAssociateWorkFlow.SqlData.BusinessAssociateContactChangeRequest();<br />
<br />
            SqlData.RequestType baRequestType = (from r in dataContext.RequestType<br />
                                                 where r.RequestTypeId == baRequestTypeId<br />
                                                 select r).First();<br />
<br />
            SqlData.BusinessAssociateType baBusinessAssociateType = (from b in dataContext.BusinessAssociateType <br />
                                                   where b.BusinessAssociateTypeId == baAssociateTypeId<br />
                                                       select b).First();<br />
<br />
<br />
            SqlData.BusinessType baBusinessType = (from b in dataContext.BusinessType<br />
                                                   where b.BusinessTypeId == baBusinessTypeId<br />
                                                   select b).First();<br />
            baContact.RequestType = baRequestType;<br />
            baContact.BusinessAssociateType = baBusinessAssociateType;<br />
            baContact.BusinessType = baBusinessType;<br />
            baContact.Name = this.rtbName.Text;<br />
            baContact.Abbreviation = this.rtbAbbreviation.Text;<br />
            baContact.Code = this.rtbCode.Text;<br />
            baContact.CreatedBy = User.Identity.Name;<br />
            baContact.CreatedOn = DateTime.Now;<br />
            baContact.LastModifiedBy = User.Identity.Name;<br />
            baContact.LastModifiedOn = DateTime.Now;<br />
            baContact.ContactAddress.Add(this.AddressCntrl1.GetContactAddressEntity(ref dataContext));<br />
            dataContext.SaveChanges();<br />
<br />



I didn't get any requirements for the signature


GeneralRe: Entity Model Insert Pin
Edbert P3-Sep-09 16:46
Edbert P3-Sep-09 16:46 
GeneralRe: Entity Model Insert Pin
ToddHileHoffer4-Sep-09 3:48
ToddHileHoffer4-Sep-09 3:48 
QuestionDynamically populate dropdown dependent on another dropdown using SqlDataSource Pin
rikhav3-Sep-09 2:28
rikhav3-Sep-09 2:28 
AnswerRe: Dynamically populate dropdown dependent on another dropdown using SqlDataSource Pin
Arun Jacob3-Sep-09 2:35
Arun Jacob3-Sep-09 2:35 
QuestionGridView inside UpdatePanel not Uploading Image Pin
.NET- India 3-Sep-09 1:55
.NET- India 3-Sep-09 1:55 
AnswerRe: GridView inside UpdatePanel not Uploading Image Pin
Abhishek Sur3-Sep-09 7:48
professionalAbhishek Sur3-Sep-09 7:48 
GeneralRe: GridView inside UpdatePanel not Uploading Image Pin
.NET- India 3-Sep-09 21:38
.NET- India 3-Sep-09 21:38 
GeneralRe: GridView inside UpdatePanel not Uploading Image [modified] Pin
Abhishek Sur4-Sep-09 7:45
professionalAbhishek Sur4-Sep-09 7:45 
GeneralRe: GridView inside UpdatePanel not Uploading Image Pin
macupryk28-Oct-09 14:58
macupryk28-Oct-09 14:58 
QuestionConnection string for ms access database in website Pin
manish.m.meshram3-Sep-09 1:25
manish.m.meshram3-Sep-09 1:25 
AnswerRe: Connection string for ms access database in website Pin
Not Active3-Sep-09 1:31
mentorNot Active3-Sep-09 1:31 
AnswerRe: Connection string for ms access database in website Pin
Abhishek Sur3-Sep-09 7:59
professionalAbhishek Sur3-Sep-09 7:59 
Questionpassing session details from user control Pin
dotnetcsharpdev3-Sep-09 0:49
dotnetcsharpdev3-Sep-09 0:49 
AnswerRe: passing session details from user control Pin
Not Active3-Sep-09 1:33
mentorNot Active3-Sep-09 1:33 
GeneralRe: passing session details from user control Pin
dotnetcsharpdev3-Sep-09 1:37
dotnetcsharpdev3-Sep-09 1:37 
GeneralRe: passing session details from user control Pin
Not Active3-Sep-09 2:01
mentorNot Active3-Sep-09 2:01 
GeneralRe: passing session details from user control Pin
dotnetcsharpdev3-Sep-09 5:45
dotnetcsharpdev3-Sep-09 5:45 

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.