Home
Search results “Google code style namespace”
PHP, PSR 2: Coding Style Guide
 
24:18
В этом видео мы продолжаем рассматривать стандарты PSR и здесь поговорим про PSR-2 Ссылка на стандарт: https://www.php-fig.org/psr/psr-2/ Наш чат: https://t.me/dev_ru
Views: 781 Evgeniy Kuvshinov
PHP 7: How to use namespaces | Tutorial Nr. 17
 
09:40
A namespace is like a pointer to a file path where you can find the source of the function you are working with. Use namespaces to keep your function name separate from anyone else's function name, and you won't have to make extra_long_named functions to get around the name collision problem Namespaces are not equivalent to classes. It is an execution environment in which classes, traits, functions, constants and interfaces are defined and protected from naming collisions from a different environment. PHP is a server-side scripting language designed primarily for web development but also used as a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994, PHP originally stood for Personal Home Page, but it now stands for the PHP: Hypertext Preprocessor. PHP code may be embedded into HTML, or it can be used in combination with various web template systems ,web content management systems and web frameworks. What is PHP? PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP is free to download and use PHP is an amazing and popular language! It is powerful enough to be at the core of the biggest blogging system on the web (WordPress)! It is deep enough to run the largest social network (Facebook)! It is also easy enough to be a beginner's first server side language! Common uses of PHP PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them. PHP can handle forms, i.e. gather data from files, save data to a file, through email you can send data, return data to the user. You add, delete, modify elements within your database through PHP. Access cookies variables and set cookies. Using PHP, you can restrict users to access some pages of your website. It can encrypt data. Source: https://www.tutorialspoint.com/php/php_introduction.htm
Views: 1135 WebDevHero
XML PART 05 Prefix and Namespace
 
09:03
XML PREFIX AND NAMESPACE LECTURE
Views: 394 TECH Studio
Rachel Rambles - Coding Style
 
10:32
My GitHub page https://github.com/RachelJMorris?tab=repositories Oracle's Java coding conventions http://www.oracle.com/technetwork/java/codeconvtoc-136057.html Microsoft's C# coding conventions https://msdn.microsoft.com/en-us/library/ff926074.aspx /* 0101111001011111010111110101111101011110 */ Be Creative ♥ Be Kind Follow Moosader news on social media! YouTube ~ http://www.youtube.com/moosader Twitter ~ https://twitter.com/moosader Facebook ~ https://www.facebook.com/Moosader/ Steam ~ https://steamcommunity.com/groups/Moosader GitHub ~ https://github.com/moosader Rachel is a programmer/teacher/entrepreneur in the Kansas City area. She is currently working towards going back to school for a masters in Computer Science, and in the meantime works as an adjunct instructor for some local colleges and building her startup. She is also interested in human languages and LGBTQIA+ issues. Moosader is a startup in Kansas City dedicated to building indie, alt, and edutainment games, as well as teaching programming & gamedev! http://www.moosader.com/
Views: 518 Rachel Singh
C++ Coding Style
 
06:14
Google C++ Style Guide: https://google.github.io/styleguide/cppguide.html
Views: 723 Bayan Mokhtar
C++ Style Guide - Naming & Variables
 
02:34
This c++ style guide series will make you familiar with proper styling of code. As per google style guide. This particular video is about naming and variables.
Views: 1908 Pro Coding
PSR2 - PHP Standard and Best Practice Part 14
 
10:29
PSR2 - PHP Standard and Best Practice Part 14 Download the Data File here http://corneey.com/wmCSLN
Views: 1176 HMA Tuts
Using XSLT to Transform Your XML
 
18:19
This is a short presentation introducing XSLT and showing how it can be used to transform the data in an XML file into a different format including web pages. This is part of my online course, Web Services offered by Computer Careers at South Central College in North Mankato, MN 56003 USA. http://cc.southcentral.edu Created by Peter K. Johnson - Web Explorations http://WebExplorations.com
Views: 200196 Peter WebExplorations
XML Namespace with Example in Hindi | How to Resolve Element Name Conflict
 
09:01
XML Namespace with Example in Hindi | How to Resolve Element Name Conflict Like Us on Facebook - https://goo.gl/DdiLta XML Classes in Hindi XML Tutorial for Beginners XML Study Notes Web Engineering Notes Web Technology Notes
CodeRush Classic - Optimize Namespace References
 
