Need Help ti create User Control in ASP.NET

Posted by Sagarsj under ASP.NET on 3/22/2012 | Points: 10 | Views : 692 | Status : [Member] | Replies : 4
Hello all,

I've created a user control in asp.net. Please refer the attached sreen shot.
i am able to use it for only one instance.
i want to use that user control several times in a page with deffrent values according to the users
similar to how we use DropDownlist, listbox etc .
Please help. Its urgent task for me,

Thanx in advance. and Please refer the attached screen shot.

Sagar


Responses

Posted by: Rajni.Shekhar on: 3/22/2012 [Member] Bronze | Points: 25

Up
0
Down
You can use user control several time by different ids. or just drag and drop your user control to page/form so it will create different ids. it is possible.

Thanks,
Rajni Shekhar

Sagarsj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Leo.Zhang on: 3/22/2012 [Member] Starter | Points: 25

Up
0
Down
You can use different key to identity control. that need your control to support it.

Sagarsj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksamantaray on: 3/22/2012 [Member] Silver | Points: 25

Up
0
Down
Hi Sagarsj,
If you look at your 3rd point:
i want to use that user control several times in a page with deffrent values according to the users
A single page can be accessible by a single user , so how several instance of same user control will have different data?
Of course you can add a user control many time to the same page.

Thanks,
Sanjay

Sagarsj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarsj on: 3/22/2012 [Member] Starter | Points: 25

Up
0
Down
Hello all,
Thnx for the reply .

The problem wat i am facing is,

i've taken the user control 4 times in a page with deffrent ids. and m sending diffrent datasource i.e DataSet to the those control to bind the values.
but in all control its taking same values even i sent different datasources to each control.




Sagar

Sagarsj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response