Questions tagged as 'asp.net'

2
answers

Putting a button from asp.net enable only in a TabPanel

In the code below: <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div class="buttons"> <asp:ImageButton ID="btnNew" runat="server" ImageUrl="~/Images/New_6.png" ToolTip="Novo Fornecedo...
asked by 07.05.2014 / 22:08
1
answer

OnTextChanged called multiple times - autopostback

I have a 50 TextBox of that type: <asp:TextBox ID="txt_DetImovel0" runat="server" AutoPostBack="true" OnTextChanged="txt_DetImovel0_TextChanged"></asp:TextBox> <asp:TextBox ID="txt_DetImovel1" runat="server" AutoPostBack="true...
asked by 14.03.2014 / 21:34
6
answers

I can not get the value of an asp: hiddenField in C #, it is always empty

I have a strange problem here. I'm assigning value to asp:hiddenField via javascript (I already tested giving alert and it shows the correct value), but then when I try to get the value of it in C # the meuHiddenField.Value...
asked by 05.02.2014 / 18:13
1
answer

View user's post blocked in membership

I need to display a message when the blocked user tries to sign in membership ... I set the user locked with the IsApproved property = false; at time of registration MembershipUser lockUser = Membership.GetUser(txtEmail.Text); lockUser.IsAppro...
asked by 20.05.2014 / 18:15
1
answer

Block access to files in certain directories if they are not authenticated

How do I block certain directory access if it is not authenticated? For example I have my url www.mysite.com/login The user is not yet authenticated So I do not want it to be able to access any .js file, image, .css directory w...
asked by 12.07.2014 / 03:39
2
answers

Getting Foreign Key value - Object reference not set to an instance of an object

Using Code First - MVC 4 - EF6 I have the following Model: [Table("usuario")] public class Usuario { [Key] [Column("UsuarioId")] public int UsuarioId { get; set; } public string Nome { get; set; } } [Table("Orcamento")] publi...
asked by 13.07.2014 / 04:07
1
answer

How to update the .Net framework?

How to update my project framework?     
asked by 19.09.2014 / 14:16
3
answers

Gridview TemplateField

I need to change a specific cell in GridView , but when I try to do this in RowDataBound : TextBox x = ((TextBox)e.Row.Cells[i].FindControl("ctl" + tx.PadLeft(2,'0'))) x.Enable = False; or this way; ((TextBox)e.Row.Cells[i]....
asked by 24.06.2014 / 20:03
1
answer

How to get values from the first column that is a checkbox of a GridView?

I have a GridView and I need to get the values from the first column of the Grid. My first column is a checkbox, I need to make sure they are checked and get their values.     
asked by 18.08.2014 / 16:47
2
answers

How to configure custom Error 500 page?

Good afternoon, I'm starting to write errors. In my web config is installed as follows: Error 404 <customErrors mode="On" defaultRedirect="~/Erro/Error-404.html"> <error statusCode="404" redirect="~/Erro/Error-404.html" /...
asked by 28.09.2018 / 20:47