|
I'm glad I can pass some of this on. There's no start to my talents.
|
|
|
|
|
plz...try 2 get solution for this i need urgent brother....
thanks 2 all..
|
|
|
|
|
hello led mike..
so tell me brother ..how can i do without sql server.. plz..tell i need some urgent.. i need code with sql server or without sql server..
thanks 2 all..
|
|
|
|
|
If you want to do this without SQL Server, you are going to have to write a Windows Service that runs all the time. Inside the service, you need to run a timer which fires periodically. When it fires, you need to check the current time and send your mail message if it's appropriate. Hint: take a look at the MailMessage or SmtpMail class to figure out how to send your message.
Rajeshwar Developer wrote: i need code with sql server or without sql server..
You're not going to get the code. We don't write software for others - if you need this then you should go to rentacoder. We are a volunteer only forum and people here don't have time to write the software for you; and please - don't say it's urgent. Every post is urgent for somebody - you are more likely to antagonize people by saying this.
|
|
|
|
|
ok thanks brother..but i m doing web application..so how could i do? we r not suppose 2 do using windows service know..
but brother do this job 4 me try 2 understand ...
thanks 2 all..
|
|
|
|
|
If something has to be triggered at a specific time, then you need a mechanism that is running permanently. This was the reason I suggested using the Sql Server job manager in the first place. If this is not possible, you either need to write a Windows Service, or you could write an application that is fired off from the scheduler running under your OS. There is no way to do this automatically from a website - it must be run from the OS (hence a Windows service or the task scheduler).
|
|
|
|
|
thanks brother ..i know using trigger we can do .. but i cant able 2 understand how can i do.... i think this task becoming 2 hard..
thanks 2 all..
|
|
|
|
|
thanks brother... i know using trigger we can do this task ..but i cant able 2 understand how 2 do .... i think this task becoming 2 hard know..
thanks 2 all..
|
|
|
|
|
how to detarmine mouse event c# row selection with key.
like shift or controls key.
so how can be find to select row according to ctrl or shift key
amit
|
|
|
|
|
Just use the normal mouse handler in combination with System.Windows.Forms.Control.ModifierKeys .
Standards are great! Everybody should have one!
|
|
|
|
|
Hello everyone
I've written a little application to load pictures and display them on a windows form at the same time. What I've done is put a group of PictureBoxes onto a scrollable panel, and let the PictureBoxes draw their contained images.
However, I find it's very unefficient. When I scroll the containing panel up and down, the already drawn PictureBoxes are redrawn again, which is quite undesirable.
So I'm wondering which event causes the PictureBoxes to be redrawn? And when will the event be raised?
Worse still, I even have no idea which one is doing the actual drawing job, the PictureBoxes or the containing panel?
Can anyone help me with this? Thank you!
|
|
|
|
|
Not exactly answering your question, but the general advice is to avoid using PictureBoxes, and do your own custom painting directly.
|
|
|
|
|
Can any body tell me the advantages and disadvantages of both kinds to get to know if a file is in a specified directory.
I have a directory in the network and a application that should work with the file took into the directory.
I try to do it with a FileSystemWatcher, but the problem is, if the network connection failed, the FileSystemWatcher did'nt react if the network directory is already available.
So i need to reinitialize the FileSystemWatcher in a while again.
But i also heard to poll the file system isn't a good idea because it slows the cpu down.
(Is it more than the FileSystemWatcher? Can anybody suggest (a good loop time for) polling?)
Thank You for your suggestions...
|
|
|
|
|
You could create a thread, spins in a loop and reinitializes the FileSystemWatcher from time to time using Thread.Sleep in between. As FileSystemWatcher uses events this would effectively create a mix of polling and signaling.
|
|
|
|
|
Yes i already do so, but i think: 'is this mix good?', isn't it better only to poll the file system instead using the file system watcher?
|
|
|
|
|
I would think this is ok, and you can decide how often you poll, just don't do it all the time. You may use a flag for poll-only mode which reduces the polling period and disables the FileSystemWatcher, which would make it kind of universal. You could even call the same callback.
|
|
|
|
|
Another downside of the FSW is that it can only be used with NTFS filesystems (FAT may be possible as well, don't know 100%). So if you're trying to watch a file on a SMB share you won't get any events.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Why not use a PrintDialog (the WinForms one) instead? With this, you don't have to use P/Invoke for anything.
|
|
|
|
|
Hi all,
Can any one help me out if my application's code is correct to read an Inbound Xml file pointing to my application from another platform API's.
Here is the code in the page_load event.
protected void Page_Load(object sender, EventArgs e)
{
string xml = Request.Form["XML"];
DateTime dateNow = DateTime.Parse(DateTime.Now.ToString());
string contentName = dateNow.ToString("yyyyMMddhhmmsstt");
string dateOnly = dateNow.ToString("yyyyMMdd");
string hourOnly = dateNow.ToString("HHtt");
string path = Server.MapPath("./text/revers.xml");
string billingMsg = "Thank you for you message. You have been .";
string username = "test";
string password = "test";
string xmlOut = string.Empty;
if (!string.IsNullOrEmpty(xml))
{
int DbPosition = GetNextId();
ProcessMoMms(xml, path, contentName, billingMsg, username, password, DbPosition, dateOnly, hourOnly);
xmlOut = GetXmlString(path);
xmlOut = HttpPost("http://gateway.input.com/MtReceiver", xmlOut);
Response.Write("OK");
Response.End();
}
else
Response.Write("The post field xml has not been defined.");
}
}
|
|
|
|
|
Hi
Can any one help me to find the current user domain.
I am using the follwing code:
WindowsIdentity wIdentity= WindowsIdentity.GetCurrent();
Its listing only the current system connected domain.
For ex:
I belongs to domain retail, if i log in using my userid and domain("retail") from other machine belongs to other domain, its giving that system domain instead of my domain. Help me please.
kesavan
|
|
|
|
|
What is this for? ASP.Net or something else?
FOr ASP.Net the code you have there is correct, if it's giving you the wrong results then you probably don't have impersonation setup correctly.
If it's for something else then check out the System.Environment[^] class.
|
|
|
|
|
I am tring to create a series of dynamic tables using c# .net
I can add rows and data to a table already created in my aspx page but as soon as I try and create a new table I get nothing. I know this is down to me not doing something but I can't seem to find out what. Here is my basic code, it is only for one table, but that will be changed once I can display this one:
Table testTbl = new Table();
testTbl.ID = "testTbleID";
TableRow testTblRow = new TableRow();
TableCell testTblCell = new TableCell();
TableRow testTblRow1 = new TableRow();
TableCell testTblCell1 = new TableCell();
testTblCell.Text = "Hello World!!";
testTblRow.Cells.Add(testTblCell);
testTbl.Rows.Add(testTblRow);
testTblCell1.Text = "Hello Again World!!";
testTblRow1.Cells.Add(testTblCell1);
testTbl.Rows.Add(testTblRow1);
What do I have to do to get the table to write on the page? I know it is created as I can response.write the number of rows in it?
any help would be appreciated, I know it's something simple, it always is!
Thanks in advance
mark
|
|
|
|
|
Take Literal control
Literal lit = new Literal();
lit.Controls.Add(testTbl);
Try this..........
|
|
|
|
|
Satish,
Thanks for your reply, I can see where you're coming from I think, but I just get the following error?
Exception Details: System.Web.HttpException: 'System.Web.UI.WebControls.Literal' does not allow child controls.
I tried LiteralControl aswell but got the same error?
Is this the only way to do it?
thanks again
|
|
|
|
|
You need to add the table to your page's controls collection.
form1.Controls.Add(testTbl );
'form1' can be the pages Form , or you can use a Panel or PlaceHolder .
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|