paddylast

paddylast

  • NA
  • 12
  • 0

url parameters

Apr 27 2005 11:59 AM
I'm trying the following: <%@ Page Language="C#"%> <%@Import Namespace="System.Web.Mail" %> but get error Server Error in '/' Application. -------------------------------------------------------------------------------- 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. Compiler Error Message: CS1519: Invalid token '=' in class, struct, or interface member declaration Source Error: Line 11: MailMessage msgMail = new MailMessage(); Line 12: // Set message properties Line 13: msgMail.From = Request.QueryString["from"]; Line 14: msgMail.To = Request.QueryString["to"]; Line 15: msgMail.Cc = Request.QueryString["cc"]; Source File: c:\inetpub\wwwroot\sendmailcsharp.aspx Line: 13 Can anyone help please? Thanks

Answers (1)