|
i am developing an application in which i need to send sms messages from my asp.net application. i have googled a lot but to no avail..
Do anybody know the proper procedure to send an sms from asp.net application.
All responses are appreciated.
I need it urgent..
|
|
|
|
|
|
hi all,
how can i erase entire content of a file with C# ?
want that file as if its newly created ?
thanks, bye.
|
|
|
|
|
Just open it and save it.
StreamWriter s = new StreamWriter("test.txt");
s.Close();
|
|
|
|
|
<br />
File.Create (@"C:\Test.txt"); <br />
<br />
srini
|
|
|
|
|
hi,
I need some help regarding the loader lock exception in .net 2.0... I have a simple code which creates a new thread using threadstart delegate and creates a windows form in the thread and calls the show method of that form... the result is a loaderlock exception saying some unmanaged code is executed in managed area... has any body got something to say which could possibly solve the problem...
Thanks...
Regards,
Waqas.
|
|
|
|
|
hi all,
i am working on a windows application using c#.net .
the scenario of my problem is, i am havin two controls textbox and datagrid.the datagrid contains one column which has all the countries names. now whenever i type the countries name in the textbox the focus should go on to that countries name in the datagrid. and the row which contains the country should be shown as the first row. for example if we have denmark as the country the focus should go to this whenever i type this in the textbox and we should be able to scroll down the datagrid and show denmark as the first row in the datagrid.
can any one help.
regards,
sagar
|
|
|
|
|
Hi kids
Background
I'm writing a system service style application. It consists of a NotifyIcon in the sys'tray that has several functions that are called from the ContextMenu /Event s.
When the app' starts it should do nothing but sit there until the 'Start Sending' MenuItem 's Event is called. This event starts a new Thread which checks a file repository between Thread.Sleep(15*60*1000) .
Problem
To cut to the chase, the application is maxing out the cpu usage during a loop:
while(this.Created){<br />
Application.DoEvents();}
How to I prevent this excesive usage?
Do I need to access the System Idle Process?
This usage doesn't actually halt the server or even slow it down it just capitalizes the usage as there is no other contender for the cpu's attention. I have tried to drop the Thread.Priority to BelowNormal but the applications Thread remains at Normal in Task Manager.
-- modified at 5:41 Wednesday 5th July, 2006
|
|
|
|
|
Just make it sleep between the times it handles the messages:
while (this.Created) {<br />
Application.DoEvents();<br />
Thread.Sleep(100);<br />
}
---
b { font-weight: normal; }
|
|
|
|
|
I thought that too but it causes a crash, The problem is that Event s don't stack up between each Sleep so you have to click during the split second that Application.DoEvents(); is running
-- modified at 12:34 Thursday 6th July, 2006
Not to worry though, I found a solution
|
|
|
|
|
Yes, the messages are queued.
If the program crashes, there is something else that causes that.
---
b { font-weight: normal; }
|
|
|
|
|
How do i get information about all installed .net framework version? And On what framework my application is running?
Say I have application config file saying
<startup>
<supportedRuntime version="v1.0.3705" />
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v2.0.50727" />
</startup>
So It will run on all the platform. Now, I want to check on which version its running and what all versions are installed on the system.
|
|
|
|
|
use
System.Environment.Version
Srini
|
|
|
|
|
it doesn't giv me what all versions are installed
|
|
|
|
|
|
nice article but Can i do it through managed code? that is in c# ..?? even its Okei if i hav to read from registry. Where i can get these info ?
Thanks for help.
|
|
|
|
|
Well, you could always wrap the unmanaged code in a C++/CLI class and use it from C#.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
It does not work because it just reads from sys parameter. It gives me info about where i am currently executing not about what all versions are installeed
|
|
|
|
|
i need a complete example on RowFilter property of DataView Object in C#
|
|
|
|
|
|
how can i use RowFilter property of DataView object in C# to search a specific row?
|
|
|
|
|
Hi all,
I'm relatively new to C# and now i would like to have the best of both worlds, Java and C#. I would like to know how is it possible for a Java program to call a function, for e.g. helloWorld() in a c# program.
Appreciate any simple examples or links to demonstrate the use.
Thanks
|
|
|
|
|
ahjiang wrote: is it possible for a Java program to call a function, for e.g. helloWorld() in a c# program?
No.
Currently Java just support to call C/C++ native function through JNI(Java Native Interface). See this[^].
regards,
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
I think you are in the wrong forum. Try to post your question in Java Forum. Because the code what you want is a java code.
|
|
|
|
|
I have a c++ code including a method as
parsefile( FILE * pfile);
I have exported this method in c++ in a dll. But In my c# code I want to use this method.
Thus, I have written the below code in the cs file.
[DllImport("main.dll")]
public extern static void parseFile( File pfiOriginal );
static void Main(string[] args)
{
/**** I don't know how to handle FILE * here because there is no FILE *
in c#. deneme.pqd is my file to be used by parsefile method.The
compiler gives error that File constructor takes no arguments.
*****/
File a = new File("deneme.pqd");
parseFile(a);
Console.WriteLine("Press any key to continue...");
Console.ReadLine();
}
Please can you help me urgently about a method doing this.
|
|
|
|