|
Hi,
Im using a dayview control. Can somebody explain to me , how to save the appointments to the db?
Thanx
|
|
|
|
|
Hi,
i've got an DataGridViewButtonColumn in my DataGridView
And While all Button Has An Image In Them, This Do not Have
is There Any Way To add the Image Property to that Control
i know i need to Inheart The DataGridViewCell
adn Override the paint Method( i stiil do not know how to implemet that)
And The Image Property
Help, AnyBody????
THANKS
Have Fun
Never forget it
|
|
|
|
|
typing in
<%@ WebService Language="C#" Class="StockQuote.XPlatformServices" %><br /> at top of code page but it does not like this for some reason i am using 2005 web developer, but coding from an old book, can anyone please help
The web service will be crossplatform.
1. keyword,identifier, or string expected after verbatim specifier:@
2. A namespace does not directly contain members such as fields or methods
Please HELP
Thank You
|
|
|
|
|
Where have you put the @WebService directive? In your .asmx file? Or in your .asmx.cs file?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
When i enter the code in the .asmx file it it comes back with error when i build it; could not create type 'StockQuote.XPlatformServices'
Any Ideas.
Is it that this code does not run from within the program where it is created that it requires to be called from another platform language.
|
|
|
|
|
In the code-behind file for your webservice, you should create a class called XPlatformServices that belongs to the StockQuote namespace.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
The WebService directive should only go in the .asmx file. The .cs file i only for your C# code. If you create your web service using Visual Studio, the .asmx file is automatically generated for you. You shouldn't need to modify the directive yourself.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i altered the asmx as so i can call the web service from another language platform Java.
I understand that this is the code that i need but dont know what is the correct way to use it.
|
|
|
|
|
kendo17 wrote: I understand that this is the code that i need but dont know what is the correct way to use it.
I don't understand what you mean. Is there still a problem with your .asmx file? If so, post your code.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
this is the code i am using in the asmx file i have saved it as SimpleStockQuote and it is on my C:
<%@ WebService Language="C#" Class="SimpleStockQuote.XPlatformServices" %>
-- modified at 13:53 Sunday 4th November, 2007
|
|
|
|
|
That looks OK. Are you still having problems?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
yes sorted it was had not changed the class details thank you
i need to complete this tonight or i am going to struggle at Uni.
|
|
|
|
|
OK. Good luck.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hello
I do separate project i want to integrated in one how to do
Any idea is helpful
Thanks in advance
Assaf
|
|
|
|
|
Assaf82 wrote: I do separate project i want to integrated in one how to do
Huh? Rephrase your question. At the beginning you sound like you want to separate two projects, and then you want to integrate them?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I think they have two separate projects, and want to merge them togeather.
So, "I do separate project" becomes "I've done separate projects"
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
That could very well be the case, but who knows for sure.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Sorry for my mistakes
yes i've done two separate project and i want to merge them
Thanks in advance
Assaf
|
|
|
|
|
Assaf82 wrote: i want to merge them
I'd probably just create a third project and add the sources of the two others into the third. You then have the third one, being fresh, and the other two as original backups.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hey - I'm trying to open a connection to a database hosted on my Unix server remotely:
private static void OpenSqlConnection()<br />
{<br />
MySqlConnection oMySqlConn = new MySqlConnection();<br />
<br />
oMySqlConn.ConnectionString = "server=mydomain.com;database=uname_main;user id=uname_main;pwd=myPwd;pooling=false;port=3306;";<br />
<br />
<br />
<br />
try<br />
{<br />
<br />
oMySqlConn.Open();<br />
<br />
if (oMySqlConn.State == ConnectionState.Open) MessageBox.Show("Connection to MySQL opened through OLE DB Provider");<br />
<br />
oMySqlConn.Close();<br />
<br />
}<br />
<br />
catch (MySqlException ex)<br />
{<br />
<br />
MessageBox.Show(ex.Number + " - " + ex.Message, "DB-Connection");<br />
<br />
} <br />
<br />
<br />
}
Everything works fine (as in, I'm using all required libraries, such as MySQL.Data/MySQL.Data.MySQLClient) and I get no errors until I run this method. After about 8 seconds, it constantly says:
1042 - Unable to connect to any of the specified MySQL hosts.
I'm positive that my domain name is correct and that all login credentials are correct. In CPanel on my server I've added %, %.%.%.%, and my IP address as access hosts and I still can't seem to open the connection.
I've been working on this for hours but to no avail, and online help has proved not useful so far.
Any suggestions? I'd gladly appreciate some!
-Matt
|
|
|
|
|
Perhaps I should mention that actually I'm not 100% sure which port I should be using, but everyone else seems to be using 3306. Is that correct as well? What steps must I take to make this connection possible?
I need my application to work with this database on my remote server directly so that I can keep multiple users synced up with stored data, etc.
Thanks again for any help; I need it!
|
|
|
|
|
From what I found on forums.mysql.com the default port is correct. You don't even have to specify it in the connection string.
According to connectionstrings.com you should use the key password instead of pwd .
Do you have a firewall/router between the server and the internet? Is there a port forward specified for the port?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hey thanks for the reply. I changed pwd to password but it still does not work. I never ordered a firewall with my hosting, but submitted a ticket to my host to see if there was any configuration things that need to be worked out anyway.
Also, what is port forwarding? Do I need to specify one?
|
|
|
|
|
I just checked with my host and apparently in WHM you also have to add those access hosts. I did this but still get the error and synced it with the account at hand. Obviously something just isn't right...
|
|
|
|