1
Answer

How to use html button in asp.net backend coding

Madhu Patel

Madhu Patel

1y
47
1

<input type="button" value="Submit" />

 

How to use asp.net backend code In above html button tag without using javascript ?

Answers (1)
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 8y
Eval() is used to bind to an UI item that is setup to be read-only (eg: a label or a read-only text box). However, you are using as inline coding so you are getting exception.
What is the need of Eval() to check condition. Create a function and pass value to the function so that you won't use Eval() as inline coding.