Click here to Skip to main content
15,921,837 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How do I remove the commas after reading a CSV file into a streamreader Pin
Guffa17-Dec-08 11:52
Guffa17-Dec-08 11:52 
GeneralRe: How do I remove the commas after reading a CSV file into a streamreader Pin
Tina P17-Dec-08 14:10
Tina P17-Dec-08 14:10 
GeneralRe: How do I remove the commas after reading a CSV file into a streamreader Pin
Tina P17-Dec-08 19:37
Tina P17-Dec-08 19:37 
GeneralRe: How do I remove the commas after reading a CSV file into a streamreader Pin
Guffa26-Dec-08 7:51
Guffa26-Dec-08 7:51 
QuestionHELP! using Replace function to replace letters with images Pin
icecandy15-Dec-08 12:36
icecandy15-Dec-08 12:36 
AnswerRe: HELP! using Replace function to replace letters with images Pin
Christian Graus15-Dec-08 13:19
protectorChristian Graus15-Dec-08 13:19 
AnswerRe: HELP! using Replace function to replace letters with images Pin
treputt15-Dec-08 14:17
treputt15-Dec-08 14:17 
QuestionAssigning and retrieving values from checkboxes which are dynamically created. Pin
Member 340288615-Dec-08 10:12
Member 340288615-Dec-08 10:12 
I am dynamically displaying thumbnail images from a folder but under each image, I have a checkbox -this is so the user can click a checkbox for each image he/she wants to delete and then click the submit button. However, I know I can get the values of checkboxes checked (true/false) but I need the filename of the image above it so I know which image to delete. I tried assigning the filename to the id of each checkbox but I get the error:

"The ID property of a control can only be set using the ID attribute in the tag and a simple value."

My code is as follows:

<form id="form1" runat="server">
<div>

<asp:DataList ID="dlImages" runat="server" forecolor="#000000" backcolor="#ffffff" cellpadding="3" gridlines="none" width="50%">
<itemstyle font-name="tahoma,arial,sans-serif" font-size="12" backcolor="#ffffff" />
<alternatingitemstyle font-name="tahoma,arial,sans-serif" font-size="2" backcolor="#ffff00" />
<itemtemplate>
<img src="uploaded/<%# Container.DataItem %>" border="0" />
<asp:CheckBox ID="<%# Container.DataItem %>" Text="<%# Container.DataItem %>" Name="<%# Container.DataItem %>" runat="server" />
</itemtemplate>

</asp:DataList>
<input id="btnDelete" type="button" value="Delete" OnServerClick="deletePics" runat="server" />
&nbsp;
<asp:Button ID="btnCancel" runat="server" onclick="btn_Cancel_Click"
Text="Back to Vehicles" CausesValidation="False" />
</div>
</form>

and I am binding an ArrayList of filenames on Page_Load.

Any ideas would be much appreciated.

Thanks
Lorna
AnswerRe: Assigning and retrieving values from checkboxes which are dynamically created. Pin
Christian Graus15-Dec-08 10:24
protectorChristian Graus15-Dec-08 10:24 
GeneralRe: Assigning and retrieving values from checkboxes which are dynamically created. Pin
Member 340288615-Dec-08 11:16
Member 340288615-Dec-08 11:16 
GeneralRe: Assigning and retrieving values from checkboxes which are dynamically created. Pin
Christian Graus15-Dec-08 11:41
protectorChristian Graus15-Dec-08 11:41 
AnswerRe: Assigning and retrieving values from checkboxes which are dynamically created. Pin
Nishant Singh15-Dec-08 17:22
Nishant Singh15-Dec-08 17:22 
QuestionGridView databinding event handler Pin
compninja2515-Dec-08 8:37
compninja2515-Dec-08 8:37 
AnswerRe: GridView databinding event handler Pin
Christian Graus15-Dec-08 15:19
protectorChristian Graus15-Dec-08 15:19 
GeneralRe: GridView databinding event handler Pin
compninja2516-Dec-08 3:05
compninja2516-Dec-08 3:05 
QuestionSeting focus for controls after postback Pin
chandra vempati15-Dec-08 8:27
chandra vempati15-Dec-08 8:27 
AnswerRe: Seting focus for controls after postback Pin
Christian Graus15-Dec-08 9:55
protectorChristian Graus15-Dec-08 9:55 
Question[Message Deleted] Pin
harcaype15-Dec-08 7:39
harcaype15-Dec-08 7:39 
AnswerRe: cannot run .htm in localhost Pin
Christian Graus15-Dec-08 9:55
protectorChristian Graus15-Dec-08 9:55 
Questiondebugging in ASP.NET Pin
Member 305788715-Dec-08 7:27
Member 305788715-Dec-08 7:27 
AnswerRe: debugging in ASP.NET Pin
Christian Graus15-Dec-08 9:54
protectorChristian Graus15-Dec-08 9:54 
QuestionDomain pointing and web.config file set up Pin
Nic Stark15-Dec-08 7:21
Nic Stark15-Dec-08 7:21 
AnswerRe: Domain pointing and web.config file set up Pin
Christian Graus15-Dec-08 9:53
protectorChristian Graus15-Dec-08 9:53 
Questionhow are the events in ASp.NET web page executed Pin
Member 305788715-Dec-08 7:20
Member 305788715-Dec-08 7:20 
AnswerRe: how are the events in ASp.NET web page executed Pin
Christian Graus15-Dec-08 9:52
protectorChristian Graus15-Dec-08 9:52 

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.