|
How to do that?
Is it necessary to visit my website daily. If not plz tell me how to do that?
|
|
|
|
|
Why Dont You Go For Sql Jobs..!
or
You Can create a windows application for sending the mail and add this application to task scheduller ..!if you are using windows operating system..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
|
Krishhhhhhhhhhhhhh wrote: How to do that?
I have provided you one Ref. Which will help you to go ahead.
Krishhhhhhhhhhhhhh wrote: Is it necessary to visit my website daily.
No !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
As you are using SQL Server 2005 , you can easily use SQL Server Job agent to schedule and send mail from SQL Server itself which is one of the easiest task that you can do.
Here is one of the ref. that you can use :
Sending Mail using SQL Server 2005[^]
Another option is to use Windows Service . Use some TimerDelegate to monitor your DB in regular manner and based on the condition sends mail to the user.
Thanks
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
If you want to send mail automatically without open website, you should create jobs and scheduler in sqlserver which will run everytime
Farogh Haider
Web developer
|
|
|
|
|
On the solution, there are many projects in an existing application.
One of them is an asp.net web application, another one is class library and another is Dynamic data web application. How can I find what project is it? I looked in the properties but could not find it.
Please help.
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
DotNetXenon wrote: How can I find what project is it? I looked in the properties but could not find it.
What exactly do you want to do? Can you elaborate a bit more?
|
|
|
|
|
Somebody has created a class library project added to the solution by name Sample1.
I do not know what kind of project template(here it is class library) is that. How do I find out what project they have added?
Hope this is clear.
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
Thanks for your reply. I have one more question...You said to me that I should initialize a variable to 10 on session start. In what page's code should I do this? This is actually my problem: I don't know where to declare the variable which will hold the value of the label. I've tried in the page_load event of the master page but I'm sure this isn't right. Can you help me please?
|
|
|
|
|
You need to do this in Global.asax, when the session is started.
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
Note:
You shouldn't create this new thread for your question,you should have continue posting in your existing thread.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Hi everybody! I really need help... I have a Master Page with a menu and 2 Web Content Forms(called FirstWCF and SecondWCF). The menu contains two buttons used for Posting Back the two Web Content Forms. Now on my Master Page I have a label called Label1( Label1.Text="10") On FirstWCF I have a button and when I press it I want the Label1 to display 9, then 8 and so on until it displays 0. I've done this thing so far. The code is the next one:
protected void Button1_Click(object sender, EventArgs e)
{
Label lbl=(Label)Master.FindControl("Label1");
int tries=Convert.ToInt32(lbl.Text);
if (tries>0)
tries--;
lbl.Text=tries.ToString();
}
This works just fine. When I'm on the FirstWCF and I press the button the label's text from the Master Page updates. But I got the next problem. When I load the SecondWCF I want the label's text to remain the same. Instead it has again the value "10". To be more clearly, I'm on the first page, I pressed 3 times the button (the label has the value 7), and then I press the menu item which loads the SecondWCF. The label's text becomes again 10 and I want to remain 7. Can anyone help me? I really need help....
|
|
|
|
|
This has got nothing to do with the Master page! When you use master pages for headers and footers it just gives you a template for you to implement a common design for your header, footer, navigation, etc. The master page is not shared among pages, but each page gets a new object of the master page. So, by hard coding the value for the label in the master's mark-up you cannot achieve what you desire.
But, this is not so hard to achieve. Just have a session variable, if the clicks are user specific and on session start initialize it to 10 or what ever value you need. Then assign this value to the label on the master page. In the content pages, just update the value on the session variable and display the updated value on the master label
So your code can be re-written like this -
protected void Button1_Click(object sender, EventArgs e)
{
int tries=Convert.ToInt32(Session["Tries"].ToString());
if (tries>0)
{
Session["Tries"]=--tries;
(Label)Master.FindControl("Label1").Text=tries.ToString();
}
}
|
|
|
|
|
Thanks a lot! But how to do that:"on session start initialize it to 10". In what page's code should I do this?
|
|
|
|
|
Use the Session_Start event in Global.asax
|
|
|
|
|
i want a pattern to match a number, 1<=num<=24
cyh
modified on Thursday, December 10, 2009 9:00 AM
|
|
|
|
|
This would be a tough nut to crack with Regex. Our conditions are size is variable and you wish to restrict value to under 24 which means ur first char can be 1 or 2 and your second char can be 0-9, but based on the first char the second char cannot be more than 4.
Try this -
(^[1-9]{1}$|^[1]{1}[0-9]{1}$|^[2]{1}[0-4]{1}$)
Just curious, won't it be just simple to just use a try parse to parse the text and check the value rather than spending so much effort into building a regex for this?
|
|
|
|
|
Hi All,
I am developing web application so certain thing i need to store in session variable like role id of user.
Right now i am using
Session["id"] =""
should i use the following code or i can use
Cache["var"] =""
Is that effect performance of the application.
Thanks and regards,
Amit Patel
|
|
|
|
|
Amit Patel1985 wrote: Session["id"] =""
should i use the following code or i can use
Cache["var"] =""
Session is Unique for each user. Whenever client send a request the session will kept in Server and its unique and can't be accessible for all. So you should store information that is related with current user in session like Username, id etc.
Cache is global for. When all data need to share for all of the user you can use data caching. Like if you want to share global address to all users.
Please let me know if you need more information on the same.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Always place sensitive data in session.... (User Specific)
Cache is accessible to all users.
So Session is best choice on this regard.
If you dont put any large serialization types into Session variables.. There is no problem...
|
|
|
|
|
Hi,
I agree with abhishake
Farogh Haider
Web developer
|
|
|
|
|
Hi all,
I have a crystalreport.rpt with a parameter p_ExamID whose type is number. It works well in Main Report Preview section in Visual Studio.
Then I want to pass value of the parameter by coding:
CrystalReportViewer1.ParameterFieldInfo.Clear();
ParameterFields paraFields = CrystalReportViewer1.ParameterFieldInfo;
ParameterField para = new ParameterField();
ParameterDiscreteValue para_value = new ParameterDiscreteValue();
para.Name = "p_ExamID";
para_value.Value = 1;
para.CurrentValues.Add(para_value);
paraFields.Add(para);
I ran asp.net website then it threw an error like this:"Missing parameter values". I have no idea whether there is something wrong with the code above.
(I disabled "promptlogon" and "promptParameter" from the CrystalReportViewer)
Thanks,
|
|
|
|
|
|
everything executed and no error message but unable to send mail..
sent mail from and to local network...
guide me...
MailMessage message = new MailMessage();
message.From = TextBox1.Text;
message.To = TextBox2.Text;
message.Subject = TextBox3.Text;
message.Body = TextBox4.Text;
try
{
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(message);
}
catch (Exception ex)
{
Label1.Text=ex.Message.ToString();
}
|
|
|
|