|
Well no, but since the message does mention the thread's number I figured it should be easy for VS to display the threadname that's linked to it...
Standards are great! Everybody should have one!
|
|
|
|
|
I have 2 webforms form1.aspx and form2.aspx. on form1 i have 2 buttons EDIT and NEW and on form2 i have SAVE and UPDATE .... I want to disable UPDATE button on form2 when i click NEW buttton on form1 and similarily i want to disable SAVE button when i click EDIT button in form1 . as EDIT buttton only should enable UPDATE and NEW should enable only SAVE
please ..Its Urgent !!
|
|
|
|
|
If you are opening form2 from form1, pass a value from form1 indicating which button was pressed. In the page_load event handler, enable or disable the button depending on the value received.
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
hi , i need ur help i m doing asp.net 2005 using C# , so i want 2 send emails automatically from database at a particular time. so what can i do this program ..plz..tell me..
thanks 2 all..
|
|
|
|
|
Are you using SQL Server? If so, you can use SQL Server to do this automatically by setting a task to run at a certain time (SQL Server has a job manager), and using the sp_sendmail functionality of SQL Server.
|
|
|
|
|
Nice. Learn something new every day. Don't do much SQL Server stuff for a while now, out of touch.
|
|
|
|
|
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.");
}
}
|
|
|
|