Click here to Skip to main content
15,900,724 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Cannot implicitly convert type 'int' to 'string' Pin
Herman<T>.Instance10-Jul-08 3:18
Herman<T>.Instance10-Jul-08 3:18 
GeneralRe: Cannot implicitly convert type 'int' to 'string' Pin
eyeseetee10-Jul-08 3:31
eyeseetee10-Jul-08 3:31 
GeneralRe: Cannot implicitly convert type 'int' to 'string' Pin
Herman<T>.Instance10-Jul-08 3:36
Herman<T>.Instance10-Jul-08 3:36 
GeneralRe: Cannot implicitly convert type 'int' to 'string' Pin
eyeseetee10-Jul-08 3:44
eyeseetee10-Jul-08 3:44 
GeneralRe: Cannot implicitly convert type 'int' to 'string' Pin
Herman<T>.Instance10-Jul-08 6:22
Herman<T>.Instance10-Jul-08 6:22 
GeneralRe: Cannot implicitly convert type 'int' to 'string' Pin
Guffa10-Jul-08 4:08
Guffa10-Jul-08 4:08 
GeneralRe: Cannot implicitly convert type 'int' to 'string' Pin
Herman<T>.Instance10-Jul-08 6:18
Herman<T>.Instance10-Jul-08 6:18 
AnswerRe: Cannot implicitly convert type 'int' to 'string' [modified] Pin
Herman<T>.Instance10-Jul-08 3:31
Herman<T>.Instance10-Jul-08 3:31 
Well....If you want to add an item to the DropDownList you could do
dropdown.Items.Add(new ListItem(count.ToString(),count.ToString()));

in stead of dropdown.DataValueField = count.ToString();
dropdown.DataTextField = count.ToString();

DataxxxxField is used for DataBinding for values retrieved from a database

In page_Load remember to place code in
if (!Page.IsPostBack)
{
// the code
}

modified on Thursday, July 10, 2008 9:37 AM

Question[Message Deleted] Pin
ash0410-Jul-08 2:45
ash0410-Jul-08 2:45 
AnswerRe: HttpContext.Current.Session Pin
Herman<T>.Instance10-Jul-08 3:24
Herman<T>.Instance10-Jul-08 3:24 
GeneralRe: HttpContext.Current.Session Pin
ash0410-Jul-08 4:16
ash0410-Jul-08 4:16 
GeneralRe: HttpContext.Current.Session Pin
Herman<T>.Instance10-Jul-08 6:25
Herman<T>.Instance10-Jul-08 6:25 
GeneralRe: HttpContext.Current.Session Pin
ash0410-Jul-08 22:01
ash0410-Jul-08 22:01 
QuestionVBA.Calendar = vbCalHijri Pin
Bhim Prakash Singh10-Jul-08 1:48
Bhim Prakash Singh10-Jul-08 1:48 
QuestionProblem with file upload using Pure ASP Pin
M LN Rao10-Jul-08 1:28
M LN Rao10-Jul-08 1:28 
AnswerRe: Problem with file upload using Pure ASP Pin
Sutheesh chandran10-Jul-08 1:38
Sutheesh chandran10-Jul-08 1:38 
GeneralRe: Problem with file upload using Pure ASP Pin
M LN Rao10-Jul-08 2:12
M LN Rao10-Jul-08 2:12 
GeneralRe: Problem with file upload using Pure ASP Pin
Sherin Iranimose10-Jul-08 2:15
Sherin Iranimose10-Jul-08 2:15 
Questionupdating dropdownlist value in row Pin
eyeseetee10-Jul-08 0:59
eyeseetee10-Jul-08 0:59 
QuestionRe: updating dropdownlist value in row Pin
Imran Khan Pathan10-Jul-08 1:11
Imran Khan Pathan10-Jul-08 1:11 
AnswerRe: updating dropdownlist value in row Pin
eyeseetee10-Jul-08 1:20
eyeseetee10-Jul-08 1:20 
GeneralRe: updating dropdownlist value in row Pin
Imran Khan Pathan10-Jul-08 1:50
Imran Khan Pathan10-Jul-08 1:50 
GeneralRe: updating dropdownlist value in row Pin
eyeseetee10-Jul-08 2:23
eyeseetee10-Jul-08 2:23 
GeneralRe: updating dropdownlist value in row Pin
Imran Khan Pathan10-Jul-08 2:26
Imran Khan Pathan10-Jul-08 2:26 
GeneralRe: updating dropdownlist value in row Pin
eyeseetee10-Jul-08 2:35
eyeseetee10-Jul-08 2:35 

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.