Questions tagged as 'c#'

1
answer

Send JavaScript by email

I have a C # code that sends emails with HTML, so far, okay, the problem is that I can not send scripts (JS). Yes, I understand why, it must be security reasons. But do not have burlar or do otherwise? "No malicious intent." My code: us...
asked by 18.02.2018 / 17:45
1
answer

Replace "Web Browser" vb.net

I want to change the default browser of visual studio, I would like to use another to run some scripts that are having problems in internet explorer. I would like suggestions and examples of how to do this. Thanks in advance.     
asked by 16.01.2018 / 20:55
1
answer

I can not open the link for my grid view

I made the following code <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="ID_PTD" DataSourceID="SqlDataSource1" EmptyDataText="There are no data records to display."> <C...
asked by 10.01.2018 / 00:45
1
answer

How do I leave a required field?

I'm setting up a birthday management application (Consoleapp) for college ... I would like to know how do I make it mandatory to enter the Name / Surname / CPF / dataNascimento fields when the user is adding a new person? Oh and I would like to...
asked by 10.01.2018 / 22:50
1
answer

Asp .Net Dropdownlist Empty After Form Submit

I have a dropdownlist that is populated dynamically after two textboxes have been filled. When I submit the form the dropdownlist is empty even though it is filled dynamically. DropDownList <asp:DropDownList ID...
asked by 10.01.2018 / 14:32
1
answer

margin problem when generating pdf

I am making a report, when I am generating the pdf, I tried to implement the margin, but it continues to cut the table in the middle and continues on the other page. This is happening at the margin, even though I placing it continues to cut i...
asked by 10.01.2018 / 19:42
1
answer

Proper way to manipulate the data received from the server

I send something, a username for example writer.WriteLine(Username.text); And after handling the data on the server, I return something like: stwSend.WriteLine("a2|Cadastro efetuado com sucesso!"); And then on the client side, I w...
asked by 04.02.2018 / 03:37
1
answer

Error accessing data in Mysql with EF6

When I try to access the data in MySQL via lambda ( EF ), Visual Studio returns the following error:    Method 'MySql.Data.Entity.EFMySqlCommand.set_DbConnection (Method.Data.Common.DbConnection) failed' when trying to access met...
asked by 05.02.2018 / 00:25
2
answers

Microsoft Visual Studio 2013 - There were compilation errors. Do you want to continue and run the latest successful build?

Personal is as follows: I am developing a program Windows Form to desktop in C# using Visual Studio 2013 . However, sometimes when I click on iniciar/ start it appears some compilation errors of the project b...
asked by 08.01.2018 / 13:27
1
answer

Redirection with parameters

I have the following method: public ActionResult exemplo() That returns: int act = (int)TasksTypeEnum.CARGA; return RedirectToAction("Index", new { q = study.Id, msg = 1, action = act }); The index of the page receives: public Action...
asked by 02.01.2018 / 14:47