2
Answers

Duplicate web controls on a form

Photo of paul walker

paul walker

15y
2.6k
1

Hi,
Apologies for this question, I'm sure that it very basic....
I have a form and I want to put two controls that display a drop-down of currency codes.  It is to calculate an amount from a 'from' and a 'to' currency.
We have a generic Currency User Control that is suitable, but I want to run a slightly different bit of SQL to populate the dropdown when the form loads.
Can anyone provide me with an example and an explanation of how to do it?
Thanks
Paul

Answers (2)

0
Photo of Muralidharan Deenathayalan
NA 11.9k 1.5m 12y
Here is another simple of doing this.

DECLARE @listContactIdStr VARCHAR(MAX)
select  @listContactIdStr COALESCE(@listContactIdStr+',' ,'') +ContactId from dbo.ContactGroupReln where ContactGroupId=@ContactGroupId

SELECT 
@listContactIdStr

Please let me know, if it is not helping you.
0
Photo of Anurag Sarkar
NA 2.4k 308k 12y
Please check this link and try the query out there http://www.c-sharpcorner.com/UploadFile/ff2f08/comma-separated-value-in-sql-query/