Getting started with databases.


I'm quite new developing in I've gone through a fair few of the learning tutorials here on this site along with a couple of others. I'm now working with data access. I've successfully managed to create a database within sql management studio express, add the appropriate connection string within my web.config and also populate data fields and grid views with the information from my database.

What I would like to do now is learn how to insert, edit and delete content from said database using tinymce. I believe it requires the use of a data access layer? I know the basic SQL statements for when I create my data set but what I'm stuck on is how I can create a text box with an id which calls a function from the dataset.

If someone could please point me in the right direction that would be greatly appreciated.


3/18/2008 10:10:14 PM 91979 articles. 3 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 19

 If you look at thread, you will see an example of generation of a data layer using some scripts.

If you post a table creation script I will write some data layer code for you. Please let me know if you want C# or VB.NET.

Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
3/18/2008 10:55:27 PM

Thanks, Tatworth. I'm coding in C#.

What I have for testing purposes here is my asp:repeater displaying information from 2 separate rows in my database with an edit and a delete button.

<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource2">


<div style="background:#fafafa;">

<h2><%# ((System.Data.DataRowView)Container.DataItem)["BLOG_TITLE"] %></h2>

<p><%# ((System.Data.DataRowView)Container.DataItem)["BLOG_BODY"] %></p>

<asp:Button ID="btnEdit" runat="server" Text="Edit" />

<asp:Button ID="btnDelete" runat="server" Text="Delete" />




<div style="background:#fff;">

<h2><%# ((System.Data.DataRowView)Container.DataItem)["BLOG_TITLE"] %></h2>

<p><%# ((System.Data.DataRowView)Container.DataItem)["BLOG_BODY"] %></p>

<asp:Button ID="btnEdit" runat="server" Text="Edit" />

<asp:Button ID="btnDelete" runat="server" Text="Delete" />




<asp:SqlDataSource ID="SqlDataSource2" runat="server"


ConnectionString="<%$ ConnectionStrings:DatabaseConnectionString %>">


How can I make the edit button make the content changable with tinymce and then with the delete button, remove the content by ID?

I also though about when adding data, as I mentioned above, I'm using ID's to identify rows. When I create my add/insert button, how can I tell it to auto generate an ID? For instance I have 2 "blog posts" currently each have ID's (1 and 2) when I add/insert a new post how can I tell it to create the post with ID 3 and so on?

3/19/2008 12:34:26 AM

 I am not too familiar with TinyMCE so cannot give you much input with respect to it.

 Regarding adding ID in the database, set the blog table id field to auto increment. This can be done so:
When in "design mode" in the datatabase, set the Identy property of your id field to On, Identity seed and Identity increment can be left at the default (1).

 Regarding the question on adding action to your buttons, I had to do something similar recetly - take a look at the code for the section titled "Bubbling Button Clicks Within a List" - the second paragraph describes and points to code that will help you do what I understand you are asking.
You will then have to figure out how to tie thing onto tinyMCE...


3/19/2008 1:29:08 AM

Similar Artilces:

Where to start and how did you get started?
Hi, I have had a feeling for a long time to jump into the adds market for some time due to my low income (shooting for the stars) and I don't have anything better to do these days. But I find it really difficult not to give up due to lack of guides (what I can find atleast) and all the hard words which only makes me confused. But I won't give up. Never. Not sure if this is the right place to post this, but I deffinitly would be really greatfull for help getting started. How did you get started? +If there are any teacher that wanna show me the ropes private, I can give payment with ...

Getting started with databases
Since I have a lot of data that I should organize (as a hobby), I want to get started with relational databases, but I'm not sure how to configure my setup. I have only a passing familiarity with SQL as a user, although I have some C++ experience also, on Windows systems. I want to use OpenOffice 2.0, and I appreciate that documentation is weak. My understanding is that OO is all I need, but I've also read about people using Firebird with OO as a front end. My problem is that everything I read (via Google) is aimed at folks who already know how to use databases. Is it better to h...

Getting Start With .net
hi i'm intersted to learn (vb or delphi) . i programming with delphi6 but i'd like to tp know something about programming in internet specially with .net . i hear about with delphi 7 that i can programming with delphi in .net .... is it right ? what 's our opinian about it ? and better to learn Vb.Net or continu with delphi(or thanks. Ali Darabian I think there is some support for Delphi in .Net. However, you will find much more support from the user community if you choose a more popular language such as VB.Net or C#. Since your al...

how to get start with .NET
the net help people installed  to my desktop 1-microsoft visual studio .NET enterprise developer 2003 2-microsoft .NET framework 1.1 what else do i need ...???  and how can i try with some simple code in VS.Net and run it to see wat happen...????? please help If you want to develope web applications, then you'll also need IIS on your PC.  That'll require XP-Professional or Windows 2000/2003, but XP-Home edition won't allow IIS installation. As for how to get started, you can search the web for some tutorials or buy a good book on VS.  The topic is way too vast to...

Truely just getting started, so where should I start?
I've already been working a thread on a good reference/learning book.  but truely I'm just getting started.  I've a background with HTML and some CSS But this is my first foray into any sort of application language.  I've had an interest in PHP and ASP but have only recently started to make the effort to learn.  I'm starting with the videos available here and they are great for learning the development application but I've not the programming background to easily absorb some of the more programming based processes.  I've no college resources where I'm at other than o...

trying to get started and i am getting this error
when i go to, i get: DotNetNuke Upgrade Error The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] ) ERROR: Could not connect to database. Could not find file 'd:\hosting\nmoran26\Providers\DataProviders\AccessDataProvider\DotNetNuke.mdb'. Any suggestions will be appreciated. Thanks, Nicole Do you have a username and password set on your database? Make sure you follow the steps mentionned in the Readme.txt located in the documentation folder. In any case make sure your credentials for yo...

