Of course it can't be impossible, since they've done it. Frown Here's the problem: I'm using the AjaxControlToolkit, implementing a tabcontainer with 6 tabs. Each tab corresponds to an .aspx page. I've put an UpdatePanel in each TabPanel surrounding a ContentPlaceHolder (each ContentPlaceHolder being unique, and the corresponding pages referencing their own respective ContentPlaceHolders). I've gotten around the problem of keeping the selected tab active, but I still have to deal with the flicker and visible postback on each tab (I'm using Response.Redirect()). I've tried putting the whole tabcontainer in an UpdatePanel, to no avail. I literally have not been to sleep since yesterday and have looked at 100's of tutorials and examples trying to get this to work correctly! All I want is to be able to switch tabs just as in FF or IE7 without looking like I'm going to a whole new website. Here's the markup for one of the TabPanels:
BlackDice
Posts
-
Tabcontainer: ".aspx" page for each tab (like ie or firefox), is this impossible? -
Tabcontainer: ".aspx" page for each tab (like ie or firefox), is this impossible? - (moved) [modified]My apologies. Moving post now.... Thank you
My Music | My Pics | My Articles BlackDice
-
Tabcontainer: ".aspx" page for each tab (like ie or firefox), is this impossible? - (moved) [modified](moved to asp.net forum)
modified on Saturday, October 18, 2008 2:11 PM
-
AJAX tabs problemHello all, please forgive my newbie-ness.... (at ASP.NET) I have a tabcontainer on my masterpage where each time a tab is clicked it actually shows a different .aspx page for each tab. First, I'm not sure if I'm even going about this the right way. It works, but it's kinda slow and a very visible transition. I just call 'Response.Redirect()' in the 'ActiveTabChanged' event depending on which tab was clicked. Secondly, even though this works to switch from page1 to page2, it always shows the active tab as the first one after clicking on the second one, even though the second page is now showing. I even tested setting it back explicitly, and it still doesn't work.
protected void TabContainer1_ActiveTabChanged(object sender, EventArgs e)
{
switch (TabContainer1.ActiveTabIndex)
{
case 0:Response.Redirect("default.aspx"); break; case 1: Response.Redirect("default2.aspx"); TabContainer1.TabIndex = 1; break; } }
Thanks in advance
My Music | My Pics | My Articles BlackDice
-
Software Development Analogy....?Hi All, Recently, when for the billionth time I tried to explain what I do to a person that has no knowledge of what 'programming' is, I came up with an analogy. I'm sure if I Google it, I can probably find the same analogy already made by someone else.... so I won't. When telling a friend that I was waiting on the 'graphics guy' to finish with some background images for an app, she said, "Well isn't he doing all the work?" So far, this is the best explanation I can come up with for the 'complexity' of what I do... I told her that building an application is like building a house. The 'graphics guy' would be the painter, or even interior decorator in this case. However, writing a brand-new app is like building a house from top to bottom. The thing is, in the building of a house, you usually have different teams or individuals to work on certain parts of the house. While this is also true in programming, I had to explain that on this particular project I drew the blueprints, dug the hole, laid the foundation, then did the plumbing, electrical work, structural work and everything else before it was painted and furnished. I went on to add that this is because it was a pretty small app. I told her to realize that in larger apps, it would be a team essentially building a shopping mall. ???? Comments?
My Music | My Pics | My Articles BlackDice
-
what the hell is manbu.net?LOL. Nah, although I'm not sure I remember much C++ (still my one true love). But I've been forced to do FoxPro X| and C# for the last year and a half. C# is cool, and every once in a while, I write a very useful utility or something for internal use (in C++), but that's about it. I've got 2 jobs now, so hardly any time for my own personal ventures. Well, since I've written a few apps in C# but don't really know a damn thing about it, I'll probably be here a lot more often :) Awww, now ya got me gettin sentimental.... LOL BlackDice
My Music | My Pics | My Articles BlackDice
-
what the hell is manbu.net?I was pretty bored and did an 'Ego Google', searching for 'BlackDice' and 'Programming' (no quotes), and this is one of the pages that come up. Is this place associated with CodeProject? If not, do they have a right to do that? :((
My Music | My Pics | My Articles BlackDice
-
switching resources - at design time or compile timeI think the alternative solution would be what I would like to go with. however, I still don't have a clue as to how to tell the .exe to use the image dll as opposed to using the images that are in 'Resources' on the properties page for the project.
My Music | My Pics | My Articles BlackDice
-
switching resources - at design time or compile timeHello. I'm using VS 2005 and I have taken over a project that has images included in the resources of the project that are visible by going to the project's properties sheet and clicking on the 'Resources' tab. Is there a way I can update this while building? For instance, there's about 50 images in there now associated with 'Company 1'. I'd like to have it where I can use different images when I do a build, depending on whether COMPANY1 or COMPANY2 is defined for that build configuration. Even doing it dynamically at runtime depending on a registry setting or something if I could put the images in a .resx file and have the program use that instead of the ones in the 'Resources' tab. Thanks in advance
My Music | My Pics | My Articles BlackDice
-
Get GUI back? (Not a programming question)Does anybody know a way to display the GUI for an app that is running and can be seen in the 'processes' tab of Task Manager, but no window shows? I've got an app running on a user's machine and I got logged out. When I log back in, the app is still running, but I can't get to the GUI. if I can't click the button for the next step, I'll have to kill the process and start all over again (another 2 hours).
My Music | My Pics | My Articles BlackDice
-
odbcdatareader hangs on closeEricDV wrote:
Depending on the provider implementation, the Close method may wait for the data reader to finish returning all of the specified data before closing.
Right. I knew I remembered seeing that somewhere. However, the OdbcDataReader doesn't support the Terminate() method. I had already thought about the 'Top xxxx' method, but I was trying to avoid that if possible. Plus, on the database I'm doing it on now, there's about 3 million records, and it's already going to take hours to process those without getting all these different dataSets. Thanks for your help, though :(
My Music | My Pics | My Articles BlackDice
-
odbcdatareader hangs on closejust tried that; same result, except this time I got some weird error about not being able to switch from COM this-or-that for over 60 seconds.
My Music | My Pics | My Articles BlackDice
-
odbcdatareader hangs on closeI can try that, but I just never thought to since I'm using an ODBC connection (DSN). I'll let you know if there's any change.
My Music | My Pics | My Articles BlackDice
-
odbcdatareader hangs on closeI tried the commandbehavior.closeconnection option; didn't make a difference
My Music | My Pics | My Articles BlackDice
-
odbcdatareader hangs on closeThe following comes directly before what I posted earlier:
using (OdbcConnection conn = new OdbcConnection(source)) { conn.Open(); statcmd = new OdbcCommand("select * from tblPeople", conn); statcmd = new OdbcCommand(sql, conn); OdbcDataReader statreader = statcmd.ExecuteReader();
No, I'm not using "commandbehavior.closeconnection" option. Never knew it existed.
My Music | My Pics | My Articles BlackDice
-
odbcdatareader hangs on closeNo, I don't think that's it because it breaks from the loop with no problem. I put a breakpoint on the line immediately following the loop and it goes directly there with no problem. This function is being done in a thread of its own so that the user can press 'Cancel' and also updates the UI correctly. Here's a snippet of what I'm doing:
while (statreader.Read() && !m_bCancel) { stemp = statreader["aj_vchar"].ToString(); //do other stuff here this.progressBar1.Increment(1); } this.progressBar1.Value = 0; //breakpoint here,stops here soon as I press 'Cancel' statreader.Close(); //this line hangs for a LONG time (~10 minutes)
I've tried calling Close() on the connection first. I've tried calling Dispose() instead, and I've tried not closing it at all to see what happens when it goes out of scope (statreader). No matter what, this reader hangs on close depening on how many records are in the reader. When I try it on a test database that returns only a few thousand records, Close() only takes a few seconds. When I try it on a database with about 400,000 records being returned, it takes about 10 minutes for Close() to finish executing.
My Music | My Pics | My Articles BlackDice
-
odbcdatareader hangs on closeI have a problem when trying to close a connection or the odbcdatareader if I stop it from doing
Read()
before it would normally be done it hangs. I saw something similar when I Googled this a while ago, but can't find it now. Apparently, thewhile(dr.Read())
doesn't actually stop even though I used abreak;
to get out of thewhile()
loop. Anybody run into this before?My Music | My Pics | My Articles BlackDice
-
Access Violation?I found out what it was. I've got 5 different panes that all call back to CMainFrame with functions like SetLeftView(), SetRightView(), etc. I called SetRightView() instead of SetLeftView(), but I'm surprised it even made it that far. Thanks,
My Music | My Pics | My Articles BlackDice
-
Access Violation?I have a grid (Chris Maunder's MFC Grid) on a formview in one pane of a CSplitterWnd object. The formview has a function called Refresh(). Inside of Refresh(), I call a function of the grid (SetRowCount(1)). Within SetRowCount() it checks to see if 'rows' that I sent in is equal to GetRowCount() like so:
ASSERT(nRows >= 0); if (nRows == GetRowCount()) return bResult;
This works fine when Refresh is called from anywhere else within the form itself. The Refresh() function is public and from another pane I get the CMainFrame* (which has a pointer to the Form that has the grid) and I call the Refresh() function and I get an Access Violation error on this line:int GetRowCount() const { return m_nRows; }
which is being called from the code above in SetRowCount(). Does anyone have any idea what the ^&*( is going on? Thanks,My Music | My Pics | My Articles BlackDice
-
restricting CSplitterWnd pane to minimum sizeHello all, I'm trying to restrict the left pane of a split window to a certain size. For instance, the left pane should not be allowed to get smaller than 100 pixels, but it can get wider; same for the right pane. There is a minimum arg when creating pane, but that just means if it gets under 100 pixels, it closes all the way up. I would like for it to not get any smaller than 100 pixels. I've seen articles that tell you how to lock the bar, but this is not what I want. Thanks in advance.
My Music | My Pics | My Articles BlackDice