일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- 코딩입문
- PromptEngineering
- largelanguagemodels
- python
- 블록코딩
- 중1코딩
- MYSQL
- 아이코딩습관
- Excel
- Linq
- MSSQL
- httpclient timeout
- Android
- 일본여행
- MS-SQL
- upbit
- league of legends
- C# 프로그래밍
- 엔트리
- 한글깨짐
- 중학생코딩
- Aspose.cells
- 오블완
- .csv
- swift 화면전환
- Kakao API Address
- c#
- c# 학습
- cc챔피언
- ASP.NET MVC
- Today
- Total
목록[3] Development/MVC(ASP.NET with C#) (45)
DBA
[.cshtml] [JavaScript] $('#formMoveProject').attr("action", "/" + p프로젝트번호 + "/Index"); $('#formMoveProject').submit(); [.cs : controller : p프로젝트번호] public ActionResult Index(decimal? userID, decimal? projectID) form으로 데이터를 넘길 때, HTML 선택자의 name을 참조하여 파라미터를 넘긴다. 따라서, controller의 함수의 파라미터와 같은 이름으로 name을 작성하면된다.
function handleSubmit(event) { event.preventDefault(); // 기본 동작 막기 } $("li a").click(function (e) { e.preventDefault();//링크 방지 });
1. 일단 Layout 파일의 head tag 사이에 .js 파일을 참조 합니다. (단일 페이지로 작업 한다면 그 페이지에 넣어주면 됨) 2. 아래 함수를 넣고 사용 하면 됩니다. function findCookieValue(jsCookieName, jsCookieItemName) { var start = $.cookie(jsCookieName).indexOf(jsCookieItemName); var jsCookieItemValue = ''; if (start != -1) { start += jsCookieItemName.length; var end = $.cookie(jsCookieName).indexOf('&', start); if (end == -1) end = $.cookie(jsCookieNam..
// GET 요청 예시 var response = await client.GetAsync("https://api.example.com/users", content); // PUT 요청 예시 var content = new StringContent(JsonConvert.SerializeObject(user), Encoding.UTF8, "application/json"); var response = await client.PutAsync("https://api.example.com/users/1");
using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; public async Task FunctionName(string pramAuid) { var client = new HttpClient(); var url = "API URL Address"; // 전송할 데이터를 C# 객체로 생성 - body에 추가 var data = new { auid = pramAuid }; // 데이터를 JSON 문자열로 변환하여 StringContent 생성 var json = JsonConvert.SerializeObject(data); var content = new StringContent(json, ..

전달 값이 0으로 시작하는 문자열일때 따옴표로 감싸지 않으면 아래 그림과 같이 엉뚱한 값을 보여준다. ViewBag으로 전달한 값 : 005001 var jsGID = @(ViewBag.GID); console.log("따옴표로 감싼경우 : @(ViewBag.GID)"); console.log("따옴표로 감싸지 않은 경우 : " + @(ViewBag.GID)); console.log("따옴표 없이 변수에 담은 경우 : " + jsGID); 또 아래와 같이 파라미터로 넘길때 따옴표로 묶지 않아도 위 와 같은 결과를 초래 하게 된다. 반드시 문자열은 큰따옴표 또는 작은따옴표로 묶어야 한다. onclick='ShowDeleteConfirm(@item.tempid,@item.targetFacilityID,"@i..
UrlHelper Class : https://learn.microsoft.com/en-us/previous-versions/aspnet/dd492578(v=vs.118) UrlHelper Class (System.Web.Mvc) Table of contents UrlHelper Class Article 06/08/2015 3 minutes to read In this article --> Contains methods to build URLs for ASP.NET MVC within an application. Namespace: System.Web.Mvc Assembly: System.Web.Mvc (in System.Web.Mvc.dll) Inheritance Hie learn.microsoft.c..
Html Helpers : https://www.tutorialsteacher.com/mvc/html-helpers HTML Helpers in ASP.Net MVC HTML Helpers Here, you will learn what HTML helpers are and how to use them in the razor view. The HtmlHelper class renders HTML controls in the razor view. It binds the model object to HTML controls to display the value of model properties into those cont www.tutorialsteacher.com HtmlHelper Class : http..