Quantcast
Channel: Off-Topic Posts (Do Not Post Here) forum
Viewing all articles
Browse latest Browse all 14169

Adding string quotes in runtime javascript in asp.net

$
0
0

I'm trying to write java script at runtime in which i have to find the radiobuttonlist at runtime but i have to pass it name in string datatype

Dim scriptText AsString=""
        scriptText &="function DisplayCharCount(){

        scriptText &= " console.log(document.getElementById(**RadioButtonList1**));"

        scriptText &= "}"
        ClientScript.RegisterClientScriptBlock(Me.GetType(), _"CounterScript", scriptText, True)

RadioButtonList1 should be enter in from string like "RadioButtonList1" so how i m suppose to do that?


Viewing all articles
Browse latest Browse all 14169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>