I'm adding and deleting rows from a gridview in an update panel. It all works fine unless I delete all the rows from the gridview and then when I try and add another by clicking the add button the code is not executed?
Any advice greatly appreciated.
Hi,
I have an update panel with a text box and a button.
I have put a required field validator on the text box. When the button is clicked it is not doing the validation and posting the form even when there is nothing in the text box.
Any help would be much appreciated, thanks.
Could not load file or assembly 'System.Data.Services.Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
Can anyone tell me why I get this error in my live environment and not in development? The...
I can't pass the object because the onclick is on a button and the object I need in the function is the dropdownlist."
I am using purely js for this. The only issue I had with it being in a asp.net web form is that I am using a masterpage and it changes the names.
I was explaining why I...
I just thought I'd explain what it is I'm trying to do a little more clearly in case it helps with a solution.
I have a drop down on a form, when certain selections are made from the drop down it forces a layer to be displayed informing the user that they are going to be redirected away from...
Thanks for your help. I did wonder if this was causing the issue. I still have a lot to learn.
I can't pass the object because the onclick is on a button and the object I need in the function is the dropdownlist.
I will have a look at using unique class names.
Thanks again.
I have edited my code slightly to make is simpler. It's actually a button that calls the javascript function so I can't use 'this' and the extra '{' is in my code but I accidentally deleted it.
Master page - a file in asp.net that you incorporate into your pages usually has menus and page layout in
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>...
<asp:DropDownList ID="ddlName runat="server" >
<asp:Button ID="btnConfirm" runat="server" Text="Go" onclientclick="ChangePage()"/>
I have a ddl and a button on a page. When the user clicks the button the javascript needs to check what has been selected in the ddl and redirect to the...
Thanks.
I was kind of hoping I could just call one sub that would loop through and perform a task on each ddl.
I think I need to use Me.Controls.Item("ddl" & x) using a for loop from x=1 to 4
But I'm getting the error "Conversion from string "ddl1" to type 'Integer' is not valid"
???
I'm sorry this is probably a very simple question. I haev four drop dpwn lists called ddl1, ddl2, ddl3 and ddl4.
On page submit I want to run the same code on each ddl and wanted to do a for loop and dynamically put in the name of the ddl I want to reference.
Any help much appreciated, thanks.
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.