473,225 Members | 1,399 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,225 software developers and data experts.

How do I access a dynamically created PlaceHolder DropDownList control data items....


Program flow...load file,then extract the xml text tags from the
file,then the number of
Xml tags retrieved from the file determines the number of dropdownlist
controls
instanciated in the placeholder,the user selects the required tags from
the
dropdownlists (if 5 Xml tags,then 5 dropdownlists each containing 5 xml
tags) and now
the btnSave button is selected which extracts the user selection form
the dropdownlists.

Once the btnLoadXmlTags_Click is selected,an array is filled with the
xml tags,this
function also creates a session variable call "OkToRecreateControls"
which permits Page
OnInit to recreate the controls for subsequent postbacks,then the
btnLoadXmlTags_Click function calls the CreateDynamicControls which in
turn calls
the function AddContentToDynamicControls.

All of the above works fine and for subsequent postbacks page onInit
calls
CreateDynamicControls which will now run since the
"OkToRecreateControls" session
variable is now valid.

Problem - when I try to extract the user selection form the
dropdownlists using the
using btnSave function the following error is generated...

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web
request.
Please review the stack trace for more information about the error and
where it originated
in the code.

Exception Details: System.NullReferenceException: Object reference not
set to an instance
of an object.

Source Error:
Line 276: DropDownList ddl = new DropDownList();
Line 277: ddl.ID = DropDownListName;
Line 278: strSeletedItems+= ddl.SelectedItem.Text + "\\n";

Source File: e:\complexx\aspxmldbmapper_v2\wfrmmain4.aspx.cs Line:
270

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an
object.]
AspXmlDbMapper_v2.wfrmMain4.ReadDropDownLists() in
e:\complexx\aspxmldbmapper_v2\wfrmmain4.aspx.cs:27 0
AspXmlDbMapper_v2.wfrmMain4.btnSave_Click(Object sender, EventArgs
e) in e:\complexx\aspxmldbmapper_v2\wfrmmain4.aspx.cs:25 3
System.Web.UI.WebControls.Button.OnClick(EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()
So,how do I access the placeholders dropdownlists item content....Theo

Code sample...

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Xml;
using System.Data.SqlClient;
using System.Configuration;

namespace AspXmlDbMapper_v2
{

public class wfrmMain4 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.PlaceHolder plhDbContent;
protected System.Web.UI.WebControls.PlaceHolder plhXmlContent;
protected System.Web.UI.HtmlControls.HtmlInputFile fileDb;
protected System.Web.UI.HtmlControls.HtmlInputFile fileXml;

protected System.Web.UI.WebControls.Button btnLoadXml;
protected System.Web.UI.WebControls.Button btnLoadXmlTags;
protected System.Web.UI.WebControls.Button btnSave;
protected System.Web.UI.HtmlControls.HtmlGenericControl span2;
protected System.Web.UI.WebControls.DropDownList ddlXmlTagList;
protected System.Web.UI.LiteralControl literal;

private string xmlFileDestination = "";
private ArrayList aryTxtNodes = new ArrayList();
private ArrayList aryEleNodes = new ArrayList();
private ArrayList aryAtrbNodes = new ArrayList();

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

}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
CreateDynamicControls();
InitializeComponent();
base.OnInit(e);
}

