|
Can we change the value of a variable while debugging a C# application?
|
|
|
|
|
|
Yes. You can do this in the Locals window by double clicking on the Value, or by directly changing it in the immediate window. The variable must be in scope, and you must be at a break point to do this.
|
|
|
|
|
Hi,
I have the following xml which I wouold like to pass to the xml parameter of a web service.
please note I do not know how to get the < or > in this forum. sorry
Here is the xml
<ns0:NxPrinterImportAll xmlns:ns0="http://elite.com/schemas/transaction/process/write/NxPrinterImportAll">
<ns1:Initialize xmlns:ns1="http://elite.com/schemas/transaction/object/write/NxPrinter">
<ns1:Edit>
<ns1:NxPrinter KeyValue="Dummy" AliasField="Name">
<ns1:Attributes>
</ns1:Attributes>
</ns1:NxPrinter>
</ns1:Edit>
</ns1:Initialize>
</ns0:NxPrinterImportAll>
So I copy and paste this xml into the textbox of the web service xml parameter but when I then check the content of the text box, this following xml seems to be copied only.
<ns0:NxPrinterImportAll xmlns:ns0="http://elite.com/schemas/transaction/process/write/NxPrinterImportAll">
Do you know why?
|
|
|
|
|
Your whole approach of passing the raw XML is WRONG. To communicate with a web service, add it's web reference (URL address of the WSDL file) to your VS project. Visual Studio will automatically generate C# classes (called proxy classes) which correspond to the service and it's web methods.
After that calling the web method is like calling a method from a DLL. The Microsoft.Web.Services engine will translate your requests and responses to XML (SOAP), so you don't have to.
I hope I cleared some of the fog.
|
|
|
|
|
hi
i want to send data from one computer to another in a local network
when client request connect to server and when i use feedback ip (127.0.0.1) i give reponse but when use 192.168.0.1 give a permission error
system.net.socketpermission
excuse me my English is not good
thank you
|
|
|
|
|
What is the significance of the private IP address 192.168.0.1?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
My network ip begin from 192.168.0.1 to 192.168.0.25
I change ip to 100.0.0.1 and 150.0.0.1 and ...
but I can not recieve a rospond and I recieve error
|
|
|
|
|
Can you show an example of your connect code?
What exception type is thrown?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello everyone,
I am using loadcontrol method to load custom controls.
I have a single .aspx page and a left menu (.ascx control) which is loaded dynamically.
When i click on the left menu's link, control is loaded accordingly.
The problem is:
Loadcontrol always loads control with ispostback=true.
It happens bcoz i have used __doPostBack() onclick of the leftmenu's link.
I want the ispostback = false in the control's load event.
Any help is always welcome.
Thanks,
Malay Khandhediya.
|
|
|
|
|
Double post
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I created a simple key logger application and the user's key strokes are stored just in the memory of the computer.. this time i made use of a socket.. so i created another application that will remotely control that key logger.. and one of the function is to be able to retrieve the key strokes from the remote computer and send it to the application which controls the keylogger remotely.. it worked in my localhost.. but when i used it in two different computers the connection of each was successful, but the buffered keystrokes doesnt show up... i'm suspecting its firewall... so i disabled the firewall of the remote computer.. here's my question, in sockets, do i have to turn off BOTH of the computer's firewall to let it work? is there a way to bypass the firewall? cause if there's no other way i'm going to let the program itself disable the firewall which I dont want.... or maybe its not the firewall causing it.. any idea?
|
|
|
|
|
If your a doing this for a Good Purpose you wouldnt worry about the Firewall, you can tell the person who owns the remote PC to turn the keylogger off. but i suspect you are creating something malicious here. So we cannot help you do that.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
what is compile time polymorphism and run time polymorphism.give 1 line description
|
|
|
|
|
Do your own homework. Buy a book. Learn to google.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
|
WTF !
|
|
|
|
|
Ram_Bytes wrote: give 1 line description
No. Not until you buy me some flowers and say please. I don't put out on a first date.
|
|
|
|
|
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
This is ridiculous.
You posted the same question yesterday and people gave their time to reply, you are shameless enough to post the same question again.
Did you even read what all answers were given you.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
This guy is only asking homework questions. Ignore.
Blog link to be reinstated at a later date.
|
|
|
|
|
Ram_Bytes wrote: give 1 line description
Ahem... I liked The Matrix too.
Wouldn't it be nice to plug a cable in the back of your head and after 3 seconds you go... 'I know C++'
Study if you want to learn.
|
|
|
|
|
Hi all,
I want to restrict the Tree Node label length,when the label is being edited.
How can i accomplish this.
Thanks in Advance,
San
|
|
|
|
|
Create a dialog for editing the label and set the restrictions in the dialog for how the label can be changed. Disable the native label editing in the tree node and handle an event (possibly click) to show the dialog.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Here is mycode:
<br />
private void NullAndRelease(object runtimeObject)<br />
{<br />
try<br />
{<br />
System.Runtime.InteropServices.Marshal.FinalReleaseComObject(runtimeObject);<br />
}<br />
catch {}<br />
finally<br />
{ <br />
runtimeObject = null; <br />
}<br />
}<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
Microsoft.Office.Interop.Excel.Application ExcelApp = new Microsoft.Office.Interop.Excel.Application();<br />
object NullParam = System.Reflection.Missing.Value;<br />
Workbook Book = ExcelApp.Workbooks.Open(FileName, 0, true, NullParam, NullParam, NullParam,<br />
true, NullParam, NullParam, false, false, NullParam, false, true, NullParam);<br />
Worksheet Sheet = Book.Worksheets[1] as Worksheet;<br />
Range UsedRange = Sheet.UsedRange;<br />
<br />
Range Cell = null;<br />
int RowCount = UsedRange.Rows.Count;<br />
for (int i = 2; i <= RowCount; i++)<br />
{<br />
Cell = UsedRange.Cells[i, 1] as Microsoft.Office.Interop.Excel.Range;<br />
Cell = UsedRange.Cells[i, 2] as Microsoft.Office.Interop.Excel.Range;<br />
Cell = UsedRange.Cells[i, 3] as Microsoft.Office.Interop.Excel.Range;<br />
Cell = UsedRange.Cells[i, 4] as Microsoft.Office.Interop.Excel.Range;<br />
Cell = UsedRange.Cells[i, 5] as Microsoft.Office.Interop.Excel.Range;<br />
Cell = UsedRange.Cells[i, 6] as Microsoft.Office.Interop.Excel.Range;<br />
NullAndRelease(Cell); <br />
}<br />
NullAndRelease(Cell);<br />
NullAndRelease(UsedRange);<br />
NullAndRelease(Sheet);<br />
if (Book != null)<br />
Book.Close(false, NullParam, false);<br />
NullAndRelease(Book);<br />
ExcelApp.Quit();<br />
NullAndRelease(ExcelApp);<br />
GC.Collect();<br />
GC.WaitForPendingFinalizers(); <br />
}<br />
These code works well.But when I add the following code in the for loop:
<br />
Cell = UsedRange.Cells[i, 7] as Microsoft.Office.Interop.Excel.Range;<br />
The server does not shut down. It seems that I can only read not more than 6 cells.That's why?
|
|
|
|