What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 23910 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > how to send 100 controls data to db sp as parameters? ...
Rajendra.prasad

how to send 100 controls data to db sp as parameters?

Replies: 5 | Posted by: Rajendra.prasad on 5/6/2011 | Category: ASP.NET Forums | Views: 437 | Status: [Member] | Points: 10  


Hi,
how to send 100 controls data to db sp as parameters? Means, in UI there are around 100 controls need to send those controls values as parameters to a sp in DAL layer. how. any idea//

Regards
Rajendra


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Lokesh76
Lokesh76  
Posted on: 5/7/2011 1:52:06 AM
Level: Starter | Status: [Member] | Points: 50

Resolved

As mention by you 100 controls so Its not good idea to pass data in as sqlparameter for each controls rather then this make a variable with complete data string with "|" or any other character which is not used in values itself and then pass to SP as a parameter in DB side separate the values and save to DB.

If you find out of 100 control values some of them is containing large data make them separate.

Thanks
Lokesh Kumar

Rajendra.prasad, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Kumar_jay99
Kumar_jay99  
Posted on: 5/7/2011 7:47:56 AM
Level: Starter | Status: [Member] | Points: 50

Resolved

I think, we can also send 100 controls data through XML and Procedure we can separate it.

Rajendra.prasad, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Lokesh76
Lokesh76  
Posted on: 5/7/2011 11:30:53 AM
Level: Starter | Status: [Member] | Points: 25

Yes agree, thats also good way to doing the same. thanks

Thanks
Lokesh Kumar

Rajendra.prasad, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Vuyiswamb
Vuyiswamb  
Posted on: 5/7/2011 7:01:30 PM
Level: NotApplicable | Status: [Member] [MVP] [Administrator] | Points: 25

Guys tell me,

What kind of Application is Sending 100 paramters to a a StoredProcedure , or to the the database ?

This should be a red alert , that this is not correct, there is something wrong here. You should not help people to do wrong things.

Rajendra.prasad why do want to send 100 paraters , you want to tell me that you have a storedprocedure or a page that accept 100 controls ? i wonder who will be doing data capturing in that application.


Thank you for posting at Dotnetfunda
[Administrator]

Rajendra.prasad, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Rajendra.prasad
Rajendra.prasad  
Posted on: 5/8/2011 3:01:11 AM
Level: Starter | Status: [Member] | Points: 25

Mr. Vuyiswa Maseko,
thanks for your concern. this question is raised by me not for developing an application, rather it was asked to me in an interview.

Regards,
Rajendra

Rajendra.prasad, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 3:06:30 AM