Questions tagged as 'asp.net'

1
answer

Conversion from date javascript to sqlserver

I'm trying to save a date field in SQLSERVER database, but it does not insert, it is returning the following error:    String was not recognized as a valid DateTime. DateTime dat = DateTime.ParseExact(txtVencimentoC.Text, "dd/MM/yyyy",...
asked by 17.10.2017 / 21:54
0
answers

Error opening aspnet page C #. Could not load file or assembly 'Microsoft.ReportViewer.Common, Version = 12.0.0.0

Good evening guys. I developed a website, which on a particular page shows a report. Locally it works normally, but when I run on the published page, it gives the error: Server Error in '/' Application. Could not load file or assembly...
asked by 18.10.2017 / 01:55
1
answer

Wrap lines in table cells ASP.NET MVC C #

How do I not break the columns of a <table> in several lines, because I put a scroll and would like to leave the grid cells without breaking, but let the user use the scroll.   ViewTable@modelIEnumerable<Projeto.ERP.Model.Mod...
asked by 10.10.2017 / 18:43
1
answer

Vertical Scrollbar in DIV in ASP.NET

I have a form inside the content2 of the masterpage. Is it possible to insert it inside a div with a vertical scrollbar that descends only the form in question? What is the simplest way to do this?     
asked by 15.10.2017 / 02:11
0
answers

Select a file via javascript

I have a folder with several pdf files and I needed to select the pdf 1348.pdf, but via javascript, is it possible to do this? Should I use a handler? and how would I return this value (binary, name and size)? ~ / files / 1348.pdf In a ser...
asked by 20.10.2017 / 16:28
1
answer

Session with IList in ASP.NET mvc5

How can I create a Session with values of an array of type IList in ASP.NET MVC5? If you have, how do I do the foreach to get this information in the html of the view?     
asked by 20.10.2017 / 20:42
1
answer

Unable to retrieve metadata for - Error creating Controller

I created a web project with MVC and entity framework 4.5, and MYSQL database. I added the MySql.Data MySql.Data.Entity and MySql.web I made all the settings as images below IfollowedthewalkthroughandmyBankwasaddedaspicturebelow:...
asked by 13.10.2017 / 04:06
1
answer

Registering attributes of different classes in the same View [closed]

I have a Teacher class that has a User, and I want to register the User fields in Teacher View. How can I do this? public class Usuario { public int Id { get; set; } public int Matricula { get; set; } public string Nome { g...
asked by 13.10.2017 / 19:49
0
answers

How to get Windows username

I'm trying to display the name of company employees on an intranet portal. To use as a greeting, for example, Hello "So-and-so." The way I got closer was through asp using the code below: <%= HttpContext.Current.User.Identity.Name%>...
asked by 11.10.2017 / 18:08
1
answer

Access attribute of a class in an ASP NET Controller

I would like in my Crud ASP.NET system to make an image in padlock form disabled when a certain user profile logs into the system, the name of this controller below is called KeepFinalityController Myideaisasfollows,totakeandsaveinSessiontheinf...
asked by 06.10.2017 / 23:44