|
i have website that send SMS
i need to send any query to this web but i dont want to open the browser
i try this: `System.Diagnostics.Process.Start("IExplore.exe", MyWeb + sbXml.ToString());`
its work excellent - but it open the website in the browser
thanks in advance
|
|
|
|
|
Gali1978 wrote: i need to send any query to this web but i dont want to open the browser
Which is purpose of that?!
I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
|
thanks for the help,
i have website that send SMS
can i get any sample C# code for how to use HttpWebRequest ?
thanks
|
|
|
|
|
|
that is true but the catch is that u need to write a code that they both understand
|
|
|
|
|
I have no idea what you mean.
Martin Fowler wrote: Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
|
|
|
|
|
Hope this information can give you some help http://global.sjzp.com
|
|
|
|
|
Use HttpWebReuqest . Google is your friend.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Hi
I want to stop the reload of master page on every page call.master page code should load first time after that when other page will call than master page loaded data should be as it is ,only need the page data should change.
please help
|
|
|
|
|
Try to use AJAX.
I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
Is there a Whirlpool class in C# ?
|
|
|
|
|
|
Hello,
I've read tons of materials all over codeproject and google about last chance exception handling. Most of the suggested solutions include subscribing to Application.ThreadException and AppDomain.CurrentDomain.UnhandledException to handle both exceptions in current and different thread context. Under debug configuration the exceptions are caught as expected, but under release the CLR unhandled exception dialog is shown and the handler is not invoked.
What is the proper way of handling ALL exceptions (as to provide logging before exit) in WinForms application?
modified on Friday, July 22, 2011 10:46 AM
|
|
|
|
|
I've attached a handler to AppDomain.CurrentDomain.UnhandledException with good results. You need to do it before you call Application.Run, though.
|
|
|
|
|
It is attached at the beginning of Main() (much before Application.Run) as follows:
[STAThread]
static void Main()
{
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
...
}
Did you catch the exceptions under Release configuration?
|
|
|
|
|
Yes. I didn't even do the first call. It is only for exceptions in the UI thread, though ... I don't have a ThreadException handler (all threaded code is self-protected).
|
|
|
|
|
Hello coders
I want to know what will be the main features we have to use to increase application performance. Specially for data updations. There are many available but I want to know the best one.
Any help.
|
|
|
|
|
What kind of app, in witch context, made with witch technology??? Give as more details, in this way it is too generic!
|
|
|
|
|
This really is very generic. You may make use of profiler to see where the loop holes are and then fix them. Since you are speaking of data updations, here are few things to take care of:
1. Connections should be used wisely.
2. Proper indexing.
3. Efficient queries.
"The worst code you'll come across is code you wrote last year.", wizardzz[ ^]
|
|
|
|
|
Don't repost questions. You could simply have updated your other question to clarify it.
|
|
|
|
|
Calling the same method twice will definitely effect performance and response times
"You get that on the big jobs."
|
|
|
|
|
Database related? Reuse Connections, Commands, and Parameters as much as possible -- don't keep instantiating and disposing them.
|
|
|
|
|
I don't think that is quite right. Under the covers, .NET maintains a connection pool so it is best to open the connection, do the work and then close it.
Use using, create the connection, command and parameters. Do the work and get out of there.
"You get that on the big jobs."
|
|
|
|
|
Yes, open and close it, don't dispose of it.
RobCroll wrote: Use using, create the connection, command and parameters
Absolutely not.
|
|
|
|