Questions tagged as 'c#'

2
answers

Dictionary Search

I have the following dictionary: public static Dictionary<string, string> ObterCodigo() { return new Dictionary<string, string> { {"18", "Teste"}, {"19", "Teste"}, {"02", "AAA"},...
asked by 29.01.2014 / 14:12
2
answers

Do I need to use Visual Studio to program in C #?

I want to learn C # to become one of my main languages, but my current PC is a bit run out and does not run Visual Studio well, but with Visual Studio Code it's fine, do I need Visual Studio to program in C #? I would like to know if this is the...
asked by 14.10.2018 / 02:52
2
answers

Error trying to update table using C #

I created a form to change a table, but my update is not working. cnxCli.sel =/*"set dateformat dmy \n"+ */ "update Cliente" + "set Nome = '" + txtNome.Text +"'," + "Rg = '" + mskRg.Text +...
asked by 16.12.2015 / 02:32
1
answer

Pass two templates to a registration view

I have a sign-up access screen. I have to fill it with values registered in the database. Follow the codes: Models: public partial class Aba { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverr...
asked by 22.05.2016 / 02:28
2
answers

How to get Text from a ListView?

How can I get the Text of my Label that is within a ListView without using the FindControl ( Item.FindControl("lblCodigoEdit") as Label).Text ), ie directly access the value you have in my lblCodigoEdit ?...
asked by 01.12.2015 / 12:11
1
answer

When should I use ModelState.IsValid?

When should I use ModelState.isValid ? Is it just in the data insertion? And in the case of update and delete ? It's needed?     
asked by 21.06.2016 / 02:25
1
answer

What is Partial View?

Using the Controller I can return a Partial View , JSON, string and other things. What is a Partial View? Is it heavily used in projects? Why use it?     
asked by 18.10.2015 / 08:57
2
answers

Error: The name 'ViewBag' does not exist in the current context

Good morning, I have projects using System.Web.MVC na versão 4.0.0.1 , I was working normally on the 2013 version of Visual Studio, now I'm trying to work with Visual Studio 2015 and my Views do not recognize some properties for example...
asked by 18.11.2015 / 13:07
1
answer

Access to shipping file .NET ticket

I'm using the .NET ticket booster in my application. The ticket is generated, however how do I process the shipping file? Is this file saved somewhere in the application? I took the example project that is in Git, but I do not know how to...
asked by 27.07.2016 / 23:42
1
answer

Compare Strings by non-value format

I have a format of String , for example: xxxx-xxxx-xxx However, instead of x you can enter several letters or numbers, for example: A216-0450-013 X2LP-1018-589 Y585-0000-047 What I need to do is compare to see if t...
asked by 17.04.2017 / 22:28