|
Thanks again Eddy
It's good, but i have problem to pass dataTable to stored procedure withing a single transaction.
|
|
|
|
|
What you need to do is that after installing the customer. Fetch the customer id..
And then you can make an overloaded method to save an order where you provide the customerid..
And in that method code it in such a way that the customer id given differently is used and not on the table of orders. .
|
|
|
|
|
i am adding one custom property to textbox.when i click on this item i need to show one form (like popup window).and this form having one textbox and one button..after entering the text in textbox and click on ok button.i need to display the text in this custom property item..
please any one help me.
|
|
|
|
|
set ReadOnly(true) and Browsable(true)
|
|
|
|
|
Oh, man, please do not post duplicated question here. Nobody like this!
I Love KongFu~
|
|
|
|
|
Hi ,
i have a strange requirement...ie
i have an EXE in the website folder under IIS in server...and
i can access that exe from client thru url...
but i need to run that exe(which is in server) in client thru a dialog based application ie on buttonclick i need to run the exe in client...
what i did is on buttonclick event im trying to run cmd in the background in which im sending the parameters--> iexplore http://machinename/websitename/my.exe" when i run this im able to run the exe in client but IE browser is opening ....i do"nt want to display IE browser but the exe should run...(if this is not a better way pls let me know how can i run exe from server in client or i need to copy exe from server and paste in client and i run the exe without using server login credentials...)...
|
|
|
|
|
Using the following code you can download the exe in a local folder and then execute it:
System.Net.WebRequest request = System.Net.WebRequest.Create(remoteExe);
using (System.Net.WebResponse response = request.GetResponse())
{
using (System.IO.Stream stream = response.GetResponseStream())
{
byte[] content = new byte[response.ContentLength];
stream.Read(content, 0, content.Length);
System.IO.File.WriteAllBytes(localExe, content);
}
}
System.Diagnostics.Process.Start(localExe);
modified on Thursday, March 5, 2009 10:45 AM
|
|
|
|
|
thanks for this sample, it works.
But I have a problem. When I try to execute the copied .exe it doens't work.
File has same size..
What migth be wrong?
|
|
|
|
|
pradeep455 wrote: iexplore http://machinename/websitename/my.exe"
this will fire IE in deed.
You can not run an exe on the server from the client. What you can do it, download the exe to the client, then run it on the client.
Yusuf
|
|
|
|
|
How to connect microsoft access to c#.net? And how can i update tables in c#.net?
|
|
|
|
|
look into the system.data.oledb namespace
specifically the oledbconnection and oledbcommand classes
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
Did you even try to Google for an example? There's an example here[^], good luck
I are troll
|
|
|
|
|
Google ado.net
I Love KongFu~
|
|
|
|
|
Hi All
I have C# dll developed now I want to access it using JavaScript in ASP
I need to Register it as COM Server?
How can I do that
Thansk!
Develop2Program & Program2Develop
|
|
|
|
|
Yep, and your class library should have been written to support this from the start.
|
|
|
|
|
Navneet Hegde wrote: I need to Register it as COM Server?
Yes.
Navneet Hegde wrote: How can I do that
1.Use interface and implement it as what you want to do
2.Make the .TLB (type library file) for your C# dll
3.Register TLB
I Love KongFu~
|
|
|
|
|
Hi
How can I activate Event ?
for example: to activate the Form_Load from my Button in the Form
thank's
|
|
|
|
|
Form1.OnLoad();
I cant say how it will work thou, i not tried it
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
If you've got an event handler in your code, it's perfectly possible to just call it providing the appropriate event arguments. For instance:
Form_Load(this, new EventArgs());
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|
|
There's also an EventArgs.Empty, I believe ( but it's useless because in the derived classes, it returns the base object ).
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
WTF?
For some unknown reason, I'll answer this. You do not 'activate' an event. Not in C#, not in any language. An event is fired to handle an 'external' action. In your example, the Form_Load event is fired when (can you guess?) a form is loaded.
What you probably want, but due to synaptic damage failed to state, is to have the same outcome when either the form is loaded or a button upon it is pressed. There are many ways to do it, but the one that 55+ IQ holders would consider is called, and I'm sorry it's a big word, 'refactoring'. This means taking the code that you want to run from two different places and putting in its own method. Then tyou can call it from anywhere.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Call OnXxx(parameters...) method where Xxx is the Event you want to raise.
For the form's Load event:
OnLoad(EventArgs.Empty);
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Stop helping the pre-schoolers!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
my preschool son asks more intriguing questions.
Yusuf
|
|
|
|