Rank: Member
Groups: Member
Joined: 12/5/2007(UTC) Posts: 2
|
Heylo, I was wondering if anybody can help me figure out how to dynamically update the RedirectURL coded within the javascript you embed in an aPage.aspx, from the codebehind code (aPage.aspx.cs) associated with the aPage.aspx? I can't see a way to update the <% albumiID %> in the example below from my .aspx.cs codebehind logic. Code://Configure URL files are uploaded to.
iu.addParam("Action", "upload.aspx");
//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "albumDetails?albumId=<%= albumID %>");
Edited by user Monday, February 25, 2008 3:24:08 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 12/5/2007(UTC) Posts: 2
|
OK, I read the redirectURL documentation, and understand to use the get property, but that doesn't answer the question I asked -- which was
How can I pass the variable value from the .aspx.cs codebehind page to the javascript in the .aspx page? |
|
|
|
|
Rank: Advanced Member
Groups: Joined: 8/3/2003(UTC) Posts: 998
|
Hello, You use correct syntax. What error do you receive? BTW, you can use Image Uploader ASP.NET Control also. In this you case you can set RedirectUrl property right from codebehind: Code:ImageUploader1.RedirectUrl = "albumDetails?albumId=" + albumID;
Edited by user Monday, February 25, 2008 3:29:45 PM(UTC)
| Reason: Not specified |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.