Questions?: FAQ's Current Release: v2.0 RC3a  
  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Submit Your EzASPSite Review


Sponsored Links
Purchase The EzASPSite Link Removal Key ($10.00 USD) - PayPal Method
Purchase The EzASPSite Link Removal Key ($10.00 USD) - StormPay Method

Start Using PayPal Start Using PayPal Start Using StormPay Start Using StormPay

Make payments with PayPal - it's fast, free and secure!
ASP.NET Discussions
 EzASPSite : Forum : ASP.NET Discussions
Subject Topic: Time format & Listbox multiple selection Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
frmsasp
Newbie
Newbie


Joined: Sep 03 2005
Posts: 1

Status: Offline

Posted: Oct 13 2005 at 5:15am | IP Logged Quote frmsasp

Currently I am working with the project which needs time format in 24 hours format(in ASP.net & C# langauges) and other features but i am facing problem with them. I have described the problems below in detail to easily understand, so please let me know if you know...

1> How to convert 10:30 pm into 22:30(24 hrs time format)?

2> I had used listbox with multiple selection for display of my item. Following is a example.
1. Item One.
2. Item Two.
3. Item Three.
4. Item Four.
5. Item Five.
Now at the time of record insertion I had select Item Two, Item Four, Item Five. In database I will store its ID with comma delimiter says 2,4,5.
Now in the edit form I want to display selectionbar on old previous item in listbox. so how shall I ?
I had used below code:
for (j=0; j < IdSplit.Length; j++)
{
 LstBox.SelectedValue = IdSplit[j].ToString();
}
This will shows selectionbar on last id only. In our example it will shows selectionbar on Item Five, 5.

3> I had created checkbox dynamically with below statement FOR EACH Module.
lblCheck.Text += "<input type='checkbox' name='chk[" + daDetail["Module_id"] + i.ToString() + "]' value='A'>Add
lblCheck.Text += "<input type='checkbox' name='chk[" + daDetail["Module_id"] + i.ToString() + "]' value='E'>Edit
lblCheck.Text += "<input type='checkbox' name='chk[" + daDetail["Module_id"] + i.ToString() + "]' value='D'>Delete
lblCheck.Text += "<input type='checkbox' name='chk[" + daDetail["Module_id"] + i.ToString() + "]' value='S'>
Search Say my Module_Id = 12
After form submit, I got value by form.querystring["chk121"]; form.querystring["chk122"];
form.querystring["chk123"];
form.querystring["chk124"];
but I want to use foreach loop for checking of for loop. Because there are more then 50 modules. so how shall I do this ?

Any help, advice or pointers on this matter would be highly appreciated.

Thanks,
Paresh

Back to Top View frmsasp's Profile Search for other posts by frmsasp Send Private Message Add to Buddy List
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Related Links

Powered by Web Wiz Forums version 7.01 (Ez Mod)
Copyright ©2001-2003 Web Wiz Guide

 
©2003-2010 EzASPSite™ All Rights Reserved.
Need a vacation? Find our more about a Hawaii Vacation or get Hawaii insider tips!