473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

asp.net + sql same entries for multiple user

Hi,

I have created task management systems.

Now the problem is Admin will create the task and once he created the task he may select single or multiple user to assign the task.Users Id will be a forie\egn key of task_details table.

How can I store the same task for multiple user wit same task ID.Should I loop through in store procedure ??
I want to know Only Users multiple but task is single how can I write store procedure ?? How can i check in storeprocedure that userid param have multiple values ?

Can anybody help ???
Jun 9 '12 #1
1 1794
Mudassir
85 64KB
well you will have to create separate tables to manage this kind of relationship, like
Table1 will have following information
TakId,TakName
Table2 will have
UserId,UserName
and Table3 will have
TaskId,UserId (both will be foreign keys here)
and you dont need to execute loop in your stored procedure rather you will have to loop through from your front end i.e write the loop in your code to execute the stored procedure..
Regards
Mudassir
Jun 11 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Lou | last post by:
Please can someone put me out my misery! Im trying to find a multiple user/password protection script that will redirect the specific user to a specific directory. At the moment I have set up...
3
by: KemperR | last post by:
Hello Experts outhere, may be someone can tell me whats going wrong with my ADOX trial. I have an Access 2002 database with some tables and queries (views) The code listed below works well up...
1
by: intl04 | last post by:
Are there any problems with multiple user access to the same Access database on a shared network drive? I have 'shared' chosen for 'default open mode'. As for the record locking properties, I...
1
by: Michał Januszczyk | last post by:
I have the following code on my aspx page <%if(user_status==1){%><ctl:state1 runat="server" id="aaa"></ctl:state1><%}else if(user_status==2){%><ctl:state2 runat="server"...
3
by: Nick | last post by:
Hi, I am working on an eCommerce site, and the home page is split into multiple sections (user controls), whose data is provided from the database. Potentially this page will be cached, but its...
2
by: vcuankitdotnet | last post by:
I have one .aspx page that contains multiple user controls. Based on the form requested, I would like to loop through all of the user controls on the page and display the one requested by using the...
0
by: Maury | last post by:
Hello, I have a question: what happens if multiple user controls (sometime of the same type) write in the same ViewState key ? Each one erase previous values? To avoid this have I to prefix the...
1
by: Valrossen | last post by:
Hi! I have a webpage with one form and multiple user controls. I want to create one (or more) object on Page_Init(), and use/modify this object in one or more usercontrols. How can i do...
3
by: john20 | last post by:
Hi All, I have created web application using vb.net and deployed on the windows 2003 server. what is happening that multiple user cannot access the application means when one user access the...
2
by: oneraven | last post by:
I want to have people search for people by professional function, and limit that search to the areas in which the professional is willing to travel to/work in. The areas are broken down into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.