Click here to Skip to main content
14,387,302 members
   

ASP.NET

 
Question.Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
jkirkerx1-Aug-19 13:28
professionaljkirkerx1-Aug-19 13:28 
AnswerRe: .Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
Afzaal Ahmad Zeeshan1-Aug-19 15:37
mvaAfzaal Ahmad Zeeshan1-Aug-19 15:37 
GeneralRe: .Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
jkirkerx2-Aug-19 7:50
professionaljkirkerx2-Aug-19 7:50 
GeneralRe: .Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
jkirkerx2-Aug-19 12:45
professionaljkirkerx2-Aug-19 12:45 
AnswerThought I had it, Failed to open browser when running in Docker Container Pin
jkirkerx2-Aug-19 13:50
professionaljkirkerx2-Aug-19 13:50 
AnswerFigured it out [solved] Pin
jkirkerx3-Aug-19 14:44
professionaljkirkerx3-Aug-19 14:44 
GeneralRe: Figured it out [solved] - New Code Pin
jkirkerx5-Aug-19 14:22
professionaljkirkerx5-Aug-19 14:22 
QuestionInsert Date Interval Pin
Bartt_dmr25-Jul-19 11:31
MemberBartt_dmr25-Jul-19 11:31 
Please, can you help me.

I adapted the example above to asp.net (vb), but it records the same date.

Ex: 08/01/2019 to 08/31/2019, interval of 7 days.

The correct would be to record 08/01 ... 08/08 ... 15/08 ... 22/08 ... 29/08 ... But recorded the 5 days as 01/08.

Follows the code and thanks in advance.

Dim conexao As SqlConnection
Dim cmd As SqlCommand
Dim sql As String

Dim startDate As Date = txtDataCurso.Text
Dim endDate As Date = startDate.AddDays(txtIntervalo.Text) - "This interval is the number of days (end date - initial)"
Dim currDate As Date = startDate

Do While (currDate < endDate)

sql = "INSERT INTO tre_Eventos (Id_Curso, DataEvento) VALUES ('" & ddlCursos.SelectedValue & "', '" & endDate & "')"

currDate = currDate.AddDays(7)

Try

conexao = New SqlConnection(strConn)

conexao.Open()

cmd = New SqlCommand(sql, conexao)

cmd.ExecuteNonQuery()

conexao.Close()

SetFocus(Label1)

Label1.Visible = True
Label1.Text = "Evento Cadastrado com Sucesso"

Catch

SetFocus(Label1)

Label1.Visible = True
Label1.Text = "Ocorreu um erro!" + Err.Description

End Try

AnswerRe: Insert Date Interval Pin
Richard Deeming25-Jul-19 11:49
mveRichard Deeming25-Jul-19 11:49 
QuestionObject reference not set to an instance of an object. Pin
Darwin Ahmed21-Jul-19 13:06
MemberDarwin Ahmed21-Jul-19 13:06 
AnswerRe: Object reference not set to an instance of an object. Pin
phil.o21-Jul-19 20:50
mvephil.o21-Jul-19 20:50 
AnswerRe: Object reference not set to an instance of an object. Pin
ZurdoDev24-Jul-19 10:10
professionalZurdoDev24-Jul-19 10:10 
QuestionChange Value of HttpContext.Current.User Pin
MadDashCoder21-Jul-19 5:26
MemberMadDashCoder21-Jul-19 5:26 
AnswerRe: Change Value of HttpContext.Current.User Pin
Richard MacCutchan21-Jul-19 7:42
mveRichard MacCutchan21-Jul-19 7:42 
AnswerRe: Change Value of HttpContext.Current.User Pin
Afzaal Ahmad Zeeshan21-Jul-19 7:51
mvaAfzaal Ahmad Zeeshan21-Jul-19 7:51 
AnswerRe: Change Value of HttpContext.Current.User Pin
ZurdoDev24-Jul-19 10:12
professionalZurdoDev24-Jul-19 10:12 
QuestionQuery timing out, help please!!! Pin
samflex19-Jul-19 9:38
Membersamflex19-Jul-19 9:38 
AnswerRe: Query timing out, help please!!! Pin
ZurdoDev19-Jul-19 11:14
professionalZurdoDev19-Jul-19 11:14 
AnswerRe: Query timing out, help please!!! Pin
David Mujica22-Jul-19 8:59
MemberDavid Mujica22-Jul-19 8:59 
QuestionForm Designer Pin
wrightyrx715-Jul-19 5:58
Memberwrightyrx715-Jul-19 5:58 
AnswerRe: Form Designer Pin
Mycroft Holmes15-Jul-19 12:26
MemberMycroft Holmes15-Jul-19 12:26 
GeneralRe: Form Designer Pin
wrightyrx715-Jul-19 12:33
Memberwrightyrx715-Jul-19 12:33 
GeneralRe: Form Designer Pin
Mycroft Holmes15-Jul-19 15:08
MemberMycroft Holmes15-Jul-19 15:08 
QuestionGetting undefined in Cascading DropDownList In ASP.Core MVC ? Pin
Abdalla Ben Omran11-Jul-19 10:29
MemberAbdalla Ben Omran11-Jul-19 10:29 
AnswerRe: Getting undefined in Cascading DropDownList In ASP.Core MVC ? Pin
Vincent Maverick Durano11-Jul-19 11:12
mvaVincent Maverick Durano11-Jul-19 11:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.