.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

How to

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

Hi,


 BurnbetDataDataContext db = new BurnbetDataDataContext();

        MembershipUser myObject = Membership.GetUser();
        string UserID = myObject.ProviderUserKey.ToString();

        tbl_Payments tbl_Payments = new tbl_Payments()

         {

             UserId  = UserID,
             PaymentId = 1,
             PaymentType = DropDownList4.Text,

         };


        List<tbl_Payments> ie = new List<tbl_Payments>();


        /////////////////////////////////////




        /////////////////////////////////////


        ie.Add(tbl_Payments);
        db.tbl_Payments.InsertAllOnSubmit(ie);
        db.SubmitChanges();

This code works!


But I wonder whether the same code can be included in additional tbl_PaymentDetails tbl_PaymentDetails creditcardnumber = new ()?


This is not works!

tbl_Payments tbl_Payments = new tbl_Payments()
tbl_PaymentDetails tbl_PaymentDetails creditcardnumber = new ()


Thanks.




View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend