Click here to Skip to main content
15,912,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCompare Validator Problem Pin
Jintal Patel7-Nov-07 19:44
Jintal Patel7-Nov-07 19:44 
AnswerRe: Compare Validator Problem Pin
aswini7-Nov-07 20:28
aswini7-Nov-07 20:28 
AnswerRe: Compare Validator Problem Pin
Krushna Sahu7-Nov-07 20:31
Krushna Sahu7-Nov-07 20:31 
QuestionDifference betwen single tier and N tier application. Pin
rahul.net117-Nov-07 19:30
rahul.net117-Nov-07 19:30 
AnswerRe: Difference betwen single tier and N tier application. Pin
asithangae7-Nov-07 21:34
asithangae7-Nov-07 21:34 
QuestionChanging The location tags attribute Pin
SreejithAchutan7-Nov-07 19:22
SreejithAchutan7-Nov-07 19:22 
QuestionDropDown Problem Pin
sabby20067-Nov-07 19:07
sabby20067-Nov-07 19:07 
QuestionDrop Down List Selected Value Problem Pin
Kurian_Kurian7-Nov-07 18:45
Kurian_Kurian7-Nov-07 18:45 
Hi am binding the Data in the dropdownlist(cboYY).But after selecting the value am not getting the selected value always getting selectedIndex=-1 and the selected value is getting Null that code as follows

string a =Convert.ToString(cboYY.SelectedIndex);
string b = cboYY.SelectedValue;

Databinding code as follows

private void bindYear()
{
DataTable YearTable = new DataTable();

DataColumn YearColumn;

YearColumn = new DataColumn();
YearColumn.DataType = Type.GetType("System.String");
YearColumn.ColumnName = "dobYear";
YearTable.Columns.Add(YearColumn);

YearTable.Rows.Add("YYYY");
for (int i = 1940; i <= DateTime.Now.Year; i++)
{
YearTable.Rows.Add(i);
}

if (YearTable.Rows.Count > 0)
{
cboYY.DataSource = YearTable;
cboYY.DataBind();
}
YearTable.Dispose();
}
AnswerRe: Drop Down List Selected Value Problem Pin
Unknown Ajanabi7-Nov-07 19:21
Unknown Ajanabi7-Nov-07 19:21 
GeneralRe: Drop Down List Selected Value Problem Pin
Kurian_Kurian7-Nov-07 19:54
Kurian_Kurian7-Nov-07 19:54 
GeneralRe: Drop Down List Selected Value Problem Pin
Nitin19817-Nov-07 20:12
Nitin19817-Nov-07 20:12 
AnswerRe: Drop Down List Selected Value Problem Pin
Unknown Ajanabi7-Nov-07 20:12
Unknown Ajanabi7-Nov-07 20:12 
AnswerRe: Drop Down List Selected Value Problem Pin
N a v a n e e t h7-Nov-07 21:52
N a v a n e e t h7-Nov-07 21:52 
QuestionFile System Browsing in ASP.NET - Need Code Help Pin
cadracing7-Nov-07 17:56
cadracing7-Nov-07 17:56 
AnswerRe: File System Browsing in ASP.NET - Need Code Help Pin
Christian Graus7-Nov-07 19:21
protectorChristian Graus7-Nov-07 19:21 
QuestionData Blues Pin
BezerkRogue7-Nov-07 15:56
BezerkRogue7-Nov-07 15:56 
AnswerRe: Data Blues Pin
Christian Graus7-Nov-07 17:42
protectorChristian Graus7-Nov-07 17:42 
Questionoracle conncetion error Pin
uowzd017-Nov-07 15:03
uowzd017-Nov-07 15:03 
QuestionRepeater within update panel - slow Pin
debbie_cruz7-Nov-07 13:37
debbie_cruz7-Nov-07 13:37 
QuestionASP .NET 2.0 Login Control Pin
kenexcelon7-Nov-07 10:39
kenexcelon7-Nov-07 10:39 
AnswerRe: ASP .NET 2.0 Login Control Pin
Pete O'Hanlon7-Nov-07 11:39
mvePete O'Hanlon7-Nov-07 11:39 
GeneralRe: ASP .NET 2.0 Login Control Pin
kenexcelon8-Nov-07 9:04
kenexcelon8-Nov-07 9:04 
GeneralRe: ASP .NET 2.0 Login Control Pin
Pete O'Hanlon8-Nov-07 9:28
mvePete O'Hanlon8-Nov-07 9:28 
QuestionLoading image at run time in a custom control used in a page. How to code this? Pin
Frankidoze7-Nov-07 8:41
Frankidoze7-Nov-07 8:41 
AnswerRe: Loading image at run time in a custom control used in a page. How to code this? Pin
pmarfleet7-Nov-07 9:44
pmarfleet7-Nov-07 9:44 

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.