Questions tagged as 'asp.net'

1
answer

Hello, my problem is that the email is being sent only when I go to check the email instead of showing the sender's email shows the recipient's

protected void btnEnviar_Click(object sender, EventArgs e) { string desEmail = "[email protected]"; string remetenteEmail = txtEmail.Text; //O e-mail do remetente MailMessage mail = new MailMessage(); mail.To...
asked by 01.11.2018 / 22:19
1
answer

How to call a javascript function after a download in webforms

I have an aspx page with a grid and a linkbutton. When clicking on this linkbutton I call a function that locks the screen and places a loading while downloading a file on the server, after download I try to call the function to unlock the scree...
asked by 10.10.2018 / 23:00
1
answer

Is it possible to dynamically generate routes in ASP.NET MVC4

I'm fixing some URL's for my site and I need to create several different routes for each page, for example: routes.MapRoute( name: "ComoVenderMinhasImagens", url: "como-vender-minhas-imagens", defaults: new { controller = "Home", a...
asked by 09.10.2018 / 16:03
1
answer

Binding a checkbox with ViewModel without using Razor (Asp.net core MVC)

I'm having problems with Razor ... I need to create a checkbox field and do the binding with my viewModel using pure html. I'm not sure how to do this, but I'm not sure how to do this. (fields are being created dynamically ...) <div class="...
asked by 06.10.2018 / 23:40
1
answer

Error creating custom validation in ASPNET MVC (Client Side)

I have a problem creating a custom validation using dataanotations by aspnet mvc. My Model: public class Usuario { public string Nome { get; set; } [Idade(18)] public string Senha { get; set; } }...
asked by 08.10.2018 / 16:40
0
answers

Asp Net UpdatePanel

I'm studying AspNet and I can not use the UpdatePanel in any way, I have a webform in a nested masterpage this is the code: <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/MasterPages/NestedMasterPage8Form.Master" AutoEventWireup...
asked by 07.10.2018 / 21:02
0
answers

Could not load file or assembly 'System.Web.Mvc, Version = 5.2.4.0, Culture = neutral

I'm trying to create this project link but after opening the project for the first time and compiling, the error occurs:    Could not load file or assembly 'System.Web.Mvc,   Version = 5.2.4.0, Culture = neutral, PublicKeyToken = 31bf3856ad...
asked by 16.10.2018 / 14:25
0
answers

Saving Image in MySQL with Asp.Net MVC

I would like to know how to save an image in the MySQL database, the table is called db_usuarios with the following structure: ID int GrupoUsuario int Nome Varchar Apelido Varchar .... Foto Blob UserController Controller [HttpPost] [Val...
asked by 14.10.2018 / 06:02
1
answer

Including files in Visual Studio projects

Good evening. I would like to know if it is possible to include a file in a Visual Studio project programmatically at runtime?     
asked by 02.10.2018 / 03:49
0
answers

Phone Array Update in Database

I'm trying to update information in my database where I have 1:N between Clientes and Telefones , but I'm not able to perform such an update because sometimes it will be necessary to remove a phone that is in the database , s...
asked by 26.09.2018 / 20:08