Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 544.6k

How to pass TextBox Values

Dec 21 2022 6:09 AM

Hi

  How to pass textbox values instead of hardcode in below code

var request = new RestRequest(Method.POST);
 request.AddHeader("content-type", "application/json");

var body = @"{" + "\n" +
            @"    ""email"" : ""[email protected]""," + "\n" +
            @"    ""password"" : ""Tmp023""" + "\n" +
            @"}";

Thanks


Answers (2)