开发者

class file to insert data

I have a insert statement in my aspx.cs which takes like 40 paramters

InsertDetailsforBusiness(Profile_Id, C, MID, User_ID, Fullnamee, Gender, Age, Height, complexion, marital_status, Region_or_District, Diet, Profil开发者_开发问答e_Description, Hobbies, WebProfile_Registered_at_FMM_By, dtReg,
           Education, Educational_Degrees, , Education_Medium, Job_Designation, Company_Name, Company_Address, Monthly_Income, Other_Income_Particulars,
       ----------------------------)

So can I write a .cs class file to perform this insert?

This is how I started: In a class file

public string ProfileId { get; set; }
public int CasteId { get; set; }
public int MMBId { get; set; ........

But not sure how to proceed in the aspx.cs where the Sp to insert all the paramters is actually called Thanks Sun


Use Parameterized query or Stored Procedured instead

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