Questions tagged as 'c#'

1
answer

Publishing system with Entity Framework 6

There is an executable installer of Entity Framework 6 for servers. I published the system on a Windows server 2008 server, and it is not working. You are returning the following error:    Schema specified is not valid. Errors:   Co...
asked by 29.07.2016 / 21:25
1
answer

How to read tables from a pdf?

I am trying to read tables from a certain pdf file, using iTextSharp , I found many answers that indicate using LocationTextExtractionStrategy , but my table can vary in position along the PDF pages. Does anyone have any idea how...
asked by 28.08.2016 / 16:11
1
answer

Assigning value to a session in asp via asp.net (aspx)

I would like to know if there is a way to assign a particular value to a Session that is in an ASP page through an ASP.NET page (aspx)? Both files are in the same solution. How do I do this? I've tried: <%= Session("pgm_retorno")...
asked by 20.01.2016 / 17:01
1
answer

Object reference not set to an instance of an object. C # (in the installation)

By the error message, it was understood that there is an uninstantiated object, in which I would be referring. Error: However,thissameapplicationworksperfectlyonthedevelopmentcomputer,whenIgeneratetheinstallerandinstallonanothermachinethi...
asked by 18.06.2016 / 15:18
1
answer

DropDownList Cascade and MVC Compound

I have a following doubt I have 1 User class and it consists of other classes Gender, Course and Semester Ex public int Id { get; set; } public string Nome { get; set; } public Genero Sexo { get; set; } = new Genero(); pu...
asked by 29.04.2018 / 16:34
1
answer

How to do List Save all of User? [closed]

Hello, this is my first question here, I would like to ask a question. I would like to create a List that stores the user name, email, and password. can anybody help me? From now Thank you, follow the code. Main Code class Program {...
asked by 22.08.2017 / 19:25
1
answer

Convert byte into image using img src

To convert a byte that comes from the sql database into image in the ListView I do this: <asp:Image runat="server" ID="Image1" CssClass="image1style" ImageUrl='<%# "data:image/jpg;base64,"+ Convert.ToBase64Strin...
asked by 23.04.2017 / 06:11
2
answers

How to generate an automatic sequential number in C #

Good afternoon .. I have a txtbox1.Tex in my form, and I need to generate a 2-digit sequential number automatically. EX 01, 02, 03 and so on, and it shows in txtbox. Someone could help me. Thank you.     
asked by 13.06.2017 / 20:19
1
answer

How to create a SLN and CSPROJ file that opens the following file types

How do I create a SLN file that opens .csproj files and how do I create the .csproj file as well? Does csproj open .cs and .dll files? Can you help me?     
asked by 14.02.2016 / 16:57
1
answer

When saving pdf files, spaces are replaced by "% 20" (without the quotation marks)

I'm using interop to create a word document and in the end save it to PDF, everything happens fine except for the file name, and I used this path to save it. var NovoDocumento = "C:/Users/Bird/Desktop/PTD´S/" + tbNomeProf.Text + " - " + tbMate...
asked by 09.01.2018 / 02:03