Click here to Skip to main content
15,916,449 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondocument.activeElement.id not working in safari Pin
Member 1576922815-Sep-22 20:39
Member 1576922815-Sep-22 20:39 
GeneralRe: document.activeElement.id not working in safari Pin
Richard MacCutchan15-Sep-22 21:01
mveRichard MacCutchan15-Sep-22 21:01 
AnswerRe: document.activeElement.id not working in safari Pin
Raj Kumar7918-Oct-22 5:09
Raj Kumar7918-Oct-22 5:09 
QuestionAuto reply chatbot? Pin
Nitin S13-Sep-22 21:18
professionalNitin S13-Sep-22 21:18 
AnswerRe: Auto reply chatbot? Pin
Richard Deeming13-Sep-22 21:42
mveRichard Deeming13-Sep-22 21:42 
Questionvideo conference feature Pin
Member 117359128-Sep-22 19:45
Member 117359128-Sep-22 19:45 
AnswerRe: video conference feature Pin
Richard Deeming8-Sep-22 21:52
mveRichard Deeming8-Sep-22 21:52 
AnswerRe: video conference feature Pin
Nitin S13-Sep-22 22:16
professionalNitin S13-Sep-22 22:16 
QuestionAPI Architecture design Pin
Member 77363822-Sep-22 23:50
Member 77363822-Sep-22 23:50 
AnswerRe: API Architecture design Pin
Mycroft Holmes13-Sep-22 14:16
professionalMycroft Holmes13-Sep-22 14:16 
QuestionASP.Net MVC: How unauthorize access redirect user to login page Pin
Mou_kol10-Aug-22 20:27
Mou_kol10-Aug-22 20:27 
AnswerRe: ASP.Net MVC: How unauthorize access redirect user to login page Pin
Richard Deeming10-Aug-22 21:58
mveRichard Deeming10-Aug-22 21:58 
GeneralRe: ASP.Net MVC: How unauthorize access redirect user to login page Pin
Mou_kol11-Aug-22 1:06
Mou_kol11-Aug-22 1:06 
GeneralRe: ASP.Net MVC: How unauthorize access redirect user to login page Pin
Richard Deeming11-Aug-22 2:09
mveRichard Deeming11-Aug-22 2:09 
QuestionASP.Net MVC and querySelectorAll usage Pin
Mou_kol5-Aug-22 23:13
Mou_kol5-Aug-22 23:13 
AnswerRe: ASP.Net MVC and querySelectorAll usage Pin
Richard Deeming7-Aug-22 21:45
mveRichard Deeming7-Aug-22 21:45 
GeneralRe: ASP.Net MVC and querySelectorAll usage Pin
Mou_kol7-Aug-22 22:01
Mou_kol7-Aug-22 22:01 
QuestionVS2017 Code behind function to disable check Box on Combo Box Text Value Pin
Jason Parker 3335-Jul-22 22:57
Jason Parker 3335-Jul-22 22:57 
AnswerRe: VS2017 Code behind function to disable check Box on Combo Box Text Value Pin
Richard Deeming7-Jul-22 2:14
mveRichard Deeming7-Jul-22 2:14 
Questionis there any code for capture screenshot and retrive system information in .net mvc core? Pin
Member 1568985228-Jun-22 0:23
Member 1568985228-Jun-22 0:23 
AnswerRe: is there any code for capture screenshot and retrive system information in .net mvc core? Pin
Richard Deeming28-Jun-22 1:00
mveRichard Deeming28-Jun-22 1:00 
Questionaspnet core use TempData error! Pin
Member 940386815-Jun-22 20:21
Member 940386815-Jun-22 20:21 
AnswerRe: aspnet core use TempData error! Pin
Richard Deeming15-Jun-22 21:20
mveRichard Deeming15-Jun-22 21:20 
AnswerRe: aspnet core use TempData error! Pin
Mycroft Holmes16-Jun-22 12:41
professionalMycroft Holmes16-Jun-22 12:41 
QuestionSELECT DISTINCT Pin
kjell.ek19-May-22 3:16
kjell.ek19-May-22 3:16 
SELECT DISTINCT does not work the way I want.
SELECT DISTINCT works for the class column but not for name_event column
If "MyId" is e.g. CW and there are 4 lines there but name_event should only be 2 pcs, but it shows 4 pcs

Now display:
World Championships
French Champioships
World Championships
World Championships


It should be:
World Championships
French Champioships

What am I doing wrong?





VB
<pre>        Dim MyDataAdapter As New SqlDataAdapter("SELECT DISTINCT class, nationality, name_event from statistics_results Where class = @class", MyConnection)

        MyDataAdapter.SelectCommand.Parameters.Add(New SqlParameter("@class", SqlDbType.VarChar, 10))
        MyDataAdapter.SelectCommand.Parameters("@class").Value = MyId

        Try
            Dim dt As New DataTable()
            MyDataAdapter.Fill(dt)

            Dim natlist = dt.AsEnumerable().[Select](Function(r) r("nationality").ToString())
            Dim natvalue As String = String.Join("- ", natlist)
            litNat.Text = natvalue

            Dim eventlist = dt.AsEnumerable().[Select](Function(r) r("name_event").ToString())
            Dim eventvalue As String = String.Join("<br>", eventlist)
            litEvent.Text = eventvalue

        Catch exc As SqlException

        Finally
            MyConnection.Close()
            MyConnection.Dispose()

        End Try


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.