|
i am trying to send a mail from an asp.net page this is what i did code wise
<br />
MailMessage mailMessage;<br />
mailMessage = new MailMessage();<br />
<br />
mailMessage.To = "mail1@yahoo.com";<br />
mailMessage.From ="mail1_Test@Keroed_corp.com";<br />
<br />
mailMessage.Cc = "mail2@hotmail.com";<br />
<br />
mailMessage.Bcc = "mailingKE@gmail.com";<br />
<br />
mailMessage.BodyFormat = MailFormat.Text;<br />
<br />
mailMessage.Priority = MailPriority.Normal;<br />
<br />
mailMessage.Subject ="Test Mail";<br />
<br />
string bodyText ="Testing send Mail" + Environment.NewLine + "Hopefull this works";<br />
mailMessage.Body = bodyText;<br />
<br />
SmtpMail.SmtpServer = "";<br />
<br />
SmtpMail.Send(mailMessage);<br />
i this works because when i go into C:\Inetpub\mailroot\Queue i see the mails that the page tried to send so i am wondering if i need to do some further configuring to my smtp server in IIS
kenny
|
|
|
|
|
Does your ISP allow sending mail from any server? Some ISPs only allow sending mail through their SMTP server, to prevent spamming.
---
single minded; short sighted; long gone;
|
|
|
|
|
hi
i write this JavaScript Function to change Label1.Text Attribute :
<script language="javascript" type="text/javascript"><br />
function showWaiting(controlName,str)<br />
{<br />
document.getElementById(controlName).innerText = str;<br />
}<br />
</script><br />
<br />
OnClientClick="showWaiting('Label1',waiting ...');"
in normal webpages it's run correctly, but in webpages that inherited from masterPages does not run and don't work, how to solve my problem ? thanks
|
|
|
|
|
Don't repost the same question in a new thread.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
IMO the easy way is that you view the html source code of the page..then to detect where is the problem...
<< >>
|
|
|
|
|
I am inserting data from one form into two linked tables "Student" and "Grade" linked together by the Grade_ID column which is a primary key in the Grade table and a forgien key in the Student table. After i insert the data i go to the database to see that the primary key
in the Grade table is inserted and its ok but the forgien key in the student table is still null. How can i link them together so that the forgien key in the Student table can take the same value as that in the grade table.
yasso
|
|
|
|
|
Please don't cross post.
Regards,
Arun Kumar.A
|
|
|
|
|
And please try to write something useful as subject.
Every thread that you have created have the same useless subject. "Help please" does nothing to distinguish the thread from other threads, and says absolutely nothing about the real subject of the thread.
---
single minded; short sighted; long gone;
|
|
|
|
|
i want to make a function that deal with contact form of web site i made
|
|
|
|
|
meromeroo wrote: i want to make a function that deal with contact form of web site i made
And how do you want to "deal with" it?
---
single minded; short sighted; long gone;
|
|
|
|
|
meromeroo wrote: function that deal with contact
pls be more specific...
<< >>
|
|
|
|
|
How to do updation of two tables in gridview?(asp.net2/c#)
|
|
|
|
|
Hi there,
Tell you what. That's a very good question. I have a clue about how you can do it. Maybe you can try it out. Here is how you do it.
Edit the Gridview template so that you get all the columns you want to update. To actually update it you can have an "instead of" trigger or a stored procedure which updates the values in the two tables.
Hope that helps.......
You don't have to be AFRAID!
|
|
|
|
|
Thanks,
I am very new to this field and this is my first project. so can u send some examples or some article please
|
|
|
|
|
You can go to www.asp.net and download a lot of good videos to get started.
You don't have to be AFRAID!
|
|
|
|
|
|
Hello Friends,
Please have a look to this URL.
http://66.201.127.52/ClassifiedListing.aspx[^]
I am unable to trace to how to rectify this error, and its taking a toooooooooooo much of time to me.
Plz help .
Deepak Surana
|
|
|
|
|
You are trying to access an environment variable which you don't have access to. That's all I can say from the error message.
If you want to know something more, you have to explain what you are trying to do, and show how you are trying to do that by showing some of your code.
---
single minded; short sighted; long gone;
|
|
|
|
|
How can I add new values to checkboxlist control of ASP.NET?
I have done this by dropdown and listbox controls before but it's several days that I can't do this task.
Please help me everyone.
|
|
|
|
|
|
Hi sir!!
I said in JAVASCRIPT.
|
|
|
|
|
You are right!
Here is a JavaScript sample.
Markup Part:
=========
<head runat="server">
<script type="text/javascript">
function AddMoreItems()
{
var newNode = null;
var objList = document.getElementById('CheckBoxList1');
if (objList != null)
{
var tblBody = objList.getElementsByTagName('TBODY');
newNode = tblBody[0].rows[tblBody[0].rows.length-1].cloneNode(true);
if (newNode != null)
tblBody[0].appendChild(newNode);
}
return false;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
</asp:CheckBoxList>
<asp:Button runat="server" Text="Add" ID="submitBtn" />
</div>
</form>
</body>
Code Behind Part:
=============
protected void Page_Load(object sender, EventArgs e)
{
CheckBoxList1.Items.Add(new ListItem("Hello"));
CheckBoxList1.Items.Add(new ListItem("Welcome"));
submitBtn.Attributes.Add("onclick", "return AddMoreItems();");
}
I hope you got some idea!
Enjoy!
P.Anbuselvan
IT Consultant
Emirates Group IT, UAE
|
|
|
|
|
Hi,
You can add ListItem to CheckBoxList in Javascript:
<asp:checkboxlist id="Check1"
="" repeatlayout="flow" runat="server">
<asp:listitem>Item 1
<asp:listitem>Item 2
<asp:listitem>Item 3
<asp:listitem>Item 4
<asp:listitem>Item 5
<asp:listitem>Item 6
Regards,
Blumen
|
|
|
|
|
|
Hi there,
I am creating a web application which uses the login controls in Visual Studio.
This application has an administrator who has the rights to change anybody's password. How can I do this in the code. I mean how do I access the password of another user.
Thanks for all your time and help.
You don't have to be AFRAID!
|
|
|
|