Questions tagged as 'c#'

1
answer

HTML embedded in C # dot net visual studio

I need to generate dynamic HTML in a C # application implemented in Visual Studio. In this case, I need to display the li tag as logged in user. The code is: <%if (Session["usuario"] != null) { <li><a href="<%=...
asked by 09.07.2015 / 20:30
0
answers

Firebird C # create a single connection to the database

I need to create in my application only one connection using fbconnection that will be shared by every application. I performed this procedure as follows. I created a static class that gives me the connection to DB: static class C...
asked by 17.09.2015 / 02:42
1
answer

Release with Report does not run on other PCs

TableCreate a WinForm that contains Reports that looks for data in a DataSet object (which is programmatically populated using a SQL Server source). The release is stored on the server and can be accessed by client machin...
asked by 16.09.2015 / 21:45
1
answer

DropdownList with checkbox

Would anyone know a way to make a DropdownList with checkbox ? I have the following DropDownList: @Html.DropDownListFor(model => model.CD_AFFILIATE, new SelectList(@ViewBag.list, "CD_AFFILIATE","NM_AFFILIATE"), new { @class...
asked by 02.07.2015 / 15:30
1
answer

Display form in the middle of the splitContainer's pinel?

I'm using the following code to call and show form in panel2 of my splitContainer : splitContainer.Panel2.Controls.Clear(); // limpa o painel2 form.TopLevel = false; // redefine lvl do form splitContainer.Panel2.Controls.Ad...
asked by 03.07.2015 / 06:44
0
answers

Asp.Net Questionnaire

I am creating a system of assessments, where teachers will feed a bank of questions that will later be part of activities that will be made available to students. My question is when it is time to present the activity to the students, where I...
asked by 16.09.2015 / 19:39
0
answers

Using Claims Replacing Sessions

I am refactoring an application that I am developing, applying good ASP.NET MVC practices to it, there is a difficulty in understanding the Claims and how to apply it to replace Session usage. When I log in to the application I save some informa...
asked by 16.09.2015 / 20:14
0
answers

forein key reference, with the Entity Framework

To have a difficulty doing an insert , because the EF indicates that there is an error in the table reference. But in my config , I indicate what is the foreing key . My config: public class TestDriveConfig : EntityTypeConfiguration<T...
asked by 14.08.2015 / 19:52
1
answer

OneToMany entity mapping with Fluent NHibernate

Gentlemen, my problem is apparently simple, I must be doing or forgetting something and I just can not see the error. Can you help me? I have class Cliente : public class Cliente { public Cliente () { } public virtual...
asked by 08.07.2015 / 14:05
1
answer

Open PDF on iOS mobile using Xamarin - C #

Does anyone know how I can open a PDF that is in the local iOS folder using the Xamarin platform? I've researched and tested it in many ways, but none of it works.     
asked by 07.07.2015 / 15:17