00:11
http://habrahabr.ru/company/devexpress/blog/211805/
Views: 316 Dennis Garavsky
Coding Synthesizer MIDI Mapping (Rework: Change Namespace/Folders of Many C# Projects)
 
09:43
Replacing namespaces and C# assembly/project/.csproj names like JJ.Framework.Presentation.VectorGraphics with for instance JJ.Framework.VectorGraphics. I was fed up with seeing that redundant word 'Presentation' in the overly long namespaces. - In Visual Studio rename projects (.csproj files), including project properties and assembly info. - Use Resharper to automatically rename namespaces of a whole project at a time, including all references to them. (You would need to have all your projects in a single solution for that, which I do.) - Find and replace some left behind occurrences of the old namespaces. - Removed the .vs folder. (With temporary files, that may now be corrupted. Who knows? Something's up. Sometimes deleting it helps.) - Remove all existing bins (to get rid of dll's with the old name, which can cause bugs). - Rename folders in Source Control Explorer. (Only in case of 'classic' TFS source control) - Remove left behind folders on file system. - Edit solution (.sln) files in Notepad++ to change the folder references and (in case of 'classic' TFS source control) remove (now incorrect) source control bindings. - Check whether solutions will load and make corrections in .sln files in Notepad++ in case you made a mistake. - Try to build - Correct the inexplicably corrupted project references. - Restore solutions' source control bindings. (Only in case of 'classic' TFS source control)
Views: 47 Dev JJ
Why Using Namespace Std Is Bad To Use?
 
02:53
++++++++++++++++++++++++++++++++++ RECOMMENDED BOOKS TO STUDY C++ ++++++++++++++++++++++++++++++++++ BEGINNERS BOOKS FOR C++ (No previous programming experience required): ====================================================================== (1) Book : Object-Oriented Programming with C++ 6th OR 7th Edition Author: E Balagurusamy (Famous Indian Auther) Buy : 6th Edition : http://amzn.to/2fTvaHF : 7th Edition : http://amzn.to/2fU2T3M NOTE: if you are Indian and looking for first book, then this is the one (most college prefer this book). (2) Book : The Complete Reference, 4th Edition Author: Herbert Schildt Buy : http://amzn.to/2kyq3lg BEGINNERS BOOKS FOR C++ (REQUIRES a little previous programming knowledge): =========================================================================== (3) Book : C++ Primer Author: Stanley Lippman, Josée Lajoie, and Barbara E. Moo Buy : http://amzn.to/2wFuSea Full Description: http://accu.org/index.php?module=bookreviews&func=search&rid=1848 (4) Book : Accelerated C++ Author: Andrew Koenig and Barbara Moo Buy : http://amzn.to/2g2TKtw Full Description: http://accu.org/index.php?module=bookreviews&func=search&rid=1185 ADVANCE BOOKS ON C++: ====================== (5) Book : Modern C++ Design Author: Andrei Alexandrescu Buy : http://amzn.to/2g0MgHl Full Description: http://accu.org/index.php?module=bookreviews&func=search&rid=979 (6) Book : C++ Concurrency In Action Author: Anthony Williams Buy : http://amzn.to/2yyjWDP Full Description: https://accu.org/index.php?module=bookreviews&func=search&rid=1850 (7) Book : C++ Templates: The Complete Guide Author: David Vandevoorde and Nicolai M. Josuttis Buy : http://amzn.to/2g1LUjY Full Description: http://accu.org/index.php?module=bookreviews&func=search&rid=506 MOST RECOMMENDED BOOKS FOR EXPERIENCED C++ DEVELOPERS (more about C++ quirk): ============================================================================= (8) Book : Effective C++ Author: Scott Meyers Buy : http://amzn.to/2g1VTpj Full Description : http://accu.org/index.php?module=bookreviews&func=search&rid=700 (9) Book : Effective Modern C++ Author: Scott Meyers Buy : http://amzn.to/2g2ls9Q (10) Book : Effective STL Author: Scott Meyers Buy : http://amzn.to/2wFdrKX Full Description: http://accu.org/index.php?module=bookreviews&func=search&rid=67 (11) Book : More Effective C++ Author: Scott Meyers Buy : http://amzn.to/2g0R9QH In this video we will learn how in what cases using namespace std could be a bad practice. If any doubt or want to clarify something go ahead and ask in comment section. #CppNuts #C++InterviewQuestionsAndAnswers #MasterInC++ #HowToMasterC++Programming #HowToCrackC++Interview #CrackC++Interview #LearnC++Programming
Views: 6509 CppNuts
C++ Programming Tutorial 76 - Intro To Namespaces
 
05:04
Check out Embarcadero: http://www.calebcurry.com/RAD Today we are learning about namespaces! Check it out! Read the blog: http://calebcurry.com/java-blogs Instagram: http://instagram.com/CalebCurry Twitter: http://twitter.com/calebCurry Facebook: http://bit.ly/CalebCurryFacebook More content: http://CalebCurry.com Support me! http://www.patreon.com/calebcurry ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ Subscribe to my newsletter: http://eepurl.com/-8qtH Donate!: http://bit.ly/DonateCTVM2. Artist: ARTISS Title: Tropical Summer http://www.hooksounds.com
Views: 91 Caleb Curry
Changing web standards - HTTP 203
 
58:50
Something a bit different for HTTP 203: Jake & Surma make a change to a web standard. Includes how to read specs, and how to write web platform tests. 01:37 There's a problem with IndexedDB. 07:07 How do we start adding a feature to the web? 08:24 How to find the right spec. 10:15 The structure of a web spec. 13:26 Proposing a new feature. 16:29 THE WORK BEGINS. 16:55 Test-driven standards development. 37:54 Changing the spec. 55:07 Revisiting the tests. 58:15 Opening PRs. Links: Jake's IDB library https://www.npmjs.com/package/idb The IndexedDB spec https://w3c.github.io/IndexedDB/ The spec issue https://github.com/w3c/IndexedDB/issues/255 Web Platform Tests https://github.com/web-platform-tests/wpt The IDB tests (which were expanded a little after recording) https://github.com/web-platform-tests/wpt/pull/15820/files The spec change PR https://github.com/w3c/IndexedDB/pull/257/files
John Ousterhout: "A Philosophy of Software Design" | Talks at Google
 
01:01:40
John Ousterhout, Professor of Computer Science at Stanford University, discusses complex techniques on how to become a more confident coder. John is excited to announce that he just published the first edition of a new book on software design, based on material from a software design class he has been teaching at Stanford for the last several years. Prior to joining Stanford, John spent 14 years in industry where he founded two companies, preceded by another 14 years as a professor at Berkeley. Over the course of his career, Professor Ousterhout has built a number of influential systems (Sprite OS, Tcl.Tk, log structured file systems, Raft, RAMcloud, etc) and has taught several courses on software design. In this talk, he synthesizes these experiences into an insightful and provocative discussion on how to (and how not to) design software. Get the book: https://goo.gl/ywYJ3i
Views: 30691 Talks at Google
CppCon 2018:H. Wright “Large-Scale Changes at Google: Lessons Learned From 5 Yrs of Mass Migrations”
 
01:00:16
http://CppCon.org Hyrum Wright “Large-Scale Changes at Google: Lessons Learned From Five Years of Mass Migrations” — Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2018 — Google has one of the largest single C++ codebases on the planet, yet is able to continually update both core libraries and the code which uses them. In this talk, I'll share many of the lessons we've learned across more than five years of doing these kinds of migrations, including: * Why should you migrate in the first place? * How hard can it really be? * What happens when a change can't be done atomically? I'll also talk about the myriad ways that such a process can go wrong, using various migrations we've done internal to Google to illustrate. In doing so, I'll also point out how you can structure your infrastructure and tooling to enable a successful large-scale change process within your organization. — Hyrum Wright, Google Software Engineer Hyrum Wright hates C++ less than the rest of the programming languages he's worked with, and works on large-scale change infrastructure at Google. He writes programs to rewrite other programs, and will eventually put himself out of a job. In a former life, he was an author of Apache Subversion, and still retains membership in the Apache Software Foundation. Hyrum enjoys cycling, but didn't bring a bike to Seattle. — Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
Views: 8375 CppCon
Learn React & Material UI - #11 Styling with JSS
 
12:21
Hey guys, in this video we'll unpack styling in JSS which, as a reminder, is a popular CSS-in-JS library. Although inline styles in React are superior to external stylesheets in that they don't require a toolchain dependency (e.g. Webpack loaders) and retain a scoped namespace, they come at the cost of decreased performance, as well as advanced CSS features (media queries, pseudo selectors, etc.). CSS-in-JSS addresses the problems inherent in both global CSS and inline styles. JSS, in particular, stands out among others (CSS modules, Aphrodite, Fela, etc.) with its clean & consistent API, low bundle size, SSR support, plugin extensions, and easy debugging. For detailed info I suggest you visit the official site http://cssinjs.org and http://cssinjs.org/react-jss Technically, MUI allows for any third-party styling solution other than JSS, especially if your project is already boxed in an alternative setup; in fact, they describe how you can go about integrating e.g. Styled Components in the Interoperability secion https://material-ui-next.com/guides/interoperability/ However, JSS is already built into MUI, as it forks react-jss internally, so why not give it a try? Chances are, you'll love it! And plus, with CSS-in-JSS, not only do you have full power of CSS, but you also get things like autoprefixing for free. Besides, dynamic styling (at runtime) and nested theming with overwrites will feel like a breeze. We'll take a closer look at themes in the very next episode, but for now, be sure to experiment with withStyles() helper from material-ui. Note that withStyles HOC can also be used as a decorator @ (though it's not supported in create-react-app out of the box, so you'll have to eject or fork https://www.youtube.com/watch?v=I22TW-33dDE) Tabs cannot be centered AND scollable simultaneously https://github.com/mui-org/material-ui/issues/10235 A simple workaround is to toggle the props on the fly based on screen width (available with withWidth HOC; more on that in the vid!) For cross-browser CSS normalizations à la normalize.css, look no further than CssBaseline https://material-ui-next.com/style/css-baseline/ See you next time!
Views: 13116 Code Realm
Calling asp net web services using jquery ajax
 
15:44
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/06/calling-aspnet-web-services-using.html In this video we will discuss how to call asp.net webservice using jQuery AJAX. We want to retrieve data from the following database table tblEmployee using asp.net web service and jQuery AJAX Step 1 : Create SQL Server table and insert employee data Step 2 : Create a stored procedure to retrieve employee data by ID Step 3 : Create new asp.net web application project. Name it Demo. Step 4 : Include a connection string in the web.config file to your database. Step 5 : Add a class file to the project. Name it Employee.cs. Copy and paste the following code. namespace Demo { public class Employee { public int ID { get; set; } public string Name { get; set; } public string Gender { get; set; } public int Salary { get; set; } } } Step 6 : Add a new WebService (ASMX). Name it EmployeeService.asmx. Copy and paste the following code. using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Web.Services; namespace Demo { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] [System.Web.Script.Services.ScriptService] public class EmployeeService : System.Web.Services.WebService { [WebMethod] public Employee GetEmployeeById(int employeeId) { Employee employee = new Employee(); string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; using (SqlConnection con = new SqlConnection(cs)) { SqlCommand cmd = new SqlCommand("spGetEmployeeById", con); cmd.CommandType = CommandType.StoredProcedure; SqlParameter parameter = new SqlParameter(); parameter.ParameterName = "@Id"; parameter.Value = employeeId; cmd.Parameters.Add(parameter); con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); while(rdr.Read()) { employee.ID = Convert.ToInt32(rdr["Id"]); employee.Name = rdr["Name"].ToString(); employee.Gender = rdr["Gender"].ToString(); employee.Salary = Convert.ToInt32(rdr["Salary"]); } } return employee; } } } Step 6 : Add an HTML page to the ASP.NET project. Copy and paste the following HTML and jQuery code <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#btnGetEmployee').click(function () { var empId = $('#txtId').val(); $.ajax({ url: 'EmployeeService.asmx/GetEmployeeById', data: { employeeId: empId }, method: 'post', dataType: 'xml', success: function (data) { var jQueryXml = $(data); $('#txtName').val(jQueryXml.find('Name').text()); $('#txtGender').val(jQueryXml.find('Gender').text()); $('#txtSalary').val(jQueryXml.find('Salary').text()); }, error: function (err) { alert(err); } }); }); }); </script> </head> <body style="font-family:Arial"> ID : <input id="txtId" type="text" style="width:100px" /> <input type="button" id="btnGetEmployee" value="Get Employee" /> <br /><br /> <table border="1" style="border-collapse:collapse"> <tr> <td>Name</td> <td><input id="txtName" type="text" /></td> </tr> <tr> <td>Gender</td> <td><input id="txtGender" type="text" /></td> </tr> <tr> <td>Salary</td> <td><input id="txtSalary" type="text" /></td> </tr> </table> </body> </html> In our next video we will discuss how to call an asp.net web service that returns JSON data using jQuery AJAX.
Views: 64609 kudvenkat
Ob1 - Mason Bially: Lisp Namespaces and Modules
 
