I have a jQuery function in a .js file, and the function requires a querystring parameter to be passed.
If I try to use the CompositeScript feature in the ScriptManager, it pukes on the file that has the querystring. Is there any way around this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I was trying to do the same thing and the error I got was something like “URL was not a virtual path” so I’m assuming the path must be virtual. So you may not be able to do this as appending the querystring variable to the path will cause the URI to choke.
You could set your variable in the page or masterpage if global, thus you wouldn’t need to pass a querystring.
Might be a way to do what you are accomplishing, but my guess would be that you would have to add in another step, like a route to the jsfile.js?qv=whatever to jsfile.js, or add in an httphandler. Probably more trouble than it is worth.
Just guesses.