|
Where do you get the items from? If you for an example get them from a database, it's easier and more efficient to remove duplicates and sort in the database query, than writing code for it.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa,
I get the items from a db call to populate the left listbox on my page. The user will click on this listbox to transfer the "number" over to the right side listbox, Listbox2, on the page.
I'm trying this code to sort the items in Listbox2, but get:
At least one object must implement IComparable.
Dim items As New ArrayList(ListBox2.Items)
items.Sort()
ListBox2.DataSource = items
|
|
|
|
|
Implement an IComparer for ListItem, and use that in the call to the Sort method.
But, shouldn't you do this using client script instead? If you use server code to move the items, you will be sending a lot of data back and forth between the server and the client.
---
b { font-weight: normal; }
|
|
|
|
|
Got it to work with this:
http://www.411asp.net/func/content?tree=411asp/tutorial/specific/web/userinte/webcontr/listbox&id=5881410
Thanks to all for the help!
|
|
|
|
|
I’m new to ASP.NET and I have been having trouble developing some of the client-side script. I have two webforms that are in two frames in a window. The first webform has a datagrid and the second (main webform) has javascript that will updates it’s contents based on the selected value in the datagrid. I would like to execute specific script on the main webform when the user makes a selection in the datagrid. I would also need to send the datagrid’s selected value to the main webform. I can’t find any references about this process. Any input on this would be appreciated.
|
|
|
|
|
|
If your subject is the same as the qustion, either the subject is way too long, or the question is way to short.
In this case, obviously, it's the second. You have to explain a lot more about what you are trying to do.
---
b { font-weight: normal; }
|
|
|
|
|
hello sir,
I'm making a project in asp.net with vb,i have a page named as IndividualProperty.aspx.
I'm showing the listing of all the property one after it in the page.when any user select any property such as he select "abc" property, when he click on this Property the IndividualPropertypage will be called.that is ok.
but i want to change the URL from www.xyz.com/IndividualPropertypage.aspx to www.xyz.com/abc.com
meanwhile whatever the property he select property name must be replace the page name in the URL.
How is it possible,plz tell me thanx
|
|
|
|
|
I created a Custom Control that have a Label control. When i add this control in my aspx page, by default all the property value comes from the asp.net. But i wish to take only few property such as Borderstyle at design time,Font (with style) at design time, Background at design and run time and
FontColor at design and run time only. Please help me ............. to solve this problem.
I am using asp.net 2.0 with C#.
Thanks in Advance
Shail Nigam
-- modified at 9:18 Monday 7th August, 2006
|
|
|
|
|
If you're using themes, you could create a skin for the Label control with only a few properties set at design time. Then set the ones you want at runtime.
|
|
|
|
|
No, i am not using themes. I am creating a custom control please send me code if anybody have.
Thanks in advence
|
|
|
|
|
I Have 1 Dataset that i retrive from a Webservice and a similar dataset that
I populate from a local database.
I need to Perform Insert and Update on Tables in that Local DataBase Depending on the Differance in these two DataSets.
Is it Possible in Ado.Net 2.0 if So kindly Guide Me..
Thanks...
|
|
|
|
|
Sir,
Is it possible to set focus the textbox programically at the form load in vb.net 1.1
Please help.
|
|
|
|
|
|
I am woking with word COM
I create class for handle word
creted an instance and using it
Every thing is fine when , i am running in localhost
After uploading
I am getting the followin ERROR,
Object reference not set to an instance of an object.
Thanks in Advance
|
|
|
|
|
Are you certain that Word is installed on the production server?
|
|
|
|
|
I have a page with lot of JavaScript on a page and a few DB functions\
Why is there a very long string (more than 150 lines) in the __VIEWSTATE variable?
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
u can manager ur viewstate on the server.
as a example u can store viewstate in table or session.
if u search codeproject having keyword viewstate then u can many article with code that how to optimize viewstate on the server side.pls search codeproject.
tbhattacharjee
|
|
|
|
|
The __VIEWSTATE field contains the ViewState of the page. Some controls, like the DropDownList control, store all the data needed to recreate the control after postback in the ViewState.
You can disable this for each control using the EnableViewState property, or you can disable the ViewState for the entire page.
---
b { font-weight: normal; }
|
|
|
|
|
Does lot of JavaScript Code have something to do with this?
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
No.
---
b { font-weight: normal; }
|
|
|
|
|
hi all,
hi i just want to reload a page from codebehind im using c# and asp.net.
i need it in c#.
thanks .
hi to all
with regards,
susa
|
|
|
|
|
Response.Redirect("URL");
|
|
|
|
|
hi mr.samy
i know this respoce.redirect and server.transfer,but i just want to know any way are there in server side.
with regards,
susa
|
|
|
|
|
If you are using response.redirect then the page will be called from the server only.
Best Regards,
Apurva Kaushal
|
|
|
|