Help needed to create a custom control using Interfaceshttp://forums.asp.net/t/1785947.aspx/1?Help+needed+to+create+a+custom+control+using+InterfacesThu, 29 Mar 2012 04:50:36 -040017859474902403http://forums.asp.net/p/1785947/4902403.aspx/1?Help+needed+to+create+a+custom+control+using+InterfacesHelp needed to create a custom control using Interfaces <p>I am a beginner level web programmer and have basic understanding of C#, ASP.net. As I am currently learning the real-world usage of .Net Interfaces, I need help in creating a custom control which I believe would require usage of Interfaces.</p> <p>The custom control I want to create is to display a list of upcoming events in a company or organization. The display would be more like an RSS reader. The control should provide the following functionalities:</p> <ul> <li>Display list of upcoming events with event title, short description (limited characters) and date of event </li><li>Load/save data into a given table where table schema and database connection are provided by the implementing class. </li></ul> <p>Would greatly appreciate, if anyone can help me to get started here. Also if similar question has already been answered in any other thread, please re-direct me to that.</p> <p>Thanks</p> 2012-03-27T18:58:59-04:004902622http://forums.asp.net/p/1785947/4902622.aspx/1?Re+Help+needed+to+create+a+custom+control+using+InterfacesRe: Help needed to create a custom control using Interfaces <p>Hi Jarnail, Your custom control have to load the data (ok sure), and save too?</p> <p>To Load data you can derive your control from a Datalist or Gridview control, specializing his funcionality to get data from your table.</p> <p>But simplier you can use those controls as is...</p> 2012-03-27T21:48:28-04:004905043http://forums.asp.net/p/1785947/4905043.aspx/1?Re+Help+needed+to+create+a+custom+control+using+InterfacesRe: Help needed to create a custom control using Interfaces <p>Hello jarnail</p> <p>Considering it that you are a newbiemaybe you should learn how to make a standard Web Server control firstYou should know more about the cycle of ASP.NET's page lifeand a lot of things</p> <p>Now your problem and solution can be found at</p> <p><a href="http://www.4guysfromrolla.com/articles/102903-1.aspx">http://www.4guysfromrolla.com/articles/102903-1.aspx</a></p> 2012-03-29T01:54:33-04:004905209http://forums.asp.net/p/1785947/4905209.aspx/1?Re+Help+needed+to+create+a+custom+control+using+InterfacesRe: Help needed to create a custom control using Interfaces <p>Hello Decker,</p> <p>Thanks for your reply and for your suggestions. I have been working on ASP.Net from couple of years and still consider myself a novice as my experience limits to accessing database using ADO.net or from code behind, using common controls such as Listview, Gridview etc. Also I have used web server controls in few projects.</p> <p>Unfortunately, the link you provided doesn't answer my question as my question relates to building a custom web control which will display information like RSS reader : title, brief desc, date/time (please note I don't want a RSS reader). The idea is to have a web control which will only need datatable schema and data connection as inputs (limited to sql server client only) to display information and it will provide basic database manipulation functions (insert, delete, update) . This way I won't have to write code again if I need this kind of contol on a different web page or web project.</p> <p>I am not expecting to have complete code for this as I just need an idea how this can be done.</p> <p>Thank you.&nbsp;</p> 2012-03-29T04:34:14-04:004905227http://forums.asp.net/p/1785947/4905227.aspx/1?Re+Help+needed+to+create+a+custom+control+using+InterfacesRe: Help needed to create a custom control using Interfaces <p>For RSSyou should create a database to store these info by adding titlebrief descdate/timeect</p> <p>and then try to output your aspx file just the form of rss feed for others to order</p> 2012-03-29T04:50:36-04:00