#1 It's response.write("textToWrite") not response.write="TextToWrite"
#2 I recommend Hyperlink button controls rather than ?font=up and those style command parameters. #3 Response.Write even if you wanted to do that, use Literals instead. http://learnasp.com/freebook/learn/literalsrock.aspx On 10/21/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hello all > > I need to create if else statements in asp.net <http://asp.net>, basically > I want to find out what page I am on and then assign it the appropriate > link, my code looks something like this at mo. > > dim page > > If page = "default.aspx" then > Response.Write = "<a href=""default.aspx?font=up"" > class=""footerlink"">Increase Text</a>" > Else if page = "guidance.aspx" then > Response.Write = "<a href=""default.aspx?font=up"" > class=""footerlink"">Increase Text</a>" > End if > > Obviously this doesn't work and I am getting the following error message > "Overload resolution failed because no accessible 'Write' accepts this > number of arguments" > Can anybody help please? > Thanks > Carol [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/