03:17:32
Adding namespaces and modules to a lisp for use in our engine. If you come across dead air it's because I am thinking, if no one is watching I won't be thinking outloud. I don't play music, so you can play your own (and also copyright).
Views: 67 Ob1MasonBially
CodeRush Classic - Code Analysis & Code Style
 
00:33
http://habrahabr.ru/company/devexpress/blog/211805/
Views: 419 Dennis Garavsky
Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar
 
16:33
Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Part III Nested Rules,Demo Refactoring Rules,Other Features,Demo Using namespaces and scoping,Summar Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup language. While most often used to style web pages and user interfaces written in HTML and XHTML, the language can be applied to any kind of XML document, including plain XML, SVG and XUL. CSS is a cornerstone specification of the web and almost all web pages use CSS style sheets to describe their presentation. CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts.[1] This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design). CSS can also allow the same markup page to be presented in different styles for different rendering methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen reader) and on Braille-based, tactile devices. It can also be used to allow the web page to display differently depending on the screen size or device on which it is being viewed. While the author of a document typically links that document to a CSS file, readers can use a different style sheet, perhaps one on their own computer, to override the one the author has specified. However if the author or the reader did not link the document to a specific style sheet the default style of the browser will be applied. CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable. The CSS specifications are maintained by the World Wide Web Consortium (W3C). Internet media type (MIME type) text/css is registered for use with CSS by RFC 2318 (March 1998), and they also operate a free CSS validation service.[2]
Views: 31 averosi
jQuery accordion in asp net
 
16:02
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/06/jquery-accordion-in-aspnet.html In this video we will discuss how to implement accordian panel in an ASP.NET web forms application using jQuery. What is accordian Accordian is great for displaying collapsible content panels for presenting information in a limited amount of space. 2 simple steps to produce an accordin using jQuery Step 1 : The HTML of the accordion container needs pairs of headers and content panels as shown below <div id="accordian" style="width: 400px"> <h3>Header 1</h3> <div>Content Panel 1</div> <h3>Header 2</h3> <div>Content Panel 2</div> <h3>Header 3</h3> <div>Content Panel 3</div> </div> Step 2 : Invoke accordion() function on the container div $('#accordian').accordion(); Retrieve data from a database table and present it using jQuery accordian in an asp.net webforms application WebService (ASMX) Code namespace Demo { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] [System.Web.Script.Services.ScriptService] public class CountryService : System.Web.Services.WebService { [WebMethod] public List<Country> GetCountries() { List<Country> listCountries = new List<Country>(); string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; using (SqlConnection con = new SqlConnection(cs)) { SqlCommand cmd = new SqlCommand("spGetCountries", con); cmd.CommandType = CommandType.StoredProcedure; con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { Country country = new Country(); country.ID = Convert.ToInt32(rdr["ID"]); country.Name = rdr["Name"].ToString(); country.CountryDescription = rdr["CountryDescription"].ToString(); listCountries.Add(country); } } return listCountries; } } } WebForm jQuery code. $(document).ready(function () { $.ajax({ url: 'CountryService.asmx/GetCountries', method: 'post', contentType: 'application/json;charset=utf-8', dataType: 'json', success: function (data) { var htmlString = ''; $(data.d).each(function (index, country) { htmlString += '<h3>' + country.Name + '</h3><div>' + country.CountryDescription + '</div>'; }); $('#accordion').html(htmlString).accordion({ collapsible: true, active: 2, }); } }); }); collapsible - By default, atleast one section need to be active. If you want to collapse all the sections, including the one that is active, set this option to true. active - This option can be set to a boolean value or integer. Setting active to false will collapse all panels. This requires the collapsible option to be true. An Integer value will make the corresponding panel active. Panels use zero-based index. For the complete list of options, methods and events of accordian widget http://api.jqueryui.com/accordion
Views: 22163 kudvenkat
Unity VS Code FIX, The Namespace Already contains a definition for
 
03:13
two possible solutions for this issue.
Views: 60 Atitude Games
Using Google Closure for Lean and Mean Javascript Projects - New Game 2011
 
41:42
Richard Anaya - New Game 2011 Creating high quality optimized code in JavaScript has many challenges. Why not have a powerful tool by your side? This session will teach you about Google Closure: a powerful set of tools from Google to help make large javascript projects ( like game engines! ) easy to manage and optimize. We'll be talking about code optimization, localization, templates, and documentation.
Views: 6595 NewGameConference
The Design of C++ , lecture by Bjarne Stroustrup
 
01:15:52
The Design of C++, a lecture by Bjarne Stroustrup. This video has been recorded in March, 1994. From University Video Communications' catalog: "Bjarne Stroustrup describes the origins, aims and design rules for C++, and then presents key language features and the programming techniques they support. Finally, he discusses current uses of C++, the standardization effort, and likely future uses. Throughout, he emphasizes why C++ looks the way it does. Stroustrup explains the language features which most directly support data abstraction, object-oriented programming, and the design and use of large systems: classes, abstract classes, templates, class hierarchies, run-time type information, namespaces and templates." Lot number: X6636.2013 Catalog number: 102624733
SOAP Web Services 12 - Schema Types and Binding Styles
 
