customizable web form RRS feed

  • Question

  • hello

    I am planning to develop software for restaurant chain in which they wanted me to develop fully customizable software in which they can add, manipulate, hide as well as reproduce some of the functionality whenever they needed by just providing them admin rights so that they can enable or disable some of the functionality and based on that user input or selection that even reflected in database fields also, for that kind of design how could i start?

    Need commendable guidance in such case.

    " In short (how to insert textbox data of repeater in database when no. of textbox fields of repeater are unknown as they are fetched dynamically) "

    example of code:

    aspx page:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <form id="form1" runat="server">
            <asp:Repeater ID="Repeater1" runat="server" 
            <asp:CheckBox ID="CheckBox1" Text='<%# Eval("c_amount") %>' runat="server" >

                <asp:TextBox ID="TextBox1" runat="server">

        <br /> <br />    

        <asp:Button ID="Button1" runat="server" onclick="Button1_Click1" Text="Button" 
            Width="218px" />


    .cs page

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Data.SqlClient;
    using System.Data;

    public partial class Default2 : System.Web.UI.Page
        SqlCommand cmd = new SqlCommand();
        SqlConnection con = new SqlConnection();
        DataSet ds = new DataSet();
        protected void Page_Load(object sender, EventArgs e)
            con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Ankit\Desktop\WebSite2\App_Data\Database.mdf;Integrated Security=True;User Instance=True");
            cmd = new SqlCommand("select * from chkbox");
            cmd.Connection = con;
            SqlDataAdapter adp = new SqlDataAdapter(cmd);
            Repeater1.DataSource = ds;
        protected void Button1_Click(object sender, EventArgs e)
        protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)

        protected void Button1_Click1(object sender, EventArgs e)

            foreach (RepeaterItem item in Repeater1.Items)
                CheckBox chk = (CheckBox)item.FindControl("CheckBox1");
                if (chk.Checked.Equals("true"))
                 Response.Write("<script>alert('" + chk.Text + "');</script>");



    Friday, July 27, 2012 3:26 PM

All replies

  • Hi,

    You may want to know about CMS (Content Management Systems) which are

    ready made and allow use of available plug-ins, or customized plugins, for full scale sites


    In any case, customized software takes time to build, but

    serves a purpose in the long run.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help , or you may vote-up a helpful post

    Wednesday, November 28, 2012 10:31 AM