|
If you are using a SoapHttpClientProtocol - derived class to invoke the web service you can set the Timeout property of it to 10 seconds.
|
|
|
|
|
I'm using MSXML2.XMLHttpClass. & it doesn't have a timeout attribute
|
|
|
|
|
Friends I want to do the following things in a function.
Forms.frmFIR fr = new uHTMCM.Forms.frmFIR();
fr.show();
where frmFIR is the form name and uHTMCM is the namespace of the project.
what I want is to send the form name and namespace name in that function(suppose the function name is frmshow(takes two parameter)) and do the above two lines in that function. Can any1 help???
|
|
|
|
|
Saiyed Alam,
You dont need to pass anything to the constructor, just add the below lines in the frmFIR, they will give you the details you want.
Class name: System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name;
Namespace name: System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Namespace;
MSDN[^]
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
a) if the form is in the same assembly of your method
Assembly asm = Assembly.GetExecutingAssembly();
Form frmTemp = asm.CreateInstance(Your_Namespace + "." + Your_Form_Name);
frmTemp.Show();
b) if the form to be called in from some other assembly
Assembly asm = Assembly.LoadFrom(AssemblyPath);
Form frmTemp = asm.CreateInstance(Your_Namespace + "." + Your_Form_Name);
frmTemp.Show();
Hope this helps
|
|
|
|
|
u can easily solve ur problem by this way...
at first create a function like:
public void fnFormShow(Form fc)
{
fc.show();
}
now, create a object and pass through with this function, like:
Forms.frmFIR fr = new uHTMCM.Forms.frmFIR();
fnFormShow(fr);
|
|
|
|
|
I need a mechanisme to handle with EXCEL, like creating and reading Excel files. For this, at starting a new C# windows application, I have added COM reference, by using the "AddReference" dialog box's COM tabsheet. In fact there are two smilar object definiton there:
-Microsoft Excel 5.0 Object Library
-Microsoft Excel 11.0 Object Library.
I have chosen the "11.0"; At the and I managed to handle Excel Files as I wish. But, when I run my application at another pc (that is the one of our customer), it causes exceptions. I noticed that my computer Excel versiyon is 11.xxx which corresponds to Excel-2003, whereas our customer has the Excel-2002. The reason seems the version's difference. Right?
Using COM isn't a good idea? Or Which manner I should use for works with Excel Files? Maybe I use the wrong Classes or Interfaces in the COM object. What to do to avoid version differences; at least close to each other versions? Or Should I prepare seperate applications for each version of Excel.?
Thanks to all of you; for help to my this problem and previous ones.
I love CodeProject and you all.
|
|
|
|
|
You may use 11.0 on your development machine and the same can be used on other machines as well (even though these machines have a different version).
To achieve this, you need to late bind the excel object using "CreateObject" method.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hi
I have a server process and client process connected with Named pipes(server is sending message to client).
If the server is already running, I open the client process,only for first time communication is taking place.If I close client process and reopen again, the serverside is throwing exception at WaitForClients method:"Pipe is broken".I need to close and reopen server in order to take place communication again.
I am using NamedpipeServer Stream and NamedpipeClient Stream objects.
What could be the reason???please advise..
Thanks in adcance
|
|
|
|
|
Hi i want to get lots of practice questions for this exam(free).
|
|
|
|
|
Short of piracy you will find that a very difficult thing to achieve. If you are willing to pay for the questions then i would highly recommmend the Transcender practice exams.
Kev
http://esendexdeveloper.spaces.live.com/
|
|
|
|
|
This is why the exam is worthless, and you can expect anyone worth working for, will interview you and work out that you don't have the skills the exam claims to prove.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Too bad there aren't too many of the one who's worth working for, though.
|
|
|
|
|
Once again I was successfully demotivated to go for certifications.
|
|
|
|
|
Someone has never implemented Dijkstra Algoritm?
I would want to use it in a program but I have some problem to implement it… Please help me!!!
|
|
|
|
|
|
See here[^] if it helps you
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Dijkstra's algorithm - Wikipedia[^]
You have the Pseudocode for the algorithm there. There are external links to the actual implementation of the algorithm at the bottom of the page.
BTW, PLZ UZE GOOGLE.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I have set up a click once application that receives user specific parameters entered in a web page via URL parameters. For most users, this is working, but a few users complain that the application is not working. Apparently, the application is getting NULL for the user parameters in this case. What could be causing this? A problem with the application or some setting in the user's network?
|
|
|
|
|
Hi,
We are using Javascript to generate dynamic controls. Here, we used encodeURIComponent to encode. The problem is that when we enter the % in the searchtext, it is not getting encoded in the mozilla. Here we are maintaining the viewstate for this text. So, when we are redirecting the home page to search page, we are encoding the text for security. But the % character is not encoding in the mozilla because mozilla takes % if there is any space in the text. So, it is including this % to the URL. So, How to encode the % character in the Mozilla.
|
|
|
|
|
|
So what is the problem you have with C#?
|
|
|
|
|
The problem is that i just want to encode the special character like % in the mozilla using Javascript. For that we used encodeURIComponent, but it is not encoding the %. So, the viewstate is failing. now what i want is that how to encode this type of special characters when we are using mozilla?
I tried something like string is converted to ASCII and then encode that ascii value.
Could you tell me how it works with EncodeURIComponent(textbox1.value)
Or any suggestion for this problem for mozilla???
|
|
|
|
|
|
Hi,
The problem is that when we enter the % in the searchtext, it is not getting encoded in the mozilla. Here we are maintaining the viewstate for this text. So, when we are redirecting the home page to search page, we are encoding the text for security. But the % character is not encoding in the mozilla because mozilla takes % if there is any space in the text. So, it is including this % to the URL. So, How to encode the % character in the Mozilla
|
|
|
|