How to call stored procedure from react

General Tech Bugs & Fixes 3 years ago

7.95K 1 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

I have been given a website that is already developed in ASP.NET. I am required to develop the same in React.

Below is the code in .net written to call a stored procedure when the user clicks login:

Dal objDal = new Dal();
DataSet ds = objDal.ByText("AuthenticateUser_RPOS", txtUserId.Text.ToString().Trim() + "|" + txtPwd.Text.ToString().Trim() + "|" + AuthPwdOIM);

if (ds.Tables.Count > 0)
{
   <....some code>
}

AuthenticateUser_RPOS is the name of the stored procedure being called. I am not familiar with .NET and I have just started doing react. I have searched the internet but couldn't find anything relatable.

So, is there a way to call stored procedure directly in react?

0 views
0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum