CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.internet_explorer_web_controls Tags:
Item Type: NewsGroup Date Entered: 12/7/2004 11:07:48 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
dweber
Asp.Net User
Tabstrip SelectedIndex reverting to 0 on page load12/7/2004 11:07:48 PM

0/0


Edited by SomeNewKid. Please post code between <code> and </code> tags.



Greetings,

I am using a tabstrip in a user control (ascx) in a web application (aspx)
that is used to navigate between the different aspx pages. Whenever I click
on one of them, the response.redirect command works fine, but the page
reloads with the first tab selected every time. If I try to change the
selectedindex, it runs my SelectedIndexChanged routine so that doesn't work
either.

Is there a way I can change the selectedindex of the tabstrip without
running the "OnSelectedIndexChange" command?

Below is my code:

 Sub TabStrip_PIP_SelectedIndexChange(sender As Object, e As EventArgs)

Select Case Tabstrip_PIP.selectedindex
Case 0
Response.Redirect("ProjectSummary.aspx")
Tabstrip_PIP.selectedindex = 0
Exit Sub
Case 1
Response.Redirect("ChargeNumbers.aspx")
Exit Sub
Case 2
Response.Redirect("Invoices.aspx")
Exit Sub
Case 3
Response.Redirect("Labor.aspx")
Exit Sub
Case 4
Response.Redirect("Travel.aspx")
Exit Sub
Case 5
Response.Redirect("ODC.aspx")
Exit Sub
Case 6
Response.Redirect("Subcontracts.aspx")
Exit Sub
Case 7
Response.Redirect("PurchaseOrders.aspx")
Exit Sub
Case 8
Response.Redirect("ChargeSummary.aspx")
Exit Sub
End Select
End Sub


<iewc:tabstrip id="TabStrip_PIP" runat="server" autopostback="true"
Height="26px"
TabDefaultStyle="background-image:url(images/DarkBlueGradient.jpg);font-family:verdana;font-weight:bold;font-size:8pt;color:#ffffff;width:79;height:21;text-align:center;"
TabHoverStyle="background-color:#777777;color:#ffd275;"
TabSelectedStyle="background-image:url(images/DarkBlueGradientflip.jpg);color:#FFFFFF;"
OnSelectedIndexChange="Tabstrip_PIP_SelectedIndexChange">
<iewc:Tab Text="Program Summary"></iewc:Tab>
<iewc:Tab Text="Charge Numbers"></iewc:Tab>
<iewc:Tab Text="Invoices"></iewc:Tab>
<iewc:Tab Text="Labor"></iewc:Tab>
<iewc:Tab Text="Travel"></iewc:Tab>
<iewc:Tab Text="ODCs"></iewc:Tab>
<iewc:Tab Text="Subcontractors"></iewc:Tab>
<iewc:Tab Text="Purchase Orders"></iewc:Tab>
<iewc:Tab Text="Charge Summary"></iewc:Tab>
</iewc:tabstrip>


Thanks for your help,

-Dave
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Tabstrip SelectedIndex reverting to 0 on page load Talk about Tabstrip SelectedIndex reverting to 0 on page load.
ASP Net [Archive] - Page 137 Tabstrip SelectedIndex reverting to 0 on page load · Trace not working in C# · detecting successful downloads and browser buffering · Passing parameters to ...
ng.asp-net-forum.internet_explorer_web_controls/17 - Fix error ... 0, 2, 9/9/2008 10:03:59 AM. Has the code been updated at all? 0, 3, 9/9/2008 10: 03:58 AM. Tabstrip SelectedIndex reverting to 0 on page load, 0 ...
.NET ASP Page 111 - Bytes Site Map NET v1.1 · Using a dynamic ASP page as an email template. .... Tabstrip SelectedIndex reverting to 0 on page load · Deleting a file · beep in the browser ...
Anyone else experiencing Problems at PortalWebHosting.com - ng.asp ... webctrl_client folder inetpub/wwwroot..is there anyother way? tabstrip selectedindex reverting to 0 on page load · tabs in a tabstrip ...
TheMSsForum.com >> Dotnet >> DropDownList.SelectedValue not ... SelectedValue not working by AndrewAlger. AndrewAlger Wed Nov 10 18:28:06 CST 2004 When are you calling the propulate ddlcustomer in pageload? If so are you ...
Build ASP.NET, AJAX, and Windows Forms applications with ... Tabstrip not loading SelectedIndex page view. Started by: Carlo. 3 / 294, 2/27/ 2008 ...... JS error on page load with 3.0.0 hotfix. Started by: Chuck Boyer ...
.NET ASP Page 37 - Bytes Site Map Odd issue with Switch-Case statement in Code behind page. Simple "postback" question. ..... How should i go about creating a tabs that load different forms? ...
TheMSsForum.com >> Asp >> Querying Active Directory from ASP.NET ... About Tabstrip ? Urgent !! Hi, my web page had been devided into 2 frames ..... it. on the page load i added a few items to the listbox by doing ListBox1. ...
TRULY Understanding ViewState I do call the data bind every postback. first time in page load then from the ..... The tab control has a property tabstrip.selectedtab.id which I read in ...




Search This Site:










can the user retrieve the sql server login name and passwords?

skinning questions

preserving links

add web reference error message in visual studio 2005

error on initial startup on clean system (could not load skin: ~/portals/_default/skins/_default/admin.ascx)

custom control question

formsauthentication- asp.net 1.1 sp1

integer inbetween

datagrid

new programmer

how to maintain data in the class modules with c#

conversion problem from vs2005 to vs2008 beta 2

how to write validaterequest = false in code behind

are windows hosting rates killing us rapidly

multi-user webisite question

any help on providing the download of the old intranet template ?

deriving a control from a base class declared mustinherit

row height

newbie question - module installation

must be missing something obvious with searching

problem with cryptographic service provider (csp) implementation (rc2cryptoserviceprovider class)

weird - pages content does not show

tree view depth

carry out code every time when an .aspx page is loaded - how?

problem with flash

menu/treeview hybrid site navigation?

is it required to have a global.asax file

using response.addheader on the same page as asp.net control

search function

webpart design time issue with xmldoc as control public property.

 
All Times Are GMT