Skip to content

.net task pr raised under new branch task3#36

Open
nangchetnamaw wants to merge 13 commits into
cybergroupdevs:masterfrom
nangchetnamaw:task3
Open

.net task pr raised under new branch task3#36
nangchetnamaw wants to merge 13 commits into
cybergroupdevs:masterfrom
nangchetnamaw:task3

Conversation

@nangchetnamaw

Copy link
Copy Markdown
Contributor

No description provided.

{
// GET api/values
[HttpGet]
public ActionResult<IEnumerable<string>> Get()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove Unused Controller

if (!optionsBuilder.IsConfigured)
{
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.
optionsBuilder.UseSqlServer("Server=CYG317\\SQLEXPRESS;Database=WebApp;Trusted_Connection=True;");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please Explain the use of this connection string

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected

if (xhr.readyState===4){
if (xhr.status === 200) {
//var result;
// Print received data from server

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused Commented Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

//result.innerHTML = this.responseText;
console.log("registered");
alert("successfully registered");
// Converting JSON data to string

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove Commented Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed commented code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants