|
Hi All
Maybe I'm being really dumb, but just can't find a solution to this one- please help!
I'm using c# (on a PocketPC)
I create some XML
I want to send that XML to an ASP page on the web and return an XML result
I'm using XmlTextReader to get XML data from the webpage but I'm lost as to how to send some XML to an ASP page! Is it the same script except that i use XmlTextWriter? Isn't that just for files!?
Thanks in advance
Sal
-- modified at 15:10 Wednesday 16th November, 2005
|
|
|
|
|
How are you making the actual web request? And how does the webpage expect to receive the xml, as POST data?
I would think the most likely thing you want to do is use the HttpWebRequest class to POST the data up to the web page, if you set its 'Method' to 'POST' you can the use the GetRequestStream() method to return a stream to which you can write your xml.
Is that the sort of thing you are after?
Regards,
Rob Philpott.
|
|
|
|
|
That's the solution I was looking for- thank you ---;-@
|
|
|
|
|
I made this wrapper around an unmanaged C++ library and am having some troubles with a messagebox.
Normally when the c++ library encounters an error or whatever, it would return a 0 or whatnot, but on some functions it just decides to show a message box with an error message, totally inconsistency with the rest of the program. This is even worst since I am wrapping the library and then instead of my error message that would come up the user get's this random messagebox popup with some cryptic error message.
Anyways, I was wondering if there is a way to suppress this messagebox from popping up. The messagebox originates from the unmanaged c++ library, so can my C# wrapper class block the messagebox somehow?
/\ |_ E X E GG
|
|
|
|
|
You are not going to be able to block it in C# (well, maybe - but it would be a serious hack)
If you can recompile the C++ library, there is a way to do away with that messagebox. If I remember correctly it is coming from the C libary, so do a search for the messagebox api in the C headers for the #define - then just copy/paste into your header to override, the recompile. I've done that before and it works nicely.
However, on that note, the message you are getting is probably "pure virtual function call" - which indicates that the C++ code needs to be fixed anyway, as there is a bug. Search for "pure virtual function call" on MSDN and there is a full explanation of why you see that messagebox.
|
|
|
|
|
hello all,
i got this message when i try added anther calss to my com+ component
Could not load type DataAccess.Payroll from assembly DataAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3033fe621d172f88.
pls can any one know how can i solve this
thank
hoho
|
|
|
|
|
is it thinkable/possible to put you own windwos-form as a mdi-chid in a foreign mdiapplication?
|
|
|
|
|
If you're talking about adding your own MDI Child form to another process MDI Parent, no it's not possible.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yes, this was my thougt.
thank you for the answer!
|
|
|
|
|
I am writing a program on c#, but I am storing information on mysql and extracting it into c#. I want to have a function on c# where the user can update information. How do I have the user update the information that is stored on mysql.
|
|
|
|
|
You should be able to run a Transact SQL query from your SQLConnection object in you application that does that for you. The SQL command that you're probably looking for is the UPDATE statement which you can find plenty of information about on the web ( Here's one).
|
|
|
|
|
|
I think you are looking for the object Process . Specifically, Process.Start() . You can set it to run sync or async.
|
|
|
|
|
Look in the System.Diagnostic namespace.
|
|
|
|
|
Is it possible to make parent and child forms running in the different threads.
For example parent form will be in main app thread which launch another thread which creates form and are child to the parent from.
Actaualy what I want to achieve to have MDI in which views/child forms running in the own thread. In C++ was 100 methods to it using WinAPI/MFC/ATL/Stingray ... Here I confused to find at least single way to do it.
|
|
|
|
|
Sure you can, launch the other thread and call Application.Run from the other thread.
void buttonClick(...)
{
new Thread(new ThreadStart(NewThread)).Start();
}
void NewThread()
{
Application.Run(new ChildForm());
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Could you please explain what is ChildForm.
Where it declared (namespace) or it custom with some flags which makes it child.
Thanks.
|
|
|
|
|
Alex_Y wrote: Could you please explain what is ChildForm.
Nothing special, it's the type name for the form which you want to be displayed in a separate thread. Just replace it your form's class name.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
This is the thing. When you trying to set ChildForm to be child of parent or set parent to ChildForm either way it showing differnt errors.
Parent/child relation error or sync issues.
|
|
|
|
|
I have a big dll project with 3 different namespaces. Complete code is well structured and now I want to make one dll for each namespace out of it. Now I have the possibility to start 3 new projects, copy and paste the code and compile it. But is there another way to compile without the copy paste possibility? Thanks!
|
|
|
|
|
Are your namespaces in different code files? If so, you could just copy the files themselves rather than the code. Either way should work.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Morality Apart from God
Judah Himango
|
|
|
|
|
Hello,
I'm pretty sure that this is not possible. The smalles unit that you can build is a project and the linker doesn't produce more than one assembly per project.
I don't know about VS 2003, but if you're using VS 2005, you can make a new project and take the project properties from the original one. In the project explorer, you can move the files per namespace to the other projects. The IDE moves the physical files for you. Second, you'll have to add the references to the projects and do a build solution.
Hope this helps.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Can't you just move them all under the same solution or add them to a solution and compile it that way?
Tom
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Thx for reply,
By using VS 2003, it seems that I have to use copy paste.
|
|
|
|
|
Dear friends
I am looking for a method to synchronize reading text with nariation.
assume that we havwe a textBox with some lines of text which a nariation
is playing in background and the lines of text shuld be selected respect to
the line which narriator is reading.
any code or idea is appriceated.
Thanks.
M.Jaf
|
|
|
|