I have a webapp that renders a chart as per the user input by pulling out the data from a oracle database. I want the chart to be rendered on a new popup window so that the chart is persisted from different user input. i want to do this so that the user can render multiple charts in separate popup windows (with different filters for the data to acquired from the db) with the same button click (multiple clicks and separate filter values of course) and then do comparison between the charts as per they wish. so if there are 10 diff filters and the user wants to see the graphs with any combination of them - he will specify separate filter values each time and hit the button to render the chart in a separate new pop up (and the previous popup with previous chart should persist).
I am not really good with javascripts. i found some solutions to use modal popups from ajax and some other with the help of javascripts - none of which seems to serve my purpose. any help would be really appreciated. i am using .net 4.5, asp and c#
thanks.
EDIT 1 (for DJ KRAZE):
So here is the basic layout of my page (sorry that i have to hide most of the part because of security reasons).
As evident all the filters are there to be used to filter out a database and then plot the result as the chart shown. The code behind is absolutely simple C#, nothing fancy. Now what I want is to render that chart in a separate popup window (not attached to the page itself) so that the chart persists if the user decides not to close it and another popup window opens when the user hits submit again with different filter values. so far i have referred to this example and some other javascript related example that does open popups but will not persist if the user has to change the filters -link to example
why don't you just create any many panels one below another -with a close button- as needed to show the results?
firing too many popups might clutter the view.
Related
I am at a loss as to how this is best handled in asp.net
I have a webpage with a lot of panels, and tables that is populated with data from mysql request. Now this data might change depending on an input. All the data are buttons that will open a modal windows displaying data.
My issue is that when I press the button the modal opens, but all the tables are reset to the standard "sql data" and the panels collapses. I basiclly want to be able to post back to the exact spot the user was earlier, including where on the page he had scrolled.
I get that the created html istanse is destroyed as soon as the person moved to the modal but how can i store the current exact state of the webpage so when the user goes back he is met with the exact "copy" he left. I've looked into viewstate and state management, and also to check for postback but still havent been able to solve it.
Is there any good tutorial covering this topic?
I've looked into this: Persisiting the state of a webpage
But thats based on ASP2.0 (im at 4.5) and dated 2006. Would this approach still be my best option or is this fixed in a better way on newer ASP.NET version?
I am developing a simple WPF application and I can create a single MainWindow with controls, content, etc.
However, I want to split my app. And I have a problem to build an app with welcome screen where user can choose between two modes, as seen below:
After click on Learn button I want to load this XAML:
And after click on Next (from Learn screen) or Recognize (from Welcome screen) I want to load this XAML:
...everthing in the same MainWindow.
I can't even name what I am trying to achieve. Do I want pages? Or views?
How to handle this situation in WPF ?
This you can do it in many ways. Basic thing is place each functionality in different user control, so that you can chose to load them at the run time
Have different user controls and hide all except the first one, depending on the users selections you show the on you want or
Use Content Presenter, depending the user selection load the controls at run time in to the content presenter.
I'm looking to create a setup form for my application - and I wanted to use a tab form to keep my logic on the one form since it's very simple rather than many of them. Is there a way to remove the tab navigation UI up top and allow me to only progress it programatically?
Look at user controls. They cover pretty much what you want.
Just create a user control for each view. It only consists of the controls you want to have on each tab page anyway. Then you can hide/show the user control you want and you do not have a full blown form for each view.
Look at this tutorial: http://msdn.microsoft.com/en-us/library/a6h7e207%28v=vs.71%29.aspx
Just a bit of advice needed really in terms of how I should handle my current scenario:
I have a web page that searches for products/category information the results of which are at present displayed in a gridview on the same page.
However, said gridview is a bit of a beast and as such, I would like to have a page that the user searches for, a button is pressed and the subsequent gridview is displayed in a new window.
Ultimately, I would like the user to be able to make multiple searches so that new windows can have multiple gridviews containing different data sets.
My current thinking is to create session variables that can be pulled through onto 'the gridview page'. Having said that, I'm not sure that would work if multiple searches are created?
I am also thinking I might be able to create said 'gridview window' using javascript but my concern here is the potential loss of functionality of the gridview i.e. paging, sorting, editing, etc.
Does anyone have any thoughts or theories on this? What would be "best practise"? Any thoughts greatly appreciated and taken on board.
PS: This is being developed in .net, using c# and LINQ.
PPS: I'm a noob so be gentle!!
There is no need of sessions here right ? well on your first page where you enter search query, when user clicks on the button open the search result page in a new window with a query string may be search.aspx?keyword=foo.
so everytime user clicks on search button it keeps on opening new windows. u can javascript to open the new popup window and set "target" attribute to "Blank" so it will open in new window
I'm searching a C# component or code snipped that does something like that:
I want to inform new users about the most important program functions if he opens a new window for example.
It should be a box showing text (formated if possible) that is of course not modal and has some mechanism to 'go out of the way' if the user enters the textbox area. So that he can access what's underneath it. Alternativly the window could also stick to the border of the window, but there needs to be a way that this also works if the window is maximized.
So I want to present him with a short introduction of what he can do in every corner of my app most painlessly.
Thank you!
I use a "bar" at the top of every window to display some information about the current window/dialog.
Use tooltips. They can be programmatically controlled, and you can have them appear at will. You'll need to add the functionality to your app to keep track of what tooltips have been shown to the user already.
You can add a "balloon" style by setting the IsBalloon property to true.
You can also replace them with smaller descriptions for when the user wants to hover over the control and have them displayed again.
I'm already using tooltips heavily. However, they aren't very practical when displaying bigger amounts of data and they are bound to specific user actions.
Have you considered having a contextual menu for each form / page which contains links to Adobe Captivate style presentations for each available task? That way the user can investigate an example of how to achieve a task relating to what they are trying to achieve from within the application / site.
This approach would require a good deal of maintenance and management if your code changes regularly but coordinating it with a training department can provide rich help features in your application.
See http://www.adobe.com/products/captivate/ for more information.