473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Problem with adding controls permanently


I have a strange situation and I have no idea how to solve this.
Its a Recruitment Search Page,in the Admin Page, for every button click
event the Admin Person has to create a checkbox on the users page. So
whenever the Admin person comes to know about the new category in the market
he will be adding as different Sub-Categories for example ABAP, BDC
etc..etc.. on every click event as Checkboxes. And these
controls(checkboxes) should remain on the page forever until we delete them
using another button. By checking them we got to use text value in the
jobsearch. My problem is ... should i already create the checkboxes on the
users page and make the Visibility to false and make it true thro the click
event?. Or else do i need to use database ? Can anyone help me in this
please? Or how to solve this?
Thanks in Advance
Nov 19 '05 #1
3 2311
Hi Ankit,

Welcome to ASPNET newsgroup.
From your description, you're wantting to build a asp.net web page which
need to dynamically creating some controls and displayed on it on demand of
user's action(button click postback), yes?

As for such scenario, we can consider the following options:
1. As you mentioned, we can precreate all the necessary dynamic controls
and hidden them initially and then make them visible later. This will make
the code logic simple.

2. We can dynamically create those controls, however, since dynamically
created controls need to be created in each page's request , (int Init or
Load event), we need to put the existing control's count or other intial
state in some storage which can be persisted between multiple page
request/post backs. And currently, the SessionState, ViewState or Database
are all possible choice for the storage.

Here is a simple demo page which use both SessionState and ViewState to
store the dynamic control's count and make us possible to dynaimcally
create/delete controls:

