Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 165 results for
firstordefault
- Page 1
how we can break the loop..
Programming
Software Development
9 Years Ago
by ramkishor
…flowLayoutPanel1.Controls.Find(c.Name, true).
FirstOrDefault
(); test = combo.SelectedValue.ToString(); string….Controls.Find(c.AccessibleName, true).
FirstOrDefault
(); reslt = c.Text; string…
LinqToSql + Sql Server Express Backup/Restore + SMO
Programming
Software Development
14 Years Ago
by vbnetskywalker
…) Dim user = db.ExecuteQuery(Of String)("select current_User").
FirstOrDefault
Dim DBName = db.ExecuteQuery(Of String)("select Db_Name()"… SrvrName = db.ExecuteQuery(Of String)("select @@ServerName").
FirstOrDefault
MsgBox(SrvrName & vbCrLf & conbldr.DataSource) 'these differ in …
SQLCacheDependency not notifying
Programming
Web Development
14 Years Ago
by yisman
… dependency = New SqlCacheDependency(cmd) RootMapNode = SitePageNode(SitePages.
FirstOrDefault
) AddNode(RootMapNode, Nothing) AddChildNodes(RootMapNode, SitePages.
FirstOrDefault
) HttpRuntime.Cache.Insert(_cacheDependencyName, New Object(), dependency…
Re: SQLCacheDependency not notifying
Programming
Web Development
14 Years Ago
by yisman
… dependency = New SqlCacheDependency(cmd) RootMapNode = SitePageNode(SitePages.
FirstOrDefault
) AddNode(RootMapNode, Nothing) AddChildNodes(RootMapNode, SitePages.
FirstOrDefault
) HttpRuntime.Cache.Insert(_cacheDependencyName, New Object(), dependency…
datagrid not show multiple rows dataâ€
Programming
Software Development
13 Years Ago
by like_bilal02
… = Val(ComboBox1.Text) DataGridView1.Rows(abc).Cells(0).Value = mydataa.
FirstOrDefault
.s_no DataGridView1.Rows(abc).Cells(1).Value = mydataa…
Paging in Gridview not working..
Programming
Web Development
13 Years Ago
by kieky
…(p => p).Where(p => p.IdDokumen.Equals(id_document)).
FirstOrDefault
(); var versi = db.DMSDataContext.Versis.Select(p => p).Where…(p => p.IdVersi.Equals(id)).
FirstOrDefault
(); string id_category = Convert.ToString(doc.IdCategory); Label_Value_VersiJudul.Text = doc.JudulDokumen…
Binding Multiple Items to a listview!
Programming
Web Development
12 Years Ago
by barriegrant1
…load gallery ids let p = apiPic.getPhotosOnGalID(g.gallery_id).[B]
FirstOrDefault
()[/B] //gets the photo ids based on gallery id …} [/CODE] As you can see in bold im using
FirstorDefault
, this will clearly only load the first image id from…
error :(
Programming
Software Development
12 Years Ago
by bosz015
… = db.tbl_customer.Where(Function(b) b.cardesc = "studnum").
FirstOrDefault
x = a.CustomerID + 1<<<<<(Object… = db.tbl_customer.Where(Function(f) f.cardesc = "studnum").
FirstOrDefault
Dim y As Integer y = x d.CustomerID = y db…
Reduce product quantity after sucessfully placed order
Programming
Software Development
11 Years Ago
by dbalas
…Where(Function(o) o.Id = orddetail.Part.Id).
FirstOrDefault
() If currentproduct IsNot Nothing Then currentproduct.Quantity = (…Where(Function(o) o.Id = orddetail.Part.Id).
FirstOrDefault
() If currentproduct IsNot Nothing Then currentproduct.Quantity = (currentproduct…
Entity Framework 5 :new DBContext does not update current object
Programming
Software Development
10 Years Ago
by hqt
… GetProblemById(int id) { return ctx.Posts.OfType<Problem>().
FirstOrDefault
(t => t.Id == id); } Because I have used above… ctx = new MathHubModelContainer(); return ctx.Posts.OfType<Problem>().
FirstOrDefault
(t => t.Id == id); } Everything works fine. So my…
putting pre selected value in Dropdown
Programming
Web Development
10 Years Ago
by HunainHafeez
… "DeptID", "DeptName", EmployeeValues.
FirstOrDefault
().DeptName); View: @using EmployeeAttendance_app.Models @model IEnumerable<…;GetEmployeeEditDetails_SpResult> @{ var Item = Model.
FirstOrDefault
(); } @Html.DropDownList("DeptID", (SelectList)ViewData…
How to add a new record (XAML/EF/LINQ)
Programming
Software Development
9 Years Ago
by AndrewDBrown
…o in db.egw_addressbook where o.contact_id == 16875 select o).
FirstOrDefault
(); if (result == null) return; mvm.org_name = result.…object sender, RoutedEventArgs e) { var abook = db.egw_addressbook.Local.
FirstOrDefault
(o => o.contact_id == 16875); abook.org_name = mvm.…
Kinect gestures recognition
Programming
Software Development
9 Years Ago
by sk8ergirl
…KinectSensors.Where(s => s.Status == KinectStatus.Connected).
FirstOrDefault
(); if (sensor != null) { sensor.SkeletonStream.Enable();…TrackingState == SkeletonTrackingState.Tracked select trackskeleton).
FirstOrDefault
(); if (firstSkeleton != null)…
How to Pass Model to Partial view and other Model to View will display Part
Programming
Web Development
9 Years Ago
by Ahmed_39
… id.mainCatId == item.SubCats.Select(mainCatId => mainCatId.mainCatId).
FirstOrDefault
()).ToList(); <div class="panel-heading"> &…quot;@Url.Content(comapnyItems.MainCatsImg.Select(id => id.imgPath).
FirstOrDefault
())" alt="" /> </div>…
using foreach to save data not save courses correctly(delete previous cours
Programming
Web Development
7 Years Ago
by _1_14
…{ var vm = new EditEmployeeVm { Id = id }; var emp = db.Employees.
FirstOrDefault
(f => f.Id == id); vm.Name = emp.Name; vm… } [HttpPost] public ActionResult Edit(EditEmployeeVm model) { var emp = db.Employees.
FirstOrDefault
(f => f.Id == model.Id); foreach (EmployeeCourse eec in…
How to use foreach loop inside a Xelement in c#
Programming
6 Years Ago
by mldardy
…) )); var els = doc.Root.Elements("AmazonTrackingResponse").
FirstOrDefault
().Elements("TrackingEventHistory").
FirstOrDefault
().Elements("TrackingEventDetail"); foreach (XElement row in…
Re: How to use foreach loop inside a Xelement in c#
Programming
6 Years Ago
by mldardy
It should be rspxml instead of doc. var els = rspxml.Root.Elements("AmazonTrackingResponse").
FirstOrDefault
().Elements("TrackingEventHistory").
FirstOrDefault
().Elements("TrackingEventDetail"); Thanks
SQl to LINQ with left join and GROUP
Hardware and Software
4 Years Ago
by Rushabh Verma
….TruncateTime(pl.Dt.Value) into g orderby g.
FirstOrDefault
().tDate select new { date = g.
FirstOrDefault
().tDate, cnt = g.Count() }).ToList(); I get…
Re: Reduce product quantity after sucessfully placed order
Programming
Software Development
11 Years Ago
by dbalas
….ApplicationData.Parts.Where(Function(o) o.Id = orddetail.Part.Id).
FirstOrDefault
() If currentproduct IsNot Nothing Then currentproduct.Quantity = (currentproduct.Quantity - orddetail…
Re: xml - how to change the sequence of nodes.
Programming
Software Development
6 Years Ago
by PerplexedB
…ns + "Page"); XElement xFirstPage = xPages.
FirstOrDefault
(); XElement xLastPage = xPages.Where(x => x.…Attribute("ID").Value == pageId).
FirstOrDefault
(); xFirstPage.AddBeforeSelf(xLastPage); xLastPage.Remove(); onenoteApp.UpdateHierarchy(…
DataContext problem - inserting existing data
Programming
Software Development
15 Years Ago
by ohyeah
… in db.Countries where c.countryNameISOcode == root.countryNameISOcode select c).
FirstOrDefault
(); // one country found return country; } }[/CODE]
C#/Commented code running
Programming
Web Development
14 Years Ago
by tuckerblue
… == PasswordTextBox.Text && u.loginName == LoginNameTextBox.Text select u).
FirstOrDefault
(); if (loginUser != null) { LoginPanel.Visible = false; LoggedInPanel.Visible = true; LoggedInHomeLink…
Parsing xml nodes with attributes
Programming
Software Development
14 Years Ago
by SuperFurryToad
…> _ Where p.Value = "PROPERTY_ID" ParentNode = Query.
FirstOrDefault
()[/CODE]
Multiple conditions in left outer join in LINQ
Programming
Software Development
14 Years Ago
by Dimansu
… && b.archived == false into c let d= c.
FirstOrDefault
() [/CODE] But i cant check for the b.archived == false…
my code just show 1 of document...
Programming
Web Development
13 Years Ago
by kieky
… = db.DMSDataContext.Permissions.Where(p => p.UserName.Equals(username)).
FirstOrDefault
(); string value = permission.UserName; int document = Convert.ToInt32(permission.IdDokumen…
Problem with asp.net Image Control
Programming
Web Development
13 Years Ago
by kukula
…; +@"\" +(from zdj in db.Obrazies select zdj.Image).
FirstOrDefault
().ToString(); Image1.ImageUrl = foto; Label1.Text = foto.ToString(); } protected void…
Date compare in a linq query
Programming
Software Development
12 Years Ago
by drax12
…== _frm && day.d_to == _to select new { day.desg_id, }).
FirstOrDefault
(); datetime picker gives a value with its time,but i…
Re: Date compare in a linq query
Programming
Software Development
12 Years Ago
by drax12
…== _frm && day.d_to == _to select new { day.desg_id, }).
FirstOrDefault
(); > datetime picker gives a value with its time,but…
Object reference not set to an instance of an object
Programming
Web Development
12 Years Ago
by ryathegr8
… p in dc.tblUsers where p.nUserID == _index select p).
FirstOrDefault
(); res.strUserName = txtUserName.Text; res.strPassword = txtPassword.Text; res.dAddDate…
Re: Object reference not set to an instance of an object
Programming
Web Development
12 Years Ago
by kvprajapati
… p in dc.tblUsers where p.nUserID == _index select p).
FirstOrDefault
(); if(res!=null) { res.strUserName = txtUserName.Text; res.strPassword = txtPassword…
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC