Click here to Skip to main content
15,914,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i paas the value from one textbox to another textbox by query string so it is not accepting special cheracters like &...
Posted
Updated 26-Oct-13 2:39am
v2

1 solution

A simple googling would have given you a alot of answers, however have a look at the below link:

http://stackoverflow.com/questions/17131869/how-to-pass-special-characters-as-query-string-in-url[^]
 
Share this answer
 
Comments
sanjaysgh 26-Oct-13 6:59am    
but i am trying to passs string through Javascript
sanjaysgh 26-Oct-13 6:59am    
and my code is

<script type="text/javascript">

function openEditorWindow(forumID) {
var oReadingWnd = radopen("~/AddArchives.aspx?id=" + forumID);
oReadingWnd.Center();
}
</script>
<script type="text/javascript">
function GetTextBoxValue() {

var hyp = document.getElementById('<%= JournalName.ClientID %>');

var hyp1 = document.getElementById('<%= hplAddAcrhives.ClientID %>');
//alert(hyp.innerHTML + 'su' + hyp.innerText);
hyp.innerHTML = 'New Text';
//alert(hyp.innerHTML);
hyp1.href = 'AddArchives.aspx?JournalName=' + (hyp.value);
}
Anurag Sinha V 26-Oct-13 7:03am    
http://stackoverflow.com/questions/6750183/special-characters-in-url-query-string
have a look
Anurag Sinha V 26-Oct-13 7:00am    
Then mention Javscript in your question too..How will people assume here what are u thinking or using?
sanjaysgh 26-Oct-13 7:05am    
i paste the code above

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