|
try this
myRepeater.Attributes["Style"] = "OVERFLOW-Y:auto;HEIGHT:200px;";
|
|
|
|
|
|
hello frnds !
i m using the following code in my web application
for sending an E-mail
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.Subject = "Issue Report";
msg.Body = "Submitted By: " + txtName.Text + "\n";
msg.Body += txtComment.Text;
msg.From = txtSender.Text;
msg.To = txtReceiver.Text;
if (chkPriority.Checked) msg.Priority = System.Web.Mail.MailPriority.High;
System.Web.Mail.SmtpMail.SmtpServer = "localhost";
System.Web.Mail.SmtpMail.Send(msg);
lblResult.Text = "Message sent to SMTP service.";
but when i execute this code i get this error
The transport failed to connect to the server.
at the line
System.Web.Mail.SmtpMail.Send(msg);
please help me immediately
modified 6-Jun-21 21:01pm.
|
|
|
|
|
First of all, if you are using .Net 2.0 or higher tha it is preffered to use System.Net.Mail [^]space for implementing the mail functionality.
ak_1989 wrote: The transport failed to connect to the server.
The most obvious reason for this error message is that either the SMTP does not exist or it is not properly configured.
Try to look for the other resons here[^].
And btw, this error message has nothing to with code and it is infrastructural issue. Keep trying.
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.
|
|
|
|
|
ak_1989 wrote: please help me immediately
You must be joking
ak_1989 wrote: System.Web.Mail.SmtpMail.SmtpServer = "localhost";
Do you have localhost configured to be a mail server, or were you hoping for it to work by magic ?
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.
|
|
|
|
|
System.Web.Mail.SmtpMail.SmtpServer = "localhost";
i have configured "localhost" to be a mail server.
"localhost" represents the name of the SMTP Virtual Server of IIS 5.1 on my computer.
I hope I m doing the right thing.
modified 6-Jun-21 21:01pm.
|
|
|
|
|
OK, well, some people just expect it to work. If localhost is working as a mail server in general, then you need to work out why it's not working from your application. As someone said, it's a config issue, not a code issue.
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.
|
|
|
|
|
still cant get it.
as per my knowledge i have configured the Virtual Server properly.
any EXPERT TIPS.
modified 6-Jun-21 21:01pm.
|
|
|
|
|
I've never configured a mail server, I've just used mail servers provided for me. I've never had a need for a mail server that would be satisfied by a local setup, I've always needed something more reliable.
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.
|
|
|
|
|
Hello every one,i want to know how can i use slise show control in my website,how can i get it,i am not grtting it in my tool box.How can i get it.
|
|
|
|
|
|
This obviously is an extension of your last question, so why not ask it there ? Anyone who can use google would know the answer, so there's no need to start a new question.
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.
|
|
|
|
|
i am using autocomplete extender with database. the text property for autocomplete extender is a concatenated string e.g First Name + '-' + Last Name
Now my problem is when i type first name it works fine but when i start typing last name nothing comes because the wildcard char is on first name
e.g where Firstname like 'abc%' (sql query)
now i want the wildcard on firstname + lastname
I hope u understand the problem
Jagwinder Singh.
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Hello every one,i want to know how the different different images come and automatically changeand continueously get change.Tell me the way please.
|
|
|
|
|
they use slideshow controls over there
|
|
|
|
|
What is your images source? Is there any site or physical path or server?
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
There is a folder in website which consist some images.
|
|
|
|
|
|
rinku soni 23 wrote: ,i want to know how the different different images come and automatically changeand continueously get change.
There are many ways to it. JavaScript - JQuery - AJAX Slide Show Extender. etc...
or you can also use one animated gif image too.
|
|
|
|
|
rinku soni 23 wrote: Hello every one,i want to know how the different different images come and automatically changeand continueously get change
One option could be Adrotator[^]
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.
|
|
|
|
|
hi expert
i want to display next page in javascript
thanks
|
|
|
|
|
window.location
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
hi expert
i am not satify your answer for next page display
|
|
|
|
|
window.location="URL of the page where you want to redirect"
You can use this line when you want to redirect to next page. For instance if redirection should happen on some button click, then handle the OnClientClick event and place the above line in the handler.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Because people here get stupider by the day, some people, me included, like to give people the key words needed on the basis that anyone who is half a programmer, or even just half a functional human being, should be able to work it out from there by referring to textbooks or google.
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.
|
|
|
|