Click here to Skip to main content
15,898,678 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: copy stored procedures using visual studio 2005 Pin
TheEagle19-Jul-07 9:22
TheEagle19-Jul-07 9:22 
GeneralRe: copy stored procedures using visual studio 2005 Pin
doWhileSomething19-Jul-07 10:17
doWhileSomething19-Jul-07 10:17 
GeneralRe: copy stored procedures using visual studio 2005 Pin
TheEagle19-Jul-07 11:06
TheEagle19-Jul-07 11:06 
GeneralRe: copy stored procedures using visual studio 2005 Pin
doWhileSomething19-Jul-07 12:35
doWhileSomething19-Jul-07 12:35 
GeneralRe: copy stored procedures using visual studio 2005 Pin
TheEagle19-Jul-07 18:19
TheEagle19-Jul-07 18:19 
QuestionProblem passing data to javascript Pin
TAK7819-Jul-07 4:49
TAK7819-Jul-07 4:49 
AnswerRe: Problem passing data to javascript Pin
Eduard Keilholz19-Jul-07 5:13
Eduard Keilholz19-Jul-07 5:13 
AnswerRe: Problem passing data to javascript Pin
Guffa19-Jul-07 5:52
Guffa19-Jul-07 5:52 
TAK78 wrote:
I get a javascript error when I try to pass the value.


Standard question #2:
What error message do you get?

TAK78 wrote:
script &= "setImageArr(" & str & ");"


As you have no variable named str in your server code, a new empty variable is created. This code will therefore not put any parameter in the Javascript code. You should have Option Explicit in your code to protect you from inadvertently create variables.


You have to put quotes or apostrophes around the string value in the Javascript code. Also you have to encode the value properly, or you will have problems with certain characters.

Dim script As String = _
   "<script type=""text/javascript"">" + _
   "var str='" + val.Replace("\","\\").Replace("'","\'") + "';" + _
   "alert(str);" + _
   "setImageArr(str);" + _
   "</script>"


---
single minded; short sighted; long gone;

GeneralRe: Problem passing data to javascript Pin
TAK7819-Jul-07 6:07
TAK7819-Jul-07 6:07 
GeneralRe: Problem passing data to javascript Pin
Eduard Keilholz19-Jul-07 6:26
Eduard Keilholz19-Jul-07 6:26 
GeneralRe: Problem passing data to javascript Pin
Vasudevan Deepak Kumar19-Jul-07 7:17
Vasudevan Deepak Kumar19-Jul-07 7:17 
AnswerRe: Problem passing data to javascript Pin
Guffa19-Jul-07 8:02
Guffa19-Jul-07 8:02 
AnswerRe: Problem passing data to javascript Pin
Guffa19-Jul-07 7:59
Guffa19-Jul-07 7:59 
AnswerRe: activating search by pressing enter(keyboard) Pin
Eduard Keilholz19-Jul-07 4:29
Eduard Keilholz19-Jul-07 4:29 
GeneralRe: activating search by pressing enter(keyboard) [modified] Pin
krishnamaneni.anil19-Jul-07 4:41
krishnamaneni.anil19-Jul-07 4:41 
GeneralRe: activating search by pressing enter(keyboard) Pin
Eduard Keilholz19-Jul-07 4:46
Eduard Keilholz19-Jul-07 4:46 
GeneralRe: activating search by pressing enter(keyboard) [modified] Pin
krishnamaneni.anil19-Jul-07 4:57
krishnamaneni.anil19-Jul-07 4:57 
GeneralRe: activating search by pressing enter(keyboard) Pin
Eduard Keilholz19-Jul-07 5:08
Eduard Keilholz19-Jul-07 5:08 
GeneralRe: activating search by pressing enter(keyboard) Pin
kubben19-Jul-07 7:08
kubben19-Jul-07 7:08 
QuestionWebservice security using WSE 3.0 Pin
Eduard Keilholz19-Jul-07 4:17
Eduard Keilholz19-Jul-07 4:17 
QuestionASP .net video tutorilas Pin
ciacia19-Jul-07 4:17
ciacia19-Jul-07 4:17 
AnswerRe: ASP .net video tutorilas Pin
krishnamaneni.anil19-Jul-07 4:37
krishnamaneni.anil19-Jul-07 4:37 
AnswerRe: ASP .net video tutorilas Pin
Vasudevan Deepak Kumar19-Jul-07 7:19
Vasudevan Deepak Kumar19-Jul-07 7:19 
Questionhow to add 3 checkbox per row in htmltable dynamically Pin
rahul.net1119-Jul-07 3:45
rahul.net1119-Jul-07 3:45 
AnswerRe: how to add 3 checkbox per row in htmltable dynamically Pin
S Ullas19-Jul-07 10:36
S Ullas19-Jul-07 10:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.