Click here to Skip to main content
15,890,186 members
Home / Discussions / C#
   

C#

 
QuestionConnection string Pin
humayunlalzad13-Jun-10 3:01
humayunlalzad13-Jun-10 3:01 
AnswerRe: Connection string Pin
Abhinav S13-Jun-10 3:27
Abhinav S13-Jun-10 3:27 
GeneralRe: Connection string Pin
humayunlalzad13-Jun-10 3:51
humayunlalzad13-Jun-10 3:51 
Questioncrystal report and list<> Pin
reza assar12-Jun-10 21:39
reza assar12-Jun-10 21:39 
AnswerRe: crystal report and list Pin
Mycroft Holmes13-Jun-10 19:55
professionalMycroft Holmes13-Jun-10 19:55 
QuestionNeed to add 1 to a cache value Pin
Randall Hall12-Jun-10 18:07
Randall Hall12-Jun-10 18:07 
AnswerRe: Need to add 1 to a cache value Pin
Dan Mos12-Jun-10 18:21
Dan Mos12-Jun-10 18:21 
AnswerRe: Need to add 1 to a cache value Pin
Pete O'Hanlon13-Jun-10 4:44
mvePete O'Hanlon13-Jun-10 4:44 
Randall Hall wrote:
(Cache("locid") + 1)


This is the problem. Cache provides indexer access to object values, so you need to extract the value back out before you attempt to work with it. Try changing this instead to:
int value;
if (int.TryParse(Cache["locid"], out value))
{
  lblsite.Text = ++value;
}

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



QuestionTab Control with Exit Button Pin
royk12312-Jun-10 10:04
royk12312-Jun-10 10:04 
AnswerRe: Tab Control with Exit Button Pin
Dan Mos12-Jun-10 16:18
Dan Mos12-Jun-10 16:18 
GeneralRe: Tab Control with Exit Button Pin
royk12313-Jun-10 2:09
royk12313-Jun-10 2:09 
AnswerRe: Tab Control with Exit Button Pin
Amar Chaudhary12-Jun-10 17:09
Amar Chaudhary12-Jun-10 17:09 
QuestionSetting Datagridview combobox column value to null. Pin
priyamtheone12-Jun-10 6:14
priyamtheone12-Jun-10 6:14 
AnswerRe: Setting Datagridview combobox column value to null. Pin
Mycroft Holmes12-Jun-10 15:53
professionalMycroft Holmes12-Jun-10 15:53 
AnswerRe: Setting Datagridview combobox column value to null. [modified] Pin
priyamtheone14-Jun-10 5:43
priyamtheone14-Jun-10 5:43 
GeneralRe: Setting Datagridview combobox column value to null. Pin
Mycroft Holmes14-Jun-10 12:10
professionalMycroft Holmes14-Jun-10 12:10 
QuestionAccessing CheckBox on row in Datagridview Pin
Smith#12-Jun-10 4:09
Smith#12-Jun-10 4:09 
AnswerRe: Accessing CheckBox on row in Datagridview Pin
dan!sh 12-Jun-10 4:25
professional dan!sh 12-Jun-10 4:25 
GeneralRe: Accessing CheckBox on row in Datagridview Pin
Smith#12-Jun-10 4:49
Smith#12-Jun-10 4:49 
GeneralRe: Accessing CheckBox on row in Datagridview Pin
Luc Pattyn12-Jun-10 5:01
sitebuilderLuc Pattyn12-Jun-10 5:01 
GeneralRe: Accessing CheckBox on row in Datagridview Pin
Smith#12-Jun-10 5:24
Smith#12-Jun-10 5:24 
GeneralRe: Accessing CheckBox on row in Datagridview Pin
Luc Pattyn12-Jun-10 5:40
sitebuilderLuc Pattyn12-Jun-10 5:40 
GeneralRe: Accessing CheckBox on row in Datagridview Pin
dan!sh 12-Jun-10 5:07
professional dan!sh 12-Jun-10 5:07 
GeneralRe: Accessing CheckBox on row in Datagridview Pin
Smith#12-Jun-10 5:25
Smith#12-Jun-10 5:25 
GeneralRe: Accessing CheckBox on row in Datagridview Pin
Dr.Walt Fair, PE12-Jun-10 6:04
professionalDr.Walt Fair, PE12-Jun-10 6:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.