I have an ajax tabcontainerpanel. What I would like to do is programatically change the text (header template text value) of one of the TabPanels (ID="TabPanel10B") depending on the selected option of a dropdownlist. Is this possible?
The header text in the tab panel is too small and I wanted to make it bigger. So I included a <span> within the <HeaderTemplate> tags and though the text is larger according to the style of the span it doesn't display properly because the height of the tab (not the panel but just the tab part that sticks above the panel) doesn't become any bigger and I don't see where I can modify this.
As described above my session variables seem to be disappearing when i change the ActiveTabIndex of my TabContainer.
I call the session variable twice. The first time populates a div in "divResults", and then i switch to that tab, its only after the switch when i try to return the session variable again that its gone.
Is this really the case? I have seen it eluded to somewhere, and there was meant to be a fix coming out (this was 2006 or something).
Is there anything i can do here? I cant find any other reason why they would be disappearing other than this!
i have a tabcontainer which have 3 tab panels(tbpanel1,tbpanel2,tbpanel3)and i have dropdownlist in each tabpanel to select date(with autopost back=True).so if i select the date from tab panel2 or tabpanel 3 it is automatically going to tabpanel 1.but it should be in the same tabpanel.
I have implemented master pages using this example How to implement a status bar in an ASP.NET application?. I have a property on my SiteMaster.cs inherited MasterPage called Environment. On my MasterPage.master I have this code:
<body> <form id="frmMaster" runat="server"> <.. some content removed for brevity ...> Environment: <%= this.Environment %> </form> </body>
What I would like to do is evaluate this.Environment and if it is "LIVE" then colour the background of this.Environment text red, and if it's "TEST" colour it yellow. How would I do this?
UPDATE I've just added this code to MasterPage.master
For this web page, The img is now showing up in print preview and is printing. From FireFox, the shrik-to-fit option works great in preview and print out they look perfect. The problem is with IE 8 (havne't tested other version) The image and other stuff comes out fine. The section that consist of panel and the AjaxCtrl:TabContainerer, the Active Tab with its text content are shrunk to like 60% from the right edge of the paper. The fonts are very small and readable. I tried playing with the scale percentage in the print preview of IE but it increase size on all the content and not just the AjaxCtrl:TabContainerer part.
I have a text box to lookup codes. When you type search criteria in text box, it populates listbox and when you select item in listbox it populates the same text box with the value from listbox.
basically i am using same text box to search and finally populate it with the value. How can use update panel in this case so it doesn't refresh the entire page everytime list box is populated as well as when text box is finally updated.
I am calling a procedure in response to textbox_Changed event to poulate listbox.
In my codebehind, I'm trying to set it to the date I retrieve from the database, with the following
What happens is that the page is left with just the watermark text, but not the text I'm setting it to. However, if I inspect the textbox in VS it says the text is what it's supposed to be. I read somewhere that a similar error was because of a property referred to as isWatermarked, but I couldn't find it.
Is it actually possible to change the button text on the AsyncFileUpload control from "Browse" or "Select File" to something else without having to modify the control's source code? it seems I have to apply all sorts of hacks and workarounds for such a simple requirement. I fail to understand the authors of this brilliant control haven't thought about this (or is it too complicated for them to do it). and also Is it possible to have two buttons one for selecting the file and one for uploading?. because it is confusing if the user thinks if he is simply selecting the file where as it does the upload as well. at least if I can change the caption to "browse and upload" that makes it clear. I think these two functions are merged now without giving any ability for the user to separate them if he wishes to do so. if there is a simple workaround at least if there is no straight forward way to achieve this.
I am using ASP.net 2.0 and AJAX 2.0. I implemented successfully auto-complete extender for my text box and it is working very good. But the problem is for Drop down list position. When the page first load and at that time if we use auto complete drop down will come properly but if the scroll bar position change then drop down will overlap the text box and it will change the position. For more info I will put screen of it.
I'm developing a web page with tabcontainer. I want to hide one tabpanel on the client side. So I don't want to se "TabContainer1.Tabs(0).Visible = False" as I want it to be a client side event. I tried following code in js
" var objTab = $find('<%=TabContainer1.ClientID%>'); objTab.get_tabs()._hide(); //objTab.get_tabs()._show(); "
However, it doesn't work for the first time loading the page. I guess it only works when an ajax postback happens. Is there any way to hide this when I first load the page, and then if I click on button "show", it will show up without any ajax postback (backend coding)?