Click here to Skip to main content
15,910,277 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondisplay records through age in .net Pin
saitwal6-Mar-13 8:09
saitwal6-Mar-13 8:09 
AnswerRe: display records through age in .net Pin
ravithejag7-Mar-13 0:37
ravithejag7-Mar-13 0:37 
RantRe: display records through age in .net Pin
Richard Deeming7-Mar-13 0:57
mveRichard Deeming7-Mar-13 0:57 
Question90Meter SmartCard Manager Pin
Member 87055646-Mar-13 6:25
Member 87055646-Mar-13 6:25 
QuestionRetrieve Email Id from outlook and send as a response when the user opens the mail Pin
kumar.ranjith.k5-Mar-13 19:24
kumar.ranjith.k5-Mar-13 19:24 
AnswerRe: Retrieve Email Id from outlook and send as a response when the user opens the mail Pin
Richard MacCutchan5-Mar-13 22:44
mveRichard MacCutchan5-Mar-13 22:44 
QuestionRe: Retrieve Email Id from outlook and send as a response when the user opens the mail Pin
jkirkerx6-Mar-13 12:31
professionaljkirkerx6-Mar-13 12:31 
SuggestionMessage Closed Pin
5-Mar-13 19:19
ketan ovhal5-Mar-13 19:19 
GeneralRe: some important or useful Questions and answers Pin
Minal Joshi5-Mar-13 19:28
Minal Joshi5-Mar-13 19:28 
QuestionASP.NET Pin
Varadha Raj4-Mar-13 20:45
Varadha Raj4-Mar-13 20:45 
AnswerRe: ASP.NET Pin
Sandeep Mewara4-Mar-13 21:11
mveSandeep Mewara4-Mar-13 21:11 
GeneralRe: ASP.NET Pin
Varadha Raj4-Mar-13 21:42
Varadha Raj4-Mar-13 21:42 
AnswerRe: ASP.NET Pin
Sandeep Mewara4-Mar-13 23:00
mveSandeep Mewara4-Mar-13 23:00 
GeneralRe: ASP.NET Pin
Varadha Raj5-Mar-13 0:10
Varadha Raj5-Mar-13 0:10 
GeneralRe: ASP.NET Pin
Richard MacCutchan5-Mar-13 1:21
mveRichard MacCutchan5-Mar-13 1:21 
GeneralRe: ASP.NET Pin
Varadha Raj4-Mar-13 21:45
Varadha Raj4-Mar-13 21:45 
GeneralRe: ASP.NET Pin
Sandeep Mewara4-Mar-13 23:02
mveSandeep Mewara4-Mar-13 23:02 
GeneralRe: ASP.NET Pin
Varadha Raj5-Mar-13 0:02
Varadha Raj5-Mar-13 0:02 
AnswerRe: ASP.NET Windows Application Pin
Muhammad Aqib Shehzad5-Mar-13 0:55
professionalMuhammad Aqib Shehzad5-Mar-13 0:55 
GeneralRe: ASP.NET Windows Application Pin
Varadha Raj5-Mar-13 1:17
Varadha Raj5-Mar-13 1:17 
AnswerRe: ASP.NET Pin
Howard Richards5-Mar-13 3:21
Howard Richards5-Mar-13 3:21 
QuestionDataset Pin
berba4-Mar-13 1:00
berba4-Mar-13 1:00 
AnswerRe: Dataset Pin
Blikkies4-Mar-13 3:05
professionalBlikkies4-Mar-13 3:05 
Questiondropdownlist auto select first value in gridview with edit mode Pin
demoninside93-Mar-13 20:30
demoninside93-Mar-13 20:30 
Hi,

actually I have bounded a dropdownlist in gridview in edit mode, but the problem is that whenever i try to select another value from dropdownlist, it auto select the first value.

I also used !IsPostBack property on page_load event but still it is not selecting the another items.

<pre lang="c#">
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if ((e.Row.RowState & DataControlRowState.Edit) > 0)
{

DropDownList ddlCost_Code = DropDownList)e.Row.FindControl("ddlCost_Code");

BAL bl = new BAL();
DataTable dt_for_CostCode = null;

dt_for_CostCode = bl.Select_Cost_Code();
if (dt_for_CostCode.Rows.Count > 0)
{
ddlCost_Code.DataSource = dt_for_CostCode;
ddlCost_Code.DataTextField = "Cost_Code";
ddlCost_Code.DataValueField = "Proposalno";
ddlCost_Code.DataBind();
}

}


if (!IsPostBack)
{


try
{

Log_Booked_Info_Through_Booking_Table();


}
catch (Exception ex)
{
WebMsgBox.Show(ex.Message);
}
}

}
</pre>
AnswerRe: dropdownlist auto select first value in gridview with edit mode Pin
Karthik Harve3-Mar-13 21:44
professionalKarthik Harve3-Mar-13 21: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.