Questions tagged as 'c#'

2
answers

Difficulty to handle button event in repeater itemcommand

I have a table in a repeater. In this table I have a Button and a LinkButton. It turns out that I need to pick which click event was fired from the button or from the linkbutton. I tried to do an if, but failed to be incompatible the button and...
asked by 18.11.2014 / 13:35
1
answer

Get Model in the View with values coming from the database

I have this class: public class MontaArvoreAcao { public int IDRuptura { get; set; } public DateTime DataRuptura { get; set; } public int IDMotivo { get; set; } public string Motivo { get; set; } public int IDOrigem { get;...
asked by 15.09.2014 / 13:37
2
answers

I am having difficulty returning my ID using nextval, to later insert it into my table

I'm having trouble returning my ID using nextval, and then inserting it into my table OleDbConnection cnx = new OleDbConnection(new AdministradorDAO().conexao); cnx.Open(); string seq = ("select id_usuarios.nextval from dual");...
asked by 16.09.2014 / 14:21
1
answer

Sql CE 3.5: Probile in DataContext Generation

When you try to generate the DataContext to a WindowsPhone 8.1 project, through the SQL Server Compact toolbox interface at: -Generate Code (EF / LINQ to SQL / SyncFX) > > Add Windows Phone DataContext to current Project (needs 3.5) li...
asked by 02.09.2014 / 19:24
2
answers

GridView.Sorting Event, Doubt?

I have the following scenario in which I have a GridView but when I want to sort descending it is not ordering. below: protected void gvdNomeClientes_Sorting(object sender, GridViewSortEventArgs e) { switch (e.SortEx...
asked by 21.01.2015 / 13:30
1
answer

Write fk shortly after pk is generated with entity

I have a system and in this system there are some tables that are associative. As soon as I write to the DB the main table, I need to ensure that the new PK generated is written to three other tables, but you have to ensure that it is generated....
asked by 28.08.2014 / 18:34
2
answers

Make a foreach inside a cshtml

It is giving error the way I did the foreach. If you put @ gives error in the analyzer. If retreat gives other errors. How I do? Below is my complete code. @model Ruptura.Models.RupturaEntities @{ ViewBag.Title = "CadastroCargo"; Layo...
asked by 26.08.2014 / 19:41
1
answer

Query Mysql in Visual Studio does not return all data

I have a problem in Visual Studio, where in my database access class, I have a query that does a query in my Mysql database, and returns only the last result. So, how much do I test this same query directly in the Mysql database, using tools lik...
asked by 30.08.2014 / 15:44
1
answer

Problem with tab selection

I have 2 tabs, one that shows my macros together and one to show the ones sent. The macros together are already selected by default and the Page Load has the method that loads the corresponding data from it When I click on the upload...
asked by 05.11.2014 / 18:58
2
answers

Lock PrintScreen function

I know the question is controversial, but I want to know if it really blocks the print screen function altogether. In Windows Forms you have to delete the clipboard with the clipboard.clear, but already in JavaScript this is not allowed for se...
asked by 05.11.2014 / 18:09