views:

56

answers:

2

Hi All, well it's kinda a newbie question but i think lots of people have problem with that. I'm developing windows\web application for fun, and install them at friends places. most of my developing concentrates on CRM system. but I've a big problem with Showing data from DB in better, effective, lighter ways. using microsoft built-in web control it's easy and it's a nice way, but it doen't answer my needs, and worse, it's not that effective as other web control in great software and web sites(Google(lol)). I want to build my own that kind control(GridView, etc...). so my question is how actually I can do it my self?! write my own controls, how Microsofts builds her Web controls? this question is for both type of controls(web ans windows form developing).

Thanks! Amit

+3  A: 

Here's the starting place for learning about creating your own web controls.

http://msdn.microsoft.com/en-us/library/bb386565.aspx

And here's an older reference, but probably a better place to start.

http://msdn.microsoft.com/en-us/library/aa710843(VS.71).aspx

And finally.... If you want to develop custom controls for Windows Forms applications...

http://msdn.microsoft.com/en-us/library/6hws6h2t.aspx

David Stratton
+3  A: 

Well, this can be answered several ways. Most of the nice controls are doing a lot of Javascript that is not obvious unless you look at the output. You might be interested in using JQuery plugins (or "controls"). Also, to be honest, you might be interested in persuing a new way of doing ASP.NET, which is called ASP.NET MVC. This is a very good way forward of building Web applications that utilize a lot of Web standard technologies without hiding and obscuring the details. Here's a link to that:

http://www.asp.net/mvc/

BobbyShaftoe
Very good answer. I'm one of the MVC "haters", but I recognize that this is a weakness of my own. I'm just too set in my "classic" asp.Net ways. However, if you're looking for finer control, and cleaner separation of concerns, MVC looks like a good route to go.
David Stratton
Thanks both of you very much,never thought to take look of the output of the pageMVC is a great way, and thank you. but those are still tools microsofts gives you, i want to build it my own way,therefore i know how my controller perfectly works and how effective it is. i guess i will go to learn some java script and remember some html tags, then i will take dataset or datatable and build a function which know to generate html\java script that build my own table, can i use StringBuilder for that? how can i take the StringBuilder and insert it into the viewed page? Thanks A lot. Amit
Mazki516