Questions tagged as 'asp.net'

0
answers

How to save on a relative path?

I have the following method: private string SubirImagem(string imagemupload, string sequencia, string clifor) { HttpPostedFile imagem = Request.Files[imagemupload]; string nomeimagem = ""; if (imagem != null && imagem.Cont...
asked by 10.07.2017 / 16:38
1
answer

Problem in returning the query

I have a problem with my return from the query. public IList<Rota> Lista() { //* string hql = "SELECT * FROM Rota WHERE ORDER BY Km_Atual ASC"; string hql = "SELECT Km_Atual, MAX(DtLancamento) FROM Rota GROUP BY I...
asked by 22.06.2017 / 20:41
1
answer

Store values from a data set in ASP.NET variables

I'm having problems getting the return of a select variable, I'm using a data set to create a table with the result of select, that select will return some records and form that I'm doing just get the first value, I already researched how to do...
asked by 28.06.2017 / 21:00
0
answers

Can not find table 0 ASP.NET

I'm developing a screen that exports processed data from a Procedure to PDF / Xls. Debugging it returns the following error:    Can not find table 0 From what I understand it can not read the class instantiated in an object. I woul...
asked by 28.06.2017 / 16:23
2
answers

Recover image in SQL SERVER and put in a REPEATER list

Today I retrieve information from a database and ready a REPEATER, so far everything blz. But I also need to get an image of the database and show in this REPEATER. Below is how I show the table. SoIwanttoputacolumnwiththeimage.Belowclass...
asked by 16.06.2017 / 04:27
1
answer

Clear Modal with Button Without Writing Data

I have a modal where I use the same for inclusion and change of the data. I checked that the txtid field is populated. If you have is change, not inclusion. To fill in the fields the user needs to select the row of the grid, where t...
asked by 14.06.2017 / 20:35
0
answers

Can not load file or assembly 'Microsoft.Office.Interop.Excel'

I'm trying to open an old project in ASP.NET on my machine and am getting the following error when I try to run it to view in the browser: Server Error in '/' Application. Configuration Error Description: An error occurred during the proces...
asked by 14.06.2017 / 18:48
0
answers

Use values entered by the user in asp.net c # webforms

I've created a form for the user to update the registration data. The "old" user data is stored in session variables that populate the form as soon as the user clicks refresh registration. The problem is that writing the data to the database is...
asked by 13.06.2017 / 04:59
1
answer

ASP.NET Checkbox Problem "The parameter conversion from type 'System.String' to type 'System.Boolean' failed."

I'm having the following problem with a checkbox I have a checkbox list that loads dynamically (depending on the items that exist in the database a checkbox is generated). Currently I have only three items being ids 1, 2 and 3. Inside the sys...
asked by 09.06.2017 / 13:52
1
answer

Error trying to register

Good afternoon, at the time I try to register in the form, I program in C # language with asp.net, razor and NHibernate. This is my DAO public IList<Rota> Comparacao() { //*string hql = "Select p from Rota p";...
asked by 04.07.2017 / 21:33