Questions tagged as 'asp.net'

2
answers

Pop-up Child Window

I have the following button that basically inserts data from a web form, but this button is in a pop-up child . What I intend is that when I run the button, after inserting the data close the pop-up window. How do I solve this problem? p...
asked by 12.06.2014 / 00:39
1
answer

AjaxToolkit and HtmlEditorFieldExtender. Content Demo

<asp:TextBox ID="txtDescricao" runat="server" TextMode="MultiLine" Rows="5" Width="100%" Height="100%"></asp:TextBox> <asp:RequiredFieldValidator SetFocusOnError="True" runat="server" ControlToValidate="txtDescricao...
asked by 03.06.2014 / 14:27
1
answer

Append the items to a dropdown control attached to a database

I have a dropdown control attached to a DB and wanted to add an item to force the user to choose an option. How can I add another item (choose / select / --------) to the control in order to force the user to make the choice? I have...
asked by 04.06.2014 / 04:32
1
answer

Access Denied When Using MS SyncFramework

I'm trying to implement a system where I need to have a local database (SQL Compact) and a cloud (MSSQL) database that can be synchronized. The form I found and followed is the one specified in this link . But I have some problems when I hos...
asked by 30.05.2014 / 20:43
1
answer

Handle webcontrol element dynamically

Is there a way to manipulate webcontrols name dynamically? ex: I have 90 TextBox textBox_01_name textBox_02_name textBox_03_name textBox_04_name ... Today I have the following code if (textBox_01_name.Text != Topo_DAra...
asked by 01.04.2014 / 18:13
2
answers

Best way to add multiple items from an order to a table

When I add a request to the TB_PEDIDOS table, TB_PEDIDOS: ID_PEDIDO, DATA_PEDIDO, ID_CLIENTE I also need to add the order details in another table: TB_DETALHES_PEDIDOS: ID_PEDIDO, ID_PRODUTO, QUANTIDADE, PRECO Example: Produto...
asked by 15.04.2014 / 03:36
1
answer

Web page expired when I return to the page through the browser button. Previous page with postback

In my current application, I have a content list page, which has a small form above to "filter" the GridView below to select an item and go to the next page edit it. What happens is that when I'm on the edit page and try to go back to the lis...
asked by 16.06.2014 / 21:04
2
answers

How to change the return url by pointing to the login page?

How can I change the value of ReturnUrl passed to the login page when the user is on a specific page and the session expires? For example, if the user is on the page www.meusite.com/seguranca.aspx and the session ends, instead o...
asked by 20.03.2014 / 17:23
1
answer

Delete From does not work in C #

Why does not the code below work (does not delete)? using (Banco db = new Banco()) { String strSql = "Delete from Cliente where codcliente=" + Session["_uiUserID"]; db.Cliente.SqlQuery(strSql); db.SaveChanges(); } You are not t...
asked by 24.06.2014 / 19:45
1
answer

Gridview Asp NET disappears the Sort after Click to perform Update

I have my Gridview developed manually, the problem is that when I click to make update my gridview stops being sorted and returns to normal. I intended this not to happen. Here's how it's set: protected void CarregaGV(...
asked by 27.06.2014 / 14:23