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...
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...
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...
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" )
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.
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...
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...
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">...
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...
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...
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)...
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...
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")...
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
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 =...
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.