Posts by user6018 • 493 points
25 posts
-
1
votes1
answer183
viewsQ: Gridview Asp NET disappears Sort after Click to perform Update
I have my Gridview developed manually, the problem and that when I click to carry out the update my gridview ceases to be orderly and returns to its normal state. I intended that this would not…
-
1
votes3
answers1945
viewsQ: Gridview Templatefield
I need to change a specific Cell in GridView, but when I try to do it this way in RowDataBound: TextBox x = ((TextBox)e.Row.Cells[i].FindControl("ctl" + tx.PadLeft(2,'0'))) x.Enable = False; or in…
-
1
votes1
answer562
viewsQ: Filling with Dynamic Templatefield
I dynamically create the templatefield to my gridview, when I get to gridview is rendered, I get the error that the "C" element does not exist as column names. The code that error occurs is:…
-
1
votes2
answers3772
viewsQ: Gridview Get Textbox Value
I intend to obtain the value of a textbox of a gridview. This Textbox is created by RowDataBound. As follows: TextBox txtValor = new TextBox(); e.Row.Cells[i].Controls.Add(txtValor); For the…
-
3
votes1
answer1373
viewsQ: Get Headertext from a column in a Gridview
Going through the event RowDataBound of a GridView I intend to obtain the value of headertext column but I’m not getting. An example I want to get: if (e.Row.RowType.ToString().Equals("Header")) { }…
-
1
votes1
answer72
viewsQ: Timeout Httpwebrequest Second time
public static bool Sinc(int v, out List<Ma> x) { try { XmlDocument urlData = new XmlDocument(); HttpWebRequest rq = (HttpWebRequest)WebRequest.Create("http://192.168.1.155/Ser.svc/maq/?v=" +…
-
2
votes1
answer459
views -
2
votes1
answer2236
viewsQ: Dynamically Create Datatable
I need to create a DataTable Dynamic; of the kind: List<p> =... List<l>=.... DataTable dt = new DataTable(); foreach (Prod pr in p) { dt.Columns.Add(prod.Nome.Trim()); for (int i = 0; i…
-
8
votes1
answer50072
viewsQ: How to get in SQL the last record inserted according to its date
I need to get a record from a table, where this record is what in date terms was last entered. Gender: SELECT Ped.Quantidade FROM ped WHERE data <= @data But since I have several records it…
-
1
votes1
answer143
viewsQ: Gridview Change Row to Readonly
How can I change Row from a GridView to readonly? I need through values of one of the cells to allow or not editing of the line of GridView.
-
-1
votes4
answers1496
viewsQ: jquery datepicker error does not work
I have the script defined as follows: <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/base/jquery-ui.css"/ > <script…
-
0
votes2
answers1070
views -
0
votes1
answer351
viewsQ: Query Dynamic Linq
I need to create a dynamic query, where the DayOfWeek.Monday is dynamic, as I can define it? DataClassesPDataContext pe = new DataClassesPDataContext(); var qry = from p in pe.R join q in pe.V on…
-
1
votes1
answer256
viewsQ: Get Weekday through a LINQ date
I need to get a record set of a respective day of week(Example Second), where for this I have a field in the table of type datetime. In Sql would look something like this: SELECT AVG(P.Quant) AS…
-
0
votes2
answers1051
viewsQ: SQL QUERY get Average one month of a relative day of the week
I need a query that returns me to the average of a relative month, and a day of the week. For example: I need to know the components relating to the month of February, the day of the week Monday. It…
-
2
votes1
answer338
viewsQ: Get value from XML
I’m having trouble getting the value true of this XML: <boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean> I tried this way but I couldn’t: var ns =…
-
0
votes1
answer1749
viewsQ: Webservice REST POST error request
When making the request for POST is returned me this error message: O servidor remoto devolveu um erro: (400) Pedido incorrecto. Iservice finds - if closed this way: [WebInvoke(Method = "POST",…
-
1
votes3
answers4590
viewsQ: SQL use variable in column name
I need to use variables to set the column name in my sql query. Gender: SELECT IDLayout, Nome, @collum, TipoProduto FROM ProdutoLayout WHERE (TipoProduto = @tipo) AND (@collum = 1) Whereas the…
-
-1
votes1
answer101
viewsQ: Error logging in to server hosted on local IIS
When I test on my machine the login works perfectly, when I share over the network returns me the following error: A network-Related or instance-specific error occurred while establishing a…
-
2
votes2
answers987
viewsQ: Gridview ASP.NET c# data from the same table
I have the following table in SQL with the following fields (id, name, day week, active). id the primary key of the whole type; nvchar day nvchar week; active bit; and I have the following data in…
-
1
votes1
answer43
viewsQ: Windows Mobile 5 error read XML
I am in debt to get the values of the following XML <ArrayOf xmlns="http://schemas.datacontract.org/2004/07/WcfServicePedido_v7" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <V>…
-
0
votes3
answers1092
viewsA: Webservice REST does not return XML in IIS 8.0
The server encountered an error while processing the request. See the page service help to build valid requests for service. A exception message is 'Cannot open database "Bd_super_v8" requested by…
-
3
votes3
answers1092
viewsQ: Webservice REST does not return XML in IIS 8.0
The webservice in visual studio 2013 works beautifully. I added it to the IIS of windows 8.1, and when it comes time to send the data via REST, it gives me this error: The server encountered an…
-
2
votes1
answer423
viewsQ: Error creating SQL Server 2005 database with compressed disk
When I try to create a database, the following error occurs: TITLE: Microsoft SQL Server Management Studio Express Create failed for Database 'based'. (Microsoft.SqlServer.Express.Smo) For help,…
-
0
votes1
answer210
viewsQ: SQL CE Insert Error in Database
I am creating an application for a PDA, when I try to insert data in the database I always find this error. There was an error Parsing the query. [ Token line number = 1,Token line offset =…