Posts by Daniel • 751 points
24 posts
-
1
votes1
answer191
viewsQ: Load a Gridview with selected records
How to load a Gridview into the webform with a few lines already selected ? I’m trying the following code but without success... protected void BindGridAcesso(int idSenha) { Usuario usuario =…
-
0
votes1
answer42
viewsQ: Populating Gridview with no selected record
I’m populating a Gridview and he’s populating with the first record ever selected. var lstUsurios = new V_ENTIDADE_X_PWDNegocio().Listar(); gdvAcesso.DataSource = lstUsurios; gdvAcesso.DataBind();…
-
1
votes1
answer98
viewsQ: Web Helper Chart does not appear in the server application
Action that mounts the Chart: public ActionResult GraficoPedidos() { int [] arrayP = new int[12]; int aux = 0; for(int i = 1;i <= 12;i++) { int numero = Convert.ToInt32(context.Pedidos.Count(p…
-
0
votes1
answer23
viewsQ: Server hosted application layout
When I access an application of mine on the aws server of Amazon by IE activating the compatibility mode it stays the way I hope. When I access through Chrome it does not get the layout due at all:…
-
0
votes0
answers60
viewsQ: Download and open compressed files
Guys I have the following code on an aspx page that compresses files and then downloads them... protected void Page_Load(object sender, EventArgs e) { try { JuntarArquivosAprovados(startPath);…
-
1
votes0
answers148
viewsQ: AJAX request on the server
AJAX request does not work when on the server...locally works normal... Does anyone have any idea what it might be ? function SalvarPedido() { //Data var data = $("#Data").val(); //Cliente var…
-
3
votes3
answers533
viewsQ: How to point the Entity framework to another database?
Hello, My Entity Framework always points to my local database...I have tried to change the string Connection by passing the data of a database that is on another server and nothing happens it keeps…
-
2
votes1
answer1247
viewsQ: How to take the Dropdownlist ID and move to a jQuery variable?
I have the following Dropdownlist: <div class="editor-field"> @Html.DropDownList("ProdutoId", String.Empty) </div> And this jQuery function that when the user presses the button will…
-
-2
votes1
answer2341
viewsQ: How to pass a Controller object or object list to View?
Controller: [HttpPost] public ActionResult Create(Pedido pedido) { List<Produto> lista = new List<Produto>(); if (ModelState.IsValid) { Cliente cliente =…
-
0
votes2
answers196
viewsA: Download Genymotion Plugin to Eclipse
Just deselect the check boxes below. Show only latest versions of available software Group items by category After that will appear the Genymotion Eclipse Tools.…
-
2
votes0
answers27
viewsQ: How to send an email in RTF format using EWS?
I want to send one and mail in RTF(Rich Text Format) format using the EWS(Exchange Web Service API) ExtendedPropertyDefinition RtfCompressed = new ExtendedPropertyDefinition(0x1009,…
-
3
votes1
answer3577
viewsQ: How to check if a tag exists in an xml?
// Obtém a tag "tags" if(xmlDoc.ChildNodes[1].ChildNodes[1].ChildNodes[1].SelectSingleNode("tags") != null) { } I am running an Xml and in some we do not have this tag "tags" and error. Does anyone…
-
3
votes1
answer65
viewsQ: Sha1cryptoserviceprovider and Sha1managed return different results
I need to encrypt a string using SHA1. I was able to encrypt using the SHA1 class in this way: public string CriptSha1(string secret) { string result = ""; byte[] key =…
-
5
votes3
answers203
viewsQ: Return Time.zone.now in C#
In ruby on Rails you have a command Time.zone.now that returns me the date and time in this format => Sun, 18 May 2008 14:30:44 EDT -04:00 I need to get that same time zone return only on C#…
-
21
votes3
answers23896
viewsQ: Difference between type text and type varchar in SQL Server
What’s the difference of using text instead of type varchar to store information in the database? Is there a performance problem? Because I have a table in the database that has a column text and…
-
1
votes1
answer358
viewsQ: How to get the value of the date field?
I have a method that returns database values in my screen components. It takes as parameter 3 string and 2 DateTime protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) {…
-
1
votes1
answer818
viewsQ: How to leave my Gridview in the middle of the screen?
How to leave my Gridview c# in the middle of the screen ? already tried to put it in a div and attribute aling = center but it didn’t work out. Someone has a suggestion ? <asp:GridView…
-
1
votes1
answer4533
viewsQ: How to bring only the records that have no association in the second table?
Personal I have a query that returns the number of registered phones in each state,parents and also brings the number of customers who have no phone registered in each state,parents but I would like…
-
4
votes5
answers15132
viewsA: Change NULL value in SQL SERVER
I found out how already...just use ISNULL , for example: ISNULL(cTelephoneType,'NONE') Ai if cTelephoneType for NULL will bring 'NONE'.
-
5
votes5
answers15132
viewsQ: Change NULL value in SQL SERVER
How to change the NULL value in sql server to for example 'NONE', how to fix it ? My result is coming like this: Florida United States NULL 16 Nevada United States NULL 17 Nevada United States Cell…
-
0
votes1
answer1654
viewsQ: How to insert a data table into the database?
People already have my datatable filled with the values that came from a file . csv now need to insert into database without using Sqlbulkcopy...how to do ? via c# This method fills my datatable:…
-
4
votes2
answers14235
viewsQ: How to check if there is an element inside a list?
I need to check if there’s a status on my list.. I am passing a parameter (a state code) and the method will see in the list if that state exists...something of this kind in C#: if…
-
2
votes1
answer3248
viewsQ: How to verify if there is a certain ID in the database?
I’m validating before importing a file. csv to the database via C# , I have already done a validation to ensure that the state code is an integer and also need to check if there is the state code…
-
1
votes1
answer934
viewsQ: Disregard the header of a . csv file when importing into the database
I need to read a file . csv disregard the header when importing to the database as is possible ? I’m using the following code: linhaArquivo = arquivo.ReadLine(); campos = linhaArquivo.Split(new…