17:39
In this tutorial, we'll understand how types are handled in the WSDL. We'll also explore the two styles we can choose from for our WSDL - Document style and RPC style.
Views: 161196 Java Brains
Part 5 of C# Tutorial (Naming Conventions) using Visual Studio
 
08:43
In C# programming, a naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables, types, functions, and other entities in source code and documentation. Slides used in this video are available here for free download : https://drive.google.com/file/d/0B8LK-ytYUJ-VUWxtNnZkRFFRUEE/view?usp=sharing Exercise Files used in this video are available here for free download : https://drive.google.com/file/d/0B8LK-ytYUJ-VRVYwYVcxd3M4Y0E/view?usp=sharing C# Tutorial for beginners, this tutorial series caters to the Microsoft .net Developers who want to enhance their programming skills on C#, .net, Asp.net, MVC, SQL Server and other Microsoft Technologies using Visual Studio for Guru Writes for new videos and updates follow me on : Facebook : https://www.facebook.com/GuruWrites Twitter : https://twitter.com/GuruWritesTweet
Views: 4440 GuruWrites
PSR1 - PHP Standard and Best Practices Part 13
 
04:50
PSR1 - PHP Standard and Best Practices Part 13 Download the Data File here http://corneey.com/wmCABO
Views: 1206 HMA Tuts
Autocomplete textbox using jquery in asp net
 
17:30
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/06/autocomplete-textbox-using-jquery-in.html In this video we will discuss, how to implement autocomplete textbox using jquery and asp.net. The suggestions should come from the database table. Stored procedure to retrieve employee name suggestions Create proc spGetStudentNames @term nvarchar(50) as Begin Select Name from tblStudents where Name like @term + '%' End StudentHandler.ashx code using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Web; using System.Web.Script.Serialization; namespace Demo { public class StudentHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { string term = context.Request["term"] ?? ""; List<string> listStudentNames = new List<string>(); string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; using (SqlConnection con = new SqlConnection(cs)) { SqlCommand cmd = new SqlCommand("spGetStudentNames", con); cmd.CommandType = CommandType.StoredProcedure; SqlParameter parameter = new SqlParameter() { ParameterName = "@term", Value = term }; cmd.Parameters.Add(parameter); con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { listStudentNames.Add(rdr["Name"].ToString()); } } JavaScriptSerializer js = new JavaScriptSerializer(); context.Response.Write(js.Serialize(listStudentNames)); } public bool IsReusable { get { return false; } } } } Download jQuery UI from jqueryui.com. Copy and paste the following files in your project. a) jquery-ui.js b) jquery-ui.css c) images Add a WebForm to the ASP.NET project. Copy and paste the following HTML and jQuery code. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Demo.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="jquery-1.11.2.js"></script> <script src="jquery-ui.js"></script> <link href="jquery-ui.css" rel="stylesheet" /> <script type="text/javascript"> $(document).ready(function () { $('#txtName').autocomplete({ source: 'StudentHandler.ashx' }); }); </script> </head> <body style="font-family: Arial"> <form id="form1" runat="server"> Student Name : <asp:TextBox ID="txtName" runat="server"> </asp:TextBox> </form> </body> </html>
Views: 60954 kudvenkat
ZIM Bubbling: 38. Optional Namespace - #HTML #Canvas #JavaScript, #CreateJS, #ZIMjs
 
12:15
ZIM Bubbling: 38. Optional Namespace - for ZIM at http://zimjs.com/ The latest updates for the ZIMjs Framework - Complete Canvas Coding and Creation. The zim namespace is now optional and the templates default to not required. So we used to have to do: var circle = new zim.Circle(); and now we can do var circle = new Circle(); This can be controlled by a zns variable at the top of the template. Namespaces help avoid naming mix-ups between libraries. Zim is usually used on its own but if you are running into name problems, you can easily turn the zim namespace on. And if not - it is less typing! Yay! More video tutorials for ZIM can be found in the http://zimjs.com/code/learn section under Tutorials including the ZIM Capture and What IZ? series.
Views: 49 ZIM LEARN
Understanding Namespaces and Adding References to Assemblies - 17
 
20:50
We've avoided any talk about Namespaces; however, they serve an important role in the .NET Framework Class Library as well as in our custom class libraries. In this lesson we explain how Namespaces allow us to disambiguate classes that may share the same name. Additionally, we explain how the .NET Framework Class Library is so large that including all its classes in every application you write is a waste of system resources. To mitigate that issue, the FCL is split into multiple assemblies (.dll files) that your project must include (or rather, reference) in order for them to be utilized in your applications. We discuss how certain project templates include references to the typical assemblies required by a given type of application (such as a web application), and we demonstrate this by referencing a custom assembly of my own design.
C++Now 2018: Titus Winters “Modern C++ API Design: From Rvalue-References to Type Design”
 
01:31:55
http://cppnow.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: http://cppnow.org/history/2018/talks/ — The old rules for C++API design are due for an update - we made ad hoc changes to design principles in the standard library, but haven’t really written down the new ideas. Parameter passing and API design for free functions/member functions is due for a general update, particularly as a result of rvalue-references and reference qualification. How do we express “maybe move” APIs? When do we want reference-qualified overload sets? What does an rvalue-reference qualified non-overloaded method mean? How do we express call once semantics? For types, our consistency in producing Regular types has weakened in recent C++ releases with types like unique_ptr (move-only) and string_view (reference semantics). These classes of design that have shown themselves to be valuable, but certainly surprising at first. As we should not continue to extend the set of type designs arbitrarily, this is a good time to look at type design in the modern C++ era and narrow down the set of designs that are generally favored. This talk will focus on modern C++ design from small (choice of passing by value or reference) to large (Regular types, reference types, move-only types, etc). We will also introduce a taxonomy of type properties as a means to discuss known-good type design families. — Titus Winters Google C++ Codebase Cultivator Titus Winters has spent the past 6 years working on Google's core C++ libraries. He's particularly interested in issues of large scale software engineer and codebase maintenance: how do we keep a codebase of over 100M lines of code consistent and flexible for the next decade? Along the way he has helped Google teams pioneer techniques to perform automated code transformations on a massive scale, and helps maintain the Google C++ Style Guide. — Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
Views: 9866 BoostCon
How to call wcf service using jquery
 
