Questions tagged as 'c#'

1
answer

C # how to send an email containing a hyperlink using System.Net.Mail?

I have created a class to send you emails using the System.Net.Mail library. To make the sending format the HTML message. The message I'm sending is as follows: <div style="display: block; margin-left: auto; margin-right: auto; width: 60...
asked by 03.04.2018 / 01:25
0
answers

Create folder shortcut in C #

Talk, I'm trying to create a shortcut to a folder using the WshShell library. Unfortunately when I create the shortcut it is displaying the destination type as File. Photo of the destination type that is showing up. I needed the destination ty...
asked by 17.06.2018 / 20:50
1
answer

Popular graphic Canvas with database list

I need to make a dashboard and I'm having a hard time getting a line graph of a graphic canvas. I need the data and label arrays to be populated with the data in my list but I do not know how to do it. What do I need to do to achieve this?...
asked by 13.04.2018 / 19:12
1
answer

enable full background transparency png in form

Well I have a C # form, but I use a png render, which contains shadows and smoke effects, the only way I found it to give transparency was the key, but it does not look totally transparent, example image below. / p> I wanted to know if t...
asked by 02.04.2018 / 12:24
0
answers

Asp.net GridView Query

I have GridView and would like to change search parameters when clicking on a Label . EX: The value of Label is 12345 , I would like that when I click on Label GridView use 12345 as search parameter....
asked by 30.03.2018 / 21:54
1
answer

Doubt to insert record with foreign key. ENTITY FRAMEWORK

I'm a beginner (well, beginner) in programming, and I have a case to develop, which would be a Crud, using ASP.NET (C #) and Entity Framework. I've created a simple contact registration form, where there is a company name field. Contact table an...
asked by 07.04.2018 / 02:24
1
answer

Improve Process Performance C #

Good morning, I have a slowness problem when performing a process that is performed 1 Insert and 2 Updates for each record. In other words, 2500 records, 7500 access will be carried out in the database. Here is my doubt of how I can improve this...
asked by 06.04.2018 / 15:53
0
answers

Unlock Excel file for reading in my Asp.Net MVC application

I'm developing an application in Asp.Net MVC where it will upload an Excel file generated by another system, but this file is coming blocked through reliability center file locking settings > ThequestionishowdoIgetmyapplicationtoopenthefil...
asked by 06.04.2018 / 16:06
1
answer

Paste ListView values - GetElementByID

Good evening! I have a ListView and I am displaying the values inside Span's, I would like to get the value of the span when clicking but as the Span's have the same ID I always get the same value. Does anyone have any ideas how to get around...
asked by 01.04.2018 / 00:10
1
answer

How to select an element of type aria-controls

IhavetriedinallwaystoexecutetheWedDriver'sClick()methodonthebuttonelement//*[@id="pedigree-controls"]/div[2]/div/div/button (destacado em azul (dropbtn)) However, for some reason, perhaps because it is an aria-controls and contain a span cl...
asked by 31.03.2018 / 18:48