Questions tagged as 'c#'

1
answer

Error: procedure or function has too many arguments specified

Criei uma procedure para popular uma grid view: create procedure [dbo].[spc_listaafiliadosadmin] ( @nome varchar(100), @login varchar(100), @cpf varchar(100) ) as begin if(@nome is not null) begin sele...
asked by 18.09.2015 / 21:05
1
answer

Regex to capture text block

I need to extract blocks of text that are inside #regions: #region VARIAVEIS GLOBAIS string aux1 = "teste"; string aux2 = "teste2"; ... #endregion The return would be: string aux1 = "teste"; string aux2 = "teste2"; ... How do I do this...
asked by 02.08.2015 / 19:28
1
answer

Child actions are not allowed to perform redirect actions. MVC 5

On my homepage, there is a shortcut button that opens a modal, and within that modal it has a partialView that points to an action within another controller . Until then calm down. <div class="modal fade" id="modalCreate" tabindex="-1"...
asked by 03.08.2015 / 17:44
2
answers

How to access and manipulate a Web page in the same way that the user would do by the browser?

I'm planning to make software that posts topics in a forum. The initial screen will have a menu with all the categories and subcategories, when choosing one I will open in the background a link (link to create a new topic), from there the user...
asked by 17.09.2015 / 19:29
1
answer

Fill ComboBox

In a User Registration Form, I have a UF combo box (which loads the data from a sql table), while typing in the combox the system needs to search the data and display despite the ones that match the typed one. I'm doing it this way: privat...
asked by 03.09.2015 / 19:01
3
answers

Controller with repository, Ioc and DI

I'm trying to implement the recording of the data in my views, and I'm having doubts about how to instantiate my% repository% in my controller, even using dependency injection examples, because in builder of my user repository he expects to rece...
asked by 02.09.2015 / 21:58
1
answer

Error after setting up authorization in Web.config

I'm having trouble accessing the MVC application shortly after making the configuration in Web.config to do the authentication with the windows user. The error occurs when you enable the following line: <authentication mode="Windows" />...
asked by 31.08.2015 / 21:59
1
answer

Repository Pattern - Doubt of use

Good night, guys. I was developing software and started thinking about how best to implement Repository Pattern. I have to return to the data controller of cities and states, so I have two models in my application. public class Estado...
asked by 09.09.2015 / 04:13
2
answers

C # system integration with two web services

I have to create an application that plays the role of a "bridge" between two web service that stores information. I have to get the information from one and send it to the other the way this "other" wants. These requests and responses wi...
asked by 24.08.2015 / 21:40
1
answer

Populating a field by selecting a dropdowlist through popup

I need to open a popup through the event of selecting a dropdownlist in a .net application and in this way populate the field of the first screen with the selection of the option displayed by popup . I confess that I am somewhat lazy w...
asked by 27.08.2015 / 16:17