async function getUserDetails(email){
result = await User
.find({email:email})
console.log(result[0].isSalesManager)
}
Posts made by Dinuwan Kalubowila
-
Mongo Query ekaka JSON output ekak variable ekakata assign krganne kohomada? getUserDetails eka const variable ekakata assign krganna ona
-
Android Implicit Intent ??
android wala Implicit intet ekaka kiyanne API ekak wage seen ekakda?
-
ASP.NET Razor Pages
ASP.NET MVC architecture eke razor page ekakata bootstrap select ekak daganne kohomada?? stackoverflow walath tiakk baluwa..eth harigiye nehe
me tiyenne normal text box ekak
<div class="form-group form-floating-label">
@Html.EditorFor(model => model.UserEmail, new { htmlAttributes = new { @class = "form-control input-border-bottom" } })
@Html.LabelFor(model => model.UserEmail, htmlAttributes: new { @class = "placeholder" })
</div>model eke select eke options tika damma me widiyata
public IEnumerable <SelectListItem> TypeList
{
get
{return new List <SelectListItem> { new SelectListItem { Text = "Factory Engineering", Value = "Factory Engineering"}, new SelectListItem { Text = "Production Engineering", Value = "Production Engineering"}, new SelectListItem { Text = "Autonomation", Value = "Autonomation"}, }; } }
dn meka razor ekata render karaganna widiyak dannawada?
-
Angular Versions
Angular 7 dan sahenna use wenwane?? e kiyanne npm package ekakth ekka Angular 7 dan yanwane stable version ka widiyta...eth npm use nolara angular min library eka use kraddi max version eka tyenne 1.7.5...
https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js
https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.jsmenna me wage external library wala me thiyana versions(1.7.5,16.9..etc) walayi angular 4,6,7 wage versions walayi wenasa mokakda?? 4,6,7 wage versions uda thiyana url walata support naha...
Habai Nuget Packages wala thiyana widiyata nan 1.7.5 version eka ehema release wela tyenne 7months ago...but oya kale weddi npm modules walin angular 7 ekath stable version ekak widiyata release wela thiyanwa....me 4,6,7,8 versions walayi angular min library versions walayi wenasa mokkda ethakota?
https://www.nuget.org/packages/angularjs
(nuget packages) -
RE: ASP.NET
@dev_lak ,@Malith eka machn VS 2013,2015,2017 wala EF 6 eka support..habai eta uda versions waladi Model Wizard window eka en ne kiyl net eke thibba..habai model folder eke kisima deyk create wen nathuwa exit wenwa..
-
ASP.NET
Visual Studio 2019 වලට ASP.NET Entity Frameworks support නැද්ද?
-
RE: MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?.
wade hti mchn.....button click enet eka watila nehe html eke..dan wada..
-
RE: MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?.
<form id="Form1" reunt = "server" method="POST">
<asp:Button Text="Button Name" reunt="server" >
</form>ASP walath me widiyata form tag eke method eka danna onada bn?
-
RE: MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?.
mchn connect wenwa....mokada display wen tika wenwa...eth insert wen ne...asp.net wala form ekakin insert karaddi POST,GET methods denna onada?
-
RE: MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?.
sp ekata normal workbench eke execute kalahama wada krnw bn...
-
RE: MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?.
ow eka thama stored procedure eka....web config eke nan nemi haduwe connection eka nan...eka tring variable ekakkta gatta
-
MySQL DB Connection එක මෙහෙම දැම්මහම errors,warnings මුකුත් එන්නෙ නන් නෑ...ඒත් DB එකට data insert වෙන් නෑ..හේතුව මොකක්ද?.
using MySql.Data.MySqlClient;
using System.Data;public partial class index : System.Web.UI.Page
{public String connectionString = @"server=localhost;port=3306;user id=root;database=Product;persistsecurityinfo=True;password=ThirtyFirst9731@;"; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { clear(); } } protected void btnInsert_Click(object sender, EventArgs e) { MySqlConnection mySqlCon = new MySqlConnection(connectionString); try { using (mySqlCon) { mySqlCon.Open(); MySqlCommand mySqlCmd = new MySqlCommand("Proc_Store_Products", mySqlCon); mySqlCmd.CommandType = CommandType.StoredProcedure; mySqlCmd.Parameters.AddWithValue("_productId", Convert.ToInt32(hfProductID.Value == "" ? "0" : hfProductID.Value)); mySqlCmd.Parameters.AddWithValue("_productCode", txtproductCode.Text.Trim()); mySqlCmd.Parameters.AddWithValue("_productName", txtproductName.Text.Trim()); mySqlCmd.Parameters.AddWithValue("_price", Convert.ToDecimal(txtprice.Text.Trim())); mySqlCmd.Parameters.AddWithValue("_description", txtdescription.Text.Trim()); mySqlCmd.ExecuteNonQuery(); clear(); lblSuccessMsg.Text = "Submitted Successfully"; } } catch (Exception ex) { lblErrorMsg.Text = ex.Message; } }
}