EDN Admin
Well-known member
Hi All
<span style="color:#222222; font-family:arial,sans-serif; font-size:13px I have a webform, and every drop down list answer for the question in the webform is recorded in number. eg:
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
Question 1: During the past week, have you fought with ur husband?
<br />
<cc1:WebformDDL ID="DDL1" runat="server" CssClass="DDL" onchange="unhook()" >
<asp:ListItem>Please Select</asp:ListItem>
<asp:ListItem Value="0 Rarely or none of the time (less than 1 day)</asp:ListItem>
<asp:ListItem Value="1 Some or a little of the time (1-2 days)</asp:ListItem>
<asp:ListItem Value="2 Occasionally or a moderate amount of the time (3-4 days)</asp:ListItem>
<asp:ListItem Value="3 Most or all of the time (5-7 days)</asp:ListItem>
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px So if the user choose "Rarely or none of the time (less than 1 day)", it will generate 0 in the database.
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px <span style="color:#222222; font-family:arial,sans-serif; font-size:x-small I have a task to translate all of the drop down list in my webforms (there are hundreds of
them) which is not very practicable to be done manually. The result of the translation should be similar like this
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px Question1 During the past week, have you fought with ur husband?
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
0=Rarely or none of the time (less than 1 day)</asp:ListItem>
1= Some or a little of the time (1-2 days)</asp:ListItem>
2 =Occasionally or a moderate amount of the time (3-4 days)</asp:ListItem>
3= Most or all of the time (5-7 days)
Question 2 have you eaten any soy product for the last 3 days?
<span style="white-spacere 0= dont know
<span style="white-spacere 1=no
<span style="white-spacere 2=yes
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px Is it possible to transform the .net code into an xml or csv or any other database file automatically instead of copying and pasting all of the 100 DDL values and modifying them one by
one to translet them? Thanks
View the full article
<span style="color:#222222; font-family:arial,sans-serif; font-size:13px I have a webform, and every drop down list answer for the question in the webform is recorded in number. eg:
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
Question 1: During the past week, have you fought with ur husband?
<br />
<cc1:WebformDDL ID="DDL1" runat="server" CssClass="DDL" onchange="unhook()" >
<asp:ListItem>Please Select</asp:ListItem>
<asp:ListItem Value="0 Rarely or none of the time (less than 1 day)</asp:ListItem>
<asp:ListItem Value="1 Some or a little of the time (1-2 days)</asp:ListItem>
<asp:ListItem Value="2 Occasionally or a moderate amount of the time (3-4 days)</asp:ListItem>
<asp:ListItem Value="3 Most or all of the time (5-7 days)</asp:ListItem>
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px So if the user choose "Rarely or none of the time (less than 1 day)", it will generate 0 in the database.
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px <span style="color:#222222; font-family:arial,sans-serif; font-size:x-small I have a task to translate all of the drop down list in my webforms (there are hundreds of
them) which is not very practicable to be done manually. The result of the translation should be similar like this
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px Question1 During the past week, have you fought with ur husband?
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
0=Rarely or none of the time (less than 1 day)</asp:ListItem>
1= Some or a little of the time (1-2 days)</asp:ListItem>
2 =Occasionally or a moderate amount of the time (3-4 days)</asp:ListItem>
3= Most or all of the time (5-7 days)
Question 2 have you eaten any soy product for the last 3 days?
<span style="white-spacere 0= dont know
<span style="white-spacere 1=no
<span style="white-spacere 2=yes
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px
<div style="color:#222222; font-family:arial,sans-serif; font-size:13px Is it possible to transform the .net code into an xml or csv or any other database file automatically instead of copying and pasting all of the 100 DDL values and modifying them one by
one to translet them? Thanks
View the full article