Archive for 'asp development'
Change or set a CSS background image with jQuery solution
Posted in: Thursday, July 21st, 2011 | asp development, web development company, web development solutions | admin
JQuery is not a language but it is a well written JavaScript code, As quoted on official jQuery website “it is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.“
Solution to “background images are not being change or set”
$('#div_mainimage').css('background-image', 'url(my_image.png)');
or
$('#div_mainimage').css('background', 'url(yourimagepath/my_image.png)');
For more details about the jQuery CSS Manipulation
Javascript allert inside AJAX UpdatePanel , Not working
Posted in: Friday, February 18th, 2011 | .net development, asp development | admin
The UpdatePanel control in Microsoft’s ASP.NET AJAX, is a good way to save some time when you have simple AJAX programming needs to post data to a form without refreshing the Web page. The javascript code is not working if you using the code inside update panel. So in order to add javascript in update panel you need to register you client script to your script manager as shown below:
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(),Guid.NewGuid().ToString(),“alert(‘Hi, I am here !’);”,true);
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(),Guid.NewGuid().ToString(),“$(\”a[rel^='prettyPhoto']\”).prettyPhoto({ theme: ‘facebook’ });”,true);
LINQ to SQL vs ADO.NET
Posted in: Sunday, July 11th, 2010 | .net development, .Net Technology, .net web development, .net website development, Application Development Company, asp development, asp net web application development, Asp.Net, asp.net developers, asp.net development, asp.net framework, asp.net programming, asp.net web development, asp.net web development india, asp.net website development, hire asp.net developer, hire professional designer, hiring asp.net developers, Linq, n-tier application development, web developers, web development companies, web development company | admin
ADO.NET is the underlying data access API for .NET Framework (much like JDBC in Java). It’s been around since the first release of .NET.
LINQ to SQL is a data access framework built on ADO.NET and new language features that makes SQL Server data available natively in the object oriented style of programming. LINQ (Language-Integrated Query) and thus allowing to query data using programming language’s own syntax
Continue reading…
Creating IN Queries With Linq
Posted in: Wednesday, June 23rd, 2010 | .net development, .Net Technology, .net web development, .net website development, asp development, asp net web application development, asp.net developers, asp.net development, asp.net framework, asp.net programming, asp.net web development, asp.net web development india, asp.net website development, b2b ecommerce website development, b2b web development, dotnetnuke skins development, dotnetnuke website development, enterprise application development, hire asp programmer, hire asp.net developer, hire professional designer, hiring asp programmer, hiring asp.net developers, hiring asp.net professionals, hiring asp.net programmers, Linq, Web Application Development, web development, web development companies, web development company | admin
Linq IN query will pull back a set of results from SQL that is within a given range. This range can be set manually, or can itself be a query. So if you have an eCommerce application and you want to know what products you have in a given user’s cart
SQL
SELECT * FROM Product WHERE ProductID IN (SELECT ProductID FROM mycart)
Linq
List<int> itemQuery = new List<int>() {1,2,3,4}; var myProducts = from p in db.Products where itemQuery.Contains(p.ProductID) select p;
Linq To Sql only constructs the query when the Enumerator is tripped
Google Maps Control for ASP.NET 2.0
Posted in: Friday, June 18th, 2010 | .net development, .Net Technology, .net web development, .net website development, Andoid, Application Development Company, asp development, asp net web application development, Asp.Net, asp.net developers, asp.net development, asp.net framework, asp.net programming, asp.net web development, asp.net web development india, asp.net website development, aspdotnetstorefront, aspdotnetstorefront cart development | admin
This article recently which I thought was pretty cool. It describes how to build and use an ASP.NET Server Control that makes Google Map integration easy within ASP.NET applications:
sending email in asp.net c#
Posted in: Monday, June 7th, 2010 | .net development, .Net Technology, .net website development, asp development, asp net web application development, Asp.Net, asp.net developers, asp.net development, asp.net framework, asp.net programming, asp.net web development, asp.net web development india, asp.net website development, aspdotnetstorefront, aspdotnetstorefront cart development | admin
Sending email in asp.net c# is one of the most common and reliable methods of communication for both personal and business purposes.
One of the big improvements in the configuration and maintenance of ASP.NET Web sites for version 2.0 is the ability to define common settings such as connection strings and mail server in a structured section of the web.config file
C#.net Coding Part
First add below mentioned namespace in code
Continue reading…
Silverlight ComboBox binding with Dictionary.
Posted in: Monday, June 7th, 2010 | .net development, .Net Technology, .net web development, .net website development, asp development, asp net web application development, Asp.Net, asp.net developers, asp.net development, asp.net framework, asp.net programming, asp.net web development, asp.net web development india, asp.net website development | admin
private void Page_Loaded(object sender, RoutedEventArgs e) {
Dictionary dict = new Dictionary();
dict.Add(1, “India”);
dict.Add(2, “USA”);
dict.Add(3, “FINLAND”);
cboCountry.ItemsSource = myDic;
}
private void cboCountry_SelectionChanged(object sender, SelectionChangedEventArgs e) {
KeyValuePair curItem = (KeyValuePair) cboCountry.SelectedItem;
MessageBox.Show(curItem.Key.ToString());
}