What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-14 08:00:22
c# Select MSSQL
SqlConnection conn = new SqlConnection("Data Source=;Initial Catalog=;Persist Security Info=True;User ID=;Password="); conn.Open(); SqlCommand command = new SqlCommand("Select id from [table1] where name=@zip", conn); command.Paramete... Add solution -
Java 2021-11-09 05:36:17
spring @restcontroller
package com.example.restservice; import java.util.concurrent.atomic.AtomicLong; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestCo... Add solution -
C# 2021-11-07 12:43:12
check the request comes from which operating system used by user in asp net core
string device = getOSInfo(); public String getOSInfo() { var ua = Request.UserAgent; if (ua.Contains("Android")) return string.Format("Android {0}", GetMobileVersion(ua, "Android")); if (ua.Contains(&qu... Add solution