Questions tagged as 'asp.net'

2
answers

How to get value from a database column using C #

I have a web application that uses these 3 tables: Client: CREATE TABLE CLIENTE( ID_CLIENTE INT PRIMARY KEY, CLIENTE VARCHAR(50), ENDERECO VARCHAR(50), CIDADE VARCHAR(30), CEP VARCHAR(9), UF CHAR(2) ); Order: CREATE TABLE PEDIDO (...
asked by 02.12.2017 / 15:13
4
answers

What is the use of ASAX extensions?

Finally, I started working with C #. I'm working on a SITE-type project and I'm using Visual Studio. I came across a file where you should apparently put the global settings there, which is Global.asax . It seems to have a different...
asked by 28.06.2017 / 14:23
3
answers

Save date in Brazilian format in Postgresql

I have a PostgreSQL database on the Windows Azure server that is set to the Brazilian standard. If I do a SQL and execute directly on PgAdminIII from the server and execute, the date is saved in the Brazilian format. But if I have my C # c...
asked by 10.05.2017 / 02:46
1
answer

ASP.NET WebForms, MVC or WebAPI? [closed]

First of all I would like to emphasize that my knowledge in web development is very small, so my question will be focused on what to use and not how to use, since the goal is to study first and then develop. I need to create a web application...
asked by 29.05.2017 / 14:53
1
answer

How to play a youtube video in an iframe? Refused to display '' in a frame because it is set 'X-Frame-Options' to 'SAMEORIGIN'

I'm trying to play a YouTube video on my Site using iframe and it's generating me the error that is in the title of the question. HTML: <div class="video-container"> <iframe src="https://www.youtube.com/watch?v...
asked by 15.08.2015 / 18:02
3
answers

ASP.NET - How to use multiple post methods in the same controller?

I have the following problem: On a given HTML page I have two buttons that call different POST methods on the same controller. @using (Html.BeginForm("UserInfo1", "UserInfo", FormMethod.Post)) { <input type="submit" value="Ir para Ac...
asked by 06.06.2018 / 04:39
1
answer

How to filter a DataView.RowFilter

I have a DataView and I'm trying to make a filter, where the 'photo' field is different from NULL I tried: dv.RowFilter = "foto <> ''"; But it did not filter. I searched here on StackOver and recommended: dv.RowFilter = "Isnull(...
asked by 07.01.2016 / 17:54
1
answer

Friendly Url in ASP.NET Web Forms

I would like to know how to make friendly URL in C # ASP.NET. I tried to use the file: global.asax but it did not work.     
asked by 01.07.2016 / 21:08
1
answer

ASP.net how do I send text with enter

in Example.aspx.cs protected void Page_Load(object sender, EventArgs e) { teste0989.InnerText="teste123<br>teste456<br>" } in the site appears the br as text and actually wanted to enter some suggestion     
asked by 30.06.2016 / 00:41
1
answer

COM Interop with CLient and Server

Hello, I have a DLL to encrypt data. I need to use the Component Object Model (COM) Interop to be able to communicate two applications and both traffic the encrypted data through this DLL. Searching, I found integration examples like integrate w...
asked by 16.01.2015 / 20:13