Questions tagged as 'asp.net'

2
answers

Protect ASP.NET source code (aspx)

I have a question regarding ASP.NET: In the case of PHP when placing an application on the server means putting the application's source code. In the case of ASP.NET, (specifically C # with pages in .aspx), is there any way to use it without...
asked by 25.06.2015 / 13:25
2
answers

How do I save the DropDownList's SelectedItem value in the database?

I want to register a client and one of their attributes is sex Database: sex attribute is nvarchar ASP.NET: I'm working with a listview to insert client data <asp:SqlDataSource ID="clientes" runat="server" ConnectionString="&...
asked by 19.02.2015 / 11:43
1
answer

What error is this?

I'm trying to change the css of my application in asp.net mvc 5, but when trying to do this I returned that error there. Does anyone know why?     
asked by 20.05.2015 / 21:49
1
answer

The 'OraOLEDB.Oracle' provider is not registered on the local machine

I have a problem that is limiting my work, this is the following, I created a WebService with a connection string for a database in oracle: OleDbConnection con = new OleDbConnection("Provider=OraOLEDB.Oracle.1;Persist Security Info=Fa...
asked by 27.06.2017 / 15:37
2
answers

Web Api 2 - Routings are not working

I created a web service REST using Web Api 2, and in development everything is functional. I'm using a small variation of the default route: config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{numProtocolo...
asked by 26.02.2014 / 20:45
1
answer

HttpModule: How to handle HttpApplication errors without HttpContext?

I've been finding a particularly interesting situation. I have a generic error handling routine implemented within a HttpModule , and recently I noticed a strange behavior: The HttpApplication.Error event is triggered, but HttpCo...
asked by 24.09.2014 / 19:52
2
answers

How do I get the last id inserted in ASP.NET?

I'm making a website in ASP.NET, and I need to register a user / client. The question is: as soon as I enter the values in the users table, I need to get the id of that table and use the end_user table (user address table) t...
asked by 13.05.2014 / 02:28
2
answers

Encapsulation confusing in C #

I was creating a template that in its construtor I set the Nome attribute. however, this attribute will only have get , as opposed to java oc # has the resource for getters and setters I thought I would simply d...
asked by 14.03.2014 / 20:50
1
answer

AJAX request error - ASP. Net and JQuery

I have an aspx file where I created a script with an AJAX call to execute method populaGridMembros on table gwMembros , method is working perfectly and returning a string in JSON format, when I run $.ajax does not work, it...
asked by 16.01.2015 / 04:50
1
answer

MVC 5 Validation en-BR client side

I am having difficulty performing date and number validation on the client side using MVC 5 asp.net. Examples and tutorials that I find on the internet are all outdated. I made the modifications as this
asked by 27.05.2017 / 16:13