473,574 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(checkb oxes) 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 2333
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="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<table width="100%">
<tr>
<td>
<asp:PlaceHolde r id="phOne" runat="server"> </asp:PlaceHolder >
</td>
</tr>
<tr>
<td>
<asp:Button id="btnAddOne" runat="server" Text="Add"></asp:Button>
<asp:Button id="btnRemoveOn e" runat="server"
Text="Remove"></asp:Button>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td style="HEIGHT: 23px">
<asp:PlaceHolde r id="phTwo" runat="server"> </asp:PlaceHolder >
</td>
</tr>
<tr>
<td>
<asp:Button id="btnAddTwo" runat="server" Text="Add"></asp:Button>
<asp:Button id="btnRemoveTw o" runat="server"
Text="Remove"></asp:Button>
</td>
</tr>
</table>
</form>
</body>
</HTML>
========codebeh ind========
public class dynactrl : System.Web.UI.P age
{
protected System.Web.UI.W ebControls.Plac eHolder phOne;
protected System.Web.UI.W ebControls.Plac eHolder phTwo;
protected System.Web.UI.W ebControls.Butt on btnAddOne;
protected System.Web.UI.W ebControls.Butt on btnAddTwo;
protected System.Web.UI.W ebControls.Butt on btnRemoveOne;
protected System.Web.UI.W ebControls.Butt on btnRemoveTwo;

private void Page_Load(objec t sender, System.EventArg s e)
{
Init_Dynamic_Co ntrols();
}

private void Init_Dynamic_Co ntrols()
{
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(EventArg s e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeCompo nent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
this.btnAddOne. Click += new System.EventHan dler(this.btnAd dOne_Click);
this.btnAddTwo. Click += new System.EventHan dler(this.btnAd dTwo_Click);
this.btnRemoveO ne.Click += new
System.EventHan dler(this.btnRe moveOne_Click);
this.btnRemoveT wo.Click += new
System.EventHan dler(this.btnRe moveTwo_Click);
this.Load += new System.EventHan dler(this.Page_ Load);

}
#endregion

private void btnAddOne_Click (object sender, System.EventArg s 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_Cl ick(object sender, System.EventArg s e)
{
int isession = (int)Session["dynacount"];
isession--;

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

Session["dynacount"] = isession;
}

private void btnAddTwo_Click (object sender, System.EventArg s 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_Cl ick(object sender, System.EventArg s e)
{
int ivs = (int)ViewState["dynacount"];
ivs--;

CheckBox chk = phTwo.FindContr ol("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*****@newsgr oups.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: dsl-upwest-222.11.246.61.t ouchtelindia.ne t
61.246.11.222
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1317 94
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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(checkb oxes) 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******** ******@TK2MSFTN GXA01.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="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<table width="100%">
<tr>
<td>
<asp:PlaceHolde r id="phOne" runat="server"> </asp:PlaceHolder >
</td>
</tr>
<tr>
<td>
<asp:Button id="btnAddOne" runat="server" Text="Add"></asp:Button>
<asp:Button id="btnRemoveOn e" runat="server"
Text="Remove"></asp:Button>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td style="HEIGHT: 23px">
<asp:PlaceHolde r id="phTwo" runat="server"> </asp:PlaceHolder >
</td>
</tr>
<tr>
<td>
<asp:Button id="btnAddTwo" runat="server" Text="Add"></asp:Button>
<asp:Button id="btnRemoveTw o" runat="server"
Text="Remove"></asp:Button>
</td>
</tr>
</table>
</form>
</body>
</HTML>
========codebeh ind========
public class dynactrl : System.Web.UI.P age
{
protected System.Web.UI.W ebControls.Plac eHolder phOne;
protected System.Web.UI.W ebControls.Plac eHolder phTwo;
protected System.Web.UI.W ebControls.Butt on btnAddOne;
protected System.Web.UI.W ebControls.Butt on btnAddTwo;
protected System.Web.UI.W ebControls.Butt on btnRemoveOne;
protected System.Web.UI.W ebControls.Butt on btnRemoveTwo;

private void Page_Load(objec t sender, System.EventArg s e)
{
Init_Dynamic_Co ntrols();
}

private void Init_Dynamic_Co ntrols()
{
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(EventArg s e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeCompo nent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
this.btnAddOne. Click += new System.EventHan dler(this.btnAd dOne_Click);
this.btnAddTwo. Click += new System.EventHan dler(this.btnAd dTwo_Click);
this.btnRemoveO ne.Click += new
System.EventHan dler(this.btnRe moveOne_Click);
this.btnRemoveT wo.Click += new
System.EventHan dler(this.btnRe moveTwo_Click);
this.Load += new System.EventHan dler(this.Page_ Load);

}
#endregion

private void btnAddOne_Click (object sender, System.EventArg s 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_Cl ick(object sender, System.EventArg s e)
{
int isession = (int)Session["dynacount"];
isession--;

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

Session["dynacount"] = isession;
}

private void btnAddTwo_Click (object sender, System.EventArg s 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_Cl ick(object sender, System.EventArg s e)
{
int ivs = (int)ViewState["dynacount"];
ivs--;

CheckBox chk = phTwo.FindContr ol("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*****@newsgr oups.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: dsl-upwest-222.11.246.61.t ouchtelindia.ne t
61.246.11.222
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1317 94
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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(checkb oxes) 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*****@newsgr oups.nospam>
| References: <#U************ **@TK2MSFTNGP15 .phx.gbl>
<pc************ **@TK2MSFTNGXA0 1.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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: dsl-upwest-static-146.7.246.61.to uchtelindia.net
61.246.7.146
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1319 89
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Thanks
| "Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
| news:pc******** ******@TK2MSFTN GXA01.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="Micros oft Visual Studio .NET 7.1">
| > <meta name="CODE_LANG UAGE" Content="C#">
| > <meta name="vs_defaul tClientScript" content="JavaSc ript">
| > <meta name="vs_target Schema"
| > content="http://schemas.microso ft.com/intellisense/ie5">
| > </HEAD>
| > <body>
| > <form id="Form1" method="post" runat="server">
| > <table width="100%">
| > <tr>
| > <td>
| > <asp:PlaceHolde r id="phOne" runat="server"> </asp:PlaceHolder >
| > </td>
| > </tr>
| > <tr>
| > <td>
| > <asp:Button id="btnAddOne" runat="server" Text="Add"></asp:Button>
| > <asp:Button id="btnRemoveOn e" runat="server"
| > Text="Remove"></asp:Button>
| > </td>
| > </tr>
| > <tr>
| > <td>
| > </td>
| > </tr>
| > <tr>
| > <td style="HEIGHT: 23px">
| > <asp:PlaceHolde r id="phTwo" runat="server"> </asp:PlaceHolder >
| > </td>
| > </tr>
| > <tr>
| > <td>
| > <asp:Button id="btnAddTwo" runat="server" Text="Add"></asp:Button>
| > <asp:Button id="btnRemoveTw o" runat="server"
| > Text="Remove"></asp:Button>
| > </td>
| > </tr>
| > </table>
| > </form>
| > </body>
| > </HTML>
| > ========codebeh ind========
| > public class dynactrl : System.Web.UI.P age
| > {
| > protected System.Web.UI.W ebControls.Plac eHolder phOne;
| > protected System.Web.UI.W ebControls.Plac eHolder phTwo;
| > protected System.Web.UI.W ebControls.Butt on btnAddOne;
| > protected System.Web.UI.W ebControls.Butt on btnAddTwo;
| > protected System.Web.UI.W ebControls.Butt on btnRemoveOne;
| > protected System.Web.UI.W ebControls.Butt on btnRemoveTwo;
| >
| > private void Page_Load(objec t sender, System.EventArg s e)
| > {
| > Init_Dynamic_Co ntrols();
| > }
| >
| > private void Init_Dynamic_Co ntrols()
| > {
| > 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(EventArg s e)
| > {
| > //
| > // CODEGEN: This call is required by the ASP.NET Web Form Designer.
| > //
| > InitializeCompo nent();
| > base.OnInit(e);
| > }
| >
| > /// <summary>
| > /// Required method for Designer support - do not modify
| > /// the contents of this method with the code editor.
| > /// </summary>
| > private void InitializeCompo nent()
| > {
| > this.btnAddOne. Click += new System.EventHan dler(this.btnAd dOne_Click);
| > this.btnAddTwo. Click += new System.EventHan dler(this.btnAd dTwo_Click);
| > this.btnRemoveO ne.Click += new
| > System.EventHan dler(this.btnRe moveOne_Click);
| > this.btnRemoveT wo.Click += new
| > System.EventHan dler(this.btnRe moveTwo_Click);
| > this.Load += new System.EventHan dler(this.Page_ Load);
| >
| > }
| > #endregion
| >
| > private void btnAddOne_Click (object sender, System.EventArg s 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_Cl ick(object sender, System.EventArg s e)
| > {
| > int isession = (int)Session["dynacount"];
| > isession--;
| >
| > CheckBox chk = phOne.FindContr ol("chk_" + isession) as CheckBox;
| > phOne.Controls. Remove(chk);
| >
| > Session["dynacount"] = isession;
| > }
| >
| > private void btnAddTwo_Click (object sender, System.EventArg s 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_Cl ick(object sender, System.EventArg s e)
| > {
| > int ivs = (int)ViewState["dynacount"];
| > ivs--;
| >
| > CheckBox chk = phTwo.FindContr ol("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*****@newsgr oups.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.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: dsl-upwest-222.11.246.61.t ouchtelindia.ne t
| > 61.246.11.222
| > | Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| > | Xref: TK2MSFTNGXA01.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:1317 94
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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(checkb oxes) 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
2973
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 order". The application is built and the next step is to create the custom JAWS (Freedom Scientific)screen reader script to read the application. The...
0
2463
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 added row it also removes the row at the end along with the added row. Plz tell me if, I am missing any thing. Code </asp:datagrid>
9
2145
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 of control names (TextBox, DropDownList, Calendar). On Post back of this drop-down control, I clear a panel control (I have on the same page) of...
1
1582
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 controls/pages that resulted from this. On these projects the page design was done with designers who used pure HTML with an HTML editing tool outside...
10
4002
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 application. What should happen, is that the main MDI form should close, taking the child forms with it. There is code to loop through the child forms,...
2
4226
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 Visible = false on this detailsView. And rebound appropriate gridView. Then I press the button and I have exception: Failed to load viewstate. The...
3
1410
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 data, as if it appears in the database. However, if I open the database itself in the server browser and view the corresponding table I cannot see...
7
6189
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 something. The buttons show up and post back, but the events do not fire. any help would be appreciated!!! Thank you. protected void...
1
2654
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 time it should be added into the database(ms access) also.
0
7730
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8058
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8241
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8100
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5301
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3742
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2249
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1061
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.