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...
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">...
I'm trying to set the visibility of imgArrow when an item in my datalist dlProd is clicked on.
Here is my image:
<asp:datalist id="dlCategories" runat="server">
<ItemTemplate>
<P class="wht_14" style="MARGIN: 8px 18px 2px 0px" align="right"><b>...
Now that I got the textbox to display the multiple rows from the DB, I need to return it back to the db for updating. How do I pass each item of the datalist to the stored proc?
myCommand = New SqlCommand("admin_UpdateDiet", oConn)
myCommand.CommandType = CommandType.StoredProcedure...
Here is my item in the html:
<asp:BoundColumn DataField="AthleteName" HeaderText="Athlete Name">
<HeaderStyle CssClass="dgHeader"></HeaderStyle>
<ItemStyle Wrap="False"></ItemStyle>
</asp:BoundColumn>
I'd like to set AthleteName to be FirstName and...
When I try to submit a form with html in my textbox, I get this error:
A potentially dangerous Request.Form value was detected from the client (txtDescription="... energy!* <br><br> Just 15 ...").
When I try to remove a parameter from the querystring, I get an error that the collection is read-only. How can I set it to allow me to update the collection? I assume it's possible since there are functions built in to do just that..
request.QueryString.Remove("ProdID")
I'm trying to access a session variable. It loses its value the first time I hit a page, but if I hit that page twice before doing anything(click the same link twice), it works.
So, page default.aspx, has the below code:
Session("ProdID") = ProdID
Response.Redirect("/pages/Products.aspx")...
I am trying to redirect the user when they click on an image on the homepage to go to the specific product listing page. I'd like it to go directly to the sub that is defined in the product page that deals with displaying the product...How can I do that? I'm not using any parameters in the URL...
I'm trying to do a simple show/hide: when you click on a category, it's corresponding products appear below it. Click the category again, and the menu folds back up.
What's happening now is that when I click on an item in dlCategories, it's corresponding dlProduct appears for a second, but...
I'm trying to call a javascript function that will display a subcategory when the user clicks on a main category. MY JS works fine outside of this project...The second datalist had an ID of "A", so that when I click on an item in the first datalist I'd like to display the data from the second...
I'm pretty much a beginner with asp.net. What I would like to achieve is: I have a left navigation with categories, and I'd like for when the user clicks on a category title for its corresponding products to display beneath it. When they click on the title again, the products should disappear...
I'm trying to get a list of orders placed between a specific time period, and I want one result for each date. I am currently getting one result for each time on each date...How can I query the date field to ignore the time part?
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.