Questions tagged as 'asp.net'

1
answer

Popular GridView with Access Data

I've been able to do this in VB.NET , but now I need to do this in C# and I can not turn the code correctly. I have this GridView: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="BatchID...
asked by 20.07.2017 / 19:37
0
answers

How to capture the value of the body (stream) of a request without deleting it?

I am trying to capture the body of a request in an authorization class (AuthorizationHandler), however because this body is a Stream, after reading its contents the next post request can not be executed because the stream has already been read a...
asked by 24.07.2017 / 15:47
1
answer

Hide Database Password

Good afternoon, I have some websites whose database password, I store in a connection string, in web.config. Any programmer who has access to ftp hosting can read the web.config file and view the database password. Is there any way to h...
asked by 24.07.2017 / 20:11
1
answer

Message when it exceeds FileUpload size

I'm trying to put a message to when it exceeds the size of the file in FileUpload, I've already packed it inside the web config, however it always returns me the following error:    Maximum request length exceeded. I saw this example on t...
asked by 14.07.2017 / 20:22
4
answers

Force javascript file update without disabling cache

In a large-scale web application that develops, an upset occurs every time updates occur, because browsers, especially Google Chrome, cache JavaScript files and, sometimes, incompatibilities occur between the server code and the client code, l...
asked by 10.06.2015 / 02:49
1
answer

Problems with session distinction when two people log in with the same user

I'm having a Session problem in a project where I use C # and ASP.NET. If two people log in at the same time with the same user, the section variables have the same values. To be sure I have taken the ID of the sections created and they are diff...
asked by 18.07.2017 / 21:55
3
answers

LinkButton: Open link in a new window (Right-click)

I would like to know if there is any way I can open a new tab by right-clicking or a middle mouse button ... I am using " LinkButton " but the command occurs within OnItemCommand="ListaMenu_ItemCommand ". Aspx: <asp:Repeater...
asked by 17.07.2017 / 16:12
0
answers

connection error sql

Good evening, I am trying to register in my application, however it is returning the following error:    Network-specific or instance-specific error when connecting to SQL Server. The server was not found or was not accessible. Verify that...
asked by 18.07.2017 / 03:08
1
answer

Send Email Configured [closed]

I would like to put in my application the sending of email. However, I would like it to be configured, that the user could configure the settings before sending the email. For example: italicize, bold, change the color of the text, and so on. So...
asked by 03.07.2017 / 15:07
0
answers

My select is not generating result

I'm doing a select, this same select tested in the database returns me the information I need, but in my .net code an error is saying that it is not generating a result, what will I be doing wrong var NomeFuncionario = conexao.executeSelect("T...
asked by 29.06.2017 / 19:02