Questions tagged as 'c#'

3
answers

Print a string with only numeric values [duplicate]

I'm doing a program in console where the user types some codes, and I want to print that code back to him as soon as he enters. But I wanted to print only the numbers values and ignore the non-numeric values of the string. Does an...
asked by 17.05.2018 / 20:58
3
answers

How can I send an email through GMail?

I want to create an application to send email, I would like to use a GMail account to send these emails, how can I do that?     
asked by 19.12.2013 / 03:32
2
answers

How to create a built-in validation screen?

I'm sorry if the title is not so explanatory, but the question is: I have to do a CRUD and I've already been able to do C and R, but I'm doing the Update now and the scheme looks something like this: You have a Index page listing the...
asked by 03.10.2016 / 22:17
1
answer

Record Video and Upload in C # MVC

I have to record a 5s video on the webcam, after recording upload this video to a folder. I have already searched for several Plugins in JS, I used this link " I just do not know how I can upload this video into a function in my Cont...
asked by 17.11.2017 / 13:08
2
answers

How to write a DateTimePicker to the database

Hello, I have a form with DateTimePicker - Short (date only). And in the database I put DataEntrada DATE My problem is, I created an insert method but I do not know how to pass the DateTimePicker by parameter. Method of insert...
asked by 11.10.2017 / 21:44
2
answers

C # doubling value alone

I'm getting C #, but the code below doubles the value and quits unexpectedly. Can someone take a look? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 {...
asked by 29.10.2017 / 02:41
1
answer

Problem with functions

Hello, I have the following problem, I have a view in the database that makes a group by , and I have another table GraficoCor , I want to make every time that While of the first function makes a increment, it passes the...
asked by 18.04.2016 / 20:12
1
answer

How to organize the viewmodels and mappings in the project? [closed]

Good morning everyone! I am studying about mapping (model and viewmodel) using implicit operators. But I had a question: How to organize the viewmodels and mappings within the project? Where should I save classes? Inside the model class file or...
asked by 03.05.2016 / 15:43
1
answer

Doubt as to window.location.href ()

I know that window.open() will open url in a new window and window.location.href() will open on the calling page. It turns out that when I use window.location.href() , I put in the page_load a javascript call ( aler...
asked by 18.01.2016 / 22:07
1
answer

How to clear the query string after I have already got the values I want?

I'm using ASP.NET C #, and I wanted to clear the query string so that it does not look at the user, for example " link " ..... I get this name and use it in my code when on pageLoad, but I wish that after I got his name, it would not be visible...
asked by 09.09.2015 / 21:03