Hi all, the problem is solved. thanks a lot for trying. Hi shivanshu, I had sent a mail to u, but sadly u did not reply. And solution to the problem in windows and web are totally different.
Quick209, There is no need to use AJAX/ATLAS (once I tried to implement ATLAS, it seems too complicated...). Here is the solutions I found out...
-------------------------------------------
1. First of all copy/paste this javascript function
<script language="javascript">
function selectListBoxAll()
{
var Sellistbox = document.getElementById("ControlName");
for( len = 0; len < Sellistbox.options.length; len++ )
{
Sellistbox.options[len].selected = true;
}
document.getElementById("HiddenButton_ControlName" ).click();
}
</script>
2. u should have a html button run at server(which is hidden). And one more html button which will execute the javascript function.
<div style="display:none">
<input type="button" id="HidBut" value="" runat="server"
causesvalidation="False" onserverclick="btnUpdate_Click" />
</div>
<input type="button" id="Update" value= "Update" onclick="selectListBoxAll()" />
3. u can access the contents of the second listbox with this codeâ¦
lblMessage.Text = Request["ControlName"];
This code will return all the selected listitem values of the 2nd listbox (, separated).
Then u can split the string and use the valuesâ¦
if u dont understand any part of it, u can mail me at..
[email protected]
Vikram