Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hi i need to put all datas into a asp:dropdownlist tag in xslt i did it by putting
xmlns:asp="remove"
and here is my code:
<form name="myForm" action="" runat="server" method="post"> <!--<asp:DropDownList ID="mylist" runat="server" OnChange="location='{umbraco.library:NiceUrl($currentPage/@id)}?DeptName='+document.myForm.mylist.options[document.myForm.mylist.selectedIndex].value" style="font-family:Arial;font-size:X-Small;">--> <asp:DropDownList ID="mylist" runat="server" OnChange="location='{umbraco.library:NiceUrl($currentPage/@id)}?DeptName='+document.myForm.mylist.options[document.myForm.mylist.selectedIndex].value" style="font-family:Arial;font-size:X-Small;"> <asp:ListItem>-Department-</asp:ListItem> <xsl:variable name="topicList" select="umbraco.library:GetPreValues('1107')"/> <xsl:for-each select="$topicList//preValue"> <!-- <option value="{@id}"> <xsl:value-of select="current()"/> </option>--> <asp:ListItem><xsl:value-of select="current()"/></asp:ListItem> </xsl:for-each> <!-- </asp:DropDownList><br/>--> </asp:DropDownList> </form>
Here is my output in the webpage:
-Department-AccountingCharteringFinanceHuman ResourcesITManagementOperationTechnicalTraineexxxx
but i cannot display teh asp:dropdownlist
any help will be useful
Hi Max,
Why do you need to use an DropDownList?
Could you not use a select box with options?
Ben
Hi Max
If you really need to use the .NET control you should consider using a user control for this instead.
As Ben says you should use a html select box within the XSLT file.
/Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
asp:dropwdownlist from xslt
hi i need to put all datas into a asp:dropdownlist tag in xslt i did it by putting
xmlns:asp="remove"
and here is my code:
<form name="myForm" action="" runat="server" method="post">
<!--<asp:DropDownList ID="mylist" runat="server" OnChange="location='{umbraco.library:NiceUrl($currentPage/@id)}?DeptName='+document.myForm.mylist.options[document.myForm.mylist.selectedIndex].value" style="font-family:Arial;font-size:X-Small;">-->
<asp:DropDownList ID="mylist" runat="server" OnChange="location='{umbraco.library:NiceUrl($currentPage/@id)}?DeptName='+document.myForm.mylist.options[document.myForm.mylist.selectedIndex].value" style="font-family:Arial;font-size:X-Small;">
<asp:ListItem>-Department-</asp:ListItem>
<xsl:variable name="topicList" select="umbraco.library:GetPreValues('1107')"/>
<xsl:for-each select="$topicList//preValue">
<!-- <option value="{@id}">
<xsl:value-of select="current()"/>
</option>-->
<asp:ListItem><xsl:value-of select="current()"/></asp:ListItem>
</xsl:for-each>
<!-- </asp:DropDownList><br/>-->
</asp:DropDownList>
</form>
Here is my output in the webpage:
-Department-AccountingCharteringFinanceHuman ResourcesITManagementOperationTechnicalTraineexxxx
but i cannot display teh asp:dropdownlist
any help will be useful
Hi Max,
Why do you need to use an DropDownList?
Could you not use a select box with options?
Ben
Hi Max
If you really need to use the .NET control you should consider using a user control for this instead.
As Ben says you should use a html select box within the XSLT file.
/Jan
is working on a reply...