9,869,883 members (28,616 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*
84 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: TrushnaK
[x]
Restricting Gridview column for accepting numbers only on client side
by
TrushnaK
Question
9 May 2013
license:
CPOL
Hi every one I am faceing problem with gridview editing value-Que:- How to restrict gridview column to accept only numbers at client side Suppose there is two columns in gridview and i want that first column should take alphabets and second should take numbers only...I...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
VB
VB.NET
Unable to attach mdf files in SQL Server 2008 R2
by
TrushnaK
Answer
6 May 2013
license:
CPOL
Hiyou can follow above steps:-1]open sql server2]connect your DB3]Right click on Database4]click on Restore Databse5]Add the name you want to give in (To database)6]select your backup db from device7] check the checkbox that appear with your db name 8]ok
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
Date and time picker in Javascript or Jquery
by
TrushnaK
Answer
4 May 2013
license:
CPOL
Refer This Sites and add plugins into your page:-http://jqueryui.com/datepicker/[^]http://timjames.me/jquery-ui-datetimepicker-plugin[^]
General Programming
»
Uncategorised Quick Answers
»
General
Javascript
jQuery
ASP.Net-4.0
how to close chrome automaticaly
by
TrushnaK
Answer
3 May 2013
license:
CPOL
You can try this:-function SetupWindowClose(){ window.open('javascript:window.open("", "_self", "");window.close();', '_self');}OR function SetupWindowClose(){ close();}
General Programming
»
Uncategorised Quick Answers
»
General
Javascript
An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
by
TrushnaK
Answer
2 May 2013
license:
CPOL
From your question it's not clear that where you get this error. and scenerio while you run the code.Refer this link:-http://support.esri.com/en/knowledgebase/techarticles/detail/33000[^]
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Multiple upload Image
by
TrushnaK
Answer
30 Apr 2013
license:
CPOL
Refer this links:-http://csharpdotnetfreak.blogspot.com/2012/07/asynchronous-file-upload-jquery-uploadify-aspnet.html[^]http://www.aspsnippets.com/Articles/Multiple-File-Uploads-Gmail-Style-using-JQuery-and-ASP.Net.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Login with facebook in my web application
by
TrushnaK
Answer
30 Apr 2013
license:
CPOL
You can retrive all information using JSon object like:-ComputerBeacon.Facebook.Models.User fbUser = new ComputerBeacon.Facebook.Models.User("me", objWebContext.Session.AccessToken);JsonArray JA = Api.Fql("SELECT uid, name, pic_square, profile_url, email FROM user WHERE uid = UserId,...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Sql Select Query
by
TrushnaK
Answer
30 Apr 2013
license:
CPOL
You can try like this:-declare @columns varchar(max)declare @convert varchar(max)select @columns =stuff((select '],[' + particular from tblName order by '],[' + convert(varchar(max),points) desc for xml...
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
SQL-Server
auto complete in text box
by
TrushnaK
Answer
29 Apr 2013
license:
CPOL
Refer :-http://www.dotnetfunda.com/articles/article224.aspx[^]Using AJAX AutoCompleteExtender for autosuggest[^]http://www.magic-dev.com/autocomplete-textbox-aspnet-database.htm[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
error on sql command
by
TrushnaK
Answer
29 Apr 2013
license:
CPOL
It seems that your txt_serch_by not properly registered to designer page.remove the textbox and add it again.
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
SQL-Server
How to upload multiple image in asp.net
by
TrushnaK
Answer
29 Apr 2013
license:
CPOL
Refer this links:-http://csharpdotnetfreak.blogspot.com/2012/07/asynchronous-file-upload-jquery-uploadify-aspnet.html[^]Multiple File Upload Using jQuery[^]http://www.aspsnippets.com/Articles/Multiple-File-Uploads-Gmail-Style-using-JQuery-and-ASP.Net.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
link button onclick logout message not working
by
TrushnaK
Answer
29 Apr 2013
license:
CPOL
Add This:-Logout
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
javascript:AskConfirmation change ok cancel text
by
TrushnaK
Answer
29 Apr 2013
license:
CPOL
Sorry but I think that is not possible using the built-in confirm() dialogue. Your only options are the default. You can construct your own modal dialogue.Refer this:-http://jqueryui.com/...al-confirmation[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
chat room application
by
TrushnaK
Answer
26 Apr 2013
license:
CPOL
Refer this:-Global Text Chat Room Application using C#.NET Remoting Technology[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value
by
TrushnaK
Answer
26 Apr 2013
license:
CPOL
Its not problem of your query. i want to tell you that it is by DB.The date range allowed in SqlJanuary 1, 1753, through December 31, 9999and if you using datatype as smalldatetime thenJanuary 1, 1900 through June 6, 2079Put date within this your query will run.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Calculation in GridView using Asp.Net C#
by
TrushnaK
Answer
26 Apr 2013
license:
CPOL
Before insert query apply your formula on txtNetAmt like:-txtNetAmt.Text=txtGrossAmt.Text - txtGrossAmt.Text * ddlTDS.SelectedValueetc...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
string split to fetch particular value from a string ?
by
TrushnaK
Answer
26 Apr 2013
license:
CPOL
You can try this:-string text = "(Noshow=Ads|Attract=N\\013\\abc.swf;N\\012\\def.jpg"; //Put your stringstring answerStr = myString .Split('\\', ';')[1];
General Programming
»
Uncategorised Quick Answers
»
General
c#.
Is there a way to view image in ListView
by
TrushnaK
Answer
25 Apr 2013
license:
CPOL
Refer this:-http://www.dreamincode.net/forums/topic/75911-adding-images-to-listview/[^]ImageListView[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
ListView
Asp.net page flickering issue having, User control with timer in it.
by
TrushnaK
Answer
25 Apr 2013
license:
CPOL
Use Update Panel or Add below in your Page directiveMaintainScrollPositionOnPostback="true"
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
c# Linq Lamba expression
by
TrushnaK
Answer
24 Apr 2013
license:
CPOL
Put your table name and column name in below query:- from t1 in Projectsfrom t2 in Tasks.Where(x => t1.ProjectID == x.ProjectID && x.Completed == true) .DefaultIfEmpty()select new { t1.ProjectName, t2.TaskName }this is basic query you can modify it.
General Programming
»
Uncategorised Quick Answers
»
General
LINQ
C#
C#4.0
Sql 2008:concatenate two or more string and display them in a single record
by
TrushnaK
Answer
24 Apr 2013
license:
CPOL
You can't use SUM on a DateTime and varchar column. If your final goal is to get sum of all datadiff records in hh:mm:ss then stored the difference in minutes as:-SELECT DATEDIFF(second,CAST('02:32:00' AS DATETIME), CAST('03:40:00' AS DATETIME))/60.0 AS MIN_DIFF;Then to do sum of...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
DateTime
database
Differnce between encapsulation and Abstraction Code Example required for understanding
by
TrushnaK
Answer
24 Apr 2013
license:
CPOL
Refer This:-http://dotnetcodes.com/dotnetcodes/code/Interview-Questions-160-Difference-between-Encapsulation-and-Abstraction-with-examples.aspx#.UXfGrKJTCyg[^]http://thecodekey.com/C_VB_Codes/Encapsulation.aspx[^]http://thecodekey.com/C_VB_Codes/Abstraction.aspx[^]etc.. search...
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to get image name from picture box
by
TrushnaK
Answer
23 Apr 2013
license:
CPOL
Refer this:-http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/735a0adc-b70b-4fd0-85b8-faf37aaac2e2/[^]http://msdn.microsoft.com/en-IN/library/system.windows.forms.picturebox.image(v=vs.71).aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
SQL SERVER 2008 R2
by
TrushnaK
Answer
23 Apr 2013
license:
CPOL
Only one identity column can be created per table.
General Programming
»
Uncategorised Quick Answers
»
General
SQL2008R2
gridview inside a gridview
by
TrushnaK
Answer
23 Apr 2013
license:
CPOL
Refer:-Gridview inside Gridview in ASP.NET C#[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
C#
How to get all rows from Data table
by
TrushnaK
Answer
23 Apr 2013
license:
CPOL
Try this:-String col="LastName";DataTable tableWithOnlySelectedColumns = new DataView(table).ToTable(false, col);
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
how to validate textbox and dropdown list using jquery?
by
TrushnaK
Answer
22 Apr 2013
license:
CPOL
Hey you not specify which type of validation you required. so give for empty or not selected.if($('#idOfFeild').val()==''){ $('#idOfFeild').val('Please input your data');}mydropdown = $('#myDropdown');if (mydropdown.length == 0 || $(mydropdown).val() == ""){ ...
General Programming
»
Uncategorised Quick Answers
»
General
jQuery
I want to insert a record in DB and then need to return a row . I created the query but how to use that in .cs (C# code )
by
TrushnaK
Answer
22 Apr 2013
license:
CPOL
String ConnString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password"; SqlConnection con = new SqlConnection(ConnString); SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "SP_Name"; ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL
.NET
SQL-Server
SQL-Server
SQL2008
question about query
by
TrushnaK
Answer
22 Apr 2013
license:
CPOL
ALTER TABLE studentDROP PRIMARY KEY
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
SQL-Server
Call javascript function after return statement
by
TrushnaK
Answer
22 Apr 2013
license:
CPOL
Add this line to your code from where you want to call js function:-ScriptManager.RegisterStartupScript(this, GetType(), "radioEle", "fn_radio();", true)
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Javascript
coverting textbox value in the date time
by
TrushnaK
Answer
22 Apr 2013
license:
CPOL
Try this:-DateTime date = DateTime.ParseExact(txtdob.Text, "dd/MM/yyyy", null);
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Display a pop up message when a mouse is rolled over the textbox
by
TrushnaK
Answer
20 Apr 2013
license:
CPOL
Refer...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
How to get top 5 salary data in sql query
by
TrushnaK
Answer
20 Apr 2013
license:
CPOL
Try this:-SELECT DISTINCT TOP 5 MAX(Salary) FROM Salaries GROUP BY Salary ORDER BY Salary DESC;
General Programming
»
Uncategorised Quick Answers
»
General
SQL
DOB select from calender and auto calculate AGE
by
TrushnaK
Answer
19 Apr 2013
license:
CPOL
try for this:-DateTime today = DateTime.Today;int age = today.Year - bday.Year;if (bday > today.AddYears(-age)) age--;or int age = new DateTime(DateTime.Now.Subtract(birthday).Ticks).Year-1;
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
sqlserver2008
How to add reference of ajax toolkit to bin folder in asp.net in vs 2010
by
TrushnaK
Answer
19 Apr 2013
license:
CPOL
Refer this:-http://weblogs.asp.net/yousefjadallah/archive/2010/04/16/installing-ajax-control-toolkit-4-in-visual-studio-2010.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Ajax
Need code to Store Database returned Data into a HashTable in c#
by
TrushnaK
Answer
19 Apr 2013
license:
CPOL
try this after getting result in reader:-while (rs.next() == true) { key = rs.getString(1); value = rs.getString(2); hash.put(key,value); //Hashtable populated }
General Programming
»
Uncategorised Quick Answers
»
General
C#
Multilingual Site in MVC3
by
TusharKhairnar
Answer
19 Apr 2013
license:
CPOL
try this:-http://afana.me/post/aspnet-mvc-internationalization.aspx[^]
General Programming
»
Uncategorised Quick Answers
»
General
Multi
Language
MVC3
Master Page how to hide div of master page in particular webform asp.net c# Error
by
TusharKhairnar
Answer
19 Apr 2013
license:
CPOL
find a master page control from content page like this:-//your div should contain the property runat="server" //finding the div associated with id System.Web.UI.HtmlControls.HtmlGenericControl currdiv = (System.Web.UI.HtmlControls.HtmlGenericControl)Master.FindControl("divid");...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
how can include my software with 30 days validity
by
TusharKhairnar
Answer
18 Apr 2013
license:
CPOL
Creating Secure Trial Versions for .NET Applications - A Tutorial[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Count the unique number of words inside a string builder(Not letters...Words))
by
TusharKhairnar
Answer
18 Apr 2013
license:
CPOL
Try for this:-int WordCount(string text){ var regex = new System.Text.RegularExpressions.Regex(@"\w+"); var matches = regex.Matches(text); return matches.Count;}
General Programming
»
Uncategorised Quick Answers
»
General
C#
Pageload should display default values if no data in database
by
TusharKhairnar
Answer
18 Apr 2013
license:
CPOL
Check your reader that it has values or not using this condition:-reader2 = cmd2.ExecuteReader();if (dr == null || !dr.HasRows){ //Default values trendtxtbox.Text = "Val1"; DropDownList1.Text = "Val2"; splitbioddl.Text = "Val3";}else{ //DB Values ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Asp.Net How to hide label using javascript
by
TusharKhairnar
Answer
18 Apr 2013
license:
CPOL
try this:-function clearLabelValue(){ var labelObj = document.getElementById(""); labelObj.value = ""; }
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
chat application in asp.net
by
TusharKhairnar
Answer
17 Apr 2013
license:
CPOL
Refer this:-Simple Chat Application in ASP.NET[^]http://code.msdn.microsoft.com/CSASPNETAJAXWebChat-c4c9b8fe[^]http://www.c-sharpcorner.com/uploadfile/0b8108/simple-chat-application-in-Asp-Net/[^]Chat Application in ASP.NET Using AJAX (Pop-up Windows)[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
WCF
How to call javascript method
by
TusharKhairnar
Answer
17 Apr 2013
license:
CPOL
try this:-add script manager in your aspx page.ScriptManager.RegisterStartupScript(Me,[GetType](),"key name", "javascriptMethodName();",true);ScriptManager.RegisterStartupScript(Me, [GetType](), "DatePicker", "DatePicker();", True)
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
i'm binding the data from gridview when i run its shows nothing and no error appear
by
TusharKhairnar
Answer
17 Apr 2013
license:
CPOL
try this:-private void binddata() { string connstring = @"Data Source=LENOVO-41B3F2CE\SQLEXPRESS;Initial Catalog=IMS;Integrated Security=True;Pooling=False"; string query = "SELECT * FROM ['ISB VAS Nodes$']"; SqlConnection con = new...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Incorrect syntax near '('.
by
TusharKhairnar
Answer
17 Apr 2013
license:
CPOL
hi,use create Table #tempTable(SNo int, Stud_ID varchar(10), Stud_Name varchar(100), Rcptno varchar(20),Rcptdt varchar(20), RcptAmt varchar(20),Chqtype varchar(20))
General Programming
»
Uncategorised Quick Answers
»
General
C#
OnBeforeInstall is getting called after Install
by
TusharKhairnar
Answer
17 Apr 2013
license:
CPOL
Refer this site:-http://windows-tech.info/3/f19445531da643e0.php[^]
General Programming
»
Uncategorised Quick Answers
»
General
installer
Why we use Static Class
by
TusharKhairnar
Answer
17 Apr 2013
license:
CPOL
If a class is declared as static then the variables and methods should compulsorily be declared as static.A class can be declared static, indicating that it contains only static members. It is not possible to create instances of a static class using the new keyword. Static classes are loaded...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
File upload not working in update panel
by
TusharKhairnar
Answer
17 Apr 2013
license:
CPOL
i also face same problem. i used postback trigger.
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
To display error message for a form onclick of submit button if mandatory fields not entered..appending the unfilled field names in error message
by
TusharKhairnar
Answer
17 Apr 2013
license:
CPOL
hi ,Use thisCustom Validation Summary in ASP.NET[^]
General Programming
»
Uncategorised Quick Answers
»
General
Javascript
Page 1 of 2
1
2
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web01 | 2.6.130513.1 | Last Updated 15 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid