-
The problem is that the original string only has a single \ so I don't think the double \\ in the replace is found.
richyrich, May 7th, 2009 11:46 AM
-
OK. I think I've found the problem.
I was registering the clientscript inside a if not ispostback section, so when I uploaded a document it was posting back and the clientscript wasn't registering on postback.
Even though when I view the source I see a reference to the .js file. I moved it outside the if not ispostback and the error has stopped.
I had already altered the script to use a double slash (\\) in my code, but am going to change this back to see if it will work without the double slash.
richyrich, May 7th, 2009 12:54 PM
-
Yep. That was the problem.
It works fine with just single slashes. It was registering the clientscript that was the issue.
richyrich, May 7th, 2009 01:01 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Bookmarks