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.
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:
Display list of upcoming events with event title, short description (limited characters) and date of event
Load/save data into a given table where table schema and database connection are provided by the implementing class.
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.
Considering it that you are a newbie,maybe you should learn how to make a standard Web Server control first:You should know more about the cycle of ASP.NET's page life,and a lot of things。
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.
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.
I am not expecting to have complete code for this as I just need an idea how this can be done.
jarnail
Member
3 Points
9 Posts
Help needed to create a custom control using Interfaces
Mar 27, 2012 06:58 PM|LINK
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.
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:
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.
Thanks
ArtCava
Member
18 Points
9 Posts
Re: Help needed to create a custom control using Interfaces
Mar 27, 2012 09:48 PM|LINK
Hi Jarnail, Your custom control have to load the data (ok sure), and save too?
To Load data you can derive your control from a Datalist or Gridview control, specializing his funcionality to get data from your table.
But simplier you can use those controls as is...
WebMaster & Programmer
Il mio sito in continua evoluzione...
Vieni a trovarmi!
http://www.artcava.net/
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Help needed to create a custom control using Interfaces
Mar 29, 2012 01:54 AM|LINK
Hello jarnail:)
Considering it that you are a newbie,maybe you should learn how to make a standard Web Server control first:You should know more about the cycle of ASP.NET's page life,and a lot of things。
Now your problem and solution can be found at:
http://www.4guysfromrolla.com/articles/102903-1.aspx
jarnail
Member
3 Points
9 Posts
Re: Help needed to create a custom control using Interfaces
Mar 29, 2012 04:34 AM|LINK
Hello Decker,
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.
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.
I am not expecting to have complete code for this as I just need an idea how this can be done.
Thank you.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Help needed to create a custom control using Interfaces
Mar 29, 2012 04:50 AM|LINK
For RSS,you should create a database to store these info by adding title,brief desc,date/time……ect。
and then try to output your aspx file just the form of rss feed for others to order。