private void InitializeComponent()
{
this.btnLoadXml.Click += new
System.EventHandler(this.btnLoadXml_Click);
this.btnLoadXmlTags.Click += new
System.EventHandler(this.btnLoadXmlTags_Click);
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion

private void btnLoadXml_Click(object sender, System.EventArgs e)
{
string fileDestination = "C:\\TempXml";
string fileName = Path.GetFileName(fileXml.Value);
string fileExtentsion = Path.GetExtension(fileXml.Value);

xmlFileDestination = Path.Combine(fileDestination,fileName);
Session["xmlFilePath"] = xmlFileDestination;

if (fileXml.PostedFile != null )
{
//error check...file has .xml extentsion
if (fileExtentsion.ToString().Equals(".xml"))
{
try
{
fileXml.PostedFile.SaveAs(xmlFileDestination);
span2.InnerHtml = "File uploaded successfully to <b>" +
xmlFileDestination + "</b>";
Session["xmlFileLoadedOk"] = true;
fileXml.Dispose();
}
catch (Exception exc)
{
span2.InnerHtml = "Error saving file <b>" + xmlFileDestination +
"</b><br>"+ exc.ToString();
}
}
else
{
MsgBox("Error...loaded incorrect file type \\n\\nCorrect file type is
\" filename.xml \"");
}
}
}

private void btnLoadXmlTags_Click(object sender, System.EventArgs e)
{
int elementCount=0, attributeCount=0, textCount=0;

try
{
string fileDestination = (string)Session["xmlFilePath"];
StreamReader streamreader = new StreamReader (fileDestination);
XmlTextReader xmlReader = new XmlTextReader (streamreader);

while (xmlReader.Read())
{
string myNode = "";

switch (xmlReader.NodeType)
{
case XmlNodeType.Element:
elementCount++;
myNode = xmlReader.Name;
aryEleNodes.Add(myNode);

if (xmlReader.HasAttributes)
{
attributeCount++;
myNode = xmlReader.Value;
aryAtrbNodes.Add(myNode);
}

break;
case XmlNodeType.Text:
//assign last element name tag and current text value to string
myNode = "<" + aryEleNodes[aryEleNodes.Count-1].ToString() + ">" +
xmlReader.Value;
aryTxtNodes.Add(myNode);
textCount++;
break;
}
}
streamreader.Close();
xmlReader.Close();
string strObj = "true";
Session["OkToRecreateControls"] = strObj;
Session["tempArray"] = aryTxtNodes;
CreateDynamicControls();
}
catch(Exception exc)
{
span2.InnerHtml = "Error...loading xml tags </b><br>"+ exc.ToString();
}
}

public void CreateDynamicControls()
{
string strOkToRecreateControls =
(string)Session["OkToRecreateControls"];

if (strOkToRecreateControls != null)
{
ArrayList aryNodes = (ArrayList)Session["tempArray"];

for (int createControl=0; createControl < aryNodes.Count;
createControl++)
{
literal = new LiteralControl();
literal.ID = "ltrId" + (createControl + 1).ToString();
plhXmlContent.Controls.Add(literal);
ddlXmlTagList = new DropDownList();
ddlXmlTagList.ID = "ddlId" + (createControl + 1).ToString();
plhXmlContent.Controls.Add(ddlXmlTagList);
}

string strObj = "true";
Session["OkToAddContent"] = strObj;
Session["OkToRecreateControls"] = strOkToRecreateControls;
AddContentToDynamicControls();
}
}

public void AddContentToDynamicControls()
{
string strOkToAddContent = (string)Session["OkToAddContent"];

if (strOkToAddContent != null)
{
ArrayList aryNodes = (ArrayList)Session["tempArray"];

for (int addContent = 0; addContent < aryNodes.Count; addContent++)
{
string ltrName = "ltrId" + (addContent + 1).ToString();
string ddlName = "ddlId" + (addContent + 1).ToString();

LiteralControl ltl =
(LiteralControl)this.FindControl("plhXmlContent"). FindControl(ltrName);
DropDownList ddl =
(DropDownList)this.FindControl("plhXmlContent").Fi ndControl(ddlName);

ltl.Text = "<p><strong>Xml Tag " + (addContent + 1) + ":</b>";

for(int addItem = 0;addItem < aryNodes.Count;addItem++)
{
ddl.Items.Add(aryNodes[addItem].ToString());
}

ddl.SelectedIndex = addContent;
}
}
}

private void btnSave_Click(object sender, System.EventArgs e)
{
MsgBox(ReadDropDownLists());
}

public string ReadDropDownLists()
{
string strSeletedItems = "";

for (int i = 0; i<Page.Controls.Count; i++)
{
string DropDownListName = "ddlXmlTagList" + (i+1).ToString();
DropDownList ddl =
(DropDownList)Page.FindControl("plhXmlContent").Fi ndControl(DropDownListName);
strSeletedItems+= ddl.SelectedItem.Text + "\\n";
}

return strSeletedItems;
}

public void MsgBox(string strMsg)
{
string alertScript;

alertScript = "<script language=JavaScript> alert('" + strMsg +"');
</script" +">";

if (!IsClientScriptBlockRegistered("alert"))
this.RegisterClientScriptBlock("alert", alertScript);
}
}
}

