Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
stewsterl  
#1 Posted : Monday, January 14, 2008 5:20:27 AM(UTC)
stewsterl

Rank: Member

Groups: Member
Joined: 1/14/2008(UTC)
Posts: 18

I saw this posting http://forums.aurigma.com/yaf_postsm1118.aspx#1118

This does not work for me I get the following error:

Compiler Error Message: BC30037: Character is not valid.d'oh!

Source Error:

Line 458:iu.addParam("MessageMaxFileCountExceededText", "You can select not more then 25 files.");
Line 460:iu.addParam("MaxFileCount", "<% Response.Write(serverSideMaxFileCount); %>");Eh?


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?
Alex Makhov  
#2 Posted : Monday, January 14, 2008 1:09:05 PM(UTC)
Alex Makhov

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.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
stewsterl  
#3 Posted : Wednesday, January 16, 2008 5:35:07 AM(UTC)
stewsterl

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

Fedor  
#4 Posted : Wednesday, January 16, 2008 1:09:57 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

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
stewsterl  
#5 Posted : Thursday, January 17, 2008 2:58:21 AM(UTC)
stewsterl

Rank: Member

Groups: Member
Joined: 1/14/2008(UTC)
Posts: 18

Thank you for your response....

It was the semicolon ;
Fedor  
#6 Posted : Sunday, January 27, 2008 6:53:18 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
BTW, in ASP.NET you can set properties using
Image Uploader ASP.NET Control.
Best regards,
Fedor Skvortsov
Users browsing this topic
Guest
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.