Questions tagged as 'c#'

1
answer

Open Modal bootstrap from code-behind

I need to open a modal when the password or user is incorrect, it will stay in Else .. however, it does not open the modal protected void bntLogar_Click(object sender, EventArgs e) { Registrar criptografia = new Registrar();...
asked by 30.09.2015 / 17:43
1
answer

pass actionlink parameters to jquery function

How do I pass parameters from an ActionLink from a grid to a jquery function? This is ActionLink: gridPortfolio.Column( format: @<text> @Html.ActionLink("Delete", "DeleteData", new {id = item.CD_PORTFOLIO, par = "PO"}, new { @onClick...
asked by 23.06.2015 / 15:47
2
answers

Connect application to Postgresql?

Rstou wanting to connect a simple C # application to a Postgresql database, what I would like to know is if the procedure is similar to Java, in which I have to create a connection class, a class with the get's and set's of entities to manipulat...
asked by 24.06.2015 / 13:22
1
answer

Error when cleaning a DataGrid

After I've saved my items that are in the DataGrid to a database, I'd like it cleaned up. So I used it like this: dg.Items.Clear(); But then this error appears:    Operation is not valid while ItemsSource is in use. Access and modify ele...
asked by 10.06.2015 / 20:03
1
answer

How to fix the System.Collections.Generic.IEnumerable error

My application that manages Courses has this error The template item passed to the dictionary is of type 'System.Collections.Generic.List'1 [MyProject.Models.Course] ", but this dictionary requires a model item of type 'System.Collections.Gen...
asked by 27.06.2015 / 19:28
1
answer

Sort GridView ASC

I have this grid, and I would like to sort the columns in ascending order (ASC) how to do? <asp:GridView ID="gridView1" runat="server" AllowPaging="False" AllowSorting="True" DataSourceID="sqlTeste" AutoGenerateColumns="False" E...
asked by 08.06.2015 / 15:47
1
answer

Category checking in C # / ASPX usage

Good morning, I'm trying to validate a situation that I will explain, for example we add a category "Miscellaneous", and this same category is used in the product "Keys", imagine that we will delete the category "Parts" with category "Miscell...
asked by 09.06.2015 / 13:22
3
answers

Search for database information by selecting a field [closed]

How to select a field and pull the information about it? For example, I wanted to select a user and when I select it appears in the fields type Name, Address, cpf and etc all filled in, searching for this information from the database. I'm...
asked by 09.06.2015 / 13:36
1
answer

Printing with JavaScript and ActiveX

I need to print from a web application, I believe that I will have to do this with JavaScript and also for what I researched maybe I will have to do this with ActiveX. I already tried to use window.print() with JavaScript but it opens...
asked by 30.07.2015 / 04:17
2
answers

Get number of computers that are using the networked system

I am developing software and the client can only use the system on a certain amount of computers at a time. I would like to know how I get the number of machines that have the system open every time a computer tries to open the system. If the nu...
asked by 24.04.2015 / 16:23