|
Hi suguna...,
This is Magesh,
See ur From address the same one ...,
Ya u can send mail at particular date..,
For that u have to fire the schedule task...,
In that u have to give the mail send event have to fire on which date...,
Then it will send the mail to particular id
Keep smile always
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
hai mahesh,
i am using sql server,
string date = string.Format("{0:MM/dd/yyyy}", DateTime.Now);
string senddate="27/7/2008";
if (senddate==date)
{
MailMessage mailMessage = new MailMessage();
mailMessage.From = "";
mailMessage.To = "";
mailMessage.Subject = "hai";
mailMessage.Body ="hello";
mailMessage.BodyFormat = MailFormat.Html;
mailMessage.Priority = MailPriority.High;
SmtpMail.Send(mailMessage);
}
i wrote code in page_load event.i host the project in server it will work or not.
replay...thanks .
|
|
|
|
|
I love it when I tell people something and they ignore me.
If you put the code in your page load, then it will send right away. There is no way round this, you need to find a way to queue the mail outside your page. This code will not send code on any day except the date given, it plainly won't wait to send it on that day.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: I love it when I tell people something and they ignore me.
I can understand your feelings. I am your silent follower for the last 2 years in codeproject. Now I remember a proverb. It is something like this “a wise man will be a fool among the fools”
|
|
|
|
|
*sigh* yeah, isn't that the truth.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I just want to give you a message that there are so many people here who consider you as a hero.
|
|
|
|
|
Are you hugging the screen?
|
|
|
|
|
"If this is a sarcastic reply then I'm smiling to myself as you know what these people are like
If this is a serious demand then I'm def not smiling!..."
|
|
|
|
|
Hi suguna,
Try like this,
String curdate = DateTime.Now.ToString();
string senddate="7/25/2008";
DateTime ld = Convert.ToDateTime(curdate);
if (ld.Date == Convert.ToDateTime(senddate))
{
Try Here ur Code
}
May be this one will help u
By the way sorry MR.Graus We know ur genious...,
But we are not that much genious, we are not getting what ur telling...,
What to do still we are in basic not that much high level like u...,
But sure later we too like u...........,
Smile curve that sets everything straight...,
Keep in touch,Dont be mood out of if they wont reply ur answers...,
Keep going on we need ur knowledge
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
I have a listbox with multiple selection of languages.
My list box contains 6 list items with "All, German, English, Seriban, Spanish, French". when I select German and English or any other language the list item "All" should not be selected (either it has to be grayed out or should not be selected, if the user tries to select). But now I could be anble to select the listitem "All" when I select other languaaes.
Could any one tell me how to do this!
Thanks
|
|
|
|
|
with javascript, handle the event of an item being selected and force the 'all' item to be unselected if necessary.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi every one
actually i have a usercontrol in which i have 4 testbox and one file upload control .
now i have a dropdownbox at page 1 .when a user select any value as 1, 2, 3 from dropdownbox according to this value at page 2 usercontrols created as if select 3 then 3 pairs of textboxes and fileupload ganerate.
and then user can submit his details and image .at page 2 and at page 3 all the data of page 1 page 2 i want to show at page 3.
so plz tell me how to save the image at page 2 save in a folder sothat i can retrive it at page 3.
Thanks...
Gaurav
|
|
|
|
|
I'm not sure I understand the issue. You save the file by saving it. The issue is, how do you track which user it belongs to ( perhaps use the session Id as a filename ? )
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
actually i want to save the image in a folder while i am using usercontrol .
and usercontrol have the fileupload control .
so it is not possible for me to save the image .
tell me .
|
|
|
|
|
Hello everybody,
Again an open question. If you use resource files, for example for localizing your app, what structure do you use? In a website there a multiple types of texts, labels near input fields, page titles, error messages, button texts, explanatory texts etc etc.
Do you have a subdivision in your resource files, ie: labels.resx, titles.resx etc, or do you put all the strings into one big resource file?
Is there a difference in performance between the two different structures?
Like to hear your ideas.
thanks,
Gidon
|
|
|
|
|
Hi all
I have a web user control where i have placed a radcombo and an external javascript isiri2901.js.
<%
@ Control Language="VB" AutoEventWireup="false" CodeFile="AutoComplete.ascx.vb" Inherits="Controls_AutoComplete" %>
<%@ Register Assembly="RadComboBox.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>
<script language='javascript' type='text/javascript' src="../Scripts/isiri2901.js"></script>
<script type="text/javascript">
function ChangeTextDirection(obj)
{
var Name=document.getElementById('<%=RadAutoComplete.ClientID %>');
alert(name.Value);
return false;
}
</script>
<
radC:RadComboBox ID="RadAutoComplete" runat="server" Width="150px" Height="150px"Skin="ClassicGold" AllowCustomText="True" EnableLoadOnDemand="True"ExpandEffect="Fade" SkinsPath="~/RadControls/ComboBox/Skins" OnClientFocus="ChangeTextDirection(this)" EnableItemBindingExpressions="False" MarkFirstMatch="True"></radC:RadComboBox><asp:RequiredFieldValidator ID="cvalName" ControlToValidate="RadAutoComplete" Display="Dynamic" runat="server">*</asp:RequiredFieldValidator>
My issue is that iam not being able to return the client id of the radcombo. It is retuirning undefined. I need to return the ID and use it as a parameter to the JS. Please note that in the same aspx page i might have several web user controls and for each one of those i need to get the id and send it to the JS.
Any help and thanks in advance.
|
|
|
|
|
samerh wrote: function ChangeTextDirection(obj)
{
var Name=document.getElementById('<%=RadAutoComplete.ClientID %>');
You have already object of your combo control in function.
function ChangeTextDirection(obj)
{
alert(obj.Value);
return false;
}
Regard
Khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Already tried it also. Giving not defined also. Starnge!!!!!!1
|
|
|
|
|
Check out ID of control in view source file.What is it?
please don't forget to vote on the post that helped you.
|
|
|
|
|
In source it is like this
<input type="text" id="txtFirstName_RadAutoComplete_Input" name="txtFirstName$RadAutoComplete_Input" value="" class="ComboBoxInput_ClassicGold" style="width:150px;" tabindex="3"></input>
|
|
|
|
|
Okay.
Now check ID in function like this
alert(obj.id);
If it gives undefined then try with
alert(document.getElementById('txtFirstName_RadAutoComplete_Input').value);
Regard
Khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: alert(obj.id);
It gives undefined i already tried it.
Imran Khan Pathan wrote: alert(document.getElementById('txtFirstName_RadAutoComplete_Input').value);
This could be true if i know the name of each control, but note that this is a web user control that iam dropping in the page several times sometimes. In this special case it is 'txtFirstName_RadAutoComplete_Input' but in the same page there are 2-3-4 more controls. Is there a general methos to read the radcombo in the web user control instead of referring to it in each page alone.
thanks
|
|
|
|
|
samerh wrote: var Name=document.getElementById('<%=RadAutoComplete.ClientID %>');
samerh wrote: alert(name.Value);
Name or name?
|
|
|
|
|
NO, Name in both & still not working.
Thanks anyway
|
|
|
|
|
hello friends,
I have used the global static members in .cs like below
public static DataTable dt=new DataTable();
I have adding some dynamic columns and rows in above DataTable Object.
The problem arises , when i login into another machine and access same page the content of the datatable is added in both Pages. When I modify
any column respectively the changes shown on different machine.
I want to know that how can i overcome this problem, or how can i lock the public static members in asp.net.
Please if anyone know solution the send as soon as possible....
thank you.
|
|
|
|