Questions tagged as 'c#'

1
answer

Problems publishing an application in asp.net in IIS

I'm trying to publish my application on a windows server 2012 server with IIS 8. It fits step by step from "Site -> Add Website" to fill in with the coordinates, paths, and so on. I deployed in the appropriate default folder "Inetpub -> wwwroot"...
asked by 14.10.2014 / 14:19
2
answers

Make a foreach inside a cshtml (view) from a controller

I made a code using Linq and jQuery . It turns out that it is giving me a problem that I can not solve, which is to dynamically create a Treeview . Then I had another idea. Make foreach direct in View (cshtml). Here's the question,...
asked by 11.09.2014 / 18:53
1
answer

How to create an XML tree with attributes using LINQ

Good evening! How do I create an XML document with attributes using LINQ to XML EX: <class name="Pessoa" tabela="pessoa"> <property name="id" column="id" pk="true"/> <property name="nome" column="nome"/> <pr...
asked by 13.09.2014 / 03:31
1
answer

Error returning data using Fluent NHibernate (Many to Many)

I have a many-to-many relationship (M: M) using Fluent NHibernate: Class / Map - Drive: public class Unidade { public virtual int Id { get; set; } public virtual string Descricao { get; set; } public virtual IList<Unidade...
asked by 08.08.2014 / 15:32
1
answer

How do I set the installation location in ClickOnce?

I'm developing an application in VS2012 using WPF, I'm using ClickOnce itself to install the application, but it always installs in the users' folders, type:    C: \ Users \ USERNAME \ AppData \ Local \ Apps \ 2.0 \ GT ?? 4KXX.PRJ \ EGV ?????...
asked by 04.08.2014 / 19:15
1
answer

Delete a folder even though it is with files

What code should I use to delete a folder in which it contains files inside it? This code I used only deletes an empty folder. void ApagarPasta(string nameOf, bool subPastas){ Directory.Delete(nameOf, subPastas); // Deleta a pasta e s...
asked by 03.08.2014 / 20:22
1
answer

Open Modal Popup from another page aspx

How do I open a Modal Popup extender from another page? I'm using a User Control to create this popup: UserControl ucModalInativar.ascx : <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucModalInativar.ascx.cs" Inhe...
asked by 23.07.2014 / 18:52
1
answer

How to change the font in the RichTextBox?

I would like to know how do I edit the font and color of a RichTextBox word in C # and if possible how do I number the rows.     
asked by 23.07.2014 / 00:48
1
answer

Methodology and Documentation for ASP.NET MVC Projects [closed]

In the company where I work, I have always had complete freedom to develop the applications requested. I have always worked in a unique way despite having a co-worker because we both developed separate projects. Starting next week, I will be...
asked by 28.10.2014 / 20:27
2
answers

Serialize xml output to class

I have the following XML data list: <xml> <cnt>7469</cnt> <emails> <item> <to_email>[email protected]</to_email> <id>3352143303</id> <app_id>121746</app_i...
asked by 28.07.2014 / 17:37