hello, any ideas how I can create a single function that will allow me to automatically check checkboxes?
e.g. if checkbox1 (id=1) is checked, all other checkboxes will be checked
if checkbox 1-2 (id=1-2) is checked, checkboxes 1-2-1 and 1-2-2 will be checked.
html...
yes, both ddls have the same selected value (0). However, this should not be as im selecting different values:
DropDownList1.SelectedIndex = 1;
DropDownList2.SelectedIndex = 0;
e.g. in the above example, i want ddl1 to select 0 (selectedindex = 0) and ddl2 to select 1(selectedindex = 1).
ok, ive changed my code to the following, however, still same error:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
AddToList();
DropDownList1.SelectedIndex = 1;
DropDownList2.SelectedIndex = 0;
}
}
Hello,
im having some problems selecting values from dropdown boxes:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void AddToList()
{...
ok, ive added the following code, but still the links appear:
in page load:
TreeView1.TreeNodeDataBound += new TreeNodeEventHandler(TreeView1_TreeNodeDataBound);
protected void TreeView1_TreeNodeDataBound(object sender, TreeNodeEventArgs e)
{
e.Node.SelectAction =...
Hello all, i have a treeview on my website, which has checkboxes enabled. Because I have the checkboxes enabled, i do not want the users to be able to click on the text related to a node.
How can i go about removing these links?
Hello,
Ive added a button on my masterpage, on the click event of this masterpage, is tehere any way of me accessing a function that is located on a different page?
e.g. the function (CheckIfSaved) is located in default.aspx.cs, I would like to access this function from the a click event of a...
Hello, im creating a datatable and in one of the columns, i woul like to add a control (image).
DataTable alerttable = new DataTable("alerttable");
alerttable.Columns.Add("Priority");
if ((string)Priority == "High")
{...
Hello,
I have a treeview which is enabled to show checkboxes for each node (TreeView1.ShowCheckBoxes = TreeNodeTypes.All;)
Is there any way of doing the following:
When a parent node is checked, an auto post back will be made which will casue all of the child nodes to be automatically checked?
Hi all, im creating a table code-side
Table clienttable = new Table();
TableRow row = new TableRow();
//HEADINGS
TableCell cell = new TableCell();
cell.Text = "<b>Show Alerts</b>";
row.Cells.Add(cell);
cell = new TableCell()...
I have the following gridview defined on my page:
<asp:GridView ID="GridView1" runat="server" CellPadding="3" DataSourceID="ObjectDataSource1" GridLines="Vertical" onrowcommand="GridView1_RowCommand" AllowSorting="True" BackColor="White" BorderColor="#999999" BorderStyle="None"...
thanks for that, by adding the following line, it adds the checkboxes:
TreeView1.ShowCheckBoxes = TreeNodeTypes.All;
Another small problem with these checkboxes, is there any way of doing the following:
If a parent checkbox is clicked, all child node checkboxes will be automatically checked?
I have the following javascript function in a seperate javascript file (javascript.js). Javascript.js is attacked in the masterpage:
function IPressedEnterBasic()
{
if(event.which || event.keyCode)
{
if ((event.which == 13) || (event.keyCode == 13))
{
var save= confirm("Do you want...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.