|
window.open works for only printing that page on which client is....
i want to print those pages which are contained in some folder.
|
|
|
|
|
|
There's no way to print anything on the client side without rendering it on the client side. How could you think there might be a way ?
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.
|
|
|
|
|
hi to all pls help me
i used this code to send a mail from webpage i didn't used any web server
i just run the program in my localhost this script not working it show sending mail failed any one can you pls explain this
my ultimate aim is to send a feedback form to my mail id
using System;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Net.Mail;
public partial class _Default : System.Web.UI.Page
{
#region "Send email"
protected void btnSendmail_Click(object sender, EventArgs e)
{
SmtpClient smtpClient = new SmtpClient();
MailMessage message = new MailMessage();
try
{
MailAddress fromAddress = new MailAddress(txtEmail.Text, txtName.Text);
smtpClient.Host = "localhost";
smtpClient.Port = 25;
message.From = fromAddress;
message.To.Add("kn.nageshwaran@gmail.com");
message.Subject = "Feedback";
message.CC.Add("admin1@yoursite.com");
message.CC.Add("admin2@yoursite.com");
message.Bcc.Add(new MailAddress("admin3@yoursite.com"));
message.Bcc.Add(new MailAddress("admin4@yoursite.com"));
message.IsBodyHtml = false;
message.Body = txtMessage.Text;
smtpClient.Send(message);
lblStatus.Text = "Email successfully sent.";
}
catch (Exception ex)
{
lblStatus.Text = "Send Email Failed.<br>" + ex.Message;
}
}
#endregion
#region "Reset"
protected void btnReset_Click(object sender, EventArgs e)
{
txtName.Text = "";
txtMessage.Text = "";
txtEmail.Text = "";
}
#endregion
}
|
|
|
|
|
kn.nageshwaran wrote: smtpClient.Host = "localhost";
It Should Be Your host name
Try this link
[^]
First Get Your Host Name
|
|
|
|
|
kn.nageshwaran wrote: i just run the program in my localhost this script
Did you configure SMTP server on the local machine(localhost)?
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 everybody,
I have developed a page in asp.net (using vb) which is accessible over internet (public domain .com) working fine. This page facilitate end users to save, retrieve, and update existing information, and all information is saved over server database. Now my boss wants to access these information on Intranet (local site) but there is a "FIRE WALL" between Intranet and Internet. In the beginning I assumed that I could solve this issue through replication but later I have been told due to "FIRE WALL" I can't replicate data from Internet to Intranet.
MY question is how can I save and retrieve data in local and global database at the same time. Or replication is possible in this situation if it is possible, Or there are any other ways like serialization etc.. Please could you tell me how I can solve this issue, any link or any suggestion would be much appreciated.
I'm really sorry if this is not the right forum to ask this question.
regards
learner
|
|
|
|
|
i want that, when i am clicking any link then some menu items will be Enable False. How it Possible ?
|
|
|
|
|
|
hi expert
i want add scrollbar and horizantalbar to repeater control just like a listbox.And fixed header.
thanks
|
|
|
|
|
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
|
|
|
|