Sunteți pe pagina 1din 6

//if(Application.OpenForms.

Count > 1){


//foreach (Form frm in Application.OpenForms)
//{
//
if(frm.MdiParent == this){
//
frm.Close();
//
}
//}
//}
//if (ActiveMdiChild != null)
//{
//
ActiveMdiChild.Dispose();
//}
//if
//{
//
//
//
//
//

(openedForms.Count != 0)
for (int i = 0; i < openedForms.Count; i++)
{
openedForms[i].Close();
openedForms.Remove(openedForms[i]);
}

//}
//foreach (Form frm in this.MdiChildren)
//{
//
if (frm.GetType() == this.GetType()
//
&& frm != this)
//
{
//
frm.Close();
//
}
//}
//if(ActiveMdiChild != null){
//foreach (Form form in this.MdiChildren)
//{
//
//if (!form.Focused)
//
//{
//
count++;
//
form.Dispose();
//
//}
//}
//MessageBox.Show(count.ToString() + "Load");
//count = 0;
//}

<%@ Import Namespace="System.Net" %>


<%@ Import Namespace="System.Net.Mail" %>
<script language="c#" runat="server">
?hi
Ben: Hi, how may I assist you today?
?i have purchased your advance asp.net package
Ben: okay
?and then i tried to create a mssql database
?even if i selected 2012 mssql database..its nly coming 2014 one

Ben: what's the username


?db user name or account user name?
Ben: account username
?jamdubai
Ben: what's the database username you want to use for mssql 2012
?they automatically gave "DB_9FE0F3_jamdubai_admin"
?when i create a database through your site
Ben: database password jamdubai123
Ben: please refresh your CP
?no thats not the password
Ben: I updated it
Ben: mssql2012 now
?aha okay
?i will restore a db and see whether its working now
?hi
Ben: hi
?i have purchase your advance .net paackage but still did not create a domain
Ben: ok
?because before that i want to check whether my site is working finely in here
?so i uploaded both website and mssql database to here
?but when ever i clicked the url its saying blocked url
?http://jamdubai-001-site1.etempurl.com
?this is the url
?i am in UAE
Ben: please provide me the url
?http://jamdubai-001-site1.etempurl.com
?are you there
Ben: yes
Ben: please provide me the url
?i have already given it
?this is the url http://jamdubai-001-site1.etempurl.com
Ben: I haven't received it
?http://jamdubai-001-site1.etempurl.com
?got it??
Ben: no
Ben: you didn't send it
?how may time now i sent it
?give me your email
?i will mail it
Ben: give me your username
Ben: please
?jamdubai
Ben: http://jamdubai-001-site1.etempurl.com ??
Ben: it's working
?but i am getting like its block
?its only working when ever i used a application for visit blocked sites
Ben: I believe your country/ISP blocks it
Ben: However, we are not able to unblock it
?so what can i do for it
?because i have a free account in your site
?its username hasheranga23
Ben: I check the site is working here
?in there this site is working finely ...no need to open an application for bloc
ked sites
Ben: Do you have your own domain?
?not yet
?tomorrow we are gonna buy it
Ben: you may try a real domain name
?because still we did not deside a name for this site
Ben: ok

?okay i will try tomorrow


?the other thing is in here i am sending account verification mail to the client
when they registered to the system. for that i am using gmail address and smtp
in c#
?but its not working here
?i can not send emails using smtp
Ben: Did you download our sample code and test it?
?nope
Ben: in your hosting control panel=>Email Manager
?the code which i used in my website same as your code
Ben: there is a sample code file
?you can see it
?can i have link
?the link
Ben: what's the error message when you send an email
?nothing is getting
?but when i am trying it in local host though visual studio...its working finely
?????
Ben: have you submitted a ticket?
?what ticket?
Ben: what's your username
?jamdubai
Ben: any error messages when you send an email from our server?
?no
?i am not getting anything
Ben: where can I test it
?you just try to register
?when you registering after submit the security code you should get a verificati
on code to your email
?but now you wont get anything...but you are suppose to get it
?whats the token that you taking
?do i need to change any ssl or something like that to use smtp
Ben: no need ssl
Ben: can you take a screenshot of your email script
Ben: upload it to http://sendfile.cc/
?sure
?done
Ben: link please
?http://sendfile.cc/GU4DGNA
?in here i have used smtp server port as 587
Ben: ok
?do i need to change it to 25??
?because your code sample its 25
Ben: you may try to change it to 25 and test it
?sure
?give me 2 min
Ben: k
?nope still not working
Ben: o
Ben: ok
?so what is the solution
Ben: no solution et
Ben: yet
Ben: FROM address needs to be as same as the sending email address
?okay please give me solution else it will no use of hosting my website on your
host
?yes
?the address which is in the from address is uesing to send the emails
Ben: ok
?this all are working in local host....only issue when i am getting when host th

rough your site


Ben: I understand
Ben: I'm still troubleshooting
?the same issue i have faced in earlier and one of your technical guy asked me t
o buy a hosting package because smtp is not allowing in free package
Ben: correct. free trial doesn't have email services
?okay take your time and please help me to do it
?thats why i purchased the advance package

private void btnSend_Click(object sender, System.EventArgs e)


{
MailMessage mail = new MailMessage();
mail.From = new MailAddress(txtFrom.Text); //IMPORTANT: This mus
t be same as your smtp authentication address.
mail.To.Add(txtTo.Text);
//set the content
mail.Subject = txtSubject.Text;
mail.Body = txtContent.Value;
//send the message
SmtpClient smtp = new SmtpClient(txtMailServer.Text, 25);
//IMPORANT: Your smtp login email MUST be same as your FROM add
ress.
NetworkCredential Credentials = new NetworkCredential(txtFrom.Text, txt
Pass.Text);
smtp.Credentials = Credentials;
smtp.Send(mail);
lblStatus.Text = "Sent email (" + txtSubject.Text + ") to " +txt
To.Text;
}
</script>
<html>
<body>
<table align = center>
<TR> <TD align = center colspan = 2><h3>Email From ASP.NET</h3></tr>
<form id="MailForm" method="post" runat="server">
<TR>
<TD><asp:Label ID="Label1" runat="server">From Email Address:
</asp:Label>
<TD><asp:TextBox ID="txtFrom" runat="server"></asp:TextBox>
</TR>
<TR>
d:

<TD><asp:Label ID="lblPass" runat="server">Email Passwor

</asp:Label>
<TD><asp:TextBox ID="txtPass" runat="server" TextMode="Password"
></asp:TextBox>
</TR>
<TR>

<TD>
<asp:Label ID="EmailServer" runat="server">Email Server
</asp:Label>
<TD>

<asp:TextBox ID="txtMailServer" runat="server"></asp:TextBox>

<TD> <font color = blue>[For Example :: Mail.YourDomain.com] </font><font colo


r=red>(make sure your domain resolves to our mail server.) </font>
</TR>
<TR> <TD>

<asp:Label ID="Label2" runat="server">Recipient Email Address:

</asp:Label>
<asp:TextBox ID="txtTo" runat="server"></asp:TextBox>

<TD>
</TR>

<TR> <TD>
<asp:Label ID="Label3"
runat="server">Subject</asp:Label>
<TD>

<asp:TextBox ID="txtSubject" runat="server"></asp:TextBox>

</TR>
<TR> <TD><asp:Label ID="Label4" runat="server">Mail Body:
</asp:Label>
<TD> <textarea runat="server" id="txtContent"> </textarea>
</TR>
<TR><TD align = center><asp:Button ID="btnSend" runat="server"
Text="Send" OnClick="btnSend_Click"></asp:Button>
</TR>
<TR> <TD colspan = 2> <asp:Label ID="lblStatus" runat="server" forecolor=Gre
en Font-Size="15" Bold = true>
</asp:Label>
</form>
</body>
</html>

Hi i am hashan from srilanka and 23 years old baclr degree holder


i dd my degree through the staffordshire university in uk and
i have almost 1 and half years experience in software development industry
first i was fortunate to got an oppertunatiy to work at virtusa srilanka an an i
ntern software developer
after finished my second year and then again i joined the virtusa as junior soft
ware enjeener after completion

the degree. then i got got an opertunatity to work in jamsoft uae as a software
engineer. for this company
i have developed one android application one desktop application and a e cormmer
ce website.
all to gether i have developed 5 softwares within less than 2 years.

S-ar putea să vă placă și