Questions tagged as 'c#'

2
answers

Remove a column from the gridview

I am implementing a feature in a project using ASP.NET MVC and I'm trying to remove some columns from a gridview that I created in my application, the gridview datasource is a table in the database, however I want to remove some columns from the...
asked by 21.12.2015 / 18:09
0
answers

Remote desktop application with RDP protocol

I'm doing an example-based application Remote Desktop application with RDP protocol . But how to change the color of the transmission? That is, the colordepth property. I'm using the following: public static void Connect() { curr...
asked by 27.01.2016 / 22:04
2
answers

@ Html.ActionLink and Url.Action are not taking the route of the controller annotation

I have the following method in the control: [Route("video/categoria/{categoria}/{page?}/{sort?}")] public async Task<ActionResult> Index(string categoria, int? page, string sort) { ... } My RouteConfig.cs: public static void Regis...
asked by 07.11.2015 / 02:05
1
answer

Knowing ModelState in javascript dynamically

I'm developing an application in ASP.NET MVC 5 and I have a problem in putting a modal load while the form is saved, because when there is something invalid in the form the javascript does not respect, showing the loading mode, I would like know...
asked by 06.11.2015 / 19:40
1
answer

TFS Api - Assign new work item to a responsible

I'm creating a new WorkItem and I need to change the responsible person (Field: Assigne To) by it. To create the WorkItem, do the following: WorkItem workItem = new WorkItem(workItemType) { State = "A RESOLVER", Title = "[TESTE INT...
asked by 29.10.2015 / 13:26
0
answers

Error loading cascading dropdownlist

I am trying to load a cities dropdownlist according to the selected state and am encountering an error. I managed to perform the operation on a template that I downloaded from the internet, but I'm not getting it in my project. Thecodeisbelo...
asked by 26.10.2015 / 13:49
1
answer

ViewModel parameter being passed as null

I'm trying to validate my login form, but the "ModelState.IsValid" function is not performing validation. Accordingtotheaboveimage,whenexecutingAction,the"MakeLoginViewModel" parameter is being passed as "null". Below is the content of my Vi...
asked by 31.10.2015 / 23:08
1
answer

FormsAuthenticate + jQuery Ajax

I'm creating an application that uses FormsAuthenticate to login to the system. However, I'd like to make a treatment for that in an ajax request (jquery) made when the user is not logged in. I put a $(document).ajaxComplete(function (e...
asked by 10.11.2015 / 15:06
0
answers

SelectedItem in the MouseDoubleClick event

I have the following situation. A UserControl where I can choose a company to work on, when I choose it, I send it to the application title. My problem is that I can only choose the company with just one click, but I would like to select it w...
asked by 20.10.2015 / 14:56
0
answers

How to page the data? Via StoredProcedure or DataView?

I am using DataTables.net with server-side via WebForm and Ado.net. I need to page the data (sort, filter, etc), I see 2 possibilities: - via stored procedure ou - via DataView The problem is that when using DataTables.net it sends me 62...
asked by 20.10.2015 / 14:50