|
You may be able to start a thread from there, but you would still need to put the details of the emails you need to send, etc, in a database, and have code that ran on a timer to regularly check if any thing needed doing. It makes more sense to do this in a service, and have the service and the website share access to the data store IMO.
If you just write a thread that handles the emails by keeping them in memory, you will lose that info if the server restarts, and you will need to handle cross thread communication, which would be a lot more challenging than writing a service.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
You have to make a module as a scheduler which will run on the server. You can check it on the server.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
soory Ahsan i didnt get yr solution plz can u explain in bit detail thanks.
-------------------------------
if i create a class in which i implement all the logic and call method on global.asax application start event ... is it possible?
thanks.
|
|
|
|
|
Scheduler is a module on your hosting server. It runs the module( in your case mail sending) automatically as per you logic.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thanks alot all the professionals and developers
|
|
|
|
|
How to extract particalur record stored in data table object and loop throuh each record
i have more then one column name like vehicle Name
i have to loop throuh each record and print the name of vehicle .
problem is that whole table records are stored in data table object how i extract particular record and loop throuh each record
please help me in this regard
regards
Rameez
|
|
|
|
|
foreach(DataRow dr in datatable.Rows)
{
if(dr[columnname].toString()=="your required record")
{
return dr;
}
}
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thanks for response ,
how to iterate or loop throuh each record stored in data table.
|
|
|
|
|
I want to develop marathi website. So how can I do it. How can I store the data in database.
|
|
|
|
|
What is a
swami samarth wrote: marathi website
|
|
|
|
|
If i am not wrong Marathi is a language, and you want to develop a website in that language. For that i will suggest you to use localization. I will not recommend to save all the data in database.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Buy a book on ASP.NET. Try to ask sensible questions. I have no idea what marathi is, either. If it's a language, then I don't see what a DB has to do with it. If you mean how to store data in general, go to step one. Buy a book and understand SOMETHING about ASP.NET before hoping to benefit from asking stuff here.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hello Christian,
Marathi is a langauge spoken in Maharashtra State in India..And thread creator wants to create a website in marathi in which he can have contents in that language..
And so that the contents will be in Marathi language..
Marathi language is supported my Windows XP and Win7 and etc...
So if you can help ,the answer will help me alot...
Thanks,
Vishal
|
|
|
|
|
You can use marathi software which allows you to type content in marathi directly into asp.net..
Marathi Keyboard[^]
you can store the unicode data in database using nvarchar
============================================
The grass is always greener on the other side of the fence
|
|
|
|
|
how to change default current month of the calender?
|
|
|
|
|
You set the VisibleDate property.
Example:
this.Calendar1.VisibleDate = DateTime.Today.AddMonths(3);
|
|
|
|
|
|
myprocess.StartInfo.CreateNoWindow = True
myprocess.StartInfo.UseShellExecute = True
myprocess.StartInfo.WorkingDirectory = "c:\"
myprocess.StartInfo.FileName = "myExe.exe"
myprocess.StartInfo.Arguments = "MyArguments"
myprocess.StartInfo.RedirectStandardError.ToString()
myprocess.Start()
i am getting the process started in task manager but not running the .exe application.Actually if i get the .exe application run i will get some datas in a notepad file by that .Exe
modified on Thursday, July 31, 2008 4:44 AM
|
|
|
|
|
What is the use of it ? if you try to execute exe, then it will execute in server side not in client side.
Hope you got my point !!
cheers,
Abhijit
|
|
|
|
|
Hai
Thanks for your reply,
I-step
My asp.net web page need to start an .Exe file when the user click on the button and that exe will fetch data from a machine and pushes back to new file in Notepad format.
II-step
After checking whether the folder has any new notepad file my another page will reads data which is in delimited form data.After splitting the data will be saved into database and serverd for other pages.
This is my situation .
kindly give me out an idea if possible
|
|
|
|
|
I am using a grid view containing a lot of templates and controls.
In my webpage, all controls containing gridview is editable.
After postback, I want to retrieve all the
values of the gridview in a dataset or data table.
Is there any method to do that other than doing it row by row and finding each controls within gridview.
|
|
|
|
|
I AM USING DATA GRID AND WANT TO HIGHLIGHT THE KEYWORDS WHICH IS ENTER USING TEXTBOX..
ANUDEEP JAISWAL
SOFTWARE DEVELOPER
DISHA ONLINE PVT LTD.
NOIDA
|
|
|
|
|
row.BackColor = Color.LightGray;
The above code will highlight a row, but can you explai your question again it doesnt quite make sense
|
|
|
|
|
i want to highlight only keywords not row
|
|
|
|
|
Hi,
My WebApplication is running successfully in visualstudio but when I deploy in IIS it is raising one compilation error.......
Error:
The namespace 'Status' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\cmis\f3cef65d\2caf0bf2\assembly\dl3\7bdaa8b2\7685bfed_cbf2c801\App_Code.DLL' conflicts with the type 'Status'
in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\cmis\f3cef65d\2caf0bf2\assembly\dl3\bd733973\e87be4f1_cbf2c801\App_Web_status.aspx.cdcab7d2.DLL'
Thanking You
McMilan.
|
|
|
|