I got following scenario: User control placed on default.aspx page, in my user control i got a text box and "Submit" button is on my user control. Now i need to add the validat my text box (which is in user control) when user clicks "Submit" button then i should show error message. I need to do my validation on client side I tried it by adding an attribut to my button like this : BtnSave.Attributes.Add("onclick", "if (!ValidateSecActionType()) return false; "); then i wrote this code in codefront page : function ValidateSecActionType() { if(document.getElementById('txtSecActionTypeTitle').innerText == "1" ) { document.getElementById('AlertLbl').style.visibility = 'visible' ; return false; } return true; } now when i run my page i have an error like this : Object Required how can i do this ????????????? thanks alot....
elhameh
Posts
-
why my javascript attribut dosent work in usercontrol ???? -
How can split menu strip in web applications?i have a menu but my sub menus are so much i wanna split my sub menu strip to show it like windows start up menu when our program is too much all programs sub menu show in 2 or 3 pages beside each other how can i do my menu as start menu windows on my web application(c#) Redgards
-
Submit parent forms after closing child formI know i should create a method but i have problem with creating this method and calling that making method is easy but calling that is my problem
-
Submit parent forms after closing child formHello Every one ! i have 2 pages one of them is parent for other one parent one contion a gridview when i click on grid child page is opening i do editing on my record then i close page but no thing is not happen to grid if i refresh page manual grid become refresh as i want but i want to do it by closing child page i open child page by this Code : window.open("childpage.aspx?Id="+grid.cell[5].text ,"page1","height:150,witdh:150,left:50,top:30") for close child i use this Code opener.document.parent.submit(); window.close(); please help coz i cant do any thing with out refresh parent page by the way if i can do it when i m closing page it is best