Click here to Skip to main content
15,920,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionExport image to excel Pin
saravanan052-Oct-08 19:09
saravanan052-Oct-08 19:09 
Questionhave a problem with sessions Pin
kheer2-Oct-08 18:33
kheer2-Oct-08 18:33 
AnswerRe: have a problem with sessions Pin
Sneha Bisht2-Oct-08 18:48
Sneha Bisht2-Oct-08 18:48 
GeneralRe: have a problem with sessions Pin
kheer2-Oct-08 18:57
kheer2-Oct-08 18:57 
GeneralRe: have a problem with sessions Pin
N a v a n e e t h2-Oct-08 22:29
N a v a n e e t h2-Oct-08 22:29 
AnswerRe: have a problem with sessions Pin
Brij2-Oct-08 19:02
mentorBrij2-Oct-08 19:02 
GeneralRe: have a problem with sessions Pin
Krazy Programmer2-Oct-08 21:39
Krazy Programmer2-Oct-08 21:39 
GeneralRe: have a problem with sessions Pin
N a v a n e e t h2-Oct-08 22:33
N a v a n e e t h2-Oct-08 22:33 
QuestionTotal Days of Month Pin
Socheat.Net2-Oct-08 17:28
Socheat.Net2-Oct-08 17:28 
AnswerRe: Total Days of Month Pin
Brij2-Oct-08 18:12
mentorBrij2-Oct-08 18:12 
GeneralRe: Total Days of Month Pin
Socheat.Net2-Oct-08 18:36
Socheat.Net2-Oct-08 18:36 
Questionfind checkbox in a nested controls(Panel -> DataList) Pin
Albert832-Oct-08 14:16
Albert832-Oct-08 14:16 
AnswerRe: find checkbox in a nested controls(Panel -> DataList) Pin
AlexeiXX32-Oct-08 16:24
AlexeiXX32-Oct-08 16:24 
QuestionRe: find checkbox in a nested controls(Panel -> DataList) Pin
Albert832-Oct-08 17:24
Albert832-Oct-08 17:24 
AnswerRe: find checkbox in a nested controls(Panel -> DataList) Pin
AlexeiXX33-Oct-08 4:21
AlexeiXX33-Oct-08 4:21 
QuestionRe: find checkbox in a nested controls(Panel -> DataList) Pin
Albert833-Oct-08 7:02
Albert833-Oct-08 7:02 
Thanks a lot. With the index it goes through the checkboxes that I have and not through the datalist items.

For example using your suggestion: this.inboxDL.Items[1]

CheckBox chkBox = (CheckBox)this.inboxDL.Items[1].FindControl("chkMarkerInbox");
Response.Write("check");
if (chkBox.Checked == true)
{
ddlTest.SelectedItem.Text = "works";
}

Only when I click on checkbox with index[1] ddlTest will change to "works".
But I have 5 more checkboxes which are not changing the state of ddlTest to "works".
So it goes through the checkboxes and not the datalist items as I understand.
Is it so?

But I made it work as follows. This way I assume when it encounter non checkbox controls it does nothing and when it does with Findcontrol it stores true/false in the isDeleted variable.
That's how I think the code works.

bool isDeleted = false;

foreach (DataListItem anItem in inboxDL.Items)
{
isDeleted =
((CheckBox)anItem.FindControl("chkMarkerInbox")).Checked;
if (isDeleted)
{
lbDel.Enabled = true;
ddlTest.SelectedItem.Text = "works";
}
}
Thanks again.
Questionplace a link in datalist to an image Pin
Meax2-Oct-08 12:07
Meax2-Oct-08 12:07 
AnswerRe: place a link in datalist to an image Pin
AlexeiXX32-Oct-08 16:32
AlexeiXX32-Oct-08 16:32 
QuestionWhy some business objects under App_code directory do not showing up when I place an ObjectDataSource control onto form? Pin
JUNEYT2-Oct-08 11:07
JUNEYT2-Oct-08 11:07 
QuestionBoth DataSource and DataSourceID are defined on 'Gridview' !! Pin
kindman_nb2-Oct-08 8:43
kindman_nb2-Oct-08 8:43 
AnswerRe: Both DataSource and DataSourceID are defined on 'Gridview' !! Pin
Adam °Wimsatt2-Oct-08 9:38
Adam °Wimsatt2-Oct-08 9:38 
GeneralRe: Both DataSource and DataSourceID are defined on 'Gridview' !! Pin
kindman_nb2-Oct-08 16:59
kindman_nb2-Oct-08 16:59 
QuestionCommunication between dynamically added custom user controls Pin
Adam °Wimsatt2-Oct-08 7:41
Adam °Wimsatt2-Oct-08 7:41 
AnswerRe: Communication between dynamically added custom user controls Pin
Andreas X2-Oct-08 20:06
professionalAndreas X2-Oct-08 20:06 
QuestionSaving a XmlDocument in Session Pin
drew252-Oct-08 4:35
drew252-Oct-08 4: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.