getting started in VS2005 C# which book should I get
Hello, I am getting started with VS2005, I have use VS2003 but not very much -(I did 4 small applications in it),  I am wondering which book you would recommend to learn the new features of VS2005, while learning more of C# programing in general There some links to good books in this thread i posted : Also these two make good reference material  Professional Visual Studio 2005 (Programmer to Programmer)   Microsoft Visual Studio 2005 Unleashed  So far I recommend Wrox's C# 2005  Read the beginning chap...

get rid of that ridiculous getting started bookmark
Name: DOCTOR Product: Firefox Summary: get rid of that ridiculous getting started bookmark Comments: Browser Details: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22 From URL: Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it. ...

Getting Started with Database activities
HiCan anyone please help me get started with the database work for a new project. I am doing for first time and have been working on ASP for last 8 years.My main concern with this is to identify what control to use when (and what is the difference and benefit over the alternative), as we have so many choices. Unlike ASP, where we just had a single type of recordset, so what ever we need to do was with it.I need to write a kind of custom forum, so cant use a ready code for it.Please guide.ThanksLooking to check the time, goto[xxx] replace [xxx] with your city ...

Getting started with JScript.NET
I'm a Javascript and Actionscript developer, and the thought of being able to do server-sides in something I know was too good to resist. Does anyone know some good tutorials for developing ASP.NET pages in JScript?  I can find lots of console code, but simple things are hard: like I can't even figure out how to print something out to the web page (just a string). What I'm really trying to do is access a database, verify a login, and print JSON out to the response.  What should I do to start?  Is there a better way to do this? (IE: using some JSON library already?). I'm commun...

Getting started .net website
Hi folks,Does anyone here know of a good website to just sit back and read for learning .net? Thanks in advance.Baldeep Right here... Click the Get Started and Learn sections here. Quite a few out there - - this one, has a lot of good videos -  also, but then, I might be a little prejudiced David WierMCP/ - where to look first!Please Vote for ASPNet101 - 'Best Community Resource'!Control Grouper - easily control properties for multiple controls with one control!Calendar Express - The Best HTML Calendar Generator on the web!(P...

Getting Started with .net and a few questions
Hello I've done some asp and php programming along with various other languages in the past and slowing getting my head around .net.I have a small project of creating a Holiday Booking system on our Intranet and just trying to get the first part to work properly will hopefully get me sorted for the whole project. The Intranet is running on .net 2 and I prefer to use the VB code rather than C#. This is connecting to an SQL server.My initial page that I am trying to create is just for an admin user to view which dates in a table have been specified as Bank Holidays and be able to add ...

How do I get started with AJAX.Net?
Hi All, I'm a seasoned developer but have not yet ventured into atlas et al.  I prefer books, but will take whatever I can get if it's good and will get me going. Any recommendations? Thx in advance. Jeff try here first then learn from sample and docJames Wu (MIB426).NET is only way to goMCP, MCSE, MCDBA, MCSD, MCAD I find the materials online display features and implementations but are lacking architectural depth, and am seeking more comprehensive resources. By architectural depth, I mean that I cannot watch ...

Hi, I'm at a loss to explain this... I have an ASPX page that I can't always navigate to. When I developed the app (it's Starter Kit Portal-based), I did it on my LAN and have had no trouble accessing the page. However, upon deployment, I see the following behavior: 1. POST request goes out looking for MyForm.aspx 2. GET request for MyForm.aspx 3. GET request for MyForm.aspx 4. ... X. GET request Sometimes, the page finally loads. Other times, it just ends up blank. Many times, it doesn't load at ALL the first POST - I just get a "The pa...

Web resources about - Getting started with databases. -

Database - Wikipedia, the free encyclopedia
A database is an organized collection of data . The data are typically organized to model aspects of reality in a way that supports processes ...

Database - Wikipedia, the free encyclopedia
... requiring information. For example, modelling the availability of rooms in hotels in a way that supports finding a hotel with vacancies. Database ...

Social Side of Code, Database CI and REST API Testing in Methods & Tools Winter 2015 issue
... for software developers, testers and project managers – has published its Winter 2015 issue that discusses the social side of code, database ...

A look ahead at the state of the database in 2016
... identity management, anti-phishing education, and so forth. Ultimately, hackers want access to the contents of an enterprise's database. Security ...

Huge database of 191 million U.S. voters found on the open Internet
... such bulk information online, a recent discovery seems to indicate. According to VentureBeat , a security researcher found the exposed database ...

IDG Contributor Network: Shrinking an already ginormous SharePoint database transaction log
Last month, I wrote about how to avoid having ginormous transaction logs within SharePoint databases. But what if it’s too late, and your files ...

Massive Voter Database Left Open For Public Consumption
Gosh, we could have avoided all the angst about the Clinton/Sanders voter database breach if only we'd known about this major database , accessible ...

Database configuration issues expose 191 million voter records
A misconfigured database has led to the disclosure of 191 million voter records. The database, discovered by researcher Chris Vickery, doesn't ...

Botched database leaks records for 191 million voters
... sometime this century? If so, your personal info may be out in the open. Researcher Chris Vickery has discovered that a badly configured database ...

191 Million US Voter Registration Records Leaked In Mystery Database
A huge database of 191 million US citizens is uncovered. But no one knows who carelessly left it open, whilst the FBI have been contacted.

Resources last updated: 1/12/2016 10:51:26 PM