handlewithbeer
Newcomer
hoping someone can point me in the right direction. I have some javascript dropdowns on a form, and want to pass the selected values of those ddl's to the server. so, I set a non-asp label to equal the values of both dropdowns. I now want to get that string, and pass it to the server. the problem is, anything on the client side will obviously not be "seen" server side, and that includes the code behind in my app.
here's the function code on the html view
the label on the page will successfully show the values from the dropdown list, or select as javascript calls it, but I need that string to be passed to the server, ie, in my VB codebehind, I need to access the "text" of the label. how can I do this?
any assistance appreciated!
here's the function code on the html view
Code:
function showItems()
{
var country = document.Form1.selCountry.value;
var province = document.Form1.selProv.value;
if ((country == '0') || (province == 'C0'))
{
alert('required! country and/or province');
}
else
{
var myString = document.Form1.selCountry.value + ' ' + document.Form1.selProv.value;
lblTest.innerText = myString;
}
}
the label on the page will successfully show the values from the dropdown list, or select as javascript calls it, but I need that string to be passed to the server, ie, in my VB codebehind, I need to access the "text" of the label. how can I do this?
any assistance appreciated!