Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

ASP.NET Client validation with java script

Last post 06-03-2007, 2:12 PM by salibhai. 1 replies.
Sort Posts: Previous Next
  •  05-10-2007, 7:16 AM 29603

    ASP.NET Client validation with java script

     I want to use dynamic delete confirmation in datagrid by binding linkbutton in every row of DG. when i click that corresponding delete link button , confirmation should appear like

    " Are u sure to delete this username [kalyan]?"
    bold text is dynamic
     
  •  06-03-2007, 2:12 PM 30148 in reply to 29603

    Re: ASP.NET Client validation with java script

    There are many different ways you could do this.

    One way is to have a div tag that has a style='visible: none;' tag that contains a confirmation message with your Yes and No, and then when you click on the linkbutton, it uses a client side event to display that div tag and sets the text as well.

     That would do it without a postback.  and the no button all it has to do is set visible back to none

     Does that work for you?
    Sameer

     


    Author, Sharp Developer (.NET)
    http://www.SharpDeveloper.Net/ - Sharpen your .NET and improve your code quality, regularly updated articles and more
View as RSS news feed in XML