12:52
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/06/how-to-call-wcf-service-using-jquery.html In this video we will discuss, how to call wcf service using jquery ajax Step 1 : Create SQL Server table and insert employee data Create table tblEmployee ( Id int primary key identity, Name nvarchar(50), Gender nvarchar(10), Salary int ) GO Insert into tblEmployee values ('Mark', 'Male', 50000) Insert into tblEmployee values ('Sara', 'Female', 60000) Insert into tblEmployee values ('John', 'Male', 45000) Insert into tblEmployee values ('Pam', 'Female', 45000) GO Step 2 : Create a stored procedure to retrieve employee data by ID Create procedure spGetEmployeeById @Id int as Begin Select ID, Name, Gender, Salary from tblEmployee where ID = @Id End Step 3 : Create new asp.net web application project. Name it Demo. Step 4 : Include a connection string in the web.config file to your database. <add name="DBCS" connectionString="server=.;database=SampleDB;integrated security=SSPI" /> Step 5 : Add a class file to the project. Name it Employee.cs. Copy and paste the following code. namespace Demo { public class Employee { public int ID { get; set; } public string Name { get; set; } public string Gender { get; set; } public int Salary { get; set; } } } Step 6 : Add a new WCF Service (Ajax-enabled). Name it EmployeeService.svc. Copy and paste the following code. using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.ServiceModel; using System.ServiceModel.Activation; namespace Demo { [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class EmployeeService { [OperationContract] public Employee GetEmployeeById(int employeeId) { Employee employee = new Employee(); string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; using (SqlConnection con = new SqlConnection(cs)) { SqlCommand cmd = new SqlCommand("spGetEmployeeById", con); cmd.CommandType = CommandType.StoredProcedure; SqlParameter parameter = new SqlParameter(); parameter.ParameterName = "@Id"; parameter.Value = employeeId; cmd.Parameters.Add(parameter); con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { employee.ID = Convert.ToInt32(rdr["Id"]); employee.Name = rdr["Name"].ToString(); employee.Gender = rdr["Gender"].ToString(); employee.Salary = Convert.ToInt32(rdr["Salary"]); } } return employee; } } } Step 7 : Add an HTML page to the ASP.NET project. Copy and paste the following HTML and jQuery code <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#btnGetEmployee').click(function () { var empId = $('#txtId').val(); $.ajax({ url: 'EmployeeService.svc/GetEmployeeById', method: 'post', contentType: "application/json;charset=utf-8", data: JSON.stringify({ employeeId: empId }), dataType: 'json', success: function (data) { $('#txtName').val(data.d.Name); $('#txtGender').val(data.d.Gender); $('#txtSalary').val(data.d.Salary); }, error: function (err) { alert(err); } }); }); }); </script> </head> <body style="font-family:Arial"> ID : <input id="txtId" type="text" style="width: 86px" /> <input type="button" id="btnGetEmployee" value="Get Employee" /> <br /><br /> <table border="1" style="border-collapse: collapse"> <tr> <td>Name</td> <td><input id="txtName" type="text" /></td> </tr> <tr> <td>Gender</td> <td><input id="txtGender" type="text" /></td> </tr> <tr> <td>Salary</td> <td><input id="txtSalary" type="text" /></td> </tr> </table> </body> </html>
Views: 35963 kudvenkat
High-Quality Code - Part I (2013)
 
01:52:08
High-Quality Programming Code Construction - Part I C# Fundamentals course: http://csharpfundamentals.telerik.com Links to the materials can be found here: http://academy.telerik.com/student-courses/archive/csharp-programming-fundamentals/resources Speaker: Hristo Radkov Creation Date: July 2013. Telerik Software Academy: http://academy.telerik.com This video explains the basic concepts of high-quality programming code construction (this is Part I). Topics: - What is High-Quality Programming Code? - Code Conventions - Naming Identifiers in the Source Code: Classes, Interfaces, Structures, Namespaces, Methods, Fields, Constants, etc. - Formatting the Code: Formatting Methods, Formatting Classes, Formatting Loops and Conditional Statements, Using Empty Lines, Breaking Long Statements - High-Quality Methods: Method Intension, Method Behavior, Strong Cohesion and Loose Coupling, Method Length, Method Parameters - Efficiently Using Variables: Declaration, Initialization, Scope, Span and Lifetime - Efficiently Using Constants - Efficiently Using Conditional Statements - Defensive Programming - Documentation and Self-Documenting Code - Refactoring: Improving the Existing Code
Views: 5863 Telerik Academy
Sniff Out Unclean Code with PHP CodeSniffer
 
09:53
Want more? Explore the library at https://www.codecourse.com/lessons Official site https://www.codecourse.com Twitter https://twitter.com/teamcodecourse
Views: 11392 Codecourse
Tech Talk: Linus Torvalds on git
 
01:10:15
Linus Torvalds visits Google to share his thoughts on git, the source control management system he created two years ago.
Views: 2122571 Google
4.5| Prefix and Namespace in XML - Become a Web Developer From Scratch
 
09:03
Become a Web Developer from Scratch - Complete Course ===================================================== About the Course: ============== All the programming languages you need to become a top skilled Web Developer in one unique amazing course! COURSE DESCRIPTION: ================== Learn Everything You Need to Know About Web Development Even If You’ve Never Programmed Before! ,The Basics:, HTML, CSS and Javascript, ,BackEnd Development:, PHP, MySQL, XML and jSON, ,FrontEnd Development:, AJAX, jQuery, HTML5 and CSS3, ,Become a Web Developer from Scratch, In more than 45 hours of content, this comprehensive programming course will teach you all you need to know about becoming a web developer. “Web Development” is the term used to define all the work involved in the creation of a web site or web application. Web development can range from creating a simple and static website, to the most complex web-based applications such as Facebook, Ebay, or Google Maps. This course is regularly updated and along with video tutorials it also contains exercises, manuals and resources to help you succeed. Anyone looking to get into web development should sign up today–no prior experience necessary. Contents and Overview: ===================== The course begins by teaching you how the internet works with an intro into HTML, XHTML, and CSS. You’ll learn how to create text, lists, links, metadata, images, tables, cell-spacing and more. Section two moves on to Javascript where you’ll learn how to use external scripts, comments, variables, loops, arrays and alerts as well as other Javascript functionalities. Section three covers PHP and MySQL: strings, numbers, constants, arrays, operators, sessions, pagination, databases, cookies, and more (as you can see, the course is COMPREHENSIVE–for full details check the listing below). Sections four and five cover XML and jSON before moving on to AJAX. Section seven covers jQuery with effects, events, callback functions, dropdown menus, autocomplete, and dialog boxes. Section eight moves on to HTML5 and CSS3: articles, elements, hierarchies, pseudo classes and non-pseudo classes, animations, transformations and more. This course will give you a foundational knowledge of web development–there’s even a certificate of completion at the end. “Become a Web Developer from Scratch” will give you a new perspective on how the internet works. After you’ve completed the course, you will have the breadth of knowledge to be able to create your own websites and apps with the latest technology. What am I going to get from this course? ======================================== Over 233 lectures and 37 hours of content!, Support team ready to answer your questions in less than 24h, Course updated regularly with the latest features and updates in the world of Web Development. Massive Q&A with awesome community! 8 Chapters covering the most popular programming languages in Web Development nowadays. HTML, XHTML, CSS, Javascript, PHP, MySQL, XML, jSON, AJAX, jQuery, HTML5 and CSS3. Exercises, manuals and reference guides in each chapter. Final Projects for each Chapter like creating a Basic Static Website, build a CRUD SYSTEM testsite with PHP and MySQL, build a fully functional Register/Login system with PHP, MySQL, AJAX and jQuery and more! Each Final Project will have the source code available for download. Exclusive Access to onclick Academy as a Beta Tester Certificate of Completion, What is the target audience? ============================ Programmers or non-programmers. Aspiring Developers. Entrepeneurs. No age limit. Students.
Views: 9 TO Courses
Deprecated features of PHP7
 
11:15
[DEPRICTAED] Style constructors PHP 4 style constructors (methods that have the same name as the class they are defined in) are deprecated. PHP 7 will return an E_DEPRECATED please only use the __construct() method. [DEPRICATED] Static calls to non-static methods Static calls to methods that are not declared static are deprecated, and may be removed in the future. [DEPRICATED] Password hash The salt option for the password_hash() function has been deprecated to prevent developers from generating their own (usually insecure) salts. The function itself generates a cryptographically secure salt when no salt is provided by the developer - therefore custom salt generation should not be needed. [DEPRICATED] Capture session meta data The capture_session_meta SSL context option has been deprecated. SSL metadata is now available through thestream_get_meta_data() function.
Views: 8200 Avelx
html and css part 9 Doctype, Namespace, Metadata and Deprecated Tags
 
15:18
Doctype, Namespace, Metadata and Deprecated Tags description importance and benifits
Views: 159 TECH Studio
Architecting Mobile Web Apps (Google I/O'19)
 
35:10
Building web apps that work on mobile can be hard work. But it doesn't have to be. In this session, learn how to build a web app from scratch that has everything a modern user expects: sign-in, work across devices, local and cloud persistence, notifications, and it will work offline and be blazing fast because it runs on Firebase. Watch more #io19 here: Firebase at Google I/O 2019 Playlist → https://goo.gle/2GSFVqN Google I/O 2019 All Sessions Playlist → https://goo.gle/io19allsessions Learn more on the I/O Website → https://google.com/io Subscribe to the Firebase Channel → https://goo.gle/Firebase Get started at → https://firebase.google.com/ Speaker: Michael Bleigh TBA278
Views: 4590 Firebase
How to Add & Remove Multi Style & Multiple Rich Text in Excel Comment - EPPlus C# English PART-11(C)
 
10:30
EPPLUS Library - Beginners Guide Part-11(C) ------------------------------------------------------------------------- How to Add & Remove Multi Style & Multiple Rich Text in Excel Comment using EPPlus library? ------------------------------------------------------------------------- Hindi Video link : https://youtu.be/Osdy7aDXFVA ------------------------------------------------------------------------- Blog : https://everyday-be-coding.blogspot.in/p/epplus-library-part-11.html ----------------------------------------------------------------------- Twitter : https://twitter.com/EverydayCoding ----------------------------------------------------------------------- Facebook: https://www.facebook.com/EverydayBeCoding --------------------------------------------------------------------------------- Source code download link : https://goo.gl/fSgec9 --------------------------------------------------------------------------------- 1) How to Add Rich Text (Single or Multiple) in Excel Comment using EPPlus? First we need to attach one more namespace "OfficeOpenXml.Style". ExcelComment class object accept one or more rich Text. We can add multiple rich text by using RichText property of ExcelComment class & this RichText property is the type of ExcelRichTextCollection class. Indirectly this collection class is involve by the add() method of this collection class. We can assign each rich text one by one & starting from zero based index positions. Please see this below code. using (ExcelRange Rng = wsSheet1.Cells["B5"]) { Rng.Value = "Add Multiple Rich Text in Excel Comment by Index Position."; Rng.Style.Font.Color.SetColor(Color.Red); ExcelComment cmd = Rng.AddComment("Rich Text [Index 0]\n", "Rajdip"); //We can Add multiple Rich Text in ExcelComment object cmd.RichText.Add("Rich Text [Index 1]\n"); cmd.RichText.Add("Rich Text [Index 2]\n"); cmd.RichText.Add("Rich Text [Index 3]"); cmd.Visible = true; } 2) How to Add Multi Style Rich Text in Excel Comment using EPPlus? Please see this below code. using (ExcelRange Rng = wsSheet1.Cells["B10"]) { Rng.Value = "Add Multi Style Rich Text in Excel Comment."; Rng.Style.Font.Color.SetColor(Color.Red); ExcelComment cmd = Rng.AddComment("Everyday Be Coding ", "Rajdip"); cmd.Font.Bold = true; cmd.Font.UnderLine = true; cmd.Font.Italic = true; cmd.Font.Color = Color.Red; cmd.Font.FontName = "Arial Rounded MT Bold"; //RichText at Position 1 ExcelRichText RichText1 = cmd.RichText.Add("is my "); RichText1.Bold = true; RichText1.Italic = false; RichText1.Color = Color.Green; RichText1.FontName = "Arial Narrow"; //RichText at Position 2 ExcelRichText RichText2 = cmd.RichText.Add("YouTube "); RichText2.Bold = true; RichText2.Italic = false; RichText2.Color = Color.Blue; RichText2.FontName = "Arial"; //RichText at Position 3 ExcelRichText RichText3 = cmd.RichText.Add("Channel."); RichText3.Bold = true; RichText3.Italic = false; RichText3.Color = Color.Brown; RichText3.FontName = "Arial Black"; cmd.Visible = true; } 3) How Remove Rich Text in Excel Comment using EPPlus? We can also remove ExcelRichText object using RemoveAt(int Index) method (by index position) of ExcelRichTextCollection class. In this code RichText is the property of ExcelComment class & RichText property is the type of ExcelRichTextCollection class. Please see this below code. using (ExcelRange Rng = wsSheet1.Cells["B15"]) { Rng.Value = "Remove Rich Text in Excel Comment by Index Position."; Rng.Style.Font.Color.SetColor(Color.Red); ExcelComment cmd = Rng.AddComment("Rich Text [Index 0]\n", "Rajdip"); cmd.RichText.Add("Rich Text [Index 1]\n"); cmd.RichText.Add("Rich Text [Index 2]\n"); cmd.RichText.Add("Rich Text [Index 3]"); //Remove Rich Text at Second position. cmd.RichText.RemoveAt(2); //string count = cmd.RichText.Count.ToString(); cmd.Visible = true; } Thank you for watching this video.
Views: 197 EVERYDAY BE CODING
Android themes & styles demystified - Google I/O 2016
 
36:54
Themes and styles are the bedrock of styling your Android UI, but do you know how they work? This talk will dive deeper into everything you have ever wanted to know about how styles and themes work together, what attributes really are, and how you can use them to make your styles more manageable. Watch more Android talks at I/O 2016 here: https://goo.gl/Uv3jls See all the talks from Google I/O 2016 here: https://goo.gl/olw6kV Subscribe to the Android Developers channel at http://goo.gl/GEh1ds #io16 #GoogleIO #GoogleIO2016
Views: 25160 Android Developers
Implement search web page using ASP NET and Stored Procedure
 
10:54
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/03/implement-search-web-page-using-aspnet.html Slides http://csharp-video-tutorials.blogspot.com/2017/03/implement-search-web-page-using-aspnet_30.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All SQL Server Tutorial Videos https://www.youtube.com/playlist?list=PL08903FB7ACA1C2FB All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss implementing a search web page using ASP.NET and Stored Procedure. Step 1 : Modify the "spSearchEmployees" stored procedure to include NULL as the default value for the parameters. The advantage of specifying default value for the parameters is that the ASP.NET page need not pass those parameters when calling the stored procedures if the user did not specify any values for the corresponding search fields on the Search Page. Alter Procedure spSearchEmployees @FirstName nvarchar(100) = NULL, @LastName nvarchar(100) = NULL, @Gender nvarchar(50) = NULL, @Salary int = NULL As Begin Select * from Employees where (FirstName = @FirstName OR @FirstName IS NULL) AND (LastName = @LastName OR @LastName IS NULL) AND (Gender = @Gender OR @Gender IS NULL) AND (Salary = @Salary OR @Salary IS NULL) End Go Step 2 : Create a new empty ASP.NET Web Forms application. Name it "DynamicSQLDemo". Step 3 : Add a connection string to your database in web.config. For the connection string please check my blog at the following link http://csharp-video-tutorials.blogspot.com/2017/03/implement-search-web-page-using-aspnet.html Step 4 : Add a WebForm to the project. Name it "SearchPageWithoutDynamicSQL.aspx" Step 5 : Copy and paste the HTML on my blog at the following link on the ASPX page. Notice we are using Bootstrap to style the page. If you are new to Bootstrap, please check out our Bootstrap tutorial for beginners playlist. Step 6 : Copy and paste the following code in the code-behind page. Notice we are using the stored procedure "spSearchEmployees". We are not using any dynamic SQL in this example. In our next video, we will discuss implementing the same "Search Page" using dynamic sql and understand the difference between using dynamic sql and stored procedure. using System; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace DynamicSQLDemo { public partial class SearchPageWithoutDynamicSQL : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {} protected void btnSearch_Click(object sender, EventArgs e) { string strConnection = ConfigurationManager.ConnectionStrings["connectionStr"].ConnectionString; using (SqlConnection con = new SqlConnection(strConnection)) { SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = "spSearchEmployees"; cmd.CommandType = CommandType.StoredProcedure; if (inputFirstname.Value.Trim() != "") { SqlParameter param = new SqlParameter("@FirstName", inputFirstname.Value); cmd.Parameters.Add(param); } if (inputLastname.Value.Trim() != "") { SqlParameter param = new SqlParameter("@LastName", inputLastname.Value); cmd.Parameters.Add(param); } if (inputGender.Value.Trim() != "") { SqlParameter param = new SqlParameter("@Gender", inputGender.Value); cmd.Parameters.Add(param); } if (inputSalary.Value.Trim() != "") { SqlParameter param = new SqlParameter("@Salary", inputSalary.Value); cmd.Parameters.Add(param); } con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); gvSearchResults.DataSource = rdr; gvSearchResults.DataBind(); } } } }
Views: 27998 kudvenkat
How to Apply Line/Border Style in Excel Comment using EPPlus [English]-Part 13(E)
 
06:06
EPPLUS Library - Beginners Guide Part-13(E) Suggested Videos Links: Part 8 - https://youtu.be/qe6bqQmD0Pw Part-9(A) - https://youtu.be/FI9oBBVvduI Part-10(B) - https://youtu.be/48QQgfpNHyc Part-11(C) - https://youtu.be/WjpfRq6vPhY Part-12(D) - https://youtu.be/UlgRnr0HjLc ------------------------------------------------------------------------- How to Create & Apply Line Border Color, Width & Style in an Excel Comment Using EPPlus .Net Application C# [English] - Part 13(E) ------------------------------------------------------------------------------------------------------- Hindi Video Link : https://youtu.be/CSRYZX7LODM ------------------------------------------------------------------------- Blog : https://everyday-be-coding.blogspot.in/p/epplus-library-part-13.html ----------------------------------------------------------------------- Twitter : https://twitter.com/EverydayCoding ----------------------------------------------------------------------- Facebook: https://www.facebook.com/EverydayBeCoding --------------------------------------------------------------------------------- Source code download link: https://goo.gl/EYjAsT --------------------------------------------------------------------------------- We need to attach one more namespace OfficeOpenXml.Drawing.Vml, because in this code we can see LineWidth, LineColor, LineStyle properties. These properties belong to ExcelVmlDrawingComment class & ExcelComment class is inherited from ExcelVmlDrawingComment class so, that's why the object of ExcelComment class gets those properties from his base class. Please see this below code. using (ExcelRange Rng = wsSheet1.Cells["B15"]) { ExcelComment cmd = Rng.AddComment("Comment Text", "Rajdip"); cmd.Font.Bold = true; cmd.Font.Color = Color.Blue; //Apply Line or Border Style in Excel Comment. cmd.LineWidth = 3; Color GreenHexCode = ColorTranslator.FromHtml("#008000"); cmd.LineColor = GreenHexCode; //Color.Green; cmd.LineStyle = eLineStyleVml.DashDot; cmd.Visible = true; } We can use custom color code by using ColorTranslator static class methods a) FromHtml (string htmlColor), b) FromOle (int oleColor), c) FromWin32 (int win32Color). return type of these methods are Color struct object. There is another enum eLineStyleVml is used in this above code. namespace OfficeOpenXml.Drawing.Vml { // // Summary: // Linestyle public enum eLineStyleVml { Solid = 0, Round = 1, Square = 2, Dash = 3, DashDot = 4, LongDash = 5, LongDashDot = 6, LongDashDotDot = 7 } } Here, I am using DashDot, that means 4 within enumerator list. Full Source Code: using OfficeOpenXml; using System.IO; using System.Drawing; using OfficeOpenXml.Drawing.Vml; namespace EpplusDemo { class Program { static void Main(string[] args) { //Code download from: https://everyday-be-coding.blogspot.in/p/epplus-library-part-13.html //Author: Rajdip Sarkar. //Date : 29th July 2017. //My YouTube Channel Link : https://www.youtube.com/channel/UCpGuQx5rDbWnc7i_qKDTRSQ ExcelPackage ExcelPkg = new ExcelPackage(); ExcelWorksheet wsSheet1 = ExcelPkg.Workbook.Worksheets.Add("Sheet1"); using (ExcelRange Rng = wsSheet1.Cells[2, 2, 2, 2]) { Rng.Value = "Everyday Be Coding - Excel COMMENTS Formatting using EPPlus .Net Library - Part 13(E)"; Rng.Style.Font.Size = 16; Rng.Style.Font.Bold = true; Rng.Style.Font.Italic = true; } using (ExcelRange Rng = wsSheet1.Cells["B5"]) { Rng.Style.Font.Size = 20; Rng.Value = "Excel Comment Border Style"; ExcelComment cmd = Rng.AddComment("Comment Text", "Rajdip"); cmd.Font.Bold = true; cmd.Font.Color = Color.Blue; //Apply Line or Border Style in Excel Comment. cmd.LineWidth = 3; Color GreenHexCode = ColorTranslator.FromHtml("#008000"); cmd.LineColor = GreenHexCode; //Color.Green; cmd.LineStyle = eLineStyleVml.DashDot; cmd.Visible = true; } wsSheet1.Cells[wsSheet1.Dimension.Address].AutoFitColumns(); ExcelPkg.SaveAs(new FileInfo(@"D:\FormatComments.xlsx")); } } } Now build & execute this code. The file is (FormatComments.xlsx) store on D: drive of the computer. Thank you for reading this article. Please subscribe my YouTube Channel & don't forget to like and share.
Views: 213 EVERYDAY BE CODING
asp net multiple file upload with progress bar
 
18:36
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/07/aspnet-multiple-file-upload-with.html In this video we will discuss, using jQuery progressbar with asp.net file upload control. While the files are being uploaded we want to display the jQuery progress bar. As soon as the upload is complete, we want to display complete message in the progress bar, and it should slowly fade out. UploadHandler.ashx Code using System.IO; using System.Web; namespace Demo { public class UploadHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { if (context.Request.Files.Count > 0) { HttpFileCollection selectedFiles = context.Request.Files; for (int i = 0; i < selectedFiles.Count; i++) { System.Threading.Thread.Sleep(1000); HttpPostedFile PostedFile = selectedFiles[i]; string FileName = context.Server.MapPath("~/Uploads/" + Path.GetFileName(PostedFile.FileName)); PostedFile.SaveAs(FileName); } } } public bool IsReusable { get { return false; } } } } WebForm code <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Demo.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="jquery-1.11.2.js"></script> <script src="jquery-ui.js"></script> <link href="jquery-ui.css" rel="stylesheet" /> <script type="text/javascript"> $(document).ready(function () { $("#btnUpload").click(function (event) { var files = $("#FileUpload1")[0].files; if (files.length > 0) { var formData = new FormData(); for (var i = 0; i < files.length; i++) { formData.append(files[i].name, files[i]); } var progressbarLabel = $('#progressBar-label'); var progressbarDiv = $('#progressbar'); $.ajax({ url: 'UploadHandler.ashx', method: 'post', data: formData, contentType: false, processData: false, success: function () { progressbarLabel.text('Complete'); progressbarDiv.fadeOut(2000); }, error: function (err) { alert(err.statusText); } }); progressbarLabel.text('Uploading...'); progressbarDiv.progressbar({ value: false }).fadeIn(500); } }); }); </script> </head> <body style="font-family: Arial"> <form id="form1" runat="server"> Select Files : <asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="true" /> <br /><br /> <input type="button" id="btnUpload" value="Upload Files" /> <br /><br /> <div style="width: 300px"> <div id="progressbar" style="position: relative; display: none"> <span style="position: absolute; left: 35%; top: 20%" id="progressBar-label"> Uploading... </span> </div> </div> </form> </body> </html> Please note : contentType option should be set to false to tell jQuery to not set any content type header. processData option should also be set to false, otherwise, jQuery will try to convert your FormData into a string, which will fail.
Views: 54776 kudvenkat
jQuery dynamic menu from database in asp net
 
24:37
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/07/jquery-dynamic-menu-from-database-in.html In this video we will discuss, how to build a jQuery menu using data from a database table. Menu.cs class using System.Collections.Generic; namespace Demo { public class Menu { public int Id { get; set; } public string MenuText { get; set; } public int? ParentId { get; set; } public bool Active { get; set; } public List<Menu> List { get; set; } } } MenuHandler.ashx using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.Script.Serialization; namespace Demo { public class MenuHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString; List<Menu> listMenu = new List<Menu>(); using (SqlConnection con = new SqlConnection(cs)) { SqlCommand cmd = new SqlCommand("spGetMenuData", con); cmd.CommandType = CommandType.StoredProcedure; con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { Menu menu = new Menu(); menu.Id = Convert.ToInt32(rdr["Id"]); menu.MenuText = rdr["MenuText"].ToString(); menu.ParentId = rdr["ParentId"] != DBNull.Value ? Convert.ToInt32(rdr["ParentId"]) : (int?)null; menu.Active = Convert.ToBoolean(rdr["Active"]); listMenu.Add(menu); } } List<Menu> menuTree = GetMenuTree(listMenu, null); JavaScriptSerializer js = new JavaScriptSerializer(); context.Response.Write(js.Serialize(menuTree)); } public List<Menu> GetMenuTree(List<Menu> list, int? parent) { return list.Where(x => x.ParentId == parent).Select(x => new Menu { Id = x.Id, MenuText = x.MenuText, ParentId = x.ParentId, Active = x.Active, List = GetMenuTree(list, x.Id) }).ToList(); } public bool IsReusable { get { return false; } } } } HTML & jQuery code <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Demo.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="jquery-1.11.2.js"></script> <script src="jquery-ui.js"></script> <link href="jquery-ui.css" rel="stylesheet" /> <script type="text/javascript"> $(document).ready(function () { $.ajax({ url: 'MenuHandler.ashx', method: 'get', dataType: 'json', success: function (data) { buildMenu($('#menu'), data); $('#menu').menu(); }, error: function (err) { alert(err.statusText); } }); function buildMenu(parent, items) { $.each(items, function () { var li = $("<li>" + this.MenuText + "</li>"); if (!this.Active) { li.addClass('ui-state-disabled'); } li.appendTo(parent); if (this.List && this.List.length > 0) { var ul = $("<ul></ul>"); ul.appendTo(li); buildMenu(ul, this.List); } }); } }); </script> </head> <body style="font-family: Arial"> <form id="form1" runat="server"> <div style="width: 150px"> <ul id="menu"> </ul> </div> </form> </body> </html>
Views: 40837 kudvenkat
How to Make Diwali Greatings App using PHP - CSETUTS IN HINDI
 