Nov 17 '05 #1
4 7426
There appears to be a contradiction in the error and the code provided...

The code in the error wouldn't work here:

DropDownList ddl = new DropDownList();
ddl.ID = DropDownListName;
strSeletedItems+= ddl.SelectedItem.Text + "\\n";

A new instance of a list is being created, then you're trying to get the
selected from it when SelectedItem would be null. The code is closer, with
trying to actually get a reference to the list on the page.

The code provide appears a little over complex:

public string ReadDropDownLists()
{
string strSeletedItems = "";
for (int i = 0; i < Page.Controls.Count; i++)
{
string DropDownListName = "ddlXmlTagList" + (i + 1).ToString();
DropDownList ddl =
(DropDownList)Page.FindControl("plhXmlContent").Fi ndControl(DropDownListName);
strSeletedItems += ddl.SelectedItem.Text + "\\n";
}
return strSeletedItems;
}
why not just write:

DropDownList ddl = plhXmlContent.FindControl(DropDownListName);
if ( ddl != null )
{
if ( ddl.SelectedIndex >= 0 )
{
selectedItemsText += ddl.SelectedItem.Text;
}
}
you can then apply your error handling to cases where the list object is
null, or there is no user selection...
"theo" <th**@complexx.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...

Program flow...load file,then extract the xml text tags from the
file,then the number of
Xml tags retrieved from the file determines the number of dropdownlist
controls
instanciated in the placeholder,the user selects the required tags from
the
dropdownlists (if 5 Xml tags,then 5 dropdownlists each containing 5 xml
tags) and now
the btnSave button is selected which extracts the user selection form
the dropdownlists.

Once the btnLoadXmlTags_Click is selected,an array is filled with the
xml tags,this
function also creates a session variable call "OkToRecreateControls"
which permits Page
OnInit to recreate the controls for subsequent postbacks,then the
btnLoadXmlTags_Click function calls the CreateDynamicControls which in
turn calls
the function AddContentToDynamicControls.

All of the above works fine and for subsequent postbacks page onInit
calls
CreateDynamicControls which will now run since the
"OkToRecreateControls" session
variable is now valid.

Problem - when I try to extract the user selection form the
dropdownlists using the
using btnSave function the following error is generated...

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web
request.
Please review the stack trace for more information about the error and
where it originated
in the code.

Exception Details: System.NullReferenceException: Object reference not
set to an instance
of an object.

Source Error:
Line 276: DropDownList ddl = new DropDownList();
Line 277: ddl.ID = DropDownListName;
Line 278: strSeletedItems+= ddl.SelectedItem.Text + "\\n";

Source File: e:\complexx\aspxmldbmapper_v2\wfrmmain4.aspx.cs Line:
270

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an
object.]
AspXmlDbMapper_v2.wfrmMain4.ReadDropDownLists() in
e:\complexx\aspxmldbmapper_v2\wfrmmain4.aspx.cs:27 0
AspXmlDbMapper_v2.wfrmMain4.btnSave_Click(Object sender, EventArgs
e) in e:\complexx\aspxmldbmapper_v2\wfrmmain4.aspx.cs:25 3
System.Web.UI.WebControls.Button.OnClick(EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()
So,how do I access the placeholders dropdownlists item content....Theo

Code sample...

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Xml;
using System.Data.SqlClient;
using System.Configuration;

namespace AspXmlDbMapper_v2
{

public class wfrmMain4 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.PlaceHolder plhDbContent;
protected System.Web.UI.WebControls.PlaceHolder plhXmlContent;
protected System.Web.UI.HtmlControls.HtmlInputFile fileDb;
protected System.Web.UI.HtmlControls.HtmlInputFile fileXml;

protected System.Web.UI.WebControls.Button btnLoadXml;
protected System.Web.UI.WebControls.Button btnLoadXmlTags;
protected System.Web.UI.WebControls.Button btnSave;
protected System.Web.UI.HtmlControls.HtmlGenericControl span2;
protected System.Web.UI.WebControls.DropDownList ddlXmlTagList;
protected System.Web.UI.LiteralControl literal;

private string xmlFileDestination = "";
private ArrayList aryTxtNodes = new ArrayList();
private ArrayList aryEleNodes = new ArrayList();
private ArrayList aryAtrbNodes = new ArrayList();

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

}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
CreateDynamicControls();
InitializeComponent();
base.OnInit(e);
}

private void InitializeComponent()
{
this.btnLoadXml.Click += new
System.EventHandler(this.btnLoadXml_Click);
this.btnLoadXmlTags.Click += new
System.EventHandler(this.btnLoadXmlTags_Click);
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion

private void btnLoadXml_Click(object sender, System.EventArgs e)
{
string fileDestination = "C:\\TempXml";
string fileName = Path.GetFileName(fileXml.Value);
string fileExtentsion = Path.GetExtension(fileXml.Value);

xmlFileDestination = Path.Combine(fileDestination,fileName);
Session["xmlFilePath"] = xmlFileDestination;

if (fileXml.PostedFile != null )
{
//error check...file has .xml extentsion
if (fileExtentsion.ToString().Equals(".xml"))
{
try
{
fileXml.PostedFile.SaveAs(xmlFileDestination);
span2.InnerHtml = "File uploaded successfully to <b>" +
xmlFileDestination + "</b>";
Session["xmlFileLoadedOk"] = true;
fileXml.Dispose();
}
catch (Exception exc)
{
span2.InnerHtml = "Error saving file <b>" + xmlFileDestination +
"</b><br>"+ exc.ToString();
}
}
else
{
MsgBox("Error...loaded incorrect file type \\n\\nCorrect file type is
\" filename.xml \"");
}
}
}

private void btnLoadXmlTags_Click(object sender, System.EventArgs e)
{
int elementCount=0, attributeCount=0, textCount=0;

try
{
string fileDestination = (string)Session["xmlFilePath"];
StreamReader streamreader = new StreamReader (fileDestination);
XmlTextReader xmlReader = new XmlTextReader (streamreader);

while (xmlReader.Read())
{
string myNode = "";

switch (xmlReader.NodeType)
{
case XmlNodeType.Element:
elementCount++;
myNode = xmlReader.Name;
aryEleNodes.Add(myNode);

if (xmlReader.HasAttributes)
{
attributeCount++;
myNode = xmlReader.Value;
aryAtrbNodes.Add(myNode);
}

break;
case XmlNodeType.Text:
//assign last element name tag and current text value to string
myNode = "<" + aryEleNodes[aryEleNodes.Count-1].ToString() + ">" +
xmlReader.Value;
aryTxtNodes.Add(myNode);
textCount++;
break;
}
}
streamreader.Close();
xmlReader.Close();
string strObj = "true";
Session["OkToRecreateControls"] = strObj;
Session["tempArray"] = aryTxtNodes;
CreateDynamicControls();
}
catch(Exception exc)
{
span2.InnerHtml = "Error...loading xml tags </b><br>"+ exc.ToString();
}
}

public void CreateDynamicControls()
{
string strOkToRecreateControls =
(string)Session["OkToRecreateControls"];

if (strOkToRecreateControls != null)
{
ArrayList aryNodes = (ArrayList)Session["tempArray"];

for (int createControl=0; createControl < aryNodes.Count;
createControl++)
{
literal = new LiteralControl();
literal.ID = "ltrId" + (createControl + 1).ToString();
plhXmlContent.Controls.Add(literal);
ddlXmlTagList = new DropDownList();
ddlXmlTagList.ID = "ddlId" + (createControl + 1).ToString();
plhXmlContent.Controls.Add(ddlXmlTagList);
}

string strObj = "true";
Session["OkToAddContent"] = strObj;
Session["OkToRecreateControls"] = strOkToRecreateControls;
AddContentToDynamicControls();
}
}

public void AddContentToDynamicControls()
{
string strOkToAddContent = (string)Session["OkToAddContent"];

if (strOkToAddContent != null)
{
ArrayList aryNodes = (ArrayList)Session["tempArray"];

for (int addContent = 0; addContent < aryNodes.Count; addContent++)
{
string ltrName = "ltrId" + (addContent + 1).ToString();
string ddlName = "ddlId" + (addContent + 1).ToString();

LiteralControl ltl =
(LiteralControl)this.FindControl("plhXmlContent"). FindControl(ltrName);
DropDownList ddl =
(DropDownList)this.FindControl("plhXmlContent").Fi ndControl(ddlName);

ltl.Text = "<p><strong>Xml Tag " + (addContent + 1) + ":</b>";

for(int addItem = 0;addItem < aryNodes.Count;addItem++)
{
ddl.Items.Add(aryNodes[addItem].ToString());
}

ddl.SelectedIndex = addContent;
}
}
}

private void btnSave_Click(object sender, System.EventArgs e)
{
MsgBox(ReadDropDownLists());
}

public string ReadDropDownLists()
{
string strSeletedItems = "";

for (int i = 0; i<Page.Controls.Count; i++)
{
string DropDownListName = "ddlXmlTagList" + (i+1).ToString();
DropDownList ddl =
(DropDownList)Page.FindControl("plhXmlContent").Fi ndControl(DropDownListName);
strSeletedItems+= ddl.SelectedItem.Text + "\\n";
}

return strSeletedItems;
}

public void MsgBox(string strMsg)
{
string alertScript;

alertScript = "<script language=JavaScript> alert('" + strMsg +"');
</script" +">";

if (!IsClientScriptBlockRegistered("alert"))
this.RegisterClientScriptBlock("alert", alertScript);
}
}
}

Nov 17 '05 #2
Hi Dan Bass,

I tried out your code sample and the compiler required some minor
adjustments,with this your error checking works...the program doesn't
throw the previously mentioned runtime error....thank you

However when debugging this line of code if( ddl != null )
....it shows that dll (dropdownlist control) has a selected index of -1
even though selections have been made with each dropdownlist that are
instanciated on a placeholder control.

Problem - I think when ReadDropDownLists function is called it's reading
a incorrect control structure,else why is the dll (dropdownlist control)
not showing the user selections...

Code Sample

public string ReadDropDownLists()
{
string strSeletedItems = "";

for (int i = 0; i<Page.Controls.Count; i++)
{
string DropDownListName = "ddlXmlTagList" + (i+1).ToString();
DropDownList ddl =
(DropDownList)plhXmlContent.FindControl(DropDownLi stName);

if ( ddl != null )
{
if ( ddl.SelectedIndex >= 0 )
{
strSeletedItems += ddl.SelectedItem.Text + "\\n";;
}
}

}

return strSeletedItems;
}

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #3

a couple of things I suppose you could check:
- is the enabled view state turned on (this is on by default) so that the
selection is remember in the post back?
- are you setting the selection at some point in the control initialisation,
so that when it loads up the controls, it sets the selection to -1?
- place break points on the Page_Load / Init events, as well as in the
button on click event and your "ReadDropDownList()" function, to check that
the sequence of methods executes in the order you'd expect.
- check the state of the lists when they are stored in the session object,
then again when they are read during a post back.

good luck

"theo" <th**@code.net> wrote in message
news:eV**************@TK2MSFTNGP15.phx.gbl...
Hi Dan Bass,

I tried out your code sample and the compiler required some minor
adjustments,with this your error checking works...the program doesn't
throw the previously mentioned runtime error....thank you

However when debugging this line of code if( ddl != null )
...it shows that dll (dropdownlist control) has a selected index of -1
even though selections have been made with each dropdownlist that are
instanciated on a placeholder control.

Problem - I think when ReadDropDownLists function is called it's reading
a incorrect control structure,else why is the dll (dropdownlist control)
not showing the user selections...

Code Sample

public string ReadDropDownLists()
{
string strSeletedItems = "";

for (int i = 0; i<Page.Controls.Count; i++)
{
string DropDownListName = "ddlXmlTagList" + (i+1).ToString();
DropDownList ddl =
(DropDownList)plhXmlContent.FindControl(DropDownLi stName);

if ( ddl != null )
{
if ( ddl.SelectedIndex >= 0 )
{
strSeletedItems += ddl.SelectedItem.Text + "\\n";;
}
}

}

return strSeletedItems;
}

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #4
The solution is to serach through the placeholder contorls (literal and
dropdownlist)in the same order in which the controls have been added
i.e. every second control added was a dropdownlist therefore this loop
skips through every second placeholder control only picking up the
controls needed and this discovery was helped by debugging the
placeholder control contents...Theo

Amended Code

public string ReadDropDownLists()
{
string strSeletedItems = "";
int intIndex = 1;

for (int i = 1;i <
this.FindControl("plhXmlContent").Controls.Count;i +=2)
{
DropDownList ddl =
(DropDownList)this.FindControl("plhXmlContent").Co ntrols[i];//FindContro
l(DropDownListName);
if ( ddl != null )
{
if ( ddl.SelectedIndex >= 0 )
{
strSeletedItems += ddl.SelectedItem.Text + "\\n";;
}
}
intIndex++;
}
return strSeletedItems;
}
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #5

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

Similar topics

4
by: DotNetJunky | last post by:
I have built a control that runs an on-line help system. Depending on the category you selected via dropdownlist, it goes out and gets the child subcategories, and if there are any, adds a new...
0
by: theo | last post by:
Hello..I have a similar issue as yesterday but the situation has slightly changed so perhaps someone can shed some more light on the issue... Program flow - load file,extract xml text tags from...
1
by: DaveF | last post by:
When I select the first dropdownlist box, I need to be able to make several dropdownlist boxes on the fly and populate them from the database. Is this possible? If so, HOW? -- David Fetrow...
1
by: powerranger | last post by:
I have a web page where I have dropdownlist box with autopostback set to true. The box has 3 items: 1, 2, and 3. I also have a Placeholder and a button. Each time the user change the value of...
5
by: bryanp10 | last post by:
I have a page that is almost entirely dynamically created. Textboxes and checkbox are working fine, firing events, and persistent their state. DropDownList is giving me a major headache. All...
8
by: utterberg | last post by:
Hi I'm adding two dropdownlist in my webform by clicking a button. I fill the first dropdown with some values from my DB and the other one when I choose from the first dropdown. But since theese...
5
by: Sosh | last post by:
Hi, I can't seem to find much information on this. Please could someone explain to me how to wire up events (selectedIndexChanged) to a bunch of dynamically created controls (Dropdownlists),...
4
by: Dica | last post by:
i need to dynamically add a web control to a page without using placeHolder. i'm looping through all the files in a folder and creating a table row as string for each file. the contol is to be...
0
by: Mike Collins | last post by:
I someone can please help, I am about at an end in trying to figure this out. I am adding some dynamic controls to my page (I found out that I was supposed to be doing that in the oninit event,...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...

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.