Går det använda ett konto för att skicka e-mail från ett formulär på en hemsida om det krävs "servern kräver autentisering" ??? Jag förmodar att du känner till Namespacet: Jag förmodar att du känner till Namespacet: Jag förmodar att du känner till Namespacet:servern kräver autentisering på en ASP.NET sida??
Sv: servern kräver autentisering på en ASP.NET sida??
<code>
System.Web.Mail
</code>
Som du säkert vet kan du inte direkt använda klassen
<code>
SmtpMail
</code>
för att åstadkomma det du söker. Men du kan skriva dina egna klasser för detta. Kolla de 2 klasserna nedan för att få ett hum om hur detta kan göras (C#):
<code>
using System;
using System.Text;
using System.Net.Sockets;
namespace NetSamplesCS.Components
{
/// <summary>
/// Class connection to the SMTP Server that requires authentication
/// </summary>
public class SMTPClient : System.Net.Sockets.TcpClient
{
/// <summary>
/// Method to verify if connection to the SMTP Server was established
/// </summary>
/// <returns>True if connection was established/False if conenction failed</returns>
public bool isConnected()
{
return Active;
}
public void SendCommandToServer(string Command)
{
System.Net.Sockets.NetworkStream ns = this.GetStream();
byte[] WriteBuffer;
WriteBuffer = new byte[1024];
ASCIIEncoding en = new ASCIIEncoding();
WriteBuffer = en.GetBytes(Command);
ns.Write(WriteBuffer,0,WriteBuffer.Length);
return;
}
public string GetServerResponse()
{
int StreamSize;
string ReturnValue = "";
byte[] ReadBuffer;
System.Net.Sockets.NetworkStream ns = this.GetStream();
ReadBuffer = new byte[1024];
StreamSize = ns.Read(ReadBuffer,0,ReadBuffer.Length);
if (StreamSize==0)
{
return ReturnValue;
}
else
{
ASCIIEncoding en = new ASCIIEncoding();
ReturnValue = en.GetString(ReadBuffer);
return ReturnValue;
}
}
public bool DoesStringContainSMTPCode(string s, string SMTPCode)
{
return (s.IndexOf(SMTPCode, 0 , 10)== -1) ? false : true;
}
} /// End Class SMTPClient
/// <summary>
/// Class to send the actual message to the Server requiring authentication
/// </summary>
public class SMTPMail
{
private string _SMTPServerIP = "";
private string _errmsg = "";
private string _ServerResponse = "";
private string _MailFrom = "";
private string _MailTo = "";
private string _MailData = "";
private string _Subject = "";
private string _Identity = "";
private string _Password="";
public string Subject // This property contains Subject of email
{
set
{
_Subject = value;
}
}
public string Identity // This property contains Sender's Identity
{
set
{
_Identity = value;
}
}
public string MailFrom // This property contains sender's email address
{
set
{
_MailFrom = value;
}
}
public string MailTo // This property contains recepient's email address
{
set
{
_MailTo = value;
}
}
public string MailData // This property contains email message
{
set
{
_MailData = value;
}
}
public string SMTPServerIP // This property contains of SMTP server IP
{
get
{
return _SMTPServerIP;
}
set
{
_SMTPServerIP = value;
}
}
public string ErrorMessage // This property contais error message
{
get
{
return _errmsg;
}
}
public string ServerResponse // This property contains server response
{
get
{
return _ServerResponse;
}
}
public string Password
{
set
{
_Password=value;
}
}
public void SendMail()
{
try
{
string ServerResponse;
SMTPClient tcp = new SMTPClient();
tcp.Connect(SMTPServerIP, 25); // first connect to smtp server
bool blnConnect = tcp.isConnected();
// test for successful connection
if (!blnConnect)
{
_errmsg = "Connetion Failed...";
return;
}
//read response of the server
ServerResponse = tcp.GetServerResponse();
if (tcp.DoesStringContainSMTPCode(ServerResponse,"220"))
{
_ServerResponse += ServerResponse;
}
else
{
_errmsg = "connection failed" + ServerResponse;
return;
}
string[] SendBuffer = new string[9];
string[] ResponseCode = {"220","334","235","250","251","354","221"};
string StrTemp = "";
StrTemp = string.Concat("HELO ",_Identity);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[0] = StrTemp;
StrTemp="";
StrTemp=string.Concat("AUTH LOGIN","\r\n");
SendBuffer[1]=StrTemp;
StrTemp="";
string EncodedFrom = System.Convert.ToBase64String(Encoding.Default.GetBytes(_MailFrom));
StrTemp=string.Concat(EncodedFrom,"\r\n");
SendBuffer[2]=StrTemp;
StrTemp="";
string EncodedPass =System.Convert.ToBase64String(Encoding.Default.GetBytes(_Password));
StrTemp=string.Concat(EncodedPass,"\r\n");
SendBuffer[3]=StrTemp;
StrTemp = "";
StrTemp = string.Concat("MAIL FROM: ",_MailFrom);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[4] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("RCPT TO: ",_MailTo);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[5] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("DATA","\r\n");
SendBuffer[6] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("From: ",_MailFrom );
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,"To: " );
StrTemp = string.Concat(StrTemp,_MailTo);
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,"Subject: " );
StrTemp = string.Concat(StrTemp,_Subject);
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,_MailData);
StrTemp = string.Concat(StrTemp,"\r\n.\r\n");
SendBuffer[7] = StrTemp;
StrTemp = "";
StrTemp = string.Concat(StrTemp,"QUIT\r\n");
SendBuffer[8] = StrTemp;
int i = 0;
/* for debugging
_errmsg = "";
for(i=0;i<5;i++)
{
_errmsg += SendBuffer[i];
+= "
";
}
return;
// end of debugging
*/
while(i < SendBuffer.Length)
{
tcp.SendCommandToServer(SendBuffer[i]);
ServerResponse = tcp.GetServerResponse();
for(int j=0;j!=ResponseCode.Length;j++)
{
bool ok = tcp.DoesStringContainSMTPCode(ServerResponse, ResponseCode[j]);
if (ok)
{
_ServerResponse += ServerResponse;
_ServerResponse += "";
break;
}
else
{
if(j == ResponseCode.Length-1)
{
_errmsg += ServerResponse;
_errmsg += SendBuffer[i];
return;
}
}
}
i++;
} // end of while loop;
}// end of try block
catch(System.Net.Sockets.SocketException se)
{
_errmsg += se.Message + " " + se.StackTrace;
}
catch(System.Exception e)
{
_errmsg += e.Message + " " + e.StackTrace;
}
} // end of SendMail method
} // end of class SMTPMail
}
</code>
Du kan anropa dessa från en Web Form så här:
<code>
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using NetSamplesCS.Components;
namespace NetSamplesCS
{
/// <summary>
/// Summary description for SmptWithAuth.
/// </summary>
public class SmptWithAuth : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
SMTPMail smtp = new SMTPMail();
smtp.SMTPServerIP="mail1.telia.com";
smtp.MailFrom="jag@home.se";
smtp.MailTo="du@home.se";
smtp.Subject="Testar klassen";
smtp.MailData="hej å hå";
smtp.Identity="myID";
smtp.Password="myPwd";
smtp.SendMail();
Response.Write(smtp.ServerResponse);
}
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
</code>Sv: servern kräver autentisering på en ASP.NET sida??
<code>
System.Web.Mail
</code>
Som du säkert vet kan du inte direkt använda klassen
<code>
SmtpMail
</code>
för att åstadkomma det du söker. Men du kan skriva dina egna klasser för detta. Kolla de 2 klasserna nedan för att få ett hum om hur detta kan göras (C#):
<code>
using System;
using System.Text;
using System.Net.Sockets;
namespace NetSamplesCS.Components
{
/// <summary>
/// Class connection to the SMTP Server that requires authentication
/// </summary>
public class SMTPClient : System.Net.Sockets.TcpClient
{
/// <summary>
/// Method to verify if connection to the SMTP Server was established
/// </summary>
/// <returns>True if connection was established/False if conenction failed</returns>
public bool isConnected()
{
return Active;
}
public void SendCommandToServer(string Command)
{
System.Net.Sockets.NetworkStream ns = this.GetStream();
byte[] WriteBuffer;
WriteBuffer = new byte[1024];
ASCIIEncoding en = new ASCIIEncoding();
WriteBuffer = en.GetBytes(Command);
ns.Write(WriteBuffer,0,WriteBuffer.Length);
return;
}
public string GetServerResponse()
{
int StreamSize;
string ReturnValue = "";
byte[] ReadBuffer;
System.Net.Sockets.NetworkStream ns = this.GetStream();
ReadBuffer = new byte[1024];
StreamSize = ns.Read(ReadBuffer,0,ReadBuffer.Length);
if (StreamSize==0)
{
return ReturnValue;
}
else
{
ASCIIEncoding en = new ASCIIEncoding();
ReturnValue = en.GetString(ReadBuffer);
return ReturnValue;
}
}
public bool DoesStringContainSMTPCode(string s, string SMTPCode)
{
return (s.IndexOf(SMTPCode, 0 , 10)== -1) ? false : true;
}
} /// End Class SMTPClient
/// <summary>
/// Class to send the actual message to the Server requiring authentication
/// </summary>
public class SMTPMail
{
private string _SMTPServerIP = "";
private string _errmsg = "";
private string _ServerResponse = "";
private string _MailFrom = "";
private string _MailTo = "";
private string _MailData = "";
private string _Subject = "";
private string _Identity = "";
private string _Password="";
public string Subject // This property contains Subject of email
{
set
{
_Subject = value;
}
}
public string Identity // This property contains Sender's Identity
{
set
{
_Identity = value;
}
}
public string MailFrom // This property contains sender's email address
{
set
{
_MailFrom = value;
}
}
public string MailTo // This property contains recepient's email address
{
set
{
_MailTo = value;
}
}
public string MailData // This property contains email message
{
set
{
_MailData = value;
}
}
public string SMTPServerIP // This property contains of SMTP server IP
{
get
{
return _SMTPServerIP;
}
set
{
_SMTPServerIP = value;
}
}
public string ErrorMessage // This property contais error message
{
get
{
return _errmsg;
}
}
public string ServerResponse // This property contains server response
{
get
{
return _ServerResponse;
}
}
public string Password
{
set
{
_Password=value;
}
}
public void SendMail()
{
try
{
string ServerResponse;
SMTPClient tcp = new SMTPClient();
tcp.Connect(SMTPServerIP, 25); // first connect to smtp server
bool blnConnect = tcp.isConnected();
// test for successful connection
if (!blnConnect)
{
_errmsg = "Connetion Failed...";
return;
}
//read response of the server
ServerResponse = tcp.GetServerResponse();
if (tcp.DoesStringContainSMTPCode(ServerResponse,"220"))
{
_ServerResponse += ServerResponse;
}
else
{
_errmsg = "connection failed" + ServerResponse;
return;
}
string[] SendBuffer = new string[9];
string[] ResponseCode = {"220","334","235","250","251","354","221"};
string StrTemp = "";
StrTemp = string.Concat("HELO ",_Identity);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[0] = StrTemp;
StrTemp="";
StrTemp=string.Concat("AUTH LOGIN","\r\n");
SendBuffer[1]=StrTemp;
StrTemp="";
string EncodedFrom = System.Convert.ToBase64String(Encoding.Default.GetBytes(_MailFrom));
StrTemp=string.Concat(EncodedFrom,"\r\n");
SendBuffer[2]=StrTemp;
StrTemp="";
string EncodedPass =System.Convert.ToBase64String(Encoding.Default.GetBytes(_Password));
StrTemp=string.Concat(EncodedPass,"\r\n");
SendBuffer[3]=StrTemp;
StrTemp = "";
StrTemp = string.Concat("MAIL FROM: ",_MailFrom);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[4] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("RCPT TO: ",_MailTo);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[5] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("DATA","\r\n");
SendBuffer[6] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("From: ",_MailFrom );
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,"To: " );
StrTemp = string.Concat(StrTemp,_MailTo);
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,"Subject: " );
StrTemp = string.Concat(StrTemp,_Subject);
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,_MailData);
StrTemp = string.Concat(StrTemp,"\r\n.\r\n");
SendBuffer[7] = StrTemp;
StrTemp = "";
StrTemp = string.Concat(StrTemp,"QUIT\r\n");
SendBuffer[8] = StrTemp;
int i = 0;
/* for debugging
_errmsg = "";
for(i=0;i<5;i++)
{
_errmsg += SendBuffer[i];
+= "
";
}
return;
// end of debugging
*/
while(i < SendBuffer.Length)
{
tcp.SendCommandToServer(SendBuffer[i]);
ServerResponse = tcp.GetServerResponse();
for(int j=0;j!=ResponseCode.Length;j++)
{
bool ok = tcp.DoesStringContainSMTPCode(ServerResponse, ResponseCode[j]);
if (ok)
{
_ServerResponse += ServerResponse;
_ServerResponse += "";
break;
}
else
{
if(j == ResponseCode.Length-1)
{
_errmsg += ServerResponse;
_errmsg += SendBuffer[i];
return;
}
}
}
i++;
} // end of while loop;
}// end of try block
catch(System.Net.Sockets.SocketException se)
{
_errmsg += se.Message + " " + se.StackTrace;
}
catch(System.Exception e)
{
_errmsg += e.Message + " " + e.StackTrace;
}
} // end of SendMail method
} // end of class SMTPMail
}
</code>
Du kan anropa dessa från en Web Form så här:
<code>
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using NetSamplesCS.Components;
namespace NetSamplesCS
{
/// <summary>
/// Summary description for SmptWithAuth.
/// </summary>
public class SmptWithAuth : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
SMTPMail smtp = new SMTPMail();
smtp.SMTPServerIP="mail1.telia.com";
smtp.MailFrom="jag@home.se";
smtp.MailTo="du@home.se";
smtp.Subject="Testar klassen";
smtp.MailData="hej å hå";
smtp.Identity="myID";
smtp.Password="myPwd";
smtp.SendMail();
Response.Write(smtp.ServerResponse);
}
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
</code>Sv: servern kräver autentisering på en ASP.NET sida??
<code>
System.Web.Mail
</code>
Som du säkert vet kan du inte direkt använda klassen
<code>
SmtpMail
</code>
för att åstadkomma det du söker. Men du kan skriva dina egna klasser för detta. Kolla de 2 klasserna nedan för att få ett hum om hur detta kan göras (C#):
<codecsharp>
using System;
using System.Text;
using System.Net.Sockets;
namespace NetSamplesCS.Components
{
/// <summary>
/// Class connection to the SMTP Server that requires authentication
/// </summary>
public class SMTPClient : System.Net.Sockets.TcpClient
{
/// <summary>
/// Method to verify if connection to the SMTP Server was established
/// </summary>
/// <returns>True if connection was established/False if conenction failed</returns>
public bool isConnected()
{
return Active;
}
public void SendCommandToServer(string Command)
{
System.Net.Sockets.NetworkStream ns = this.GetStream();
byte[] WriteBuffer;
WriteBuffer = new byte[1024];
ASCIIEncoding en = new ASCIIEncoding();
WriteBuffer = en.GetBytes(Command);
ns.Write(WriteBuffer,0,WriteBuffer.Length);
return;
}
public string GetServerResponse()
{
int StreamSize;
string ReturnValue = "";
byte[] ReadBuffer;
System.Net.Sockets.NetworkStream ns = this.GetStream();
ReadBuffer = new byte[1024];
StreamSize = ns.Read(ReadBuffer,0,ReadBuffer.Length);
if (StreamSize==0)
{
return ReturnValue;
}
else
{
ASCIIEncoding en = new ASCIIEncoding();
ReturnValue = en.GetString(ReadBuffer);
return ReturnValue;
}
}
public bool DoesStringContainSMTPCode(string s, string SMTPCode)
{
return (s.IndexOf(SMTPCode, 0 , 10)== -1) ? false : true;
}
} /// End Class SMTPClient
/// <summary>
/// Class to send the actual message to the Server requiring authentication
/// </summary>
public class SMTPMail
{
private string _SMTPServerIP = "";
private string _errmsg = "";
private string _ServerResponse = "";
private string _MailFrom = "";
private string _MailTo = "";
private string _MailData = "";
private string _Subject = "";
private string _Identity = "";
private string _Password="";
public string Subject // This property contains Subject of email
{
set
{
_Subject = value;
}
}
public string Identity // This property contains Sender's Identity
{
set
{
_Identity = value;
}
}
public string MailFrom // This property contains sender's email address
{
set
{
_MailFrom = value;
}
}
public string MailTo // This property contains recepient's email address
{
set
{
_MailTo = value;
}
}
public string MailData // This property contains email message
{
set
{
_MailData = value;
}
}
public string SMTPServerIP // This property contains of SMTP server IP
{
get
{
return _SMTPServerIP;
}
set
{
_SMTPServerIP = value;
}
}
public string ErrorMessage // This property contais error message
{
get
{
return _errmsg;
}
}
public string ServerResponse // This property contains server response
{
get
{
return _ServerResponse;
}
}
public string Password
{
set
{
_Password=value;
}
}
public void SendMail()
{
try
{
string ServerResponse;
SMTPClient tcp = new SMTPClient();
tcp.Connect(SMTPServerIP, 25); // first connect to smtp server
bool blnConnect = tcp.isConnected();
// test for successful connection
if (!blnConnect)
{
_errmsg = "Connetion Failed...";
return;
}
//read response of the server
ServerResponse = tcp.GetServerResponse();
if (tcp.DoesStringContainSMTPCode(ServerResponse,"220"))
{
_ServerResponse += ServerResponse;
}
else
{
_errmsg = "connection failed" + ServerResponse;
return;
}
string[] SendBuffer = new string[9];
string[] ResponseCode = {"220","334","235","250","251","354","221"};
string StrTemp = "";
StrTemp = string.Concat("HELO ",_Identity);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[0] = StrTemp;
StrTemp="";
StrTemp=string.Concat("AUTH LOGIN","\r\n");
SendBuffer[1]=StrTemp;
StrTemp="";
string EncodedFrom = System.Convert.ToBase64String(Encoding.Default.GetBytes(_MailFrom));
StrTemp=string.Concat(EncodedFrom,"\r\n");
SendBuffer[2]=StrTemp;
StrTemp="";
string EncodedPass =System.Convert.ToBase64String(Encoding.Default.GetBytes(_Password));
StrTemp=string.Concat(EncodedPass,"\r\n");
SendBuffer[3]=StrTemp;
StrTemp = "";
StrTemp = string.Concat("MAIL FROM: ",_MailFrom);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[4] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("RCPT TO: ",_MailTo);
StrTemp = string.Concat(StrTemp,"\r\n");
SendBuffer[5] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("DATA","\r\n");
SendBuffer[6] = StrTemp;
StrTemp = "";
StrTemp = string.Concat("From: ",_MailFrom );
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,"To: " );
StrTemp = string.Concat(StrTemp,_MailTo);
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,"Subject: " );
StrTemp = string.Concat(StrTemp,_Subject);
StrTemp = string.Concat(StrTemp,"\r\n" );
StrTemp = string.Concat(StrTemp,_MailData);
StrTemp = string.Concat(StrTemp,"\r\n.\r\n");
SendBuffer[7] = StrTemp;
StrTemp = "";
StrTemp = string.Concat(StrTemp,"QUIT\r\n");
SendBuffer[8] = StrTemp;
int i = 0;
/* for debugging
_errmsg = "";
for(i=0;i<5;i++)
{
_errmsg += SendBuffer[i];
+= "
";
}
return;
// end of debugging
*/
while(i < SendBuffer.Length)
{
tcp.SendCommandToServer(SendBuffer[i]);
ServerResponse = tcp.GetServerResponse();
for(int j=0;j!=ResponseCode.Length;j++)
{
bool ok = tcp.DoesStringContainSMTPCode(ServerResponse, ResponseCode[j]);
if (ok)
{
_ServerResponse += ServerResponse;
_ServerResponse += "";
break;
}
else
{
if(j == ResponseCode.Length-1)
{
_errmsg += ServerResponse;
_errmsg += SendBuffer[i];
return;
}
}
}
i++;
} // end of while loop;
}// end of try block
catch(System.Net.Sockets.SocketException se)
{
_errmsg += se.Message + " " + se.StackTrace;
}
catch(System.Exception e)
{
_errmsg += e.Message + " " + e.StackTrace;
}
} // end of SendMail method
} // end of class SMTPMail
}
</code>
Du kan anropa dessa från en Web Form så här:
<codecsharp>
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using NetSamplesCS.Components;
namespace NetSamplesCS
{
/// <summary>
/// Summary description for SmptWithAuth.
/// </summary>
public class SmptWithAuth : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
SMTPMail smtp = new SMTPMail();
smtp.SMTPServerIP="mail1.telia.com";
smtp.MailFrom="jag@home.se";
smtp.MailTo="du@home.se";
smtp.Subject="Testar klassen";
smtp.MailData="hej å hå";
smtp.Identity="myID";
smtp.Password="myPwd";
smtp.SendMail();
Response.Write(smtp.ServerResponse);
}
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
</code>