Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:592238
More Search Options
RSS Available
Matching Posts
Web Application with multiple web.config files...
Hello, What I am trying to achieve is to have one code base which gets referenced by multiple Virtual directories and access related databases. So as an example: I have http://MyWebSite/Virtual_Directory_1 refers to c:\Inetpub\wwwroot\MyWebApp pointing to Database_A What I want is to setup another Virtual Directory as follosws: http://MyWebSite/Virtual_Directory_2 refers to c:\Inetpub\wwwroot\MyWebApp pointing to Database_B. Effectively, having one single code base for all instances. How best to
Posted to
Configuration and Deployment
(Forum)
by
paragp
on 7/16/2009
Re: TableCellCollection.AddRange not working for me
I know code works but that does not help me as I need to be able to create and populate the TableCell[] arrayOfTableRowCell outside of the for loop. The code you have show does it within the for loop.
Posted to
Web Forms
(Forum)
by
paragp
on 2/25/2009
TableCellCollection.AddRange not working for me
I am trying to generate a Table dynamically. This is all ok until I try and add an array of TableCell to a row in the table. The code is as follows: 1 int numRows = 3; 2 int numCells = 2; 3 Table Table1 = new Table(); 4 5 TableRow newRow = new TableRow(); 6 7 TableCell[] arrayOfTableRowCells = 8 new TableCell[numCells]; 9 for ( int cellNum = 0; cellNum < numCells; cellNum++) 10 { 11 TableCell tCell = new TableCell(); 12 tCell.Text = 13 String.Format( "[Row {0}, Cell {1}]" , 14 0, cellNum
Posted to
Web Forms
(Forum)
by
paragp
on 2/19/2009
Filed under: TableCell[], TableCellCollection, AddRange
Re: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-b
The error was getting was because the LoadViewState implementation has changed from .net1.0 to .net 2.0. They (MS) have changed the way Triplets are handled in loadviewstate. I amended my saveListState method to cater for the change as follows: private object saveListState() { Int32 listCount = this .LookupList.Count; String [] itemText = new String [listCount]; String [] itemValue = new String [listCount]; bool [] z = new bool [listCount]; for ( Int32 i = 0; i < listCount; i++ ) { itemText[i
Posted to
Web Forms
(Forum)
by
paragp
on 5/29/2008
Re: Export to Excel Page Orientation
I have managed to get it work as follows: public void ExportDataGridToExcel(System.Web.UI. Control ctrl, System.Web. HttpResponse response) { response.Clear(); response.Buffer= true ; response.Cache.SetCacheability( HttpCacheability .NoCache); response.ContentType = "application/vnd.ms-excel" ; response.AddHeader( "content-disposition" , "attachment;filename=Projects.xls" ); response.Charset = "" ; this .EnableViewState = false ; System.IO. StringWriter oStringWriter
Posted to
Data Presentation Controls
(Forum)
by
paragp
on 1/28/2008
Filed under: page orientation, export to excel, landscape
Export to Excel Page Orientation
Hi all, I have a method export to excel the contents of a datagrid. This work fine, however I need to set the page orientation of the excel sheet to landscape. How can I do this? My export to excel method is as below: public void ExportDataGridToExcel(System.Web.UI.WebControls. DataGrid dg, System.Web. HttpResponse response) { response.Clear(); response.Buffer= true ; response.ContentType = "application/vnd.ms-excel" ; response.AddHeader( "content-disposition" , "attachment;filename
Posted to
Data Presentation Controls
(Forum)
by
paragp
on 1/25/2008
Filed under: page orientation, Export to Excel, landscape
Re: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-b
my error is at this line of code in the overriden LoadVeiwState method (( IStateManager ) this .LookupList).LoadViewState( combinedState.Second ); for some reason, within the debugger the error thrown is System.InvalidCastException was unhandled by user code Message="Unable to cast object of type 'System.Int32' to type 'System.String[]'." Source="System.Web" StackTrace: at System.Web.UI.WebControls.ListItemCollection.LoadViewState(Object state) at System.Web.UI
Posted to
Web Forms
(Forum)
by
paragp
on 9/28/2007
Re: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-b
[quote user="raja.krish"] Hi, Check out this link: http://www.dotnet247.com/247reference/msgs/38/193348.aspx Hope this helps. [/quote] hi there, not really sure what i am looking for in the link that you have provided..
Posted to
Web Forms
(Forum)
by
paragp
on 9/28/2007
Re: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-b
hi have had any solution to this? i have a similar error when I am overriding the loadviewstate method. in my load view state method i do the following: /// <summary> /// This member overrides <see cref="DataGridColumn.LoadViewState"/> . /// </summary> protected override void LoadViewState( Object savedState ) { Pair combinedState = ( Pair )savedState; base .LoadViewState( combinedState.First ); (( IStateManager ) this .LookupList).LoadViewState( combinedState.Second
Posted to
Web Forms
(Forum)
by
paragp
on 9/28/2007
Mixed Mode Authentication..
I have an intranet appliation which does not explicitly require the users to login. However the user access is controlled, with details stored in database table. So I am using windows authentication to get the user's login name which will be used to check against the database. I do the actual check against the database in the Application_AuthenticateRequest method. This seems ok so far. Now the problem I have is that the the Application_AuthenticatRequest method runs every request that is made. I
Posted to
Security
(Forum)
by
paragp
on 6/24/2005
Page 1 of 4 (31 items) 1
2
3
4
Next >
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online