MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Example of Database connection and custom web part? (Closed) (Mono Support )

Viewed 54578 time(s), 2 post(s) 6/15/2011 6:45:38 PMby waterskiaddict

Related topics

waterskiaddict

waterskiaddict

6/15/2011 6:49:01 PM
I am interested in making a custom web part that accesses another table in the SQL database. Is there any examples of this? or a tutorial on how to do it? I have done asp.net development before but nothing with web parts.

I have already created the tables in SQL, and the page in a normal ascx file through visual studio 2010
This content has not been rated yet. 
36 Reputation 10 Total posts
denis

denis

6/15/2011 6:58:24 PM
The tutorial at this URL (http://www.mono-software.com/blog/post/Mono/93/Building-a-custom-Web-part/) describes this process in full detail, including all MonoX-specific techniques (like templating). In addition, it also describes a recommended data access strategy.
However, you can choose the data access techniques you want to use - MonoX uses LLBLGen ORM and a repository model, but you can use anything else: NHybernate, LINQ, Entity Framework, ADO.NET...
This content has not been rated yet. 
7207 Reputation 956 Total posts