How to Insert Excel Data to SQL Server Database in Asp.net core 2.0 MVC [on hold]
Currently i am trying to insert my excel data to SQL Server Database, and i am unsure of how to start. I am doing on ASP.NET Core MVC 2 using Visual Studio 2017. Most of the stuff i found online couldn't work.
I have a button which will send the Post request and am stuck on how to code in the controller to insert the data
c# razor asp.net-mvc-2 asp.net-core-2.0
New contributor
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as too broad by Crowcoder, snakecharmerb, Nate, Tomasz Mularczyk, arghtype 2 days ago
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
|
show 1 more comment
Currently i am trying to insert my excel data to SQL Server Database, and i am unsure of how to start. I am doing on ASP.NET Core MVC 2 using Visual Studio 2017. Most of the stuff i found online couldn't work.
I have a button which will send the Post request and am stuck on how to code in the controller to insert the data
c# razor asp.net-mvc-2 asp.net-core-2.0
New contributor
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as too broad by Crowcoder, snakecharmerb, Nate, Tomasz Mularczyk, arghtype 2 days ago
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Is any/both of your excel and sql server is in cloud/web server or personal machine?
– Sonal Borkar
2 days ago
It is all in personal machine.
– asdf
2 days ago
Got any code you can post? Cheers
– d219
2 days ago
@using (Html.BeginForm("UploadExcel", "User", FormMethod.Post, new { enctype = "multipart/form-data" })) { <div class="form-group"> <div class="control-label col-md-2">Excel:</div> <div class="col-md-10"> <input type="file" id="FileUpload" name="FileUpload" class="" /> </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <input type="submit" value="Upload" id="btnSubmit" class="btn btn-primary" /> </div> </div> }
– asdf
2 days ago
all i have is this
– asdf
2 days ago
|
show 1 more comment
Currently i am trying to insert my excel data to SQL Server Database, and i am unsure of how to start. I am doing on ASP.NET Core MVC 2 using Visual Studio 2017. Most of the stuff i found online couldn't work.
I have a button which will send the Post request and am stuck on how to code in the controller to insert the data
c# razor asp.net-mvc-2 asp.net-core-2.0
New contributor
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Currently i am trying to insert my excel data to SQL Server Database, and i am unsure of how to start. I am doing on ASP.NET Core MVC 2 using Visual Studio 2017. Most of the stuff i found online couldn't work.
I have a button which will send the Post request and am stuck on how to code in the controller to insert the data
c# razor asp.net-mvc-2 asp.net-core-2.0
c# razor asp.net-mvc-2 asp.net-core-2.0
New contributor
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 days ago
Md. Zakir Hossain
693315
693315
New contributor
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 days ago
asdf
11
11
New contributor
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asdf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as too broad by Crowcoder, snakecharmerb, Nate, Tomasz Mularczyk, arghtype 2 days ago
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as too broad by Crowcoder, snakecharmerb, Nate, Tomasz Mularczyk, arghtype 2 days ago
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Is any/both of your excel and sql server is in cloud/web server or personal machine?
– Sonal Borkar
2 days ago
It is all in personal machine.
– asdf
2 days ago
Got any code you can post? Cheers
– d219
2 days ago
@using (Html.BeginForm("UploadExcel", "User", FormMethod.Post, new { enctype = "multipart/form-data" })) { <div class="form-group"> <div class="control-label col-md-2">Excel:</div> <div class="col-md-10"> <input type="file" id="FileUpload" name="FileUpload" class="" /> </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <input type="submit" value="Upload" id="btnSubmit" class="btn btn-primary" /> </div> </div> }
– asdf
2 days ago
all i have is this
– asdf
2 days ago
|
show 1 more comment
Is any/both of your excel and sql server is in cloud/web server or personal machine?
– Sonal Borkar
2 days ago
It is all in personal machine.
– asdf
2 days ago
Got any code you can post? Cheers
– d219
2 days ago
@using (Html.BeginForm("UploadExcel", "User", FormMethod.Post, new { enctype = "multipart/form-data" })) { <div class="form-group"> <div class="control-label col-md-2">Excel:</div> <div class="col-md-10"> <input type="file" id="FileUpload" name="FileUpload" class="" /> </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <input type="submit" value="Upload" id="btnSubmit" class="btn btn-primary" /> </div> </div> }
– asdf
2 days ago
all i have is this
– asdf
2 days ago
Is any/both of your excel and sql server is in cloud/web server or personal machine?
– Sonal Borkar
2 days ago
Is any/both of your excel and sql server is in cloud/web server or personal machine?
– Sonal Borkar
2 days ago
It is all in personal machine.
– asdf
2 days ago
It is all in personal machine.
– asdf
2 days ago
Got any code you can post? Cheers
– d219
2 days ago
Got any code you can post? Cheers
– d219
2 days ago
@using (Html.BeginForm("UploadExcel", "User", FormMethod.Post, new { enctype = "multipart/form-data" })) { <div class="form-group"> <div class="control-label col-md-2">Excel:</div> <div class="col-md-10"> <input type="file" id="FileUpload" name="FileUpload" class="" /> </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <input type="submit" value="Upload" id="btnSubmit" class="btn btn-primary" /> </div> </div> }
– asdf
2 days ago
@using (Html.BeginForm("UploadExcel", "User", FormMethod.Post, new { enctype = "multipart/form-data" })) { <div class="form-group"> <div class="control-label col-md-2">Excel:</div> <div class="col-md-10"> <input type="file" id="FileUpload" name="FileUpload" class="" /> </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <input type="submit" value="Upload" id="btnSubmit" class="btn btn-primary" /> </div> </div> }
– asdf
2 days ago
all i have is this
– asdf
2 days ago
all i have is this
– asdf
2 days ago
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is any/both of your excel and sql server is in cloud/web server or personal machine?
– Sonal Borkar
2 days ago
It is all in personal machine.
– asdf
2 days ago
Got any code you can post? Cheers
– d219
2 days ago
@using (Html.BeginForm("UploadExcel", "User", FormMethod.Post, new { enctype = "multipart/form-data" })) { <div class="form-group"> <div class="control-label col-md-2">Excel:</div> <div class="col-md-10"> <input type="file" id="FileUpload" name="FileUpload" class="" /> </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-10"> <input type="submit" value="Upload" id="btnSubmit" class="btn btn-primary" /> </div> </div> }
– asdf
2 days ago
all i have is this
– asdf
2 days ago