Click here to Skip to main content
15,897,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to encrypt and decrypt a data in aspdotnet Pin
Pete O'Hanlon16-Nov-07 4:18
mvePete O'Hanlon16-Nov-07 4:18 
QuestionWeb Parent Control Pin
Eduard Keilholz16-Nov-07 3:23
Eduard Keilholz16-Nov-07 3:23 
AnswerRe: Web Parent Control Pin
jpmadeira16-Nov-07 5:38
jpmadeira16-Nov-07 5:38 
GeneralRe: Web Parent Control Pin
Eduard Keilholz18-Nov-07 20:54
Eduard Keilholz18-Nov-07 20:54 
Questioni want to check or select only one checkbox in the checkboxlist Pin
pavankumarchakilam16-Nov-07 2:20
pavankumarchakilam16-Nov-07 2:20 
AnswerRe: i want to check or select only one checkbox in the checkboxlist Pin
N a v a n e e t h16-Nov-07 2:34
N a v a n e e t h16-Nov-07 2:34 
QuestionGenerating Dynamic Controls Pin
www.Developerof.NET16-Nov-07 1:57
www.Developerof.NET16-Nov-07 1:57 
AnswerRe: Generating Dynamic Controls Pin
N a v a n e e t h16-Nov-07 2:52
N a v a n e e t h16-Nov-07 2:52 
www.Developerof.NET wrote:
The left panel contains a listbox containing the name of the controls(HTML/Server)


Confused | :confused: For creating a database table and setting the attributes, why user has to select ASP.NET controls and add it dynamically ?

www.Developerof.NET wrote:
Once all contols are added,the user fills in the fields generated (textbox,dropdown.datepicker..) and on submit a database table should be created on the server with column names as the entered values and with constraints provided by the user.


How about putting the required controls in a DataGrid/GridView ? Then you don't need to bother about managing the state on postbacks. I guess this will be enough.

In first columns put a textbox where user can enter field name, next column could be a dropdown where he can select the attributes like primary key. When add button is pressed, iterate through all the rows, find the controls and create a table creation statement and pass it to ExecuteNonQuery() method.

www.Developerof.NET wrote:
retaining entered values during postback


Applicable when you are not using the DataGrid/Gridview method : You can create dynamic controls in any event before viewstate is loaded. Init() would be an ideal place for dynamic controls, and ASP.NET will maintain state for that.

www.Developerof.NET wrote:
Setting database constraints


Create a table through design view (Enterprise manager). Right click on the table and choose copy which copies table creation statements to the clip board. Paste it somewhere and learn how constraints are applied through a query. Formulate your query in a similar way.

Hope it helps

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions

GeneralRe: Generating Dynamic Controls Pin
Brady Kelly16-Nov-07 4:22
Brady Kelly16-Nov-07 4:22 
GeneralRe: Generating Dynamic Controls Pin
www.Developerof.NET16-Nov-07 20:17
www.Developerof.NET16-Nov-07 20:17 
QuestionSession State Pin
scorpion_man198216-Nov-07 1:46
scorpion_man198216-Nov-07 1:46 
AnswerRe: Session State Pin
N a v a n e e t h16-Nov-07 3:00
N a v a n e e t h16-Nov-07 3:00 
GeneralRe: Session State Pin
scorpion_man198216-Nov-07 8:44
scorpion_man198216-Nov-07 8:44 
QuestionImage in Datalist Pin
Ravi_2116-Nov-07 1:45
Ravi_2116-Nov-07 1:45 
AnswerRe: Image in Datalist Pin
Abhijit Jana16-Nov-07 2:30
professionalAbhijit Jana16-Nov-07 2:30 
Questionenable or disable form elements not working in firefox Pin
sivarajanb16-Nov-07 1:43
sivarajanb16-Nov-07 1:43 
AnswerRe: enable or disable form elements not working in firefox Pin
Michael Sync16-Nov-07 6:08
Michael Sync16-Nov-07 6:08 
GeneralRe: enable or disable form elements not working in firefox Pin
sivarajanb16-Nov-07 17:18
sivarajanb16-Nov-07 17:18 
Questioni want to create a pdf file using asp.net using C#. Pin
Khawar Abbas116-Nov-07 1:26
Khawar Abbas116-Nov-07 1:26 
AnswerRe: i want to create a pdf file using asp.net using C#. Pin
N a v a n e e t h16-Nov-07 3:01
N a v a n e e t h16-Nov-07 3:01 
Questionhow i can stop the zero bytes file uploading Pin
jagan12316-Nov-07 1:12
jagan12316-Nov-07 1:12 
AnswerRe: how i can stop the zero bytes file uploading Pin
N a v a n e e t h16-Nov-07 1:16
N a v a n e e t h16-Nov-07 1:16 
GeneralRe: how i can stop the zero bytes file uploading Pin
jagan12316-Nov-07 1:22
jagan12316-Nov-07 1:22 
GeneralRe: how i can stop the zero bytes file uploading Pin
aswini16-Nov-07 1:25
aswini16-Nov-07 1:25 
Questionregular expressions Pin
Sonia Gupta16-Nov-07 1:09
Sonia Gupta16-Nov-07 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.