|
-
Oct 22nd, 2003, 01:42 PM
#1
Thread Starter
Fanatic Member
Listbox properties
In a datagrid, you can set it so the alternating lines are a different color.
In ASP .Net, can you do this same thing to a list box?
Also, what would be a good book to buy that would tell me the properties of all these controls, and what they mean?
Core reference of VB .Net my MS Press?
Thanks
-
Oct 22nd, 2003, 03:00 PM
#2
Unfortunately, no.
I've learned from experiece here that anything using the <ASP:LISTITEM object cannot be assigned styles from ASP.NET
As a work-around, I have managed to do so with JavaScript, but it's more work usually than it's worth.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Oct 22nd, 2003, 03:16 PM
#3
Thread Starter
Fanatic Member
Ok, I guess I really need to bone up on Java script and HTML. The ASP tools are nice, but not enough for what I need.
On a differant topic, when I post data to my web page, a new page is created.
Is it possible for me to just clear the list box I have, then post new data to the same web page?
If so, how?
Thanks!
-
Oct 22nd, 2003, 04:03 PM
#4
lstBox.items.clear will clear the list box.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Oct 23rd, 2003, 07:58 AM
#5
Thread Starter
Fanatic Member
Thanks Lord_Rat, that works fine.
What about reposting the same page and not getting a new page everytime I repost to the list box.
Is that possible?
-
Oct 24th, 2003, 10:55 AM
#6
Not sure what you mean??
By default, ASP.NET should repost to the same page...??
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|