|
thanks Christian,
but to sharpen my misunderstanding :
if i want to use a function that on my server with an application that seats in the client computer :
1.i need a webrefference to the webservice in my client's application to create an instance of it right?
2. the webservice shld have a method that invokes method on the server
so how do i connect to the method on the server with the webservice (using a dll?)
sorry if i'm all upside down ...
|
|
|
|
|
johland wrote: need a webrefference to the webservice in my client's application to create an instance of it right?
Correct.
johland wrote: the webservice shld have a method that invokes method on the server
Well, every method that is marked as such in the webservice, invokes a method on the server. Automatically. .NET hides those details from you, so you call the method and create class instances as if they were local, and the framework handles the job of making calls to the webservice and getting the result. The only difference is you need to anticipate exceptions that can occur if the framework cannot find the webservice to call.
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 )
|
|
|
|
|
If you don't like my answer, ask more questions so I understand where the problem is.
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 )
|
|
|
|
|
i think my first problem is phrasing
do these steps are right?
1.i want to use a method that seats on my server with another application
2.so i'm creating a webservice that call that method
this webservice will be part of the server solution so it will have access to the server db.
3.i want the client app to use this webservice so i add webreference to the client app and create instance of it and use its methods.
did i get it?
.
|
|
|
|
|
I was commenting on how my response got a 1/bad answer vote. If it wasn't you, then fair enough, but it seemed likely to me that it was.
Yes, you got it right. The framework handles all the messy stuff for you.
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 )
|
|
|
|
|
sorry...didnt even noticed this feature exsits
|
|
|
|
|
I using System.Collections.HashTable to keep some information about my database.
The information that i collect in my HashTable is -
1. string ( as the key )
2. other string ( as the value )
my problem is that i want to scan the HashTable and when the value string is equal to some parameter i want to stop my scan and check the string key value.
How can i do it ?
Thanks for the help.
|
|
|
|
|
By iterating over the Keys collection.
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 )
|
|
|
|
|
You can iterate the keys collection, and then retrieve and check the value for each key, reacting when you find your sought after value.
|
|
|
|
|
Hi friends........I've created a database application using C# and MS-Access........& the database part is working fine.........now is it possible to print the report directly to a PDF file from an Access database instead of using Crystal Report..........pls reply back asap..........THANKS
Thanks
|
|
|
|
|
Yes, you can buy a PDF library and use it to generate PDFs
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 )
|
|
|
|
|
Hi All,
I have timespan object:
TimeSpan ts= new TimeSpan(0, 72, 1);
when i say :
MessageBox.Show(ts.ToString());
then i get: 01:12:02
What is that means?? 1 days, 12 hours and 2 minutes???
Thanx.
|
|
|
|
|
You're using this constructor:
public TimeSpan(int hours, int minutes, int seconds);
so you've created a timespan object for 72 minutes and 1 second.
which just happens to be exactly 1 hour, 12 minutes and 1 second.
(I'm assuming you've mistyped your output. it's 1 second, not 2)
KamarBand wrote: then i get: 01:12:02
Simon
|
|
|
|
|
Can Anyone Help
How to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# .
|
|
|
|
|
Iterate through the entries. Locate the duplicate. Remove it. Save the file.
You could locate it by adding all the entries to the collection, and checking for a clash with .ContainsKey each time.
Simon
|
|
|
|
|
|
is it a duplicate row or a duplicate entry in the "key" field?
If it's the latter maybe that attribute needs to be combined with another to form the key for the table
|
|
|
|
|
hi
in my solution, i created a table adapter and set select,insert,update,delete actions to my own stored procedures, then for add row, write the following code :
FrmCategory frm = new FrmCategory(false, false);
DsStack.CategoriesRow newRow = this.dt.NewCategoriesRow();
Session.SaveInSession("newCategory", newRow);
if (frm.ShowDialog() == DialogResult.OK)
{
newRow = Session.LoadFromSession("newCategory") as DsStack.CategoriesRow;
this.dt.Rows.Add(newRow);
this.adapter.Update(this.dt);
}
When my table in database is empty :
the first row add to table successfully, but the second row has not been add to database and the following error has shown me :
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.
where does my problem and how to solve it ?
thanks
|
|
|
|
|
check your stored procedures!
Strahil Shorgov
|
|
|
|
|
Your Update method waiting for 1 record to be updated, but your update sp doesn't update any row.
Check you sp manually, sent the same values by parameter and watch the results.
|
|
|
|
|
thanks for replies
my sp code is :
Create Procedure [dbo].[sp_Categories_Insert]
@categoryName nvarchar(30),
@description nvarchar(400)
As
Begin
Insert Into Categories
([categoryName],[description])
Values
(@categoryName,@description)
Declare @ReferenceID int
Select @ReferenceID = @@IDENTITY
Return @ReferenceID
End
do i change sp code ?
|
|
|
|
|
When You run this proc, what the value of @ReferenceID?
|
|
|
|
|
Hi alex
the ReferenceID is PK of Inserted Row
|
|
|
|
|
Hi All,
I am developing a web application under ASP.NET 1.1 C# envi.
I have a situation to convert Doc files to PDF when they are getting uploaded into my we application. so the application should convert doc files into PDF internally and display them in a web browser. Also should be able to add text like some free text on every page into PDF file.
I have been trying to find a solution for more than 2 weeks and am failed. i found few forums in this site but couldnt read them because they r too old.
Can any one suggest any third party source SDK to use in .NEt environment?
Your help is very much appreciated. Desperately waiting for any help.
Thanks
Renu
|
|
|
|
|
Please only post to the relevant forum.
Bob
Ashfield Consultants Ltd
|
|
|
|