Click here to Skip to main content
15,922,584 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionfunctions in standalone .aspx files not allowed?? SOLVED - IGNORE ME *SIGH* Pin
l a u r e n17-Dec-10 5:08
l a u r e n17-Dec-10 5:08 
seems weird to me but when i try to put a function in a standalone .aspx file i get weird errors

so the file "blah.aspx" starts like:

<%@ Page Language="C#"%>
<%
Response.Write("hellow world");
myFunc();
Response.Write("Bye Bye Cruel World");


bool myFunc()
{
return true;
}

%>


and it won't compile ... says "} expected" and then a bunch of stuff about delegates etc in some randomly named files

anybody got any clue?
thnx

"mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

modified on Friday, December 17, 2010 11:27 AM

AnswerRe: functions in standalone .aspx files not allowed?? SOLVED - IGNORE ME *SIGH* Pin
_Erik_17-Dec-10 5:33
_Erik_17-Dec-10 5:33 
QuestionStoping the Flickering Pin
Vimalsoft(Pty) Ltd16-Dec-10 20:20
professionalVimalsoft(Pty) Ltd16-Dec-10 20:20 
GeneralRe: Stoping the Flickering Pin
Ankur\m/16-Dec-10 20:33
professionalAnkur\m/16-Dec-10 20:33 
GeneralRe: Stoping the Flickering Pin
Vimalsoft(Pty) Ltd16-Dec-10 20:35
professionalVimalsoft(Pty) Ltd16-Dec-10 20:35 
GeneralRe: Stoping the Flickering Pin
Ankur\m/16-Dec-10 20:44
professionalAnkur\m/16-Dec-10 20:44 
AnswerRe: Stoping the Flickering Pin
Ankur\m/16-Dec-10 20:46
professionalAnkur\m/16-Dec-10 20:46 
GeneralRe: Stoping the Flickering Pin
Vimalsoft(Pty) Ltd16-Dec-10 20:52
professionalVimalsoft(Pty) Ltd16-Dec-10 20:52 
GeneralRe: Stoping the Flickering<Resolved> Pin
Vimalsoft(Pty) Ltd17-Dec-10 10:28
professionalVimalsoft(Pty) Ltd17-Dec-10 10:28 
GeneralRe: Stoping the Flickering Pin
Ankur\m/17-Dec-10 18:24
professionalAnkur\m/17-Dec-10 18:24 
QuestionConfirmation Message Box in Code Behind Asp.Net [modified] Pin
priyagee16-Dec-10 18:27
priyagee16-Dec-10 18:27 
AnswerRe: Confirmation Message Box in Code Behind Asp.Net Pin
Hiren solanki16-Dec-10 19:00
Hiren solanki16-Dec-10 19:00 
GeneralRe: Confirmation Message Box in Code Behind Asp.Net Pin
priyagee16-Dec-10 19:33
priyagee16-Dec-10 19:33 
QuestionRe: Confirmation Message Box in Code Behind Asp.Net Pin
Hiren solanki16-Dec-10 20:03
Hiren solanki16-Dec-10 20:03 
AnswerRe: Confirmation Message Box in Code Behind Asp.Net Pin
priyagee16-Dec-10 20:53
priyagee16-Dec-10 20:53 
AnswerRe: Confirmation Message Box in Code Behind Asp.Net Pin
Hiren solanki17-Dec-10 3:04
Hiren solanki17-Dec-10 3:04 
GeneralRe: Confirmation Message Box in Code Behind Asp.Net Pin
PunkIsNotDead17-Dec-10 7:11
PunkIsNotDead17-Dec-10 7:11 
QuestionConverting Linq to Sql query to Linq to entity Pin
Swiftain16-Dec-10 14:24
Swiftain16-Dec-10 14:24 
AnswerRe: Converting Linq to Sql query to Linq to entity Pin
Swiftain16-Dec-10 15:07
Swiftain16-Dec-10 15:07 
QuestionCreate listviews at runtime (dynamic) with checkboxes Pin
r_raman9916-Dec-10 6:44
r_raman9916-Dec-10 6:44 
AnswerJust a TIP Pin
Hiren solanki16-Dec-10 18:54
Hiren solanki16-Dec-10 18:54 
QuestionIIS / Development Server Pin
Jammer16-Dec-10 3:34
Jammer16-Dec-10 3:34 
AnswerRe: IIS / Development Server Pin
scottgp16-Dec-10 4:21
professionalscottgp16-Dec-10 4:21 
GeneralRe: IIS / Development Server Pin
Jammer16-Dec-10 4:32
Jammer16-Dec-10 4:32 
QuestionWebServices in several servers Pin
Dirso16-Dec-10 3:01
Dirso16-Dec-10 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.