Questions tagged as 'c#'

1
answer

Cell width PdfPTable iTextShar MVC 4

I'm using iTextSharp to create PDF's in my application. However I have to recreate a table, where I have to set the size to the one greatly reduced column. Here's the image that shows the size I want to set up the column: Whentherestoftheta...
asked by 28.02.2014 / 11:54
2
answers

How to create reports in Crystal Report with data from 2 or more tables?

How do I create reports through Crystal Reports using a DataSet that contains more than one Table? With a table I can work normal, but when I insert more than one table the result of the Report is blank. The only thing I did after the connection...
asked by 18.02.2014 / 21:36
1
answer

How to get an output parameter from MySql via C #

I researched and applied what I saw, but it is giving error: MySqlConnection con = new MySqlConnection(banco.Conexao); MySqlCommand comando = new MySqlCommand("sp_venda", con); comando.CommandType = System.Data.CommandType.StoredProcedure; co...
asked by 26.03.2014 / 16:44
1
answer

"Node is read only" error when trying to encrypt XML

I'm trying to encrypt using XML, while running it returns this error:    the inner text of document node is read only and can not be set! The error happens on line xmlDadosCartao.InnerText = StringEncritacao.Decriptacao(dadoEncriptado)...
asked by 24.04.2014 / 19:36
1
answer

How to change the image by the code behind

I want to change the image by the code behind, but the path is wrong. How do I find the path? BitmapImage image = new BitmapImage(new Uri("/Images;Assets/Images/ativo.png", UriKind.Relative)); img.Source = image; Note: The image is...
asked by 24.04.2014 / 19:28
1
answer

DropDownList with Invalid SelectedValue because it does not exist in the list of items

I can not understand what's wrong. DropDown is in a Formview of a user control. The dropDown binds to a database table that should return 2 id and name values FormView <td><asp:DropDownList width="350px" ID="EntregaRegiaoDropDown...
asked by 25.04.2014 / 11:20
1
answer

System.Web.Mvc.Web disappeared, what can I do?

After some updates, my helpers began to give problems, for example, if I were to use @Html.TexBoxFor , Razor would not recognize it. After searching a lot, I was asked to use @using System.Web.Mvc.Web in View that I was writing....
asked by 25.04.2014 / 19:39
1
answer

Is it possible to call the ExecuteQuery method asynchronously?

Is it possible to execute the ExecuteQuery method asynchronously? Consider the following code: public virtual MyEntity MyMethod(string parm1, string parm2) { string queryString = TableQuery.CombineFilters(TableQuery.GenerateFilte...
asked by 31.01.2014 / 18:57
1
answer

TimeOut Session using StateServer

I have an application in cluster that I use the Session , to not give problem I put another machine to serve as Session Server and set web.config as follows: <sessionState mode="StateServer" stateConnectionString=...
asked by 14.02.2014 / 17:27
2
answers

How to change the URL consuming a Webservice?

I have a Webservice written in C # and the client application (data collectors). Collectors consume Webservice to query information in the main DB. In each client I install my WebService (Data Server) has a different IP. How can I paramete...
asked by 01.02.2014 / 13:37