CRUD web part example

Thio . asked on April 4, 2016 06:23

Could please send me, CRUD database example application ( Gridview with add, update, delete, search/filter, paging ) in 2 file = *.ascx and *.ascx.cs , because I want to put in CMSWebParts folder. Please send to my email thio@nuklir.com. Thanks For example = http://www.binpress.com/images/stores/store1161/grocery-crud-409.png

Recent Answers


David te Kloese answered on April 4, 2016 08:31

Hi,

What data would you like to work with? You could just use/copy one of the basic Web Parts already available.

If you're unfamiliar with getting data I suggest a look at the API Examples.

Greets,

David

1 votesVote for this answer Mark as a Correct answer

Thio . answered on April 4, 2016 09:10 (last edited on April 4, 2016 09:14)

Just create a simple data base , for example a table with three fields : number , name , address. CRUD simple application like this = http://www.binpress.com/images/stores/store1161/grocery-crud-409.png

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on April 4, 2016 09:25 (last edited on April 4, 2016 11:45)

Hi,

So you want to store the data in a Custom table (so no direct page to navigate too).

Based on the logic you might want to have a look at the editingpage a custom table (just in Kentico itself), this page seems to support your case.

Image Text

You can find code for this module in your Kentico Solution here:

/CMSModules/CustomTables/Tools/CustomTable_Data_List.aspx

Greets,

David

1 votesVote for this answer Mark as a Correct answer

Thio . answered on April 4, 2016 15:45

I want to put the two files ( *.ascx , *.ascx.cs ) to web part folder (CMS\CMSWebParts\TestFolder) Can you send me the two files to my email = thio@nuklir.com ?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 6, 2016 00:15

Thio, I think you need to learn more on how to work with web parts and other Kentico development before you just jump in and take a few code files and think they will do magic work for you. Check out the links below:

Portal Development
Custom Development

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.