Question: I am editing a field in gridview and would like that the edited value not be allowed to be greater than the old value?

is there a front end validation for this? so as to not use a javascript popup

Thanks

```
<asp:TemplateField HeaderText="FC Amount">             
    <ItemTemplate>   
        <asp:Label ID="FCLabel" runat="server" Text='<%# Eval("FC AMOUNT") %>'></asp:Label>         
    </ItemTemplate>
    <EditItemTemplate>                    
        <asp:TextBox ID="FCTextBox1" runat="server" Text='<%# Eval("FC AMOUNT") %>'></asp:TextBox>
    </EditItemTemplate>
</asp:TemplateField> 

```

Answer: 
Allocating a PTY and sending a Ctrl+C character code did the trick for me:

```
final Session session = ssh.startSession();
session.allocateDefaultPTY();
try {
    final Command cmd = session.exec("tail -f /var/log/syslog");

    // Send Ctrl+C (character code is 0x03):
    cmd.getOutputStream().write(3);
    cmd.getOutputStream().flush();

    // Wait some time for the process to exit:
    cmd.join(1, TimeUnit.SECONDS);

    // If no exception has been raised yet, then the process has exited
    // (but the exit status can still be null if the process has been killed).
    System.out.println("\n** exit status: " + cmd.getExitStatus());
} catch (IOException e) {
    e.printStackTrace();
}finally{
    session.close();
}

```

Of course, being able to send signals would be better, but if even the OpenSSH server does not support it, there's no hope there :/
Had a similar issue recently. In my specific case it was the OpenSSH issue mentioned by @shikhar.

My solution was to run start another session (sharing the connection) and run a kill command `pgrep mycommand | xargs kill`.