Questions tagged as 'asp.net'

1
answer

Error {"The object reference was not defined as an instance of an object."} System.NullReferenceException MVC ASP.NET

Well, it gave me an error on the main page so I tried to pass the values from the search to the index. the error gives in line 35 of the index of the main page with the code:       @foreach (var item in Model) I'm doing a movie sales store, and...
asked by 12.05.2018 / 00:29
1
answer

FileUpload is not passing the pro code file Behind

I'm doing some tests to upload any file and save it to a physical folder, but even with the file loaded on the screen, the same is not happening in ID / value: Example: Followingcodes:aspx:<divstyle="font-family: Arial">...
asked by 07.05.2018 / 15:50
1
answer

Capture the IP and local machine name

I need to get the ip and local machine name of the client in case the user who will be accessing my system. My system is hosted on the system's network and database. The commands I've used so far I get the server name and server ip, but I nee...
asked by 14.03.2018 / 14:10
1
answer

Modal boostrap in UpdatePanel after dark background click event

I have a modal boostrap poup within a ASPX UpdatePanel component within this modal I have a ASP btnEditar button with a click event to execute a update routine. After executing the event, the modal closes but its dark...
asked by 29.03.2018 / 20:00
1
answer

Transpose object list [closed]

How can I transpose the columns of a table like the one in the image below For this format: Mercado | Semana 5 | Semana 6 FUT AUD | 0.9986 | 1.0035 FUT CAD | 1.0000 | 1.0062 FUT CHF | 1.0059 | 1.0158 I tested some implementation...
asked by 07.03.2018 / 15:17
1
answer

What is the "asp-fallback" in ASP.NET MVC, Razor Pages?

I see some files as lines similar to this: <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js"asp-fallback-src="~/lib/jquery/dist/jquery.min.js" asp-fallback-test="window.jQuery" crossorigin="anonymous"...
asked by 01.03.2018 / 01:56
2
answers

Convert number c #

How to convert $ 3,852.00 and save on those bank. and ,? Follow my code. public ImportProcesso() { ImportProcesso processo = new ImportProcesso(); processo.dataReqPgto = new System.DateTime(); proce...
asked by 23.02.2018 / 19:29
1
answer

Error Sequence contains in elements asp.net

Good morning. I'm trying to send a request in ajax in jquery, but it returns me that error. Sequence contains no elements, I'm trying to present data in the bootgrid public ParametrosPaginacao(NameValueCollection dados) {...
asked by 20.03.2018 / 14:34
1
answer

Default Value Set @Html.DropDownListFor via Json - ASP.NET MVC5

I'm doing a time-stamping page using ASP.NET MVC5. The user enters the marking data according to the print below: However,incaseofanerrorintheregistrationofthetag,thecontrollerreturnsthemodeltoviewwiththedataenteredbytheuser,usingtheconceptofmo...
asked by 21.02.2018 / 02:25
2
answers

Error connecting to oracle database using web programming in .NET

When attempting to connect to the bank, I got the error according to the attached image. My application is web in .net, visual studio 2010, database oracle sql developed 3.1.07. My code where you get the error: protected int GetRowCounts()...
asked by 21.02.2018 / 17:45