9,868,710 members (24,233 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*
117 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 3
Page Size:
10
·
25
·
50
Author filtered by: Zaf Khan
[x]
appearance of the menu tabs after authentication
by
Zaf Khan
Answer
28 Dec 2012
license:
CPOL
I'm not sure of the MVC4.0 syntax but You could test for the roles as well as to see if the user is logged in....the psuedo code for it would be something along the lines of...If request.auntheticated If userrole is admin show admin menu else show member menu end...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
MVC4
passing parameter value between methods
by
Zaf Khan
Answer
28 Dec 2012
license:
CPOL
I was always under the impression that the fileupload component alowed you to upload a file to a non publically accessible area like an _uploads/uploads folder for example and the file named to anything you wanted like upload243.doc and then once uploaded (and the file extension PRESERVED) and...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
C#
C#4.0
Is there is any event fires when focus chenaged from one control to another control?
by
Zaf Khan
Answer
28 Dec 2012
license:
CPOL
Depending on the type of control that is GAINING or LOSING control there are many events within the event cycles.One place you can read more is herehttp://www.thevbprogrammer.com/VBNET_08/08-00_VB2K_ControlBasics.htm[^]Another place is...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
how to keep the scroll bar in upward direction in window application Form
by
Zaf Khan
Answer
28 Dec 2012
license:
CPOL
Drop a PANEL control ABOVE your EDITOR with the scrolling issue and Then you should be fine....What ever controls you have in the TOP of your EDITOR....Place them in the PANEL instead!And then when your editor scrolls the panel will stay where it is!!!
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Display Image And Given Information About Image When Clicked On Thumb Image
by
Zaf Khan
Answer
21 Dec 2012
license:
CPOL
The whole point of using the database is so that you can DYNAMICALLY populate a SINGLE PAGE TEMPLATE with the record from the database.And that way you dont have to create an indivdual page for each record!The psuedo code for what you are attempting is as follows... 1 - User clicks...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
url userfreindly but the target page is not loaded
by
Zaf Khan
Answer
21 Dec 2012
license:
CPOL
It looks like you have your code in the wrong sections..Maybe this LINK will help you..
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
C#
C#4.0
SQL Stored Procedure expects parameter, which was not supplied.
by
Zaf Khan
Answer
21 Dec 2012
license:
CPOL
Your stored procedure is designed to add an entry to your database,we know this because it uses the INSERT statementSo you have specified an identity using @name/@identity, but you have not specified the person salary which ought to be there.so wherever you are CALLING the stored...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Re: Hello - Is it possible to have about 1K of space to make notes within our profiles?
by
Zaf Khan
Forum Message
21 Dec 2012
What i meant was 1k space for personal notes for stuff related to THIS website so i dont have to save notes in a notepad file on the desktop. In those notes i would store info about who i have help
Feature Forums
»
- Uncategorised Posts -
Hello - Is it possible to have about 1K of space to make notes within our profiles?
by
Zaf Khan
Forum Message
20 Dec 2012
Hello - Is it possible to have about 1K of space to make notes within our profiles?
Feature Forums
»
- Uncategorised Posts -
code for saving new and updating existing record
by
Zaf Khan
Answer
19 Dec 2012
license:
CPOL
Private Sub save_Click() RES.Open "STUDENT_RECORD_DATABASE", CON, adOpenDynamic, adLockOptimistic, adCmdTable RES!ROLLNO = Combo4.Text RES!FIRST_NAME = Text2.Text RES!MIDDLE_NAME = Text3.Text RES!LAST_NAME = Text4.Text RES!CONTACT = Text5.Text ...
General Programming
»
Uncategorised Quick Answers
»
General
VB6
Oracle
Re: instr function not accepting arguments VB.net
by
Zaf Khan
Forum Message
19 Dec 2012
Yes theres INSTR, If INSTR(Look-in-this-string", "For-This-String") > 0 Then 'REM A Match Was Found Else 'REM No_Match_Was_Found End If and if you assign the res
General Programming
»
Visual Basic
Re: instr function not accepting arguments VB.net
by
Zaf Khan
Forum Message
19 Dec 2012
Did you try the code portion i added in my thread? I tested it and it works fine... obviously we can see the word AND is in the string JACK AND JILL..... It makes me wonder what the ACTUAL stri
General Programming
»
Visual Basic
Re: HTML5 Javascript Issue
by
Zaf Khan
Forum Message
19 Dec 2012
I wonder what version of opera you guys are running as on my opera 12.12 its the same as in IE9 white screen.
Web Development
»
Javascript
Re: HTML5 Javascript Issue
by
Zaf Khan
Forum Message
19 Dec 2012
OUTSIDE the environment running it from inside a folder inside mydocuments... the first warning notice is that active x restricted content wants to run. Clicked on allow it to run... Pops up an e
Web Development
»
Javascript
Check that only one field can be selected in a list box when it is a particular case
by
Zaf Khan
Answer
19 Dec 2012
license:
CPOL
If you are using a serverside listbox then change the following propertychange it from...Object.mulitple=truetoObject.mulitple=falsebut dont forget to check that B selected first.dim Test as boolean = Falsedim Marker as integerfor i = 0 to...
General Programming
»
Uncategorised Quick Answers
»
General
asp.net4
onclick of img tag inside popup.body.html
by
Zaf Khan
Answer
19 Dec 2012
license:
CPOL
Here is a solution
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
Expanded/ collapsed gridview
by
Zaf Khan
Answer
19 Dec 2012
license:
CPOL
Try to save the state of the expanded/collapsed rows in a cookie everytime the row visibility changes if that option is available - meaning if cookies are enabled onthe client computer.
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Unable to Capture Image in Windows 7 by Vb.net
by
Zaf Khan
Answer
19 Dec 2012
license:
CPOL
Mabe this article may be of help to you Stack Overflow
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Code that changes code of another page
by
Zaf Khan
Answer
19 Dec 2012
license:
CPOL
Did you try the following?Dim VALUE as integerDim source As String = [String].Format("/Exercises;component/CustomTheme/ThemeResources" & VALUE & ".xaml")Where Value is a variable and you can set it what you like as long as its valid for an .xaml file you have.I'm not 100% if...
General Programming
»
Uncategorised Quick Answers
»
General
C#
VB
VB.NET
VisualStudio2010
vb.net, How can I grab a Field value.
by
Zaf Khan
Answer
19 Dec 2012
license:
CPOL
Change your SELECT statement from what it is now to ....Using cmdObj As New SqlClient.SqlCommand("select Level, Username from UserTable where UserName = 'Test1'", connObj)And also the statement INSIDE the WHILE / END WHILE to....dbLevel=...
General Programming
»
Uncategorised Quick Answers
»
General
VB
Access
VB.NET
Re: Can only book for yourself and not other users?
by
Zaf Khan
Forum Message
19 Dec 2012
No doubt each employee has a username/name so you can use use compare the username/name of the logged in user to the username/name of the person for whom the holiday booking id for.
Web Development
»
Asp.Net
Re: How should I measure scroll position in different browsers
by
Zaf Khan
Forum Message
19 Dec 2012
What about rounding your items count up from 7.2 to 8 ? And then calculating the height based on that?
Web Development
»
Web Development
Re: instr function not accepting arguments VB.net
by
Zaf Khan
Forum Message
19 Dec 2012
Here is a sample for you... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim maintext As String
General Programming
»
Visual Basic
How to disable radio button on button click?
by
Zaf Khan
Answer
18 Dec 2012
license:
CPOL
in your code where you have the following..........protected void drpLType_SelectedIndexChanged(object sender, EventArgs e){ if (drpLType.SelectedValue == "Professional") { rdoMeapSupport.Enabled = true; } if (drpLType.SelectedValue == "Enterprise") ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Javascript
Please explain me this code.
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
The first line is DECLARING/DEFINING a string called _ConnString and the following portion initiualises it to nothing or empty.The second line then continues where the first line left off and.......Now that we are sure the _ConnString variable is empty...A connection object is...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
SQL-Server
How to add images dynamically to html generated code
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
Rather than creating the image dynamically in the code.... Seeing as your creating the html for a table and then adding the image to that...Why not change your code line from sb.AppendLine(img.ToString());to the below instead? sb.AppendLine("
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
create simple animated gif banners using asp.net
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
If your using HTML5 then you can use the CANVAS tag and create dynamic animations.HTML5 + CNVASCanvas DemosAlso there are some superb samples here - including parralax scrollingIf your not using HTML5 but using older technology like HTML 4.01 then you can use HTML + TIME SMIL 1.0...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
How to convert adoDB connection to SqlConnection?
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
Here are more connection strings for you,that show how to use connect to a datasource using OLEDB.Conn StringAnd here is the MS-SQL compatible converted code equivalent of your above codeblock.Function SomeKnockeUpCode() As String Dim intX As Integer = Nothing Dim intY As...
General Programming
»
Uncategorised Quick Answers
»
General
VB
SQL-Server
SQL2008
VB.NET
Send a Word file to users without email
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
I guess without using email....You would have to upload it to a PRIVATE portion of your hosting space and then to forward the URL to each of the panel members, try to make them sign (agree to download) for the word document and once they have ALL downloaded it, then you can delete it.
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
How to convert adoDB connection to SqlConnection?
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
I think you can manage it using OLEDB Dont quote me on that as im not 110% sure.Maybe this page will give you more info
General Programming
»
Uncategorised Quick Answers
»
General
VB
SQL-Server
SQL2008
VB.NET
configure html and asp.net pages
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
Look in your IIS control panel or Snap-In.And under the IIS heading look for DEFAULT DOCUMENTWhen you double click it you will be presented with a list of the default document types it will open.Chances are default.aspx or index.aspx maybe be missing although they are usually ALWAYS in...
General Programming
»
Uncategorised Quick Answers
»
General
IIS7
ASP.NET
IIS
win
Help on Wordpress coding
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
You can find it here........http://wordpress.org/extend/plugins/like-button-plugin-for-wordpress/
General Programming
»
Uncategorised Quick Answers
»
General
wordpress
Changing the color of the text box when we are entering the details.and after that it should go to the previous color
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
Whatever styling name you have used to STYLE your text boxes...You just duplicate the style then add :Hover to its name and modify the styleLets say its called MyTextStyleThen in your stylsheet it may appear as below...The style below gives you white background and red...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
how to give permissions to restricted pages
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
You must assign the page viewers (the people viewing the pages) some form of classification like...public viewee (non member)member viewee (registered member)exclusive viewee (privelidged member)One way you can do this in ASP.NET is to use ROLES.So you would assign the roles to the...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
how to view Generic List items in label or in gridview
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
In your c# i'm not sure how to code it,but its not difficult.So if i provide it in VB maybe you will understand hopefully?YOUR CODE C#for each (GridViewRow item in GridView1.Rows) { itemName = item.Cells[1].Text; id.Add(method to get id from database); }In VB...
General Programming
»
Uncategorised Quick Answers
»
General
C#1.0
C#2.0
C#3.0
C++
C
C#
ASP
ASP.NET
CSS
ADO
, +
email sending failed asp.net
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
Usually most mail service providers only allow you to use their mail servers if you have an account with them.So it begs the question whatever domain your using?....abc@somedomain.com....Do you have an account or membership with somedomain.com (whatever the name of the domain...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
RESIZING PROBLEM IN ASP.NET
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
Check my post HEREIt is Solution 3
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
How to get ip details like location host etc in asp.net..
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
Yes.You can use the request object and the SERVERVARIABLES property.SERVERVARIABLES
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Logon failure: unknown user name or bad password
by
Zaf Khan
Answer
17 Dec 2012
license:
CPOL
Should that %3D be there?are you URLEncoding the &tab parameter value?maybe that should be &tab=wm instead of &tab=%3Dwm
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Adjust controls position for all size browsers
by
Zaf Khan
Answer
16 Dec 2012
license:
CPOL
Check my post HERE although it is for VB.NET forms application you shold be able to adapt it for use in your webpage.
General Programming
»
Uncategorised Quick Answers
»
General
WPF
VisualStudio2012
Need help in running windows application at any screen resolution
by
Zaf Khan
Answer
15 Dec 2012
license:
CPOL
Here is a code block to do JUST what you want.NOTE:Its not my own code, although i did write something similar over 10 years ago.This sample is from Planet Source CodeEvery time i tried to paste the link it conked out for some mad reason.So i have simply pasted the code...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
VB
VB.NET
screen
Menu in master page.
by
Zaf Khan
Answer
13 Dec 2012
license:
CPOL
In your master page add the following code....Private mSelMenuItem as string = nothingPublic property SelMenuItem as string get return mSelMenuItem end get set (value as string) mSelMenuitem = value end setend propertyPublic Function...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
img src issue in hosted environment
by
Zaf Khan
Answer
13 Dec 2012
license:
CPOL
You may to user "server.mappath" method to map the server path.
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
HTML
How to create the popup window button click in asp.net.......?
by
Zaf Khan
Answer
12 Dec 2012
license:
CPOL
You can find out exactly here
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
ASP.NET
C#
windows controls enabling and disabling
by
Zaf Khan
Answer
12 Dec 2012
license:
CPOL
You could do it as.........Using text value based conditions in your reportTextbox1.enabled = (Condition_In_Report = "Text_Value")Using Numeric based values in your reportCombo1.Enabled = (Condition_In_Report = 6 or 9 or (12 and 3))Just replace the numeric or text values...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Retaining the color of an item selected from a combobox : Code- Attached
by
Zaf Khan
Answer
12 Dec 2012
license:
CPOL
You can use a variable at the form level scope and call it something like "LastColor" and set the value for it in the "IF" statement when you determine the forecolor, and then when the dropdown list selection changes you can recall the color from the static variable.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Asp.net Edit page with C#
by
Zaf Khan
Answer
12 Dec 2012
license:
CPOL
You can do it as below in clientside code. Please Select
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to generate color name from RGB Values?
by
Zaf Khan
Answer
12 Dec 2012
license:
CPOL
You will have to cross reference the RGB values in a lookup table which contains the RECOGNISED colors
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
C#
ASP.NET
C#
Color
convert
generator
Named
conversion
Convert string to date time format
by
Zaf Khan
Answer
12 Dec 2012
license:
CPOL
You could always do it as below...CType(Today.Date & " 00:00:00", DateTime)Obviously replace "today.date" with the date you want to use
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
VB.NET (Advnaced MySQL)?
by
Zaf Khan
Answer
12 Dec 2012
license:
CPOL
If the information is not sensitive then you could implement XML to persist your data inside a STRUCTURED xml document.
General Programming
»
Uncategorised Quick Answers
»
General
VB
MySQL
VB.NET
Page 1 of 3
1
2
3
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