========aspx=============
<HTML>
<HEAD>
<title>dynactrl</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<table width="100%">
<tr>
<td>
<asp:PlaceHolder id="phOne" runat="server"></asp:PlaceHolder>
</td>
</tr>
<tr>
<td>
<asp:Button id="btnAddOne" runat="server" Text="Add"></asp:Button>
<asp:Button id="btnRemoveOne" runat="server"
Text="Remove"></asp:Button>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td style="HEIGHT: 23px">
<asp:PlaceHolder id="phTwo" runat="server"></asp:PlaceHolder>
</td>
</tr>
<tr>
<td>
<asp:Button id="btnAddTwo" runat="server" Text="Add"></asp:Button>
<asp:Button id="btnRemoveTwo" runat="server"
Text="Remove"></asp:Button>
</td>
</tr>
</table>
</form>
</body>
</HTML>
========codebehind========
public class dynactrl : System.Web.UI.Page
{
protected System.Web.UI.WebControls.PlaceHolder phOne;
protected System.Web.UI.WebControls.PlaceHolder phTwo;
protected System.Web.UI.WebControls.Button btnAddOne;
protected System.Web.UI.WebControls.Button btnAddTwo;
protected System.Web.UI.WebControls.Button btnRemoveOne;
protected System.Web.UI.WebControls.Button btnRemoveTwo;

private void Page_Load(object sender, System.EventArgs e)
{
Init_Dynamic_Controls();
}

private void Init_Dynamic_Controls()
{
int i;

if(Session["dynacount"] == null)
{
Session["dynacount"] = 0;
}

int isession = (int)Session["dynacount"];

for(i =0;i<isession;i++)
{
CheckBox chk = new CheckBox();
chk.ID = "chk_" + i;
phOne.Controls.Add(chk);
}

if(ViewState["dynacount"] == null)
{
ViewState["dynacount"] = 0;
}

int iviewstate = (int)ViewState["dynacount"];
for(i =0;i<iviewstate;i++)
{
CheckBox chk = new CheckBox();
chk.ID = "chk_vs_" + i;
phTwo.Controls.Add(chk);
}
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.btnAddOne.Click += new System.EventHandler(this.btnAddOne_Click);
this.btnAddTwo.Click += new System.EventHandler(this.btnAddTwo_Click);
this.btnRemoveOne.Click += new
System.EventHandler(this.btnRemoveOne_Click);
this.btnRemoveTwo.Click += new
System.EventHandler(this.btnRemoveTwo_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void btnAddOne_Click(object sender, System.EventArgs e)
{
int isession = (int)Session["dynacount"];

CheckBox chk = new CheckBox();
chk.ID = "chk_" + isession;
phOne.Controls.Add(chk);

Session["dynacount"] = isession + 1;
}

private void btnRemoveOne_Click(object sender, System.EventArgs e)
{
int isession = (int)Session["dynacount"];
isession--;

CheckBox chk = phOne.FindControl("chk_" + isession) as CheckBox;
phOne.Controls.Remove(chk);

Session["dynacount"] = isession;
}

private void btnAddTwo_Click(object sender, System.EventArgs e)
{
int ivs = (int)ViewState["dynacount"];

CheckBox chk = new CheckBox();
chk.ID = "chk_vs_" + ivs;
phTwo.Controls.Add(chk);

ViewState["dynacount"] = ivs +1;
}

private void btnRemoveTwo_Click(object sender, System.EventArgs e)
{
int ivs = (int)ViewState["dynacount"];
ivs--;

CheckBox chk = phTwo.FindControl("chk_vs_" + ivs) as CheckBox;
phTwo.Controls.Remove(chk);

ViewState["dynacount"] = ivs;

}
}

=====================

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Ankit Aneja" <ef*****@newsgroups.nospam>
| Subject: Problem with adding controls permanently
| Date: Mon, 17 Oct 2005 15:31:40 +0530
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <#U**************@TK2MSFTNGP15.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: dsl-upwest-222.11.246.61.touchtelindia.net
61.246.11.222
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:131794
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| I have a strange situation and I have no idea how to solve this.
| Its a Recruitment Search Page,in the Admin Page, for every button click
| event the Admin Person has to create a checkbox on the users page. So
| whenever the Admin person comes to know about the new category in the
market
| he will be adding as different Sub-Categories for example ABAP, BDC
| etc..etc.. on every click event as Checkboxes. And these
| controls(checkboxes) should remain on the page forever until we delete
them
| using another button. By checking them we got to use text value in the
| jobsearch. My problem is ... should i already create the checkboxes on the
| users page and make the Visibility to false and make it true thro the
click
| event?. Or else do i need to use database ? Can anyone help me in this
| please? Or how to solve this?
| Thanks in Advance
|
|
|

Nov 19 '05 #2
Thanks
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:pc**************@TK2MSFTNGXA01.phx.gbl...
Hi Ankit,

Welcome to ASPNET newsgroup.
From your description, you're wantting to build a asp.net web page which
need to dynamically creating some controls and displayed on it on demand of user's action(button click postback), yes?

As for such scenario, we can consider the following options:
1. As you mentioned, we can precreate all the necessary dynamic controls
and hidden them initially and then make them visible later. This will make
the code logic simple.

2. We can dynamically create those controls, however, since dynamically
created controls need to be created in each page's request , (int Init or
Load event), we need to put the existing control's count or other intial
state in some storage which can be persisted between multiple page
request/post backs. And currently, the SessionState, ViewState or Database are all possible choice for the storage.

Here is a simple demo page which use both SessionState and ViewState to
store the dynamic control's count and make us possible to dynaimcally
create/delete controls:

========aspx=============
<HTML>
<HEAD>
<title>dynactrl</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<table width="100%">
<tr>
<td>
<asp:PlaceHolder id="phOne" runat="server"></asp:PlaceHolder>
</td>
</tr>
<tr>
<td>
<asp:Button id="btnAddOne" runat="server" Text="Add"></asp:Button>
<asp:Button id="btnRemoveOne" runat="server"
Text="Remove"></asp:Button>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td style="HEIGHT: 23px">
<asp:PlaceHolder id="phTwo" runat="server"></asp:PlaceHolder>
</td>
</tr>
<tr>
<td>
<asp:Button id="btnAddTwo" runat="server" Text="Add"></asp:Button>
<asp:Button id="btnRemoveTwo" runat="server"
Text="Remove"></asp:Button>
</td>
</tr>
</table>
</form>
</body>
</HTML>
========codebehind========
public class dynactrl : System.Web.UI.Page
{
protected System.Web.UI.WebControls.PlaceHolder phOne;
protected System.Web.UI.WebControls.PlaceHolder phTwo;
protected System.Web.UI.WebControls.Button btnAddOne;
protected System.Web.UI.WebControls.Button btnAddTwo;
protected System.Web.UI.WebControls.Button btnRemoveOne;
protected System.Web.UI.WebControls.Button btnRemoveTwo;

private void Page_Load(object sender, System.EventArgs e)
{
Init_Dynamic_Controls();
}

private void Init_Dynamic_Controls()
{
int i;

if(Session["dynacount"] == null)
{
Session["dynacount"] = 0;
}

int isession = (int)Session["dynacount"];

for(i =0;i<isession;i++)
{
CheckBox chk = new CheckBox();
chk.ID = "chk_" + i;
phOne.Controls.Add(chk);
}

if(ViewState["dynacount"] == null)
{
ViewState["dynacount"] = 0;
}

int iviewstate = (int)ViewState["dynacount"];
for(i =0;i<iviewstate;i++)
{
CheckBox chk = new CheckBox();
chk.ID = "chk_vs_" + i;
phTwo.Controls.Add(chk);
}
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.btnAddOne.Click += new System.EventHandler(this.btnAddOne_Click);
this.btnAddTwo.Click += new System.EventHandler(this.btnAddTwo_Click);
this.btnRemoveOne.Click += new
System.EventHandler(this.btnRemoveOne_Click);
this.btnRemoveTwo.Click += new
System.EventHandler(this.btnRemoveTwo_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void btnAddOne_Click(object sender, System.EventArgs e)
{
int isession = (int)Session["dynacount"];

CheckBox chk = new CheckBox();
chk.ID = "chk_" + isession;
phOne.Controls.Add(chk);

Session["dynacount"] = isession + 1;
}

private void btnRemoveOne_Click(object sender, System.EventArgs e)
{
int isession = (int)Session["dynacount"];
isession--;

CheckBox chk = phOne.FindControl("chk_" + isession) as CheckBox;
phOne.Controls.Remove(chk);

Session["dynacount"] = isession;
}

private void btnAddTwo_Click(object sender, System.EventArgs e)
{
int ivs = (int)ViewState["dynacount"];

CheckBox chk = new CheckBox();
chk.ID = "chk_vs_" + ivs;
phTwo.Controls.Add(chk);

ViewState["dynacount"] = ivs +1;
}

private void btnRemoveTwo_Click(object sender, System.EventArgs e)
{
int ivs = (int)ViewState["dynacount"];
ivs--;

CheckBox chk = phTwo.FindControl("chk_vs_" + ivs) as CheckBox;
phTwo.Controls.Remove(chk);

ViewState["dynacount"] = ivs;

}
}

=====================

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Ankit Aneja" <ef*****@newsgroups.nospam>
| Subject: Problem with adding controls permanently
| Date: Mon, 17 Oct 2005 15:31:40 +0530
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <#U**************@TK2MSFTNGP15.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: dsl-upwest-222.11.246.61.touchtelindia.net
61.246.11.222
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:131794
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| I have a strange situation and I have no idea how to solve this.
| Its a Recruitment Search Page,in the Admin Page, for every button click
| event the Admin Person has to create a checkbox on the users page. So
| whenever the Admin person comes to know about the new category in the
market
| he will be adding as different Sub-Categories for example ABAP, BDC
| etc..etc.. on every click event as Checkboxes. And these
| controls(checkboxes) should remain on the page forever until we delete
them
| using another button. By checking them we got to use text value in the
| jobsearch. My problem is ... should i already create the checkboxes on the | users page and make the Visibility to false and make it true thro the
click
| event?. Or else do i need to use database ? Can anyone help me in this
| please? Or how to solve this?
| Thanks in Advance
|
|
|

Nov 19 '05 #3
You're welcome Ankit,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Ankit Aneja" <ef*****@newsgroups.nospam>
| References: <#U**************@TK2MSFTNGP15.phx.gbl>
<pc**************@TK2MSFTNGXA01.phx.gbl>
| Subject: Re: Problem with adding controls permanently
| Date: Tue, 18 Oct 2005 10:08:53 +0530
| Lines: 248
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <#$**************@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: dsl-upwest-static-146.7.246.61.touchtelindia.net
61.246.7.146
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:131989
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thanks
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:pc**************@TK2MSFTNGXA01.phx.gbl...
| > Hi Ankit,
| >
| > Welcome to ASPNET newsgroup.
| > From your description, you're wantting to build a asp.net web page which
| > need to dynamically creating some controls and displayed on it on demand
| of
| > user's action(button click postback), yes?
| >
| > As for such scenario, we can consider the following options:
| > 1. As you mentioned, we can precreate all the necessary dynamic controls
| > and hidden them initially and then make them visible later. This will
make
| > the code logic simple.
| >
| > 2. We can dynamically create those controls, however, since dynamically
| > created controls need to be created in each page's request , (int Init
or
| > Load event), we need to put the existing control's count or other intial
| > state in some storage which can be persisted between multiple page
| > request/post backs. And currently, the SessionState, ViewState or
| Database
| > are all possible choice for the storage.
| >
| > Here is a simple demo page which use both SessionState and ViewState to
| > store the dynamic control's count and make us possible to dynaimcally
| > create/delete controls:
| >
| > ========aspx=============
| > <HTML>
| > <HEAD>
| > <title>dynactrl</title>
| > <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
| > <meta name="CODE_LANGUAGE" Content="C#">
| > <meta name="vs_defaultClientScript" content="JavaScript">
| > <meta name="vs_targetSchema"
| > content="http://schemas.microsoft.com/intellisense/ie5">
| > </HEAD>
| > <body>
| > <form id="Form1" method="post" runat="server">
| > <table width="100%">
| > <tr>
| > <td>
| > <asp:PlaceHolder id="phOne" runat="server"></asp:PlaceHolder>
| > </td>
| > </tr>
| > <tr>
| > <td>
| > <asp:Button id="btnAddOne" runat="server" Text="Add"></asp:Button>
| > <asp:Button id="btnRemoveOne" runat="server"
| > Text="Remove"></asp:Button>
| > </td>
| > </tr>
| > <tr>
| > <td>
| > </td>
| > </tr>
| > <tr>
| > <td style="HEIGHT: 23px">
| > <asp:PlaceHolder id="phTwo" runat="server"></asp:PlaceHolder>
| > </td>
| > </tr>
| > <tr>
| > <td>
| > <asp:Button id="btnAddTwo" runat="server" Text="Add"></asp:Button>
| > <asp:Button id="btnRemoveTwo" runat="server"
| > Text="Remove"></asp:Button>
| > </td>
| > </tr>
| > </table>
| > </form>
| > </body>
| > </HTML>
| > ========codebehind========
| > public class dynactrl : System.Web.UI.Page
| > {
| > protected System.Web.UI.WebControls.PlaceHolder phOne;
| > protected System.Web.UI.WebControls.PlaceHolder phTwo;
| > protected System.Web.UI.WebControls.Button btnAddOne;
| > protected System.Web.UI.WebControls.Button btnAddTwo;
| > protected System.Web.UI.WebControls.Button btnRemoveOne;
| > protected System.Web.UI.WebControls.Button btnRemoveTwo;
| >
| > private void Page_Load(object sender, System.EventArgs e)
| > {
| > Init_Dynamic_Controls();
| > }
| >
| > private void Init_Dynamic_Controls()
| > {
| > int i;
| >
| > if(Session["dynacount"] == null)
| > {
| > Session["dynacount"] = 0;
| > }
| >
| > int isession = (int)Session["dynacount"];
| >
| > for(i =0;i<isession;i++)
| > {
| > CheckBox chk = new CheckBox();
| > chk.ID = "chk_" + i;
| > phOne.Controls.Add(chk);
| > }
| >
| > if(ViewState["dynacount"] == null)
| > {
| > ViewState["dynacount"] = 0;
| > }
| >
| > int iviewstate = (int)ViewState["dynacount"];
| > for(i =0;i<iviewstate;i++)
| > {
| > CheckBox chk = new CheckBox();
| > chk.ID = "chk_vs_" + i;
| > phTwo.Controls.Add(chk);
| > }
| > }
| >
| > #region Web Form Designer generated code
| > override protected void OnInit(EventArgs e)
| > {
| > //
| > // CODEGEN: This call is required by the ASP.NET Web Form Designer.
| > //
| > InitializeComponent();
| > base.OnInit(e);
| > }
| >
| > /// <summary>
| > /// Required method for Designer support - do not modify
| > /// the contents of this method with the code editor.
| > /// </summary>
| > private void InitializeComponent()
| > {
| > this.btnAddOne.Click += new System.EventHandler(this.btnAddOne_Click);
| > this.btnAddTwo.Click += new System.EventHandler(this.btnAddTwo_Click);
| > this.btnRemoveOne.Click += new
| > System.EventHandler(this.btnRemoveOne_Click);
| > this.btnRemoveTwo.Click += new
| > System.EventHandler(this.btnRemoveTwo_Click);
| > this.Load += new System.EventHandler(this.Page_Load);
| >
| > }
| > #endregion
| >
| > private void btnAddOne_Click(object sender, System.EventArgs e)
| > {
| > int isession = (int)Session["dynacount"];
| >
| > CheckBox chk = new CheckBox();
| > chk.ID = "chk_" + isession;
| > phOne.Controls.Add(chk);
| >
| > Session["dynacount"] = isession + 1;
| > }
| >
| > private void btnRemoveOne_Click(object sender, System.EventArgs e)
| > {
| > int isession = (int)Session["dynacount"];
| > isession--;
| >
| > CheckBox chk = phOne.FindControl("chk_" + isession) as CheckBox;
| > phOne.Controls.Remove(chk);
| >
| > Session["dynacount"] = isession;
| > }
| >
| > private void btnAddTwo_Click(object sender, System.EventArgs e)
| > {
| > int ivs = (int)ViewState["dynacount"];
| >
| > CheckBox chk = new CheckBox();
| > chk.ID = "chk_vs_" + ivs;
| > phTwo.Controls.Add(chk);
| >
| > ViewState["dynacount"] = ivs +1;
| > }
| >
| > private void btnRemoveTwo_Click(object sender, System.EventArgs e)
| > {
| > int ivs = (int)ViewState["dynacount"];
| > ivs--;
| >
| > CheckBox chk = phTwo.FindControl("chk_vs_" + ivs) as CheckBox;
| > phTwo.Controls.Remove(chk);
| >
| > ViewState["dynacount"] = ivs;
| >
| > }
| > }
| >
| > =====================
| >
| > Hope helps. Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| > --------------------
| > | From: "Ankit Aneja" <ef*****@newsgroups.nospam>
| > | Subject: Problem with adding controls permanently
| > | Date: Mon, 17 Oct 2005 15:31:40 +0530
| > | Lines: 16
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| > | Message-ID: <#U**************@TK2MSFTNGP15.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: dsl-upwest-222.11.246.61.touchtelindia.net
| > 61.246.11.222
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:131794
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > |
| > | I have a strange situation and I have no idea how to solve this.
| > | Its a Recruitment Search Page,in the Admin Page, for every button
click
| > | event the Admin Person has to create a checkbox on the users page. So
| > | whenever the Admin person comes to know about the new category in the
| > market
| > | he will be adding as different Sub-Categories for example ABAP, BDC
| > | etc..etc.. on every click event as Checkboxes. And these
| > | controls(checkboxes) should remain on the page forever until we delete
| > them
| > | using another button. By checking them we got to use text value in the
| > | jobsearch. My problem is ... should i already create the checkboxes on
| the
| > | users page and make the Visibility to false and make it true thro the
| > click
| > | event?. Or else do i need to use database ? Can anyone help me in this
| > | please? Or how to solve this?
| > | Thanks in Advance
| > |
| > |
| > |
| >
|
|
|

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: waltborders | last post by:
Hi, Because the blind are unable to use a mouse, keyboard navigation is key. A major difficulty is that not all windows forms controls are keyboard 'tab-able' or 'arrow-able' or have "tab...
0
by: sameer mowade via .NET 247 | last post by:
Hello All, I have problem while dynamically removing row from the Datagrid which i have added dynamically as shown in the following code snippet. The problem is that while removing dynamically...
9
by: Matt Tapia | last post by:
I having a problem that receives the following error: Specified cast is not valid And I need some help. Here is what is happening: I have a form with a drop-down control that contains a list...
1
by: E. Tom Jorgenson | last post by:
I've run into a problem on a couple of projects that I think I've identified - but would like confirmation of what I think is going on. Also interested in any fast solutions to fix the user...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
2
by: Jarod | last post by:
Hey I change backColor of linkButton in my Page_Load: lbDoSth.BackColor = Color.Red; But I have multiView on this page. On one of the views I have detailsView. When I add a new row a set...
3
by: dani kotlar | last post by:
I use a table adapter to add rows to a database, using Update(); After adding a row to the database and closing the application, if I run the application again, and call Fill(), I can see the new...
7
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm adding subheadings to a gridview. Each sub head has a few link buttons. I'm adding the controls in the rowdatabound event code follows: sorry about the length here. I have to be missing...
1
by: madhuri736 | last post by:
i have taken one combobox in form1, another in form2. when i want to add an item permanently in combobox in form1 it should automatically added in the form2's combobox permanently and at the same...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.