14:21
Download the Code :- http://www.mediafire.com/file/lw00o930visa90u/diwali.zip Instagram Account link : https://www.instagram.com/csetutsinhindi/ Facebook Page link : https://www.facebook.com/Csetuts-In-Hindi-285614991951019/ CONTACT US THROUGH EMAIL: [email protected]
Views: 14759 Csetuts in hindi
Part 10  Working with multiple tables in mvc
 
19:46
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/05/part-10-working-with-multiple-tables-in.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-10-working-with-multiple-tables.html All ASP .NET MVC Text Articles http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-tutorial-for-beginners.html All ASP .NET MVC Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-slides.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss working with 2 related tables in MVC 1. tblDepartment 2. tblEmployee This is what we want to achieve 1. Display all the departments from tblDepartments table. The Department names should be rendered as hyperlinks. 2. On clicking the department name link, all the employees in the department should be displayed. The employee names should be rendered as hyperlinks. 3. On clicking the employee name link, the full details of the employee should be displayed. 4. A link should also be provided on the employee full details page to navigate back to Employee list page. Along the same lines, a link should also be provided on the employee list page to navigate back to Departments list page. Implementing Departments List: Step 1: Right click on the "Models" folder and add a class file with name=Department.cs. Copy and paste the following code. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations.Schema; namespace MVCDemo.Models { [Table("tblDepartment")] public class Department { public int ID { get; set; } public string Name { get; set; } public List[Employee] Employees { get; set; } } } Step 2: Add "Departments" property to "EmployeeContext" class that is present in "EmployeeContext.cs" file in "Models" folder. public class EmployeeContext : DbContext { public DbSet[Department] Departments { get; set; } public DbSet[Employee] Employees { get; set; } } Step 3: Right click on the "Controllers" folder and add a Controller, with name=DepartmentController. Copy and paste the following code. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MVCDemo.Models; namespace MVCDemo.Controllers { public class DepartmentController : Controller { public ActionResult Index() { EmployeeContext employeeContext = new EmployeeContext(); List[Department] departments = employeeContext.Departments.ToList(); return View(departments); } } } Step 4: Right click on the Index() action method in DepartmentController class and select "Add View" from the context menu. Set View name = Index View engine = Razor Select "Create Strongly-typed view checkbox Select Department class, from "Model class" dropdownlist Click "Add" button Copy and paste the following code in Index.cshtml view file in Department folder @using MVCDemo.Models; @model IEnumerable[Department] [div style="font-family:Arial"] @{ ViewBag.Title = "Departments List"; } [h2]Departments List[/h2] [ul] @foreach (Department department in @Model) { [li]@Html.ActionLink(department.Name, "Index", "Employee", new { departmentId = department.ID }, null)[/li] } [/ul] [/div] Changes to Employee List and Detail pages Add "DepartmentId" propertu to "Employee" model class that is present in Employee.cs file in "Models" folder. [Table("tblEmployee")] public class Employee { public int EmployeeId { get; set; } public string Name { get; set; } public string Gender { get; set; } public string City { get; set; } public int DepartmentId { get; set; } } Add "departmentId" parameter to Index() action method in "EmployeeController" class that is present in "EmployeeController.cs" file in "Controllers" folder. Use the "departmentId" parameter to filter the list of employees as shown below. public ActionResult Index(int departmentId) { EmployeeContext employeeContext = new EmployeeContext(); List[Employee] employees = employeeContext.Employees.Where(emp =] emp.DepartmentId == departmentId).ToList(); return View(employees); } Copy and paste the following line in "Index.cshtml" that is present in "Employee" folder in "Views" folder. With this change we are able to generate an action link to redirect the user to a different controller action method. @Html.ActionLink("Back to Department List", "Index", "Department") Change the following line in "Details.cshtml" that is present in "Employee" folder in "Views" folder. CHANGE THIS LINE @Html.ActionLink("Back to List", "Index") TO @Html.ActionLink("Back to Employee List", "Index", new { departmentId = @Model.DepartmentId })
Views: 427714 kudvenkat