so let me tell you first that im a first year programmer so dont expect much ;)
This school year is different to me. I am doing a intership at a company. I have a got a assignement but i dont have a clue how to start. My assignement is 'The user fills in a excel template. That template must be imported to a database using c# asp.net' i never worked with asp and a little with c#.
I have problems with :
1. opening a file stream with asp.net (So i can pick a file)
2. Reading the excel file
3 importing it to a db
sorry if something is unclear. Please ask.
kind regards
Related
Please tell me what to code here in order to get the file path only directly to the database table and please tell me how the view will look. Please help I'm stuck with this problem since 2 days.
This is more of a, "hey, any ideas on how to go about doing this?", type of question.
So,
I'm working on a READ-ONLY GUI in Visual Studios, that loads data from an Oracle database. -- I am currently stumped on how to go about doing something: Loading an BLOB file from the oracle database and having it display via the GUI, so that the person reading it would be able to download said file by clicking a logo or text field or whatever works really. The person wouldn't be the ones uploading files; they should just be able to download them from what the GUI is pulling from the database.
Keep in mind, this file should not be limited to a single file type, should be able to upload .pdf, .txt, .wordx, .png, etc)... from Oracle, into Visual Studio.
I'm not sure which tool to use, nor the best way to go about this.
Tried looking it up, haven't really found any examples worth-mentioning or ideas pertaining to loading FROM Oracle into displaying for C#.
Any examples or ideas would be much appreciated.
SQL Developer offers this feature - via Java. You asked about tools...
I'm working on an application on VS2013 and have this bug right now which is every time I add an SQL query I have a new Designer.cs file created, which is called Designer1.cs. Then of course impossible to run the app cause there are conflicts between the 2 files.
Does anyone know why it's doing this and how to fix it? I can't work on my application anymore because of that.
I've read some posts about it, done the trick but still got some new Designer1.cs file being created after that.
Weird “Designer1.cs” files created
Dataset Designer.cs generate Designer1.cs after taking update from SVN in VS2013
I suspect something is wrong with my project settings but really don't know how to fix it. Is it possible to copy all the content of the application to a new project easily? I'm using VS2013 for school and don't know much about it, some help would be really appreciated, thank you!
I have had the same in three projects. Sometimes deleting the .sln-file helps, sometimes it is neccessary to copy all files to a new created project, excluding the sln-file.
I don't know why this bug comes up, I looked for help but nothing to find. I wrote to Microsofts develloper forum - no answer.
The description in your first link - the answer of zendar - is very good for the first time. The excluding is not nessecary, but deleting .designer1.cs after renaming in the explorer is reqired.
I am a total beginner of ASP.NET. I have created a webform in Visual Studio and now I need to figure out how to make the webform submit the data to a record in SQL. I assume there are thousands of tutorials out there for this but I can't seem to find any. Everything I find seems wildly over-complicated to just simply write data to a record. (or maybe its just my lack of understanding .NET that makes it seem over-complicated.)
I dont need to exchange data, or update live data on a page form the db, I just need to write the data to a record.
Can anyone point me in the right direction?
You could use the scaffolding feature to generate your application.
All you need to do is setup your connection string (pointing to your database) and follow this tutorial (http://www.c-sharpcorner.com/UploadFile/4b0136/getting-started-with-web-forms-scaffolding-in-Asp-Net/).
As simple as this!
Follow this link: http://mrbool.com/inserting-data-into-sql-server-database-using-csharp-and-asp-net/25091
or this link
http://www.c-sharpcorner.com/Blogs/12611/easy-steps-to-insert-data-into-sql-server-using-Asp-NetC-Sharp.aspx
I have a program which analyses some information in runtime and save the analysis results in certain variables. I have 15 of these variables, of which, 13 are string type, 1 integer and 1 bitmap image. I want to let the user to generate a report based on the analysis data. I have been trying to search the forums for help, but couldn't find a proper solution yet.
First of all, I don't want to save these analysed results in a database (SQL etc). All i want to do is just to display the report to the user based on analysis results and let him save or print it.
This is what I did so far based on numerous hints that I get from forums. I added a report.rdlc file and created a template for the report. I also created a dataset.xsd file and added the analysis parameters to the dataset. All the dataset values are added to the report template.
Now this is where I am stuck. I don't have an idea how to proceed from here and generate a report. Right now what my program does is, upon button click, the analysed parameters will be saved in their respective variables that I specified in the main program. What I want to achieve is to use these results and generate a report as in the template. Sorry that I am not able to post images here due to the user restriction.
Any guidance on how to achieve this is much appreciated.
Thank you!
From what I recall, reports support parameters which can be injected via the presentation control.
With little else to go on, I would look here first.