Search

You searched for the word(s): userid:803327

Matching Posts

  • How to enable a view for SQL cache dependency?

    Hi there, I've several views in a sqlserver 2008 DB, and want to create SQL cache dependency for them. aspnet_regsql works for the tables, but failed for the views, and giving error message: An error has happened. Details of the exception: The table 'FCM_LU_ABC' cannot be found in the database FCM_LU_ABC is a view from a table in a 2000 server. How may I create the cache dependency? Thanks,
    Posted to Getting Started (Forum) by garychi on 10/5/2009
  • Re: How to enable a view for SQL cache dependency?

    Thanks for your reply. The schma for this view is dbo. I am using the same user account which created the view. Seems trange to me that "aspnet_regsql -C "Data Source=sqlserver2008; blah blah" -et -t " works for all tables, not NOT for views. Those views are actually based on a table in another sql server 2000. Does that matter? Thanks,
    Posted to Getting Started (Forum) by garychi on 10/5/2009
  • Re: scroll down to selected item in a treeview item embeded in TabContainer?

    Hi Qin Dian, Thanks for your hint. Eventually, I figured out how to do that. Following is my simplified code: <script language="javascript" type="text/javascript"> Sys.WebForms.PageRequestManager.getInstance().add_endRequest(scrollCode); function scrollCode() { var tvName = $get('<%= tv.ClientID %>'); var checks = tvName.getElementsByTagName('INPUT'); for (var i = 0; i < checks.length; i++) { var selected = checks[i]; if (selected.type == 'checkbox'
    Posted to Data Presentation Controls (Forum) by garychi on 9/1/2009
  • scroll down to selected item in a treeview item embeded in TabContainer?

    Hi, there, I have a treeview, containing a long list of items, in a TabContainer with fixed height and scrollbar set to auto. Every time when the page rendered, the scroll bar resides at the toppest position, while the selected item may in the bottom of the tree. I have to scroll down to check which one has been selected. Is there a way to detect the position of the selected item, and position the scroll bar at the first one? I tried to get the scroll bar, but couldn't? Is it possible to access
    Posted to Data Presentation Controls (Forum) by garychi on 8/26/2009
  • Re: scroll down to selected item in a treeview item embeded in TabContainer?

    I looked into their page. Seems nice. But I have to stick with toolkit since: 1. It is very difficult to use third-party components, except from MS, in our company. 2. It is not free. My manager won't like it. Any other idea how to solve it in the current framework? Thanks,
    Posted to Data Presentation Controls (Forum) by garychi on 8/26/2009
  • How to map a url request to a page in other virtual directory?

    Hi there, I have a main web site running on IIS7, and want to add another independent one into it. After analyze the 2nd one, I found it is hard to squeeze into the 1st one due to the application level configure file change, virtual path modification, and different sitemapprovider used. Is it possible to redirect a page request in application A to a page in application B? I've tried urlMappings, but failed. I guess it works only in side a web application. An other issue is that it seems I could
    Posted to Getting Started (Forum) by garychi on 8/20/2009
  • How to caught the event when user clicked "cancel" in a beforeunload envent?

    Hi there, I associated following java function with the beforeunload event, and want to some process logic when user clicked "Cancel" button. function handleUnload() { if (changedArray.length == 0) return true; var strConfirm = 'You have following unsaved changes on this page\n\n'; strConfirm += changedArray.join("\n"); strConfirm += '\n\nContinue will lose those changes permanently.'; if (document.all) { window.event.returnValue = strConfirm; // this is the place
    Posted to Client Side Web Development (Forum) by garychi on 8/4/2009
  • Re: How to build a grid control with hierarchical horizontal and vertical headers?

    Thanks for your help. Yeah, it is close, but not exact the one I need. Mine needs to bind to two hierarchinal data collection, one is for the column header, and the other for the row column. And I don't need to get the data to fill in the cell. Any idea how to achieve that? Or I have to build it from scratch using tr, td? Thanks,
    Posted to Data Presentation Controls (Forum) by garychi on 6/18/2009
  • How to build a grid control with hierarchical horizontal and vertical headers?

    Dear all, I need to build a grid-like web page to: Display hierarchical row and column headers at top side and left-hand side. The data is stored in, and will be queried from DB. Allow user to click the cell to jump to other page with associated column id and row id. Of course, we need to store the parent id and child ids in the cell, and append it as the query string to details page. It looks like: Column Parent1 Column Parent2 Column1_Child1 Column1_Child2 Column2_Child1 Column2_Child2 Column2_Child3
    Posted to Data Presentation Controls (Forum) by garychi on 6/17/2009
  • How to get data object binded to a listview?

    Hi there, In my application, I created a List<FileObject> in code behind, and assigned it to listview's datasource. When the page is posed back, however, the datasource property is null. And each ListViewDataItem's ItemData property is null also. Is there any way to get them back? I am going to remove one of them when user clicks a delete button. Though I can get store the List in Session, remove specified one, and re-databind it to the ListView, I feel it doesn't like an elegent
    Posted to Data Presentation Controls (Forum) by garychi on 5/19/2009
Page 1 of 5 (44 items) 1 2 3 4 5 Next >