|
Add TabPanel inside a tabpanel of ajax tabcontainer
i need to add a subtabpanel in side a main tabpanel
Here is a sample code
Protected Button_Click(object sender,EventArgs e)
{
Listbox ListBox1 = new ListBox();
ListBox1.SelectedIndexChange += new EventHandler(ListBox1_SelectedIndexChange);
AjaxControlToolkit.TabPanel Maintab = new AjaxControlToolkit.TabPanel();
Maintab.Controls.Add(ListBox1);
TabContainer1.Tabs.Add(Maintab);
}
void ListBox1_SelectedIndexChange(object sender,EventArgs e)
{
// This code does not works
string str = Listbox1.SelectedItems.Text.Trim();
}
i want to add a sub tab inside the Maintab on selected index change of the listbox.
i have tryed in this way too
i.e declared the ListBox as common
ListBox Listbox1 = new ListBox();
Protected Button_Click(object sender,EventArgs e)
{
ListBox1.SelectedIndexChange += new EventHandler(ListBox1_SelectedIndexChange);
AjaxControlToolkit.TabPanel Maintab = new AjaxControlToolkit.TabPanel();
Maintab.Controls.Add(ListBox1);
TabContainer1.Tabs.Add(Maintab);
}
void ListBox1_SelectedIndexChange(object sender,EventArgs e)
{
// This code does not works only for a single tab alone
string str = Listbox1.SelectedItems.Text.Trim();
AjaxControlToolkit.TabPanel stab = new AjaxControlToolkit.TabPanel();
stab.Header = str;
TabContainer1.Tabs.Add(stab);
}
Can Any Help me Please.
Bharani
|
|
|
|
|
Add Ajax TabPanel Dynamically on button click
I have placed the TabContainer From ajax toolkit i want to add the tabs dynamically on button click.
Help me.
Bharani
|
|
|
|
|
|
hi guys i am getting the following error while i run my project , i am using vs2008 and C#.
The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
my application is configured with IIS correctly and runs through virtual directory , but from my
solution i cannot run it, why ?
thanks in advance
.
hello
|
|
|
|
|
To run a website from a solution, are you using ASP.NET development server (provided by default in VS 2008) or IIS?
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
I have a web service and an web application deployed on my laptop. the webservice works fine but when open my web application It told me The page cannot be displayed, the title is "Server can not find"
Any one has the solution? Thanks!
|
|
|
|
|
|
was that the whole error message? what could it not find? the web applications main page?
|
|
|
|
|
yes.
seems the error is popped from IIS not the asp.net. but the most strange thing is the web service works fine. and my application works fine on my server
|
|
|
|
|
so are you saying the application is published to your local machines IIS and it is not working there or are you trying to access the application on the server from a local machine?
|
|
|
|
|
thanks for your reply.
But no. I mean the code is on my local machine and I published it to my IIS but not work no matter from where to access it.
If I publish it to the server. it works fine.
|
|
|
|
|
Right i see.
Are you using Visual Studio? If so, do you get the same problem while debugging or when you try to access the site directly using a browser.
|
|
|
|
|
|
|
you ask me :
Are you using Visual Studio? If so, do you get the same problem while debugging or when you try to access the site directly using a browser.
Yes I am using visual studio 2005. I do get the same problem while debugging or when Itry to access the site directly using a browser.
|
|
|
|
|
hmm, if you are having the same problem when debugging, the problem doesnt sound like it would be in IIS as Visual Studio uses its own web server to run on.
Also as you stated the project runs fine on another machine. I would suggest clean/ rebuild project option if you havent done so already. and if this doesnt work, i would reinstall visual studio and try to rebuild and try to run the project again.
|
|
|
|
|
|
how to get the last value from a given value..
Ex:- Value is - Wlc23vc125
Ans should be '5'
how to get this?...
Any help is appreciatable...
thanks in advance...
|
|
|
|
|
Check this out
http://forums.asp.net/t/1257523.aspx
|
|
|
|
|
You can use this stmt too......
Value = Wlc23vc125
dim LastValue as String = value.Substring(value.Length - 1)
|
|
|
|
|
nagendrathecoder wrote: dim LastValue as String = value.Substring(value.Length - 1)
That'd be:
dim LastValue as String = value.Substring(value.Length - 1, 1)
-= Reelix =-
|
|
|
|
|
I don't think 2nd parameter would make any difference here but its looking simple to understand.
|
|
|
|
|
dim str1 as string=textbox1.text
dim str2 as string=str1.substring(str1.length-1)
|
|
|
|
|
Thats it, u can even make it without str1 by directly using TextBox1.Text.
|
|
|
|
|
Hi,
Is it possible to make the menu items displayed from right to left.So the first url in the sitemap will be the first item in the menu from the right?
I am too late but i will never give up
|
|
|
|