9,869,444 members (27,136 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*
35 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 1
Page Size:
10
·
25
·
50
Author filtered by: Raj Parashar
[x]
crystal report not works in setup project
by
Raj Parashar
Answer
4 May 2013
license:
CPOL
Just make sure to add this in your app.config file. and then it should work.
General Programming
»
Uncategorised Quick Answers
»
General
.NET3.5
C#
.NET
.NET4
CrystalReports
Checked List box value
by
Raj Parashar
Answer
19 Apr 2013
license:
CPOL
Use the following to achieve your goalprivate void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e) { if (checkedListBox1.CheckedItems.Count == 0) { MessageBox.Show("This Client does not have any groups associated with it.", "No...
General Programming
»
Uncategorised Quick Answers
»
General
VB6
C#
dropdwonlist in ASP.NET
by
Raj Parashar
Answer
19 Apr 2013
license:
CPOL
Here comes your solution//datatable here is the collection of data from which u want to select MCPfor(int i=0;i
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
make adapter gets multiple statement
by
Raj Parashar
Answer
15 Apr 2013
license:
CPOL
all of the above you want to have the data in a dataset or datatable right. so pls do the following which should solve your problem//get course ids for this teacherstring cmd1 = "select course_id from course_teacher where teacher_id='" + Session["t_id"] + "'";SqlDataAdapter da1 = new...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
What String pass in to Arguement Class
by
Raj Parashar
Answer
15 Apr 2013
license:
CPOL
Do the following protected void ImageButton1_Click(object sender, ImageClickEventArgs e){ if (Session["Name"] == null) { } else { temp(img13.ImageUrl); }}protected void temp(string imgUrl) {//here u can simply use the variable imgUrl ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
SQL
AjaxControl toolkit problem
by
Raj Parashar
Answer
15 Apr 2013
license:
CPOL
Exception Details: System.Web.HttpException: A page can have only one server-side Form tag.This line clearly says that you have extra form tag which means your master page already has a form tag so you can't declare another form inside content place holder so simly remove the following...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Re: Your reason for enabling line numbers...
by
Raj Parashar
Forum Message
14 Apr 2013
Sorry for the inconvinience sir. However this is the first time i hav tried to write an article so completely new to this part and don't know how to expand the wording and write convincing text. So i
General Discussions
»
Tip/Trick "Display Line Numbers In Visual Studio"
Re: A little short
by
Raj Parashar
Forum Message
14 Apr 2013
Sorry for the inconvinience sir. However this is the first time i hav tried to write an article so completely new to this part and don't know how to expand the wording and write convincing text. So i
General Discussions
»
Tip/Trick "Display Line Numbers In Visual Studio"
confirmation message asp.net and c#
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
write the following line of code and it should do your workScriptManager.RegisterStartupScript(this, this.GetType(), "alertmessage", "javascript:confirm('Do you want to move to other page?')", true);Response.Redirect("Nextpage.aspx");This code in any case redirects to the next page...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Opening all the child form at a same location through MDI parent form in windows c#
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
You need to set startup position of your childs to center to parent and all forms would open at same location. consider the following code for same. frmCreateClient childForm = new frmCreateClient(); childForm.MdiParent = this; childForm.Text = "New Client"; ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
How to display image in Image control after upload on the server asp.net C#
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
u need to set image url of the image control to exact as the Url of the image along with correct extension(.gif,.jpg,.bmp) and after doing the same you do not need to change anything in the code afterwards.Whatever image you will upload to the url with same name and extension it will...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
how to convert string to date
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
String was not recognized as a valid DateTime.this error generally comes when you try to parse(dd/MM/yyyy) string value to datetime which is not acceptable.Either store date in your string as (dd/MMM/yy) or (MM/dd/yyyy) and then convert it and it must work.hope it works...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
dropDownList selectedIndex return 0 always
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
The problem is you are filling your 1st drop-down list in form load and every time some event happens it loads the form i guess u have not kept update panel so again it fills your first drop down and causes selected index changed event to fire which makes your dropdown2 selected index 0 again...
General Programming
»
Uncategorised Quick Answers
»
General
VB
ASP.NET
Display photos from a folder
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
I guess following is what you were looking for. However this is just an example how u can load images in a control. Rest, being a developer i guess u can do...using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
Flash
mdi child not load on windows xp
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
i guess if you change your code a little bit as following then there should not be any problem Child ChildForm=new Child();ChildForm.mdiparent=this;childForm.Dock=DockStyle.Fill;childForm.Show();i am sure it will work on both xp and win7.
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Restrict textbox data to int or string
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
Dear C# has predefined function to check if the entered character is digit or alphabet on keypress event.//consider following code to get your problem resolvedPrivate void textBox1_KeyPress(object sender, KeyPressEventArgs e){if (char.IsDigit(e.KeyChar)){//your code here}if...
General Programming
»
Uncategorised Quick Answers
»
General
C#
string
TextBoxBase
drag div value into gridview
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
In grid instead of normal column use itemTemplate and place Textbox in it and then try to drag the div data to your grid. It won't reject your request :)Try to implement following line of code in your GridView ...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
jQuery
how to use login status session in asp.net
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
On click of your Login Button validate the user with database if the user is valid just write the following:-protected void btnLogin_Click(object Sender,EventArgs e){//User validity check here//you need to have two textboxtes on login page called...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Is there any vay to insert copy of some records to same table?
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
how can i these record to previews Table by new identity Primary key ?If it just about displaying the data twice then no need to insert duplicate data in your table simply follow the guidelines belowOleDbConnection con = new OleDbConnection ();con.ConnectionString = "your...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LINQ
retrive single row from dataset
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
Follow the following code and i am sure it gives you the desired result---//The following line gives you the last 2nd row--ds.Tables["title"].Rows[ds.tables["title"].rRows.count-2]["Your Column name here"].ToString();//Similarly The following line gives you the last 3rd...
General Programming
»
Uncategorised Quick Answers
»
General
ADO.NET
How do I display only the time in asp.net?
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
as you just need to display time and you have asp.net page which gives you the flexibility of code behind model so you can use form load part of serverside code and simply write the followingProtected void Form_Load(object sender,EventArgs...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
time
adding hyperlinks to arbitrary gridcells
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
Have item template field for circle as linkbutton and itemtemplate field for your values as Label and in gridView_RowDataBound check the value of the label if the value is greater that 0 then enable the link and if the value is 0 then disable the link. Following example explains the...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Record not updated in the table
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
However you have not written the error which is coming but still after watching your code i found following suspicious line which may cause in not updationdt.Rows(0)("OnHand") = dt.Rows(0)("OnHand") - rs.Tables("TPlt").Rows(0).Item("FullQty") -...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
How to set the value to a ItemTemplate control from the code behind?
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
Following example explains the to set value to Item Template controls----- //Add onRowDataBound event to your grid and write the following code server sideprotected void gridView1_RowDataBound(object sender,GridViewRowEventArgs e){ //make sure to have UserID as itemtemplate in your...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
C#
C#4.0
selecting a particular item in grid view
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
It may look funny but try executing following way{String store = Request.QueryString["id"]; SqlCommand cmd = new SqlCommand();cmd.CommandText = "select spec from computer where prod_name is '"+store+"' ";DataSet ds = new DataSet();SqlDataAdapter dap = new...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Gridview
multiple response.redirect(url) in a button click event
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
can you confirm why you want to redirect to three pages, instead of redirecting when you click on back button displau your 1st two pages as popups and redirect to the third url which should definately solve your problem.for opening popup u can use Page.regiserStartupScript(-----------------)...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.Net-4.0
problem in grid view
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
Very 1st thing you add commandname to the following line in your codeActivatenow in in first grid rowcommand track the unique id of the row using following code and store in a label//u must have lblUniqueid and your...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Can i set Session Expire time
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
even you can simply set timeout at the default.aspx page load by writingSession.Timeout=30000..and so on........which renews session every time the default page loads
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Email varification in ASP,NET
by
Raj Parashar
Answer
14 Apr 2013
license:
CPOL
well what you can do is while the user click on signup send an encrypted unique code to the email address entered alons with your URL as query string and store the decrypted value along with user info and make the status of the user De-active.When the user clicks the link and comes to your...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
SQL-Server
.net appplication server for windows forms apps
by
Raj Parashar
Answer
13 Apr 2013
license:
CPOL
A quick and effective solution i would like to tell you that you keep your exe in a shared folder in the server and from client system access the folder and right click on the exe and send shortcut to desktop.That's it and it will work for sure.Do let me know if it doesn't work.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
.NET
Visual-Studio
fetch valid email id from database
by
Raj Parashar
Answer
12 Apr 2013
license:
CPOL
Dear by the following method you can get your work done1. Read all email-ID in a datatable2. use the following method to check ifthe email is valid//suppose datatable name is dtif(dt.Rows[0]["Email"].toString().indexOf("@")>0) {string...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Crystal Report Document Loading Error
by
Raj Parashar
Answer
12 Apr 2013
license:
CPOL
You need to install SAP Crystal Report runtime engine on the system and your reports will run perfect.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Requiring code for a program
by
Raj Parashar
Answer
11 Apr 2013
license:
CPOL
As the user clicks to open a video or word or pdf file start a timer in your program and track the running process of the application and as the process gets closed fire your next event.for e.g if someone opens video in media player u can see in task manager a process starts and as u close...
General Programming
»
Uncategorised Quick Answers
»
General
C#
want to implement Marathi input facility in VB6
by
Raj Parashar
Answer
11 Apr 2013
license:
CPOL
what i suggest is do not try to save data in marathi format as this is not your requirement. According to your requirement you need to display data in marathi right.so use the same font shivaji01 in your reports to display the data or anwhere wherever you need to display the data and your...
General Programming
»
Uncategorised Quick Answers
»
General
VB6
.NET
Microsoft
SqlServer
VB6.NET
move one record from one subform to another subform
by
Raj Parashar
Answer
11 Apr 2013
license:
CPOL
Using With operator u can access record of any form from any form. E.g.If Form1 contains txtNametxtAgeand u want to fetch data from Form2 then following action u can performin form2 load or any event where u want to call data write following codewith Form1Dim name as...
General Programming
»
Uncategorised Quick Answers
»
General
VB6
Page 1 of 1
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid