getting data from controls in <asp:wizard> - asp.net

Hi
Is there a way to get data on the "last step" from previous steps?
I am interested in pulling data from couple of controls in each step, and then build the object and insert the new object to the data base.
Thanks for every one who helps me.

You can still reference controls in earlier steps, regardless of what step the wizard is currently on.
What did you try and what was the result?

Related

SSRS/RDLC Detail Data Single Value repeated

I have been plagued with an issue for SSRS (really RDLC report viewer report) in that the details rendered in a report are the same value all the way down in a group. I faced this before and ended up having to create a new view and pull it into the solution and rebuild the report from scratch. As I am having this again I really want to know what else to try. I have deleted the tableadpator and added it back again, tried cleaning and rebuilding solution. I had altered a view, added a couple of columns to the end, so that is my suspect item as another report that uses the same base view now has a similar problem. This is not a code specific example and sure hoping someone else has seen this behavior and know how to get rid of it.
So I have a ASP.Net web application that uses the report viewer to render some reports, RDLC. I use entity framework for my data access and bind the data to the report.
I found what seems to have been the problem. I am using Entity Framework (EF) and I updated some views to add additional columns for reporting. EF randomly picks a key for columns. If I manually set the key to what it should be, and I set my grouping to be on an ID column rather than text (not sure this really fixed it, but adding as it is part of my solution), then the report is now not duplicating the same data for each row. The odd thing was the count of rows for the group was correct, just somehow would only render the first row data for each row. I know this is not a great example of the root problem and fix, but at least all the reports I had issues with are now working and the only thing that changed for some was the EF model was updated for the view that would bind to the RDLC report.

Easy way to replace Data with ComboBox? Or populate ComboBox from Data

I took over a very old project written in VB6, it's a mess and I don't really know VB so it would be great if someone could help me.
I have a Data control which gets records from an Access database which I would like to replace with some kind of drop down list - I thought about ComboBox. Unfortunately I cannot get records from the database in the same way as with Data, so I thought about populating ComboBox based on what's in the Data control. How can I achieve it? Or is there a better way to do it?
My last resort is to create all database methods manually in order to replicate Data's behaviour for ComboBox but I think it's too much effort for such a small change.
Thanks in advance!
The Data control does more than just let them browse through the records, it manages the database, current record, data binding, etc.
The easiest way to do what you want is to hide/move the data control and use its .Recordset.Find*() methods.
Note that DAO is archaic and has been supersceded at least once for VB6 (with ADO)

is there a DevExpress XtraReports event that fires after all widgets of a details subreport got printed, like for formatting?

I want to be able to go through all instances of a printed details subreport and do some formatting of records, in part by computing stuff for one record based on another one already printed. The code that prints reports is a bit of a mess, so I think this particular issue is easiest to handle by a kind of postprocessing of a printed report rather than by changing the underlying data binding etc code.
Well, frankly, I am unable to find a way even to get to the point where I could format text records in a single XRTable (XRTable.AfterPrint event does not work for me here) let alone format one XRTable based on values output in another one.
Any suggestions? Is this a FAQ with a standard answer or a FAQ with "we are tired of telling people it cannot be done" answer?
There is no such event :(. A possible solution I've posted by answering
does DevExpress XtraReports have an easily accessible notion of “current detail report being printed”?
question.

Ideas for Quick Hierarchical Listing - .NET

I have a table in SQL Server listing corporate departments and their sections and subsections (3 levels). I would like to create some web-based listing of this, but similar to a TreeList.
I was thinking to set up nested Ajax Accordions, but it was taking me way too long to put together. I would even settle for a GridView with non-repeating column values.
Is there a way I can implement my idea without it taking me more than an hour or so for a newbie to complete? Any controls in ASP.NET or Ajax I can bind to would be great.
Thanks to Ozzy, I was able to solve this simple issue using a TreeList. Since my issue is simlper than the one in the tutorial he supplied, all I did was create DataTable for each level, and for each row I added the TreeNode (which was simply the string value of that entry). Thanks!!

asp.net gridview is fetching data too long

it seems common issue so I am surprised I didn't find solution already, maybe someone can help me out.
I have a gridview that displays list of users of the app, this list is very big, and takes forever to load the data. Otherwise, data is paged through and once loaded everything goes fine. To help admins, I made search box and that works well.
Only issue is initial load of data, it seems that asp.net is retrieving all the records initially.
Is there a way to get only records for current page. Maybe there is a setting for gridview that I am missing or I am doing something else wrong.
Thank you in advance for suggestions.
Zeljko
you're going to have to do your own custom paging. Depending on your datasource you have to pass the PageIndex and size, to only get the pages results to be returned.
Ive used this run through before:
https://web.archive.org/web/20210510021915/http://aspnet.4guysfromrolla.com/articles/031506-1.aspx
Sounds like maybe you're using a Datatable/Dataset when you really want a Datareader. Alternatively, maybe I'm not understanding what you mean by "initial" and what you're experiencing is that you hit the jit compiler every time you do a new deployment.

Resources