i have an asp.net app with vb.net on the backend.
I have a search page that take an input. when the submit button is pressed im querying a database and build a table on the server in html. i am then trying to insert the table into the <DIV> to be viewed by the client but I am having trouble accessing the div tag by its ID and assigning the table html to the innerHTML of the DIV.
among the different ways ive tried are as follows:
Response.Write("<script>document.getElementById(divtag).innerHTML=" & TableHTML &"</script>")
Response.Write("<script>document.all.divtag.innerHTML=" & TableHTML &"</script>")
Response.Write("<script>divtag.innerHTML=" & TableHTML &"</script>")
none of these have worked? what am i doing wrong?
I have a search page that take an input. when the submit button is pressed im querying a database and build a table on the server in html. i am then trying to insert the table into the <DIV> to be viewed by the client but I am having trouble accessing the div tag by its ID and assigning the table html to the innerHTML of the DIV.
among the different ways ive tried are as follows:
Response.Write("<script>document.getElementById(divtag).innerHTML=" & TableHTML &"</script>")
Response.Write("<script>document.all.divtag.innerHTML=" & TableHTML &"</script>")
Response.Write("<script>divtag.innerHTML=" & TableHTML &"</script>")
none of these have worked? what am i doing wrong?