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 Mike Lewis 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: *

  1. belle9

    Joining on a possible empty table

    Yup, that's it pretty much. Thanks Boris!
  2. belle9

    Joining on a possible empty table

    I have 2 tables: a claim table and a corresponding date table. There can be multiple dates for each claim, with a qualifier type to distinguish them, and I'd like to retrieve them all in one row. Here's a snippet of what I have: SELECT d.PointerField , a.ApplianceDate b.AccidentDate...
  3. belle9

    Gridview with checkbox and rowcommand

    I have gridview with a templatefield and a checkbox within that. What I'm trying to accomplish is allow the user to click on the row on any cell to select that row, and to do something OTHER than what would happen when they check. (checking the row will bind a child gridview and check/uncheck...
  4. belle9

    Constructing a string dynamically

    I have this in javascript with vb.net/asp.net: var tabContainer = $get('<%=tab1.ClientID%>'); tab1 is the name of a specific element on my form. i want to make that dynamic, so that it can be passed as a variable to my function. I've tried a bunch of ways with single and double quotes, but no...
  5. belle9

    Just can't figure out what it wants

    Just a quick note, i haven't read through the whole thread, but it seems you've mispelled Source: ( "Provider=Microsoft.Jet.OLEDB.4.0;Data Soure="MYDSN" )
  6. belle9

    Changing a datalist item color on click, then revert back to original

    I'll try to do a findcontrol within a findcontrol...anyone have any examples of this?
  7. belle9

    Changing a datalist item color on click, then revert back to original

    If I set the viewstate to false for the nested datalist, it actually makes the item disappear once another one is clicked on..it hides it i guess. But I just want to switch the color... Seems like way too much work for something so simple.
  8. belle9

    Changing a datalist item color on click, then revert back to original

    I'm having trouble accessing the item in the datalist...It's a nested datalist. It's parent is a panel, which is nested within another datalist. I can't get to the inner datalist, dlProd! My aspx code is above. I'll show what I have added in the code behind. I can't initialize dlList. Public...
  9. belle9

    Changing a datalist item color on click, then revert back to original

    Yes, that makes sense, I'll try it out. Thanks!
  10. belle9

    Changing a datalist item color on click, then revert back to original

    When I set the viewstate from the code behind, it works, but not the way I want. It hides the item, instead of reverting the color...
  11. belle9

    Changing a datalist item color on click, then revert back to original

    When I add EnableViewState="False" to my button, it somehow messes up the id that I'm sending back. System.FormatException: Input string was not in a correct format. I'm not sure how that will solve my problem though. I'm trying to revert the forecolor to its original color once its not the...
  12. belle9

    Changing a datalist item color on click, then revert back to original

    As the title states, I'm changing the forecolor of a linkbutton when it is clicked on. However, I'd like for the color to go back to its original once I click on another item, ie only the item clicked should be red. Here's what I have: <asp:datalist id="dlCategories" runat="server">...
  13. belle9

    Accessing a nested Image from code behind

    Ok, so I figured out how to change the color of the selected item. Next issue: How to change it back to its original color once a different item is clicked? Off the bat I'm thinking of looping through each item in the list and settings each forecolor to the original, then set the selected...
  14. belle9

    Accessing a nested Image from code behind

    I think it's probably not possible or very complicated to do this, since it would be necessary to pass a specific id for the arrow image....Anyway, I'm dropping this idea. Instead, I'd like to just change the style of the selected item when it is clicked on, like make it bold or underlined or a...
  15. belle9

    Accessing a nested Image from code behind

    I think I posted it all, but here it is again. Here's the code behind: Public Sub ProductDetailClicked(ByVal sender As Object, ByVal e As EventArgs) PanelMainProducts.Visible = False PanelProduct.Visible = True myConnection = New SqlConnection(conString)...
  16. belle9

    Accessing a nested Image from code behind

    Here's what I'm trying to do: I have a list of categories. When a category is clicked on, a list of corresponding products appears beneath the category. When a product is clicked on, its product info is displayed. I'd like for when the product is clicked on to display an arrow, indicating to...
  17. belle9

    Accessing a nested Image from code behind

    Nope, it's the outer one. I had tried this too, with no luck: PanelProd = CType(Me.dlCategories.FindControl("PanelProd"), System.Web.UI.WebControls.Panel) dlProd = CType(PanelProd.FindControl("dlProd"), DataList) imgArrow = CType(dlProd.FindControl("imgArrow")...
  18. belle9

    Accessing a nested Image from code behind

    I know I'm getting to the button because I'm debugging the code and stepping through each line...The line imgArrow = CType(Me.dlCategories.Items(i).FindControl("imgArrow"), System.Web.UI.WebControls.Image) executes and sets imgArrow to Nothing. Then it breaks on imgArrow.Visible = True
  19. belle9

    Accessing a nested Image from code behind

    Go point re incrementing i, however that didn't do it...
  20. belle9

    Accessing a nested Image from code behind

    I am doing it on the button click: Public Sub ProductDetailClicked(ByVal sender As Object, ByVal e As EventArgs) PanelMainProducts.Visible = False PanelProduct.Visible = True myConnection = New SqlConnection(conString) myConnection.Open() mycommand =...

Part and Inventory Search

Back
Top