Questions tagged as 'asp.net'

2
answers

PostBack removes selected items Multiple DropDownList

I have a static Multiple DropDownList (ddl1) on my aspx page. It has 4 options, from which 0 to 4 options can be selected. Another DropDownList (ddl2) that is also static on the form has the OnSelectedIndexChanged event and when this event is tr...
asked by 31.07.2018 / 15:25
0
answers

Performing Search in SharePoint by Asp.net form

Well, I'm using SharePoint as a file database, but I'm having trouble searching a document in folders. I'm using .NET CSOM. protected void Pesquisar_Click(object sender, EventArgs e) { //Setando as credenciais share...
asked by 25.07.2018 / 16:16
1
answer

ASP.NET - Partial View inside tab does not invoke initializer method

I have a Razor Page with different tabs. And on each tab, I invoke a partial view in order to create a multi-step form. However, I noticed that the Index method (which is in its respective controller) that is usually invoked when a view is initi...
asked by 02.08.2018 / 16:33
0
answers

ASP.NET - Application with possibility of authentication Forms and Windows

I have to configure the following ASP.NET authentication scenario: depending on some conditions I need authentication via Forms or Windows. The scenario is the following if an authenticated user is identified, the authentication of the applic...
asked by 16.07.2018 / 17:36
0
answers

Deploy (publish) .NET Core 2.1 Project with other dependent projects

I'm not sure how to publish the following project structure: I want to publish it in smarterasp, I have seen several tutorials on the internet but most of it involves azzure, or it is only one project. I've never been responsible for publi...
asked by 14.07.2018 / 12:09
1
answer

How to get html rendered from an ActionResult in ASP.NET MVC Controller [closed]

I'm doing a PDF export where the content of the document is the html of a Rendered View. How do I do this?     
asked by 20.07.2018 / 00:25
0
answers

Change Authorization ASP.NET MVC 5 redirect page and return to returnUrl

I created an ActionResult Access denied controller an error box is generated whenever the user does not have permission, and I have also created the UserPermission class that I will use instead of Authorize > . My problem is tha...
asked by 20.07.2018 / 13:51
2
answers

Object reference not set to an instance of an asp.net object

blz? Next, I'm having a problem with the "Object reference not set to an instance of an object" exception, I've already searched for several solutions, however, none satisfies and / or fixes my problem. If someone can help me ... string usuari...
asked by 13.07.2018 / 04:44
0
answers

Checking on page _layout.cshtml with Identity framework in asp.net core razor

I have the page _layout.cshtml I would like to access all Identity data to display certain part of the menu: @using Microsoft.AspNetCore.Http @using CronoParque.Utility @using Microsoft.AspNetCore.Identity @inject IHttpContextAccessor HttpCont...
asked by 18.07.2018 / 16:21
0
answers

Doubt Browse through folders and download a document from GridView SharePoint.Client.dll

Well I'm having a big question using the SharePoint dll. What to need if done: I will use SharePoint as a file repository, so I will develop an ASP page that will list the folders and share documents and make it available for download....
asked by 08.07.2018 / 18:05