Questions tagged as 'c#'

1
answer

Form messed up after adding a ScrollViewer

I had a ready form in my VS, After it was ready, I realized that I would need to add a ScrollBar. Search and saw that to solve my problem was just to add a ScrollViewer. When I add, my form gets all out of order, a label on one side and a textbo...
asked by 13.04.2015 / 14:41
1
answer

How to fill a web form through C #

Is there any way to populate a web form through C #? I have a system developed in WPF and when the user clicks a button open a certain page in the browser and that their fields are filled automatically with the system information. I was ab...
asked by 09.04.2015 / 21:56
1
answer

Mounts link only when data is available

I have a webforms application. In this application I have this line in my ASP.NET. <strong><a href="/UpLoads/<%# Eval("DsPathDocumento")%>" class="linkUpload"><%# Eval("NmTipoDocumento")%></a></strong> We...
asked by 22.12.2014 / 13:13
2
answers

How to prevent duplicity in registration / change of names / company name [closed]

In a registry, c # windows form, where I use CPF's or CNPJ's what is the best way to prevent duplication of names / corporate names in inclusion or change. For example, it may happen that in the change the user informs a name / reason that is...
asked by 17.12.2014 / 20:57
1
answer

How to prevent browser from displaying alert and resending previous information?

Work in a .aspx WEB application that writes data to the database. The problem is that after writing this data and displaying a success information for the user, if I do a reload on the page the browser will send the information back to the serve...
asked by 16.12.2014 / 18:08
3
answers

How popular DropDownListFor with information from a foreign key?

I have these two classes and I need a DropDownListFor with the information of the ModeloVeiculo classes, and this DropDownListFor will be done in create.cshtml of class Veiculo , I believe the correct question would be, how to loa...
asked by 29.08.2014 / 03:21
2
answers

Hide / Show text fields in view

I have a table with dropdownlist and editorfor fields to fill the user's request. I need to add a new functionality now that is: If the user selects a specific option in the dropdowlist 'Drive' two new fields should appear in the table (Number a...
asked by 04.09.2014 / 16:30
1
answer

Convert C ++ to C # [closed]

Well, I'm passing some code that I have, and I'm sure I can pass this code to C #, and I wanted the help of anyone who can help, in the following code below #include <dirent.h> #include <cstdlib> #include <iostream> #include...
asked by 03.09.2014 / 00:27
1
answer

My view does not starta

This is the Error that gives: Erro de Servidor no Aplicativo '/'. Não é possível encontrar o recurso. Descrição: HTTP 404. O recurso que você está procurando (ou uma de suas dependências) não pôde ser removido, seu nome foi alterado ou está...
asked by 04.08.2014 / 20:10
1
answer

Create a condition within a Linq

I need to make a comparison to set the value within my select new . I'll try to explain better. var tipo= from t in p select new { t.Key, t.Value,...
asked by 25.02.2015 / 19:47