kendo grid switch case here
new link practice here
just normal lookhere
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
dynamic api = JObject.Parse(response.Content);
to grab the keyvalue from the data using above line code in restsharp
In typescript we inherited form one class object we cant assign value directly we need to pass entire object list
for example i have a class with four data properties
git merge issues resolved this
git reset --hard HEAD
git fetch origin
git reset --hard origin
issue is confilct beween smae page commit so
i forcefully deleted my code and taken from master
using above commnds git conflict
git profile create
for dyanmic images display image on popup
function showImage(i) {
var img = document.getElementById('img_'+i);
img.className = 'element';
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
modal.style.display = "block";
modalImg.src = img.currentSrc;
captionText.innerHTML = this.alt;
}
read this link to know how to access the subnode of each element
for example get src.
<div class="row">
@for (int i = 0; i < Model.productImages.Count(); i++)
{
if (i == 0)
{
<div class="column2">
<img src="~/Uploads/Product/@Model.productMaster.ProductID/@Model.productImages[i].ImageName" style="width:100%" class="hover-shadow cursor">
</div>
}
else
{
<div class="column">
<img src="~/Uploads/Product/@Model.productMaster.ProductID/@Model.productImages[i].ImageName" style="width:100%" class="hover-shadow cursor">
</div>
}
}
</div>
1.the jaery and and javascript code for open image in new window below.
<!-- The Modal -->
<div id="myModal" class="modal">
<span class="close">×</span>
<img class="modal-content" id="img01">
<div id="caption"></div>
</div>
<script>
var modal = document.getElementById("myModal");
// Get the image and insert it inside the modal - use its "alt" text as a caption
// var img = document.getElementById("myImg");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks on <span> (x), close the modal
span.onclick = function () {
modal.style.display = "none";
}
$(".column2 img").click(function () {
debugger
var imgsrc = $('.column2 img').prop('src');
alert(imgsrc);
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
modal.style.display = "block";
modalImg.src = imgsrc;
captionText.innerHTML = this.alt;
});
styles for popup
take from here
<div class="col-sm-12">
@Html.DropDownListFor(x => x.productMaster.PaymentOption, new SelectList((List<Config.Contract.Lookup>)ViewData["PaymentType"],
"LookupID", "LookupDescription"), "THB", new { @class = "form-control input-sm" })
</div>
1.here instead of seleted type i have given value code thb
2.incase you have id instead of value give like this
<div class="col-sm-6">
@Html.DropDownListFor(x => x.productMaster.AgeType, new SelectList((List<Config.Contract.Lookup>)ViewData["AgeType"],
"LookupID", "LookupDescription", 2130), AppResource.Age, new { @class = "form-control input-sm" })
</div>
flutter features click here
most usefull website
flutter sample app https://www.flutterhub.site/templates/bigbasket-cart-ui/
installed all requied files and c+ tools and andriod goto tools sdk slect cmdline feature also
https://developer.android.com/studio/run/emulator
https://www.jetbrains.com/toolbox-app/
public static class UrlHelperExtensions
{
//
// Summary:
// Generates a URL with an absolute path for an action method.
//
// Parameters:
// helper:
// The Microsoft.AspNetCore.Mvc.IUrlHelper.
//
// Returns:
// The generated URL.
public static string Action(this IUrlHelper helper);
truncate delte table with complete increment id also
delete only remove recordes
https://www.awesomescreenshot.com/video/5180269?key=aa5bb748d1fe2760bcce0c3c22f177a6
type User = { | |
name: string | |
age: number | |
address: string | |
occupation: string | |
} | |
type BasicUser = Pick<User, "name" | "age"> | |
// type BasicUser = { | |
// name: string; | |
// age: number; | |
// } |
type User = { | |
name: string | |
age: number | |
address: string | |
occupation: string | |
} | |
type BasicUser = Omit<User, "address" | "occupation"> | |
// type BasicUser = { | |
// name: string; | |
// age: number; | |
// } |
type User = { | |
name: string | |
age: number | |
address: string | |
occupation: string | |
} | |
type PartialUser = Partial<User> | |
// type PartialUser = { | |
// name?: string; | |
// age?: number; | |
// address?: string; | |
// occupation?: string; | |
// } |
type PartialUser = { | |
name: string | |
age: number | |
address?: string | |
occupation?: string | |
} | |
type User = Required<PartialUser> | |
// type User = { | |
// name: string; | |
// age: number; | |
// address: string; | |
// occupation: string; | |
// } |
type User = { | |
name: string | |
age: number | |
address: string | |
occupation: string | |
} | |
type ReadOnlyUser = Readonly<User> | |
const user: ReadOnlyUser = { | |
name: "Peter", | |
age: 24, | |
address: "Toronto", | |
occupation: "software_engineer" | |
} | |
user.name = "Tom" | |
// Cannot assign to 'name' because it is a read-only property. |
type User = { | |
name: string | |
age: number | |
address: string | |
occupation: string | |
} | |
type Team = Record<"player1" | "player2", User> | |
// type Team = { | |
// player1: User; | |
// player2: User; | |
// } |
import axios from 'axios' | |
type Response = ReturnType<typeof axios> | |
function callAPI(): Response{ | |
return axios("url") | |
} |
There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...