|
Hi All
This is probably a really easy question!!
I have a C# web service, when its up and running either in debug mode or it has been released.
Is there any way to set the order of the web methods. My methods seem to be randomly ordered
In my code i have something like
...
[WebMethod]
public DataSet WebA(int MyInt)
{
etc
}
[WebMethod]
public DataSet WebB(int MyInt)
{
etc
}
[WebMethod]
public DataSet WebC(int MyInt)
{
etc
}
however when it is hosted and running all the hyperlinks seem in a random order
Like
WebC
WebA
WebB
Any ideas
Si
|
|
|
|
|
|
thanks
|
|
|
|
|
I am working on a Data Grid View control that stores values of a matrix. The values can only be integers or floating point values. I have two problems:
1. How can I retrieve values from the DataGridView Control and store it in a double 2D array. Please tell me the approperiate method.
2. Can I bind the DataGridView Control to a specific data type, e.g. double, so that automatic validation can be done on the values entered.
Thanks
Naveed
-- modified at 15:40 Tuesday 4th April, 2006
|
|
|
|
|
Is there any way to get the ip address of my router programatically, either in a windows application or web application? If any one have ideas please help me.Thanks in advance.
|
|
|
|
|
Routers and switches generally respond to a local broadcast. Send a local broadcast and listen for the responses.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Please don't write everyting using bold. When using it too much it only gets annoying.
If you can get any network settings, look for the gateway address. That is the address of your router.
---
b { font-weight: normal; }
|
|
|
|
|
Hi ALL,
I'm using C# application which has compiled help file .chm. i want to display this when Help Button is clicked. It's working fine when I run the application, but once the project is deployed and Installed using installer it's unable to find the .chm file. It seems to be the path problem.
Does anyone have any idea how to do this?
Warm Regards
Abhijeet Ballal
|
|
|
|
|
Hello Abhijeet
Your description of the problem is perhaps not complete. Are you devleoping a Web or a Windows Application, what method are you using to display and load the .chm file? Assuming that you are working on a Windows application and you are using the Helpprovider extender provider to load the display the .chm file, in the design mode, you have to specify then name of the chm file which you want to load when the user presses the F1 button in the 'HelpNamespce' property of the extender provider. There is a browse button against that property which allows you to specify the path of your chm file. If you use the browse button, it hard codes the physical file of the path in that property, so that when you run the application from the VS IDE, it works fine, but if you build and deploy the project, it would search for the chm file at the same physical path as that on your development machine, and hence doesnt find it.
The Solution:
In development environment/machine, remove the physical path of the chm file from the HelpNamespace property of the help provider and leave only the name of the file along with the .chm extension. Now copy the .chm file in the folder [ProjectName]\Bin\Debug (The same folder where the .exe file of your project is). Run and verify that the chm file is still being located. When deploying, make sure that the exe file of your project and the chm file are in the same folder. This should solve the problem.
|
|
|
|
|
Hi
your correct I'm using Windows application. The Solution you've mentioned above works fine. Can .chm file be the part of Deployment project so that whenever i build and install it will be there? at present i'm not able to add .chm to deployment.
I'm using System.Diagnostics.Process to display the Help.
Thanks for ur quick reply..
Warm Regards
Abhijeet Ballal
|
|
|
|
|
hi
iam working on a c# application that captures video from web cam. I need to compress the video file before saving using c# code independent of the compressors of web cam as different webcams have different compressors ,can anyone help in solving this problem so that the video file can be compressed for any web cam used.
thanks
ramya
|
|
|
|
|
Hi,
I am working on a web application where i need to use Response.Flush to display the status of progress. But, after using Response.Flush, i am unable to use anything with Response i.e Response.Content-Type, Response.Redirect etc, all give error that read "Server cannot set content type after HTTP headers have been sent".
Can someone suggest any alternative solution to show progress in status bar other than using Response.Flush? or how can i make response.redirect and response.content-type work after using response.flush?
Thanks
|
|
|
|
|
|
I have a panel on my form and what I want is when the user double clicks the panel, it will load the date and time properties window (Microsoft WIndows Date and time screen) So the user can change the time and date. BUT I would like (if possible) The application to load as a fixed dialog screen so you would have to use it or you could not do anything else. ANy suggestions how I could do this?
In the end we're all just the same
|
|
|
|
|
Something like:
<br />
Process oProc = new Process();<br />
oProc.StartInfo.FileName = "control.exe";<br />
oProc.StartInfo.Arguments = "date/time";<br />
oProc.Start();<br />
oProc.WaitForExit();<br />
You can launch date/time property window using:
"control.exe timedate.cpl"
or
"control.exe date/time"
or
"rundll32.exe shell32.dll,Control_RunDLL timedate.cpl"
|
|
|
|
|
Hi all,
I have two rich text boxes that I need to join together for example
........RichTextbox1 + Richtextbox2 = Richtextbox1(after join)
Line1........a................b..................ab
Line2........c................D..................CD
Line3........e................f..................ef
I can spin through it line by line but there are over 3000 and this is causing the application to crash
I have tried using Append, insert, += within the loop through the lines but it is still unstable !
Any help would be most appreciated !!!!
Thanks in advance
John
-- modified at 4:10 Tuesday 4th April, 2006
|
|
|
|
|
You could try looping through them line by line (like you are already doing) and putting the text into a StringBuilder. This should be by far faster and the controls are not stressed. After everything is finished set the complete text to your richtextbox: myRichTextBox.Text = myStringBuilder.ToString():
|
|
|
|
|
How about define a variable to store the text in two RichTextBox?
Then using += to join them.
after join all lines. then put result text to RichTextBox1.
--
hoping it help you.
|
|
|
|
|
Hi all
Thanks for the response ! but i am still getting the issue
I am currently using :
------------------------------------
System.Text.StringBuilder sb = new System.Text.StringBuilder();
for (int i = 0; i < RichText.Lines.Length; i++)
{
sb.Append(RichText.Lines[i] + tempData);
}
RichText.AppendText(Convert.ToString(sb));
---------------------------------------
This will run for a random number of rows before crashing
i am going through 6000 + lines (do you think this is an issue).
I have tried a few variations on this theme as stated in previous posts. i have also tried textbox instead of a richtextbox. I AM ALL OUT OF IDEAS !!!!
any help would be fab
Thanks
|
|
|
|
|
Have you tried something like
rtb = RichTextBox
//if you need the styles to copy also
rtb3.RTF = rtb1.RTF + rtb2.RTF
//if you don't care about the styles
rbt3.Text = rtb1.Text + rtb2.Text
-Richard
|
|
|
|
|
Thanks for the reply !
Will that not just put rtb2 at the bottom of rtb1 ?
What i need is to append the first line of rtb2 to the first line of rtb1 and the sencond line of rtb2 on the second line of rtb1 and so on.....
|
|
|
|
|
Sorry I didn't read you org post carefully enough.
In that case your best bet is the solution provided above by Robert Rohde I think.
-Richard
|
|
|
|
|
Can some one point me in the right direction on how to implement a smal C++ console app in Csharp.
|
|
|
|
|
For clarification:
1. Do you want to use or implement the C++ console app in C#? (Whereas the second doesn't make any sense to me, cause how should i implement a C++ app with C#)
2. What exactly do you mean by use (if that's what you want)?
www.troschuetz.de
|
|
|
|
|
I'm implementing two diferrent code parts.
I'ts a chessplay. I have the functionality in C++. Now a want to add a GUI to the game. So a want to use functions in C++ from C#
|
|
|
|