Questions tagged as 'c#'

2
answers

How to transform a DLL created in C # to VB6?

I've created a pretty basic C # DLL, just to test. It looks like this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices; namespace CriarD...
asked by 31.01.2014 / 01:59
2
answers

How to render two Views typed in an Index ()?

I'm trying to render two views created with scaffolding, one is for Create and another is for the List in>. The idea is to add the following to index : @model BraveryBranded.ASP.Models.News @{ ViewBag.Title = "Index"; } @Render...
asked by 07.02.2014 / 22:59
6
answers

I can not get the value of an asp: hiddenField in C #, it is always empty

I have a strange problem here. I'm assigning value to asp:hiddenField via javascript (I already tested giving alert and it shows the correct value), but then when I try to get the value of it in C # the meuHiddenField.Value...
asked by 05.02.2014 / 18:13
1
answer

Appear help button when the text box is selected (C #)

I'm looking for a while about how to put a help button that only appears next to the text box when it is selected. Is there any way to do this in C #? So it should be when the text box is selected, that is, the "i" would appear to provide som...
asked by 04.12.2018 / 18:08
1
answer

Entity framework does not create mdf file

In my ASP.net MVC5 project it creates the default database by Visual Studio 2013. I went to the App_Data folder and deleted the mdf file from the database as well as the log file. I'm wanting it to re-create this file. In my configurati...
asked by 27.05.2014 / 18:39
1
answer

Assign property value of an object to a list of objects

I have a list of objects: List. Well, this object has three properties, say, cnpj, action, and newness. I made a linq or lambda and it brought me all the results, say two lines. I make a foreach in the result of linq or lambda and how do I now a...
asked by 28.05.2014 / 15:56
1
answer

Insertion error in the database, how to solve this case?

I'm trying to insert a form with various data, some booleans, radiobuttons, datetime etc. I need to know if everything is correct, I'm catching them via FormColleciont . Controller: [HttpPost] [ValidateAntiForgeryToken]...
asked by 17.05.2014 / 04:59
1
answer

View user's post blocked in membership

I need to display a message when the blocked user tries to sign in membership ... I set the user locked with the IsApproved property = false; at time of registration MembershipUser lockUser = Membership.GetUser(txtEmail.Text); lockUser.IsAppro...
asked by 20.05.2014 / 18:15
2
answers

JavaScript Injection in Internet Explorer, returns null

I'm developing an application that performs automation in internet explorer, I'm using SHDocVw to do this. My problem is that I can not get the feedback from a JavaScript injection    public static void wJScript(string script) { try {...
asked by 10.07.2014 / 16:46
2
answers

Getting Foreign Key value - Object reference not set to an instance of an object

Using Code First - MVC 4 - EF6 I have the following Model: [Table("usuario")] public class Usuario { [Key] [Column("UsuarioId")] public int UsuarioId { get; set; } public string Nome { get; set; } } [Table("Orcamento")] publi...
asked by 13.07.2014 / 04:07