Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

I have a form which allows users to edit the information about an image.

On the form there are loads of textboxes etc and a listbox.

The Listbox displays a list of subjects which are available to be picked. this is populated by calling a function which return values from a SQL call.

I have managed to populate the listbox with these options and the value previously selected by the user which is stored in the database.

 

What i need to know is how to selected (highlight ) the first option in the listbox.

 

I know of the listbox1.setselected(listbox1 type thing

but none of these calls to the listbox work because its inside the datagrid.

 

Any advise / information greatly appreciated.

john.

Posted

cheers for the link but i'm still abit confused.

 

I have tried doing this is a repeater, but i cannot link to the listbox.

 

I think my fundimentals are a bit wobbly, but surely there must be a way of calling a list box or any other dynamic list object from within another object.

 

thanks again

john.

Posted

Hi

Thanks for that, its making a bit more sense now.

I had managed to find bits of information but nothing which put it all together for me.

Cheers

john.;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...