9,867,109 members (49,063 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
78 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 2
Page Size:
10
·
25
·
50
Author filtered by: vijay__p
[x]
Add input text field which allows numeric values only
by
vijay__p
Answer
13 May 2013
license:
CPOL
Check beow link for jQuery plugin for phone number masked textbox and http://digitalbush.com/projects/masked-input-plugin/[^]
General Programming
»
Uncategorised Quick Answers
»
General
Javascript
HTML
How to Update the Rows Selected in the Grid View In the SQL Server
by
vijay__p
Answer
13 May 2013
license:
CPOL
Try below code to get checkbox valueCheckBox cb = (CheckBox)GridView1.Rows[i].FindControl("chkSelect");Now to get value of id use DataKeys from GridView.Set DataKeyNames property of grid to PropertyName of Id and you can get value of it ineach row as...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
how to get label value using jquery
by
vijay__p
Answer
13 May 2013
license:
CPOL
Try below code$(this).closest('tr').find('td #lblSrNo').html();Sample on fidle http://jsfiddle.net/zqfYp/3/[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
jQuery
jquery selector suggestion
by
vijay__p
Answer
10 May 2013
license:
CPOL
Try below code$('div.jcrop-holder:first').find('div').remove();
General Programming
»
Uncategorised Quick Answers
»
General
jQuery
how to edit an url in c#
by
vijay__p
Answer
9 May 2013
license:
CPOL
Try below codestring strUrl = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=t122kes@gmail.com:9768214005&senderID=TESTSMS&receipientno={0}&msgtxt={1}&state=4";strUrl = string.Format(strUrl,txtNumber.Text, txtMessage.Text);//Here txtNumber is Textbox which contains number and...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Query about RSS FEED
by
vijay__p
Answer
8 May 2013
license:
CPOL
What is RSS?http://www.whatisrss.com/[^]How to read RSS using C#http://blogs.msdn.com/b/steveres/archive/2008/01/20/using-syndicationfeed-to-displaying-photos-from-spaces-live-com.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
how to use url routing in asp.net?
by
vijay__p
Answer
8 May 2013
license:
CPOL
Go through below article for URL routingURL Routing with ASP.NET 4.0[^]Everything is mentioned step by step.
General Programming
»
Uncategorised Quick Answers
»
General
ASP.Net-4.0
How to convert nvarchar into numeric data type?
by
vijay__p
Answer
8 May 2013
license:
CPOL
Try below query against your table and particular columnALTER TABLE TableName ALTER COLUMN ColumnName INT NULL
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
MVC 4 - dropdownlist selected value
by
vijay__p
Answer
8 May 2013
license:
CPOL
Use SelectList to bind @HtmlDropdownListFor and specify selectedValue parameter in it.http://msdn.microsoft.com/en-us/library/dd492553(v=vs.108).aspx[^]public SelectList( IEnumerable items, string dataValueField, string dataTextField, Object selectedValue)
General Programming
»
Uncategorised Quick Answers
»
General
MVC4
how to exit a page in asp.net without java script
by
vijay__p
Answer
8 May 2013
license:
CPOL
You can not close window without using any codeTry below codeResponse.Write("window.close();");
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
How I can track Email send or Not Through Asp .Net?
by
patel_vijay
Answer
8 May 2013
license:
CPOL
You can use SmtpFailedRecipientsException to track which member are failed to receive emails.public static void RetryIfBusy(string server){ MailAddress from = new MailAddress("ben@contoso.com"); MailAddress to = new MailAddress("jane@contoso.com"); MailMessage message = new...
General Programming
»
Uncategorised Quick Answers
»
General
ASP
.NET
onclick event for dynamic imagebutton in dynamic div
by
patel_vijay
Answer
6 May 2013
license:
CPOL
Try below codevar imageButton = new ImageButton() { ImageUrl = "../images/color.png", ImageAlign = ImageAlign.Right};imageButton.Click += new ImageClickEventHandler(imageButton_Click);createDiv.Controls.Add(imageButton);void imageButton_Click(object sender, ImageClickEventArgs...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
asp.net java script page blocker
by
patel_vijay
Answer
6 May 2013
license:
CPOL
jQuery message plugin.http://code.google.com/p/jquery-msg/downloads/list[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
I want to add the 5th column values of my gridview how can i do that?
by
patel_vijay
Answer
6 May 2013
license:
CPOL
var total = 0; foreach (GridViewRow row in GridView1.Rows) { var numberText = row.Cells[5].Text; int number; if (int.TryParse(numberText, out number)) { total += number; ...
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
ASP.NET
C#
how do i deploy windows services with win form application
by
patel_vijay
Answer
5 May 2013
license:
CPOL
You need to add separate project for Windows Service of type Windows Service and separate deployment project for it in the same solution.You can use the same project reference which are used in windows form application.
General Programming
»
Uncategorised Quick Answers
»
General
C#
WinFrom
How To Find The Total Sum Of Particular Column In Gridview Using C#
by
patel_vijay
Answer
5 May 2013
license:
CPOL
You can iterate through GridViewRow and find particular control in which number is displayed and do summation of it as below.var total = 0; foreach (GridViewRow row in GridView1.Rows) { var numberLabel = row.FindControl("ID of Label") as Label; ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
show exception message with java script
by
patel_vijay
Answer
5 May 2013
license:
CPOL
Try using ClientScript.RegisterStartupScript
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
Linq Command for Find a String
by
patel_vijay
Answer
4 May 2013
license:
CPOL
Use below codevar exists= ArraySides.Any(StrSide);variable exists will contain boolean value whether your string exists in array or not.
General Programming
»
Uncategorised Quick Answers
»
General
C#
LINQ
VB
VB.NET
Bind gridview when column not exists in datatable but binding at itemtemplate
by
patel_vijay
Answer
2 May 2013
license:
CPOL
Don't directly bind using Eval in design view instead of that You can bing data in RowDataBound event So in RowDataBound event find label from Grid and also DataBind column from data sourceIf column available then bind it with label as leave it as it is.If you are using DataTable for...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
ASP.Net-4.0
ASP.Net-2.0
related to dropdownlist
by
patel_vijay
Answer
2 May 2013
license:
CPOL
public class Data { public int Id { get; set; } public string Col1 { get; set; } public string Col2 { get; set; } public string Col3 { get; set; } }var data = List();var dropdownData = data.Select(x=>new {Id = x.Id, Value = x.Col1+ "|" +...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
How to get or load a Image with content ID value?
by
patel_vijay
Answer
2 May 2013
license:
CPOL
Try Sasa extension for parsing .eml filehttp://sourceforge.net/projects/sasa/[^]It is very rich library for parsing email messages.
General Programming
»
Uncategorised Quick Answers
»
General
C#
How do I concatenate two dropdown list values into a single value for entry into a database field? Also i want to split them into the two dropdown list accordingly when displaying in update mode.
by
patel_vijay
Answer
29 Apr 2013
license:
CPOL
You can store these values in database concatenating with any separator (|)Ex. store "5|3" in databaseNow when you need to display it in edit mode then split these values by "|" var data = heightValue.Split('|');so you will get array of stringvar heightInFeet = data[0];var...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
SQL-Server
how could i create a method for dropdown...
by
patel_vijay
Answer
28 Apr 2013
license:
CPOL
Use below codeint startYear = 1950;var data = Enumerable.Range(startYear, DateTime.Now.Year - (startYear - 1)); ddl.DataSource = data; ddl.DataBind();Here, ddl is object of DropDownList.
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Event hover Jquery, does not work
by
patel_vijay
Answer
27 Apr 2013
license:
CPOL
checkout this working samplehttp://jsfiddle.net/qryY3/[^]
General Programming
»
Uncategorised Quick Answers
»
General
jQuery
JQueryUI
Links for understanding N layered architecture and MVC pattern.
by
patel_vijay
Answer
26 Apr 2013
license:
CPOL
check below linksArchitecture Guide: ASP.NET MVC Framework + N-tier + Entity Framework and Many More[^]http://www.cmjackson.net/2010/01/18/mvc-and-n-layer-architecture/[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
How to restrict selecting two or more checkboxes when array of checkboxes present in mvc3 rezor view
by
patel_vijay
Answer
26 Apr 2013
license:
CPOL
And still if you want to go with checkboxes then checkout sample on jsFiddlehttp://jsfiddle.net/vijaypatel/KtPsQ/[^]Use below function to restrict user on single selection checkbox 1
General Programming
»
Uncategorised Quick Answers
»
General
MVC
Razor
How to Set BASE CLASS with value
by
patel_vijay
Answer
25 Apr 2013
license:
CPOL
if you OLDCLASS class accepting parameters in contructor then you can pass values as below.public NewCar(int param1) : base(param1) { }Or you can acess the base class properties in deried class using this or base keyword.
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
C#
VB
C#4.0
architecture
VB.NET
ArchitectNET
To Learn about Ajax and Jquey ...can i get the materials for it?
by
patel_vijay
Answer
25 Apr 2013
license:
CPOL
http://api.jquery.com/jQuery.ajax/[^]http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/[^]http://www.w3schools.com/jquery/jquery_ref_ajax.asp[^]
General Programming
»
Uncategorised Quick Answers
»
General
Ajax
jQuery
File Upload is not working in Update panel
by
patel_vijay
Answer
24 Apr 2013
license:
CPOL
Try using PostBackTrigger instead of AsyncPostBackTrigger
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
How to Get Text Of Checkbox using javascript if the text.align is left ?
by
patel_vijay
Answer
24 Apr 2013
license:
CPOL
CHeckout sample on jsFiddlehttp://jsfiddle.net/vijaypatel/ess84/[^]You can get value of siblings using jQuery as below checkbox 1 $('input').siblings('label').html();From above code you will get "checkbox 1" as value from label.
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Javascript
Rolling log file through Enterprise Library
by
patel_vijay
Answer
23 Apr 2013
license:
CPOL
Check below configuration. You need to set rollFileEsistBehaviour="Increment"rollInterval="Day"rollSizeKB="Maximum size of file after which new file will be created"timeStampPattern="dd-MM-yyyy" - file name pattern
General Programming
»
Uncategorised Quick Answers
»
General
C#
library
Enterprise
web.Config
javascript in gridview
by
patel_vijay
Answer
22 Apr 2013
license:
CPOL
Checkout sample on jsFiddle http://jsfiddle.net/TdSCX/[^]You need to add event handler for checkboxes of GridView using jQuery as below$(function(){ $('table#GridView1 tr td input[type="checkbox"]').click(function(){ var finalTotal = parseFloat($('#finalLabel').html()); ...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
how to convert string to uri in c#?
by
patel_vijay
Answer
21 Apr 2013
license:
CPOL
Uri myUri = new Uri("http://www.contoso.com/");http://msdn.microsoft.com/en-us/library/z6c2z492.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
including ternary operator in HTML tag
by
patel_vijay
Answer
21 Apr 2013
license:
CPOL
Try below code Delete
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
HTML
operators
Fincontrol in repeater(Label)
by
patel_vijay
Answer
20 Apr 2013
license:
CPOL
You can not directly find control from Repeater You have to iterate to RepearterItem and find control from it.foreach(RepeaterItem item in RepeaterStrongestSkillsMax2.Items){var label = item.FindControl("lbl") as Label; //Find control from RepeaterItemlabel.Text = "Your value";}
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP
ASP.NET
Postback and Autopostback in asp.net
by
patel_vijay
Answer
18 Apr 2013
license:
CPOL
A postback is initiated by the browser, and reloads the whole page, usually when a control on the page (e.g. a button) is changed.With some controls (e.g. Checkboxes), you choose if changing the control should result in a postback. This property is called AutoPostback.A callback is...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
ASP.NET MVC4 Application
by
patel_vijay
Answer
18 Apr 2013
license:
CPOL
Checkout this link for step by step project creation, controller actions, validation etc..http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-1[^]
General Programming
»
Uncategorised Quick Answers
»
General
MVC
ASP.NET MVC - How to Retrieve a list of images from the Database and display them in the view?
by
patel_vijay
Answer
18 Apr 2013
license:
CPOL
Use Image path should be Base64 string and prepend it with data:image/jpg;base64,In Controller i have assigned base 64 string to ViewBag.Image var imageString = Convert.ToBase64String(System.IO.File.ReadAllBytes(@"C:\temp\temp.jpg"));So in your case convert ImageStream...
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
MVC
MVC3
MVC4
How to get the value within a table's last row's first column using javascript?
by
patel_vijay
Answer
18 Apr 2013
license:
CPOL
Checkout below linkhttp://jsfiddle.net/LRSS2/[^]Here i have created one html table with 6 rows, each row having first column with different id value.Using jQuery it will find last row first colunm value$('#gridview1 tr:last').find('td:first').html()
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Javascript
jQuery
how to add border bottom 1px in c# new literal
by
patel_vijay
Answer
17 Apr 2013
license:
CPOL
You can not add any Css styles on Literal control. If you need to apply style on control then you should use control which render any html tag but literal control will not render any html tag so you won't be able to apply any css style.ex. - which will render -...
General Programming
»
Uncategorised Quick Answers
»
General
C#
HTML
How to zip a folder and download in asp.net 4.0 c#
by
patel_vijay
Answer
15 Apr 2013
license:
CPOL
dotnetzip library is very rich for to create zip files http://dotnetzip.codeplex.com/[^]using (ZipFile zip = new ZipFile()) { // add this map file into the "images" directory in the zip archive zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images"); ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Autoselect checkbox in a datagrid based on customer id
by
patel_vijay
Answer
15 Apr 2013
license:
CPOL
While adding checkbox to Grid also add one attribute for CustomerID in it.So when you check/uncheck any checkbox then find CustomerID of it and using jQuery selectors[^] find other checkboxes having same CustomerID and check/uncheck them.Check sample on jsFiddlehttp://jsfiddle.net/xqQUr/[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Get element content using only xpath and .NET C#
by
patel_vijay
Answer
14 Apr 2013
license:
CPOL
If your xml is like below then you can query it using Linqvar xml = @" ABCabcABC abcABC abc ABCABCABC"; var list = XDocument.Parse(xml).Descendants("ParaLine") .Select(x...
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
XPath
list box selected values using jquery
by
patel_vijay
Answer
14 Apr 2013
license:
CPOL
Hello Check out this samplehttp://jsfiddle.net/JthcU/[^]You will get comma separated string of selected items.If nothing is selected then it will return null.
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
jQuery
JQueryUI
How to set null value in textarea
by
patel_vijay
Answer
14 Apr 2013
license:
CPOL
I think problem is in ID of textarea control, your control is marked as runat="server" so its ID will be changed so you should use ClientID property of it to access it in javascript.
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Javascript
How to create nonce with 32 chracters in c#.net
by
patel_vijay
Answer
14 Apr 2013
license:
CPOL
Try below codeprivate static string validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; private static Random random = new Random(); private static string GenerateNonce(int length) { var nonceString = new StringBuilder(); ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Session is Expired when the user is also active...
by
patel_vijay
Answer
11 Apr 2013
license:
CPOL
You have set slidingExpiration=true but you should know about its behaviour.Sliding expiration resets the expiration time for a valid authentication cookie if a request is made and more than half of the timeout interval has elapsed. If the cookie expires, the user must re-authenticate....
General Programming
»
Uncategorised Quick Answers
»
General
C#
session
ASP.Net-4.0
Call JavaScript function on Page Load event
by
patel_vijay
Answer
9 Apr 2013
license:
CPOL
Also try $(document).ready(function () { });
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
How to Retrieve images from database to ListView in c# .net windows application?
by
patel_vijay
Answer
8 Apr 2013
license:
CPOL
Try below codebyte[] bytes = (byte[])draw["FloorTexture"]; string base64String = Convert.ToBase64String(bytes, 0, bytes.Length); Image1.ImageUrl = "data:image/png;base64," + base64String;You can also use Generic handler to show image...
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
.NET4
How to make a label blink
by
patel_vijay
Answer
7 Apr 2013
license:
CPOL
Hi,Blinking text using CSS is not supported in all browsers.http://www.w3schools.com/cssref/playit.asp?filename=playcss_text-decoration&preval=blink[^]But you can do some tweaking to achive this functionality using JavaScript.function blinkFont(){ ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Page 1 of 2
1
2
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid