Do you have to do all this in javascript? I'd probably:
a. Create a LinkButton (in each row of what I presume is a datagrid)
b. Trap ItemCommand
c. Within ItemCommand, go find the control, get the values to build your
query string, and redirect to that page (although you'll get a menu bar on
the new window).
d. On ItemDataBound, attach javascript to prompt for delete confirmation
behind each button.
Or, you can create a public function on the page to escape your string for
javascript and return the clean version to your databinder.eval.
Or, you can probably make the syntax below work...try alternating the single
and double quotes and cutting out some of the double doubles.
hth,
Bill
"u_heet" wrote:
What I'm trying to do is when a hyperlink is clicked pass a value that looks
like \\Blah\blah\Blah to another .aspx page via a querystring. But what the
other page receives is \BlahblahBlah. I tried using server.urlencode but I
can't seem to get it to work. PLEASE HELP! Here's what code below...
NavigateUrl='<%# "javascript:var PopUpWin =
window.open(""deletefiles.aspx?unc_path=" &
DataBinder.Eval(Container.DataItem,"unc_path") & "&username=" &
DataBinder.Eval(Container.DataItem, "username") &
""","""",""status=no,location=no,resizable=yes,wid th=400,height=150"")" %> '
ID="Hyperlink1"/>