0

I would like to set a value:

    $('#swfupload').swfupload({
        upload_url: "uploadResume.aspx",
        file_post_name: 'uploadfile',
        post_params : {"session_guid" : [HERE]}
    });

...where [HERE] is the placeholder for my value, from my code behind in ASP.NET before the page is rendered. I generate a guid, and I need that apart of the script on the page. How can I accomplish this?

Thanks, George

2 Answers 2

3

if it's a public or protected variable you can do

'<%= session_guid %>'

where session_guid is the name of your public or protected variable.

Sign up to request clarification or add additional context in comments.

1 Comment

fixed the answer to include that.
0

IF the script is IN the markup just use <%= sessionGuid %>, if the script is included then set a var in a preceeding script tag and reference it in the upload.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.