Welcome Guest Search | Active Topics | Sign In | Register

SlideMenu Item Options
AndreaZ
Posted: Tuesday, October 21, 2008 6:03:16 AM
Rank: Advanced Member
Groups: Member

Joined: 10/20/2008
Posts: 75
Hello,
can I insert a Label OR Textbox in subitem?
I should upgrade a value right to the text in a subitem of menu.
ex:
if the text of my subitem is "LIST OF PRODUCT (n)", I should update the quantity of products that I have in my catalogue... "LIST OF PRODUCTS (28)"
thanks,
Andrea
eo_support
Posted: Tuesday, October 21, 2008 6:26:58 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to use plain HTML. For example, you can do:

Code: C#
SlideMenu1.Items[0].Text.Html = 
    string.Format("List of products ({0})", productCount);


If you wish to place a text box in it, you can set the item's text to:

Code: HTML/ASPX
<input type="text" name="some_name" />


Note that you must give it a unique name, otherwise you have no way of accessing it on the server side. You would access it on the server side by:

Code: C#
string text = Request.Form["some_name"];


Note you can't use regular ASP.NET server control syntax such as "some_name.Text" because "some_text" is a regular HTML element, not a server control.

Hope this helps.

Thanks!



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.