Questions tagged as 'asp.net'

1
answer

How can I set the width of each column in a GridView?

How can I set the width of each column to a GridView in the following case below? <div style="width: 1000px; height: 400px; overflow: scroll"> <asp:GridView ID="Grid" runat="server" AutoGenerateColumns="False" CellPadding=...
asked by 10.11.2015 / 20:08
1
answer

How to use Scope_Identify to return .NET id

I'm developing an application and I need it when sql does the insert return the value of the id that was entered, I'm using the following command SqlCommand cmd = new SqlCommand("insert into solicitacoes (assunto, mensagem, endereco, anexo, st...
asked by 05.06.2015 / 14:31
1
answer

Passing HTML Page Parameters to ASP.NET

I have an asp.net page which I need to get parameters from an HTML template . I'm trying the way below but I can not get the values. Here is my code: HTML - Template <form method="post" action="http://localhost:61712/Default.aspx">...
asked by 01.07.2015 / 16:32
2
answers

make a component in a repeater get enabled = false

I have a button inside a repeater. As it is in a repeater, it only appears in the DataBind () of the repeater. Using the variable and event, I get to this component like this: protected void rptDocumentosRepeater_ItemDataBound(object source, R...
asked by 09.02.2015 / 18:09
1
answer

Doubt about using multiple user controls on the same page

The most difficult thing here is to ask the right question to not get downvote, but come on. I will try to explain well, because the doubt is complex or boring. I will ask specific questions to avoid questions with multiple answers. Here it goes...
asked by 06.01.2015 / 18:13
1
answer

Reference to styles and script's in Master.Page using ResolveUrl

In Master.Page I make references to the styles and scripts that will be inherited by the other pages through ResolveUrl. <script src="<%# ResolveUrl("~/") %>Scripts/jquery-1.11.1.js" type='text/javascript'></script> <scrip...
asked by 24.11.2014 / 15:35
3
answers

Back to page that called

Is there a way for me to make a code on a quit button that will return me to the page that called? Fixing the page does not give, because this page (queryprocess) is called from several others. I did so and it is giving me error: <span i...
asked by 25.11.2014 / 17:42
1
answer

Instability in script to hide / show fields

I have the following script: @Scripts.Render("~/bundles/jquery") <script> $(document).ready(function () { $('.ocultar').hide(); $('#dn').change(function () { if ($("#dn").attr("checked",true)) {...
asked by 03.12.2014 / 13:04
1
answer

Disable MasterPage Menu from a contentPage

I have a small menu on Master Page: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="INTEGRASYS.SiteMaster" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> &l...
asked by 28.11.2014 / 04:36
1
answer

Mounts link only when data is available

I have a webforms application. In this application I have this line in my ASP.NET. <strong><a href="/UpLoads/<%# Eval("DsPathDocumento")%>" class="linkUpload"><%# Eval("NmTipoDocumento")%></a></strong> We...
asked by 22.12.2014 / 13:13