|
HowTo's on Selecting Data:
- How to create a webMethod that *selects* data from a DB
- How to Consume the webService and display the data using DataGrid
HowTo's on Inserting Data:
- How to create a webMethod that allows *insert* into a DBtable via webMethod
- How to consume the webService and create a form using the DetailsView to insert data
I cant find anything on this stuff and I am desperately in need of how to figure this out.
Thanks in advance!
-swo
|
|
|
|
|
Working with data is pretty simple. Here's a sample called GetMyData in a web service class called MyWebClass. It retrieves a load of data from some data source and populates a generic collection before returning it to the client.
[WebMethod]
public List<CustomClass> GetMyData()
{
List<CustomClass> custClass = new List<CustomClass>();
while (myDataReader.Read())
{
CustomClass item = new CustomClass();
item.Id = myDataReader.GetInt32(0);
item.Name = myDataReader.GetString(1);
custClass.Add(item);
}
return custClass;
} Compile your webservice and add a webreference to it in your calling code (we'll call it WebRef here). The signature for this method will look like this public CustomClass[] GetMyData(); because web services can't return generic lists, but they can return arrays of classes so .NET marshals your list class to an array of objects. In your client code, do this:
WebRef.MyWebClass cl = new WebRef.MyWebClass();
CustomClass[] items = cl.GetMyData(); I'm doing this off the top of my head, so I apologise if the syntax isn't 100% correct here. Note - if you want to use a generic list on the client side, you can do this:
List<CustomClass> list = new List<CustomClass>();
list.AddRange(cl.GetMyData());
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
...anyone?
|
|
|
|
|
I don't believe that anybody has written or released one yet. Of course, you could host the WinForms propertygrid in your WPF app. See here[^].
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
You've probably seen those apps where you type in your zip or city and it gives you back a list of cities that are within n number of miles. Can anyone point me to a database/code - something already cooked and is reasonably priced and alows programmatic control with .NET 2.0 and C#?
Cheers.
Cliff
|
|
|
|
|
You can do this with MapInfo, Virtual Earth, Google Maps or any one of a number of GIS systems.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
This forum is for article suggestions. You might better off doing a google search.
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
|
Hi..
An idea, for someone who knows how do this.
In VS Studio IDE, I want to select a block of code, and then right click to sort all the methods and properties, in that selection.
This would be really nice.
Sk8tZ
|
|
|
|
|
|
I was wondering that too. By classes, etc?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
alphabetically, etc
or only sort properties, privates, oh class as mentioned
Sk8tZ
|
|
|
|
|
Hi,
Can any one help me with a Autocomplete article without using webservice
|
|
|
|
|
Hello, I'm new here, and I've learned a bit, probably enough to be dangerous, but I would like to learn how to code a taskbar toolbar extension that would be equivalent to the run dialog (which is very different from the address toolbar.) I've learned that the shell extension hook is needed, I'm pretty good at register hacking and would like some advice. It seems as if it would be pretty simple to do.
Any Ideas?
|
|
|
|
|
First, welcome to the site. You have a good question, but unfortunately posted it in the wrong forum. This forum is specifically for people to submit article ideas, not to get programming help. You would probably get a better response posting this in one of the programming (language or technology) related forums.
Have you tried searching on Google or here on the site for information related to this? I don't know if doing something like this would be any different than writing a regular shell extension, but I know there are a few people here that should have some experience writing shell extensions that might be able to answer your question.
Also, be sure to check out the forum posting guidelines.
|
|
|
|
|
Hi,
Can anyone send articles about Tab menu control for my Asp.Net application. Please help me out.
|
|
|
|
|
PeriyasamyRamachandran wrote: Can anyone send articles about Tab menu control for my Asp.Net application. Please help me out.
First, you're posting in the wrong forum. This is for submitting article ideas, not asking for help. You would do better to post the question in one of the programming forums, probably the ASP.NET forum.
Have you tried searching Google or here on CP for articles on how to do this?
|
|
|
|
|
|
hi
I am trying to develop tracking and tracing information system for postal company and I need some references,articles and tutorials to help me in design and implement this project.
thank you.
|
|
|
|
|
ramez85 wrote: I am trying to develop tracking and tracing information system for postal company and I need some references,articles and tutorials to help me in design and implement this project.
You are asking this in the wrong forum. This forum is for submitting ideas for articles, not asking for help with a project. You would do better to ask this in one of the programming forums, perhaps the Design and Architecture forum.
Have you tried looking on Google or tried to come up with any ideas on your own? Most people here will not simply provide you with an answer but will help with specific, focused questions.
|
|
|
|
|
|
First of all, this is the wrong forum. This forum is for submitting article ideas. Secondly, have you tried Google[^]? The first hit appears to be the official website for the company that created this format and 2 pages into their website is the information you're looking for.
|
|
|
|
|
|
Ehsan_MF wrote: can you tell me where can I put such questions ?
The best place would be one of the programming forums, depending on the programming language you are using. There are forums for C#, Visual Basic/VB.NET, C++, and C++/CLI (managed).
|
|
|
|
|