Hi ca8msm, I did that. The problem is that I'm able to hit code in the DropDownList1_SelectedIndexChanged event but only when I hit the submit button. If I just switch items the event wont fire.
Thank you ca8msm. Your example help me understand how it works. I'm now able to open the desired htm based on the selection chosen in the DropDownList. However, I'm unable to launch the code on DropDownList1_SelectedIndexChanged event. This fires but only when I click a submit button...
Thank you both.
Jmeckley, I'm currently only supplying text to the DropDownList. I will try the 'onchange' event.
Question:
Is this OK?
<asp:DropDownList ID="DropDownList" runat="server" BackColor="White" AutoPostBack="true" />
Or do I need to add an "OnTextChanged" or...
Hi,
I have an asp DropDownList and I'm trying to pass its selected value to javascript.
Like this:
this.DropDownList.Attributes.Add("onclick", "showDiv(this)");
I then have a js file that tries to get that value selected:
var i = null;
function showDiv(obj)
{
i =...
Hi all,
I'm trying to pass the text string of a selected listBox to a javascript code function in the client side. Can someone help me with an example!
Thanks in advance!
Hi all,
I've been trying all day to do some groupings from an xml doc.
The XML I have looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<dataroot>
<List>
<ID>66</ID>
<Title>Title1</Title>
<Mapping>Yes</Mapping>
<Link>L1</Link>
</List>
<List>
<ID>67</ID>...
thank you all...
Earthandfire, I'm trying to apply your approach but in c#, my dropdownlist does not have builtin functions FindString or FindStringExact. Is a ComboBox the same as a DropDownList? Thanks!
Hi all,
I'm trying to output an xslt into an .aspx page. Here's my code:
StringWriter sw = new StringWriter();
try
{
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(xslPath);
XmlDocument xdoc = new XmlDocument()...
Hi,
In my VS project I have an XML doc. I created an XSLT that sorts a node in my XML doc. After I do the transformation of the XML file I would like to re-use it in my program.
I'm not sure how to call it back...
Here's what I have:
xDoc.Load(xmlPath);
XslCompiledTransform...
It seems to me the error lies in the xslt.
The result from the above gives the following:
<html><dataroot>665178: Implementing Conferencing Solutions Using Microsoft Office Communications Server 2007 and Live MeetingLCS 2005/OCS 2007Instructor Led Training3002007-10-03T00:00:00MS LearningUC...
Hi,
I have a DropDownList which source is an XML Doc. However, the items displayed by the DropDownList are not sorted. My Goal is to be able to sort the items in the DropDownList.
I understand that I can achieve the sorting issue via an XSL doc. Is this correct? If so, my attempts have not...
Hi,
I'm working on a web app that displays a couple of dropdownlists (ddl feed from an xml doc). When the app starts the 2 dropdown lists contain the 1st item of their respective lists. What I would like to do is have these values empty until the user makes a selection.
Depending on what the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.