Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript And ASPX

 
Yans Tan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

First I got to apologise for posting this if it is not at the correct place. Just like to check with you guys if anyone had worked with vb.net before?

I am trying to do some javascript in it. I have no idea how to parse a value in. But i know hw to refer to the file. Should I declare the entire .js file in or parse value to the .js file?

Thanks in advance

Regards
Yans
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea how to parse a value in. But i know hw to refer to the file. Should I declare the entire .js file in or parse value to the .js file?


What are you trying to do? What is parse a value? trying to read a form field value?

Eric
 
Yans Tan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Thanks for replying. I am actually referring to like parsing variables declared in vb.net into the .js files.

For example,

menus[0].addItem("", "", 25, "left", "Diploma", 1);

I wonder if it is possible to change the second last field "Diploma" to a var. From there some how parse in the values from vb.net. Or maybe declare the entire javascript in the vb.net?

Thanks in advance

Regards
Yans
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RegisterClientScriptBlock and RegisterStartupScript

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic