Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: wrexhamafc234
  • Order by date
  1. wrexhamafc234

    sorting a gridview

    hello, im trying to sort a gridview protected void Page_Load(object sender, EventArgs e) { DataTable alerttable = new DataTable("alerttable"); alerttable.Columns.Add("ID"); alerttable.Columns.Add("Title"); alerttable.Columns.Add("Section")...
  2. wrexhamafc234

    auto checking checkboxes

    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...
  3. wrexhamafc234

    problems with selecting values from dropdowjn boxes

    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).
  4. wrexhamafc234

    problems with selecting values from dropdowjn boxes

    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; } }
  5. wrexhamafc234

    problems with selecting values from dropdowjn boxes

    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() {...
  6. wrexhamafc234

    removing hyperlinks from treeview

    I want the text for each node to be displayed, but i dont want the text to be a link.
  7. wrexhamafc234

    removing hyperlinks from treeview

    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 =...
  8. wrexhamafc234

    removing hyperlinks from treeview

    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?
  9. wrexhamafc234

    execute function on default.aspx.cs from masterpage

    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...
  10. wrexhamafc234

    adding controls to a datatable

    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") {...
  11. wrexhamafc234

    Treeview checkboxes

    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?
  12. wrexhamafc234

    Adding a Panel to a table row

    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()...
  13. wrexhamafc234

    deleting from a gridview

    Ah, right. Ive added the datakeynames to the Gridview definition. <asp:GridView ID="GridView1" runat="server" CellPadding="3" DataSourceID="ObjectDataSource1" datakeynames="StockExchangeID" GridLines="Vertical" onrowcommand="GridView1_RowCommand" AllowSorting="True" BackColor="White"...
  14. wrexhamafc234

    deleting from a gridview

    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"...
  15. wrexhamafc234

    adding checkboxes to a treeview

    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?
  16. wrexhamafc234

    adding checkboxes to a treeview

    What would be the best way of adding a checkbox to each element of a treeview?
  17. wrexhamafc234

    drag + drop labels

    Hello, Im looking for a way that I can enable a label to be dragged and dropped (by the mouse) around a Panel that it is located within. Any ideas?
  18. wrexhamafc234

    call function when enter button is clicked

    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...

Part and Inventory Search

Back
Top