1

Is there any way to generate CRUD commands and parameters for SqlDataSource based on table name? Idea is to make only one page for handling lookup tables, which can have different columns, so SqlDataSource attached to Teleriks RadGrid could fill all commands and parameters having table name.

2 Answers 2

0

Maybe not a complete answer, but hope this will at-least be a good start. Have a look at the Entity Framework, and/or T4 Templates (there's also a VS add-on for it, for syntax highlighting). Otherwise you'd have to have to look at an answer making use of generics of sorts

0

I've solved this dynamically changing CRUD commands properties on DropDown SelectedIndexChange event. Anyway Entity Framework will be something that I will learn

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.