I have a dynamically created Datatable for a Datagrid.On first Page, i add the data entered in the textboxes to the Datagrid using Datatable. Then i go to the next Page. When i come back to the First Page,i cant see the Datagrid and data in it. But values in the textbox are there as i used
Session("A")=textbox.text. When i tried the same for a datatable,as
Session("Table")=dt where dt is datatable,it is not working. How to get the values in the datatable and datagrid.
I have a DataGrid whose contents I query from the database. I am using C# to code my project. Many rows being displayed in the DataGrid does not helped user by using the menubar from Internet Explorer, Print and Print Preview to print the information. Can it be done literally without the copy paste of the datagrid method to excel sheet or micorsoft word?
can you just modify your stylesheet and add a @media print style so the grid is 'not diplayed' (as such, at least the grid components, like pager, grid lines etc) and format the internal grid data as you please?
Yes you can use this code .. but it will be better to develop your own code .. as you can do this without using graphics(GDI+).
Just create a table from the datagrid (Generate DataTable) and use it
I created a master page and put a treeview control in there on the left side table layout want to use the right side for different pages.
but the problem is i have a textbox and search button above the treeview and the treeview is loaded depending on what search string you type in. then i can click on a treenode and click a button on the top menu called addSubTreeNode - the right content panel should have a few text boxes for adding details of this TreeNode - but when i do this the treeview disappears - i want it to stay how it was on the mainpage.aspx - even when i goto this new addsubtreenode.aspx for adding a subTreeNode. (sort of like if i had frames and the treeview page remained the same - i want it to be in the same state as it was on mainpage.aspx when i natigate to addsubtreenode.aspx) (both these aspx pages are derieved from the master page and the treenode code is on the masterpage)
I ran into this problem for the first time since I was working with .Net framework. You can't get (directly) to the query string of the page if your aspx is contained into a frame. It's possible to get it though the UrlRefferer object and to parse out the string.