Rank: Member
Groups: Member
Joined: 1/14/2008(UTC) Posts: 18
|
I saw this posting http://forums.aurigma.com/yaf_postsm1118.aspx#1118This does not work for me I get the following error: Compiler Error Message: BC30037: Character is not valid.
Source Error:
Line 458:iu.addParam("MessageMaxFileCountExceededText", "You can select not more then 25 files."); Line 460:iu.addParam("MaxFileCount", "<% Response.Write(serverSideMaxFileCount); %>"); I have a public variable called serverSideMaxFileCount in my .vb code behind file. When a user selects a gallery, I get the image count and I'm trying to set the MaxFileCount so the user does not exceed the 25 images quota. What am I doing wrong? Anyone?
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, I think you should check what you really have in serverSideMaxFileCount variable. Try to use the following code: Code:alert("<% Response.Write(serverSideMaxFileCount); %>");
It could help. |
|
|
|
|
Rank: Member
Groups: Member
Joined: 1/14/2008(UTC) Posts: 18
|
okay. I'm using ASP.NET 2.0 with VB.NET code behind. example: default.aspx.vb Code:alert("<% Response.Write(serverSideMaxFileCount); %>"); is not valid in Javascript
What is <% and %>? Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Quote:Compiler Error Message: BC30037: Character is not valid.
Source Error:
Line 13: function checkvalue(){ Line 14: Line 15: alert("<% Response.Write(imagecount); %> "); Line 16: } Line 17: Edited by user Sunday, January 27, 2008 6:54:07 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,659
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
In VB.NET you should not use semicolon in the end of statement: Code:alert("<% Response.Write(imagecount) %> ");
|
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 1/14/2008(UTC) Posts: 18
|
Thank you for your response....
It was the semicolon ;
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,659
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
|
Best regards, Fedor Skvortsov
|
|
|
|
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.