Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi There
i am looking for a java script to add list of url to my asp.panel so i can access the list of url from code behind looking some to

<asp:Panel id"lstWikiLinks" runat ="Server" />
appreciate all your help thanks
Posted
Comments
Prasad Khandekar 25-Mar-13 8:20am    
What do you mean by adding url's using javascript and accessing them from code behind. Javascript is going to run on client and code behind will run on the server. If you want to access them from code behind then simplest way will be to post them back using a hidden field.
rushdy20 25-Mar-13 8:33am    
basically what i am trying to do is a
what i am trying to do is a user is searching for a key work in wiki function () which returns a list of possible option and from the client select the relevant option
so what i wanted to do is
to capture this user selected option from list(javascript crated option)
so i want to add selected options to my asp:panel and access the list of selected item from code behind where i can save them in the database
e.g
jave function
AddtoPanle(url,title)
{
var wl =document.getElementById('divWikis');

var link;
link = document.createElement('Option');
link.text=title;
link.value = href;
wl.add(link);
}

and a way to access the list from code behind to save them to db

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900