To a server method, the client wants to send a value 20, when this value exceeds 20 a message should be sent to the client. What will you do for achieving for this

Showing Answers 1 - 1 of 1 Answers

rajesh kumar

  • Sep 8th, 2011
 

Write a custom handler for such a request. the handler will examine the querystring value and write appropriate message using response.write. register ur handler in config, and you are through. please refer to attached code.
thanks,
Rajesh

Code
  1. span style="color: #ff0000;">"intvalue'];

  2. try

  3. {

  4.  

  5. if(Convert.ToInt32(value)>20)

  6.  

  7. HttpContext.Current.Response.Write("greater than 20");

  8. }

  9. catch(System.Exception e)

  10. {

  11. HttpContext.Current.Response.Write("");

  12. }

  13. }

  14.  

  15.  

  16. }

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions