Skip to content

Javascipt range validation for textbox inside gridview

KRayudu V

Asked Sep 13, 2013, 5:04 AM EDT2 answers
Share
LinkedInX
javascipt range validation(in between 0 to 50) for textbox inside gridview

here is my textbox:
<asp:TextBox ID="txtseats" runat="server" CssClass="text100" "
                                                    MaxLength="3" 
                                                    Text='<%#Eval("Nseats") %>' Height="15px" Width="39px" onclick="change()"></asp:TextBox>

i have to write this validation in button click
here is my button Control:

<asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="~/Images/submit.jpg" OnClick="btnSubmit_Click"
                   Visible="False" />

i have four columns in gridview and this textbox is at fourth column

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Suthish Nair
    0
    Please explain the problem facing here with detailed explainations.
    0
  • 0
    In GridView i have four column like SNO Select(CheckBox) CollegeID(TextBox)(ReadOnly) CollegeName(TextBox)(ReadOnly)  NO.Seats(TextBox)

    Now i have to validate(NO.Seats(TextBox)) using javascript rang validation (in between 0 to 50) on Submit(Button) Click


    Here is the Print Screen
    0