|
Abhijit Jana wrote: When you received the error?
He left that part for us to guess
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Sorry guys I am so tired... Here is the problem..
I am trying to send an email via system.net.mail namespace... I googled the problem. The explanations were more likely to be 'compatibility'. However I am on 3.5 framework as well. I do not think this is the problem... Would it be caused by the port.
|
|
|
|
|
Ersan Ercek wrote: l. I do not think this is the problem... Would it be caused by the port.
Yes, Port Can be a problem. Did you configured SMTP Properly ? Please check your SMTP Port does not Blocked by Firewall.
Which code you have wrote for send the email ?
You have to use Following namespace,
Using System.Net.Mail
Sample Code :
MailMessage Mail = new MailMessage();
MailAddress mailAdd = new MailAddress(txtFrom.Text,txtName.Text);
Mail.From = mailAdd ;
Mail.To.Add(txtTo.Text);
Mail.Subject = txtSubject.Text;
Mail.Body = txtComment.Text;
try
{
SmtpClient Objsmtp = new SmtpClient();
Objsmtp .Host = "myMailServer";
Objsmtp .Send(Mail);
}
catch (Exception ex)
{
}
|
|
|
|
|
Thanks for the reply...
I configured it right I guess. I tried a different port and error code changed to below.
Do you think I am on the right track?
Transaction failed. The server response was: 5.7.1 <cinersan@hotmail.com>: Relay access denied
|
|
|
|
|
Ersan Ercek wrote: Transaction failed. The server response was: 5.7.1 <cinersan@hotmail.com>: Relay access denied
Are you not authenticating the server?
|
|
|
|
|
This is the solution... Thanks alot for the help. I thought that configuration made in web-config was enough but aparently it was not.
Thanks a lot
|
|
|
|
|
Manas Bhardwaj wrote: Abhijit Jana wrote:
When you received the error?
He left that part for us to guess Smile
|
|
|
|
|
You did not care to explain the problem.
I googled the error message, I found these results[^]. Read them, try them and I am sure they will help you.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I was to get crazy here, 2 hours I am dealing with that problem. It is that I was prettey sure that I explained that very well, but I am so tired. Giving a comment like previous one was enough I would explain the problem..
|
|
|
|
|
|
I have a code on the form load of my page to populate the controls of my page with some data. I also have a dropdown list that when clicked must populate the page with some other data.
ML Lingwati
|
|
|
|
|
What is your question?
I didn't get any requirements for the signature
|
|
|
|
|
LucBite wrote: I have a code on the form load of my page to populate the controls of my page with some data. I also have a dropdown list that when clicked must populate the page with some other data.
So, what is your questions?
|
|
|
|
|
Sorry I didn't finish the thread. it got posted by mistake before I could finish. But my problem is when, the page is running, after clicking some option on the drop down list the page loads with the page load code, while I expect the results of the actions(code) that I placed under the drop down list Selected_Change event.How do solve this problem? hope i'm clear. please help.
ML Lingwati
|
|
|
|
|
I have a problem with people who use the public boat ramp blocking my driveway.
Wonder why? So do I.
|
|
|
|
|
leckey wrote: I have a problem with people who use the public boat ramp blocking my driveway.
You have a public boat ramp blocking your driveway? I'd be PO'd too!
Cheers,
Drew.
|
|
|
|
|
I am using asp.net 2005 with c#. i hv gridview and try to show the datas as forum.I have link button and in link button caption should be database value.i got the value but the problem is id. i need name instead of the id , based on tat id, need to show the name from another table.
<asp:TemplateField >
<ItemTemplate>
<asp:LinkButton runat ="server" ID="lnk_pby" Text ='<% #Eval("uid") %>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
so what i should do for this.
2) my second doubt is how to show 2 datas in single field. tat is in
this itemtemplate it shows only one datas but i need to show to idems how to show
<ItemTemplate>
<asp:LinkButton runat ="server" ID="lnk_pby" Text ='<% #Eval("uid") %>'></asp:LinkButton>
pls help me,if u knw
Thank you in advance
k.priya
|
|
|
|
|
First Doubt
Are you able to return name field in your query ? If yes then just provide name field in place of uid.
If no then modify you query and join the both table and return result with name field.
Second Doubt
you can use multiple control in Item template column. For the formating just use Html table.
|
|
|
|
|
Define your item template so it displays two columns of data, if that's what you want. Then they will appear in a single gridview column
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank you for u both. i got answers.
k.priya
|
|
|
|
|
Hello,
I am creating an websetup project and it is installed in IIS but when i publishing it gives error.Give me reply as soon as possible.
I want to ask other thing also that can we create licensed type web application set up which asks activation key to install how to do it.Send me any sample.
thanks in advance,
V.Vijay.
|
|
|
|
|
vijayvelidi wrote: I am creating an websetup project and it is installed in IIS but when i publishing it gives error.
What error are you getting ? You should tell the details about.
vijayvelidi wrote: Give me reply as soon as possible.
This is Rude. Every body will reply based on their time.
|
|
|
|
|
hi, what is the equivalent to AxSHDocVw.AxWebBrowser in asp?
i cant find that object in asp only in c# application
can anyone help me
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
AxSHDocVw.AxWebBrowser ?
Are you using any third party component ?
If yes then you need to add the reference of that component.
|
|
|
|
|
no, it exists in c#
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|