Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > december 2005 > threads for friday december 2

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

ASP2.0 Can't download files Forms Authentication
Posted by Michael Tissington at 12/2/2005 9:31:00 PM
I have setup up Forms Authentication on my website and added configuration/mappings for exe, pdf and zip files (using C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll) However when ever I try to download a file I get the following error Can't Find Server or DNS error Any i...more >>


https help
Posted by CK at 12/2/2005 8:58:37 PM
How can I detect if a user is using https to get to my page and if not redirect them to the https? I am new at this sort of thing so please bare with me. Any help is appreciated. Thanks in advance. Regards, CK ...more >>

Session_End Event Always Firing
Posted by Jeremy at 12/2/2005 8:32:59 PM
I am implementing a shopping cart on a project and am getting extremely frustrated because my session variable's are not persisting. After doing some research I may have discovered the source, I realized that my session_end event is firing on almost every page. The session_end event isn't suppos...more >>

Huge viewstate on v2.0
Posted by John at 12/2/2005 6:41:32 PM
I'm having problems controlling viewstate size in ASP.NET 2.0. I have a repeater, which contains a gridview, which contains another gridview. All this is databound to produce a 100page report (for printing). No postback needed, no viewstate needed. I've set EnableViewState="false" on every...more >>

Please help me make this interface work in v2005.
Posted by Edwin Knoppert at 12/2/2005 6:27:16 PM
I found this on the net. If this works i'm sure i can manage the rest of it. ' ///////////////////////////////////////////////////////////////////////// ' // ' // IShellFolder ' // ' ///////////////////////////////////////////////////////////////////////// <ComImport(), InterfaceType(ComInt...more >>

Whats wrong here...
Posted by Matthew at 12/2/2005 5:55:23 PM
It keeps saying there is a ')' expected... No other errors in the program just this. What I have: AddHandler(HTMLLink.Command, Addressof FTPCommand) What the compiler suggests: AddHandler(HTMLLink.Command), Addressof FTPCommand) And the suggestion is invalid syntax......more >>

Has anyone got ellipses working in a gridview or detailsview?
Posted by RCS at 12/2/2005 4:54:42 PM
Perhaps you are familiar with the old: <nobr style="OVERFLOW:hidden;width:100px;TEXT-OVERFLOW:ellipsis">blah blah blahblah blah blah blah</nobr> technique.. Well, within a gridview, if I use this technique for a field, it just sort of ignores it. If I isolate out this line in a seperate .ht...more >>

textbox ignores disabled viewstate?
Posted by PJ6 at 12/2/2005 4:39:44 PM
I have a textbox control where OnKeyPress of Enter, a few hidden field values are set and then form[0] is submitted from JavaScript. The page reloads, and this textbox is then repopulated with data that may be different than what the user just entered. Well, I'm having a problem with this te...more >>



simulate button click
Posted by xzzy at 12/2/2005 4:36:19 PM
I have several pages in a frame and need the code behind of a page in one of the frames to cause a button in that page to click so the javascript in that button will execute on the client computer.. Thank you, John Bickmore ...more >>

Stored procedure syntax problem
Posted by martinharvey via DotNetMonster.com at 12/2/2005 4:28:10 PM
I would be very grateful if someone could help me with a stored procedure syntax problem I want to insert the value "OrderTotal" into databasetable("Newtable") column "OrderTotal" (money (8)). The value can be returned from the page (Dim amount As Decimal = ShoppingCart.GetTotal() totalAmount...more >>

viewstate getting corrupted
Posted by TS at 12/2/2005 4:23:28 PM
I have some inner exceptions on dev and production server saying: Invalid character in a Base-64 string. OR Invalid Length of a Base-64 string or something like that. I cannot recreate this issue and don't know why it is happening. Someone suggested that it occurs when someone clicks submit...more >>

UK Date Format Regular Expression
Posted by Niclas at 12/2/2005 3:55:41 PM
Hi, Does anyone have a Regular expression that validates a date in the UK format dd/MM/yyyy to share ? Many thanks Niclas ...more >>

how to reflect changes in server-control to client?
Posted by Mike at 12/2/2005 3:37:38 PM
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is being updated by some other process through remoting. When the page loads, I init the tree, and in my...more >>

Converted site will not load
Posted by Michael Tissington at 12/2/2005 2:47:49 PM
I have converted to ASP.NET 2.0 When I run the site on my local machine ir runs correctly. When I copy the site to my hosted environment I can not view any pages. IE just reports that it is opening the page and the progress bar continues to move but never displays anything. Any ideas p...more >>

ASP.NET 2005 hack-proof?
Posted by Edwin Knoppert at 12/2/2005 2:46:44 PM
I know ASP.NET 1.x generated dll's which decompilable to plain c or vb (afaik, i never used 2003) Is this problem solved in 2005? We ever want to distribute 2005 compiled code. And it seems all like ordinary dll's at first. Is the code i wrote retrievable? Thanks! PS, this is not a dis...more >>

ProfileBase.UserName and forms auth via the Login control
Posted by Keith Patrick at 12/2/2005 2:31:46 PM
Currently, if I declare an asp:Login control on a page and login, on both OnAuthenticate and OnLoggedIn, this.Profile.UserName is still null, even though the user does get authenticated and shows up as such on the main page. However, I have to set some profile values as soon as the user logs...more >>

Remote server returns (500) Internal Server Error,when posting xml
Posted by Danny at 12/2/2005 2:15:03 PM
I am posting xml to a server and get the above error returned. The client code is listed below, it works until say a "<" character is put in XmlData. On the server page I try to pick up the XmlData with: Response.Write(Request.Form["XMLData"]); Client side code: ASCIIEncoding encod...more >>

Unable to start debugging on the Web server
Posted by Boro at 12/2/2005 2:13:03 PM
When trying to run my application in debug mode from VS 2003 I am getting "Unable to start debugging on the Web server" error. Everything worked fine until I installed VS 2005 to the same box. I tryed to attach the "aspnet_ws.dll" process manualy, but it didn't go trough. Under available pro...more >>

Having a UserControl returned in a string from another UserControl to be rendered
Posted by SlimFlem at 12/2/2005 2:00:36 PM
I hope this makes sense. Here is what I am attempting. I have an inital generic aspx page that has one custom tag: <web:site id=webSite runat=server/> When this control evaluates, it will return a small amount of Html with another custom control tag inside this html. For example: <ta...more >>

Setting Checkbox clientside
Posted by tshad at 12/2/2005 1:40:31 PM
I am trying to set and clear my checkboxes using client-side validation. I have some Javascript to set my checkboxes: <script language=javascript> function validate(){ Medical.checked = 1; } </script> I get an error that says: "Medical" is undefined Here is my asp code: ...more >>

Weired start page...
Posted by Andrew at 12/2/2005 1:38:03 PM
Hello, friend, I have two web pages in my new created project. I set one of them as start page. However, in start page, although I have action="secondpage.aspx", after it was displayed in IE, asp.net changed it to action="firstpage.aspx". I then removed action="secondpage.aspx" from fi...more >>

can ASP.NET properly parse a string to pass to JavaScript?
Posted by PJ6 at 12/2/2005 12:41:25 PM
I can probably code this up manually myself but I'd prefer to use a built-in method that I'm sure exists... I have a message box client-side control (thanks, Steve Orr) that uses the JavaScript alert() method to pass text to a user in a dialogue box. Often I have messages containing text that ...more >>

Q: How to best make use of Localization
Posted by Visual Systems AB (Martin Arvidsson) at 12/2/2005 12:39:18 PM
Hi! I am using App_Globalresource to store all the common resource for controls, that works just great. But, i have pages with text that needs to be different depending on the language that is specifyed in the internet explorer. I need a nice way to tell the master page to get the text ...more >>

Access Denied Error message while writing to web server
Posted by Stephen at 12/2/2005 12:08:13 PM
Hi, What permission setting do I have to enable to allow an Excel spreadsheet to a folder on my webserver? I get "access denied" message when I try to write it onto a webserver I have imported Microsoft.Office.Interop.Exceland other classes Thanks, Stephen ...more >>

Global.asax and CodeFile
Posted by Michael Tissington at 12/2/2005 11:55:50 AM
How do I specify the CodeFile for my Global.asax file ? According to the documentation I can use the CodeFile attribute with Application, however when I try to use this I get an error saying that it not a valid attribute. <%@ Application Language="C#" Inherits="SQLView.Global" CodeFile="...more >>

ASP.NET 2.0 migration tool changes filenames to lowercase
Posted by n33470 at 12/2/2005 11:54:04 AM
Hi all, We have an existing website, built with VS2003, that we're in the process of migrating to use in VS2005. After the migration wizard completes, then all of the .aspx web pages are changed to lower case. For example, if there was a webpage named "HelloWorld.aspx" in the old format, th...more >>

Pass Recordset from Web Service to Classic ASP.
Posted by Ted Ngo at 12/2/2005 11:31:11 AM
I want to use the .net Web Service to create a function and return the datas (RecordSet). And want to retrived those data on the classic ASP. Does any body have some example of this. How to create the Recordset in webservice and get it at classic asp. Thanks and Regards. ...more >>

Request.ServerVariables In Seperate Class file?
Posted by Jason Hawthorne at 12/2/2005 11:28:56 AM
I am trying to get this code to work in a class file that I use in all of my pages. Public Shared Function Check_Site() As String Dim arr() As String Dim coll As NameValueCollection coll = Request.ServerVariables arr = coll.GetValues("SERVER_NAME") ...more >>

Programmatic access to TemplateColumn?
Posted by matt NO[at]SPAM mailinator.com at 12/2/2005 11:15:24 AM
hello, i have a datagrid w/ a TemplateColumn in it, like so: <asp:TemplateColumn HeaderText="Select"> <ItemTemplate> <asp:CheckBox ID="chkSelected" Runat="server"/> </ItemTemplate> </asp:TemplateColumn> ....in my c#...more >>

Reportviewer problem
Posted by Brad at 12/2/2005 11:15:02 AM
I have not gotten a response on the Report Services discussion group, so I thought I would try here. In a nutshell, I am using VS Studio 2005 Standard along with SQL Server 2005 Standard. I have a report viewer on one page that properly displays a report. The problem is that the print but...more >>

change skin property
Posted by micky at 12/2/2005 10:53:53 AM
i'd like to change styleSheetTheme="default" propery...dynamically it's readonly property i think how can i do? ...more >>

Exception thrown Invalid_Viewstate
Posted by Ganesh Ramamurthy at 12/2/2005 10:44:03 AM
Hi All, I am occationaly getting this error from my asp.net application deployed in production. I am not able to trace out the source. Can anyone throw some light to this issue Thanks in Advance Ganesh ...more >>

Session State Management
Posted by Eyal at 12/2/2005 10:22:02 AM
Hello all. I am trying to manage session data with out ever setting session cookies on the client user's side. I understand that by setting values in the Session object, a cookie is set on the client side with the value of a session number. This is a problem for me, since search engi...more >>

.net / checkbox / popup window
Posted by Rob Meade at 12/2/2005 9:21:56 AM
Lo all, Just after some suggestions here really... I have a page which lists a members of staff who have left our organisation, this list is then used by various departments in our organisation to carry out their own processes based on the fact that this member of staff has left, for exa...more >>

Responding to a HttpWebRequest
Posted by Tarun Mistry at 12/2/2005 9:19:59 AM
Hi, I have an ASP.NET application (client) thats uses HttpWebRequest to post data to another ASP.NET page (server) and then uses the HttpWebResponse class to get the results of the request. However, on the server side, what classes do I need to use to get the incoming post data and then ret...more >>

My "Delete command" deletes more than I want
Posted by papaja at 12/2/2005 9:03:25 AM
Hi, I posted this on asp.net forums already, but nobody answered it. Here is direct link: http://forums.asp.net/1124640/ShowPost.aspx. Here is the question: I'm using this code in delete command of datagrid: **************** Dataset1.DSataTable1.Rows(e.Item.ItemIndex).Delete() ...more >>

custom errors: machine.config vs. web.config
Posted by kramer.newsreader NO[at]SPAM gmail.com at 12/2/2005 8:57:25 AM
I am develoing a C# web application on a remote server. I have publish access to this server, but not permission to change configuration setting. When I try to load my page, I get the following message: Runtime Error Description: An application error occurred on the server. The current c...more >>

Can Divs automatically grow?
Posted by Lee at 12/2/2005 8:39:06 AM
Hello all, I have a question about Divs. It is possible to have a Div grow in length in response to a control such as a Table or Gridview growing inside of it? -- Warm Regards, Lee "Upon further investigation it appears that your software is missing just one thing. It definit...more >>

Nesting A DataGrid Inside a Repeater
Posted by hooterbite NO[at]SPAM yahoo.com at 12/2/2005 8:12:38 AM
In the code behnd I build the dataset including the relations, which is working fine. I know it is working fine becuase I tested it by looping through the datatable then looping through the child table. The code I use inside the datagrid is <asp:DataGrid id="Datagrid1" runat="server" datasource=...more >>

Deploying Source Code to Production Servers. Good or Bad?
Posted by john NO[at]SPAM johnwpowell.com at 12/2/2005 7:02:37 AM
I think some of the changes to Asp.net are rediculous. Take the ability to deploy source code to production that is compiled on the fly. If this is such a great model, why not distribute your source code with your Windows Forms apps too? John Powell ...more >>

Confirmation for delete command on gridview
Posted by Steve at 12/2/2005 6:53:00 AM
Is it possible to have a confirmation dialogue appear when the delete command is clicked on a gridview? i.e. asking the "Are you sure you wish to delete this record?" question. I just don't like the idea of someone clicking on delete by mistake and the record getting deleted. I tried using ...more >>

css problem
Posted by micky at 12/2/2005 6:38:05 AM
########################################################## i use css [board-frame] like this ##################################################### <!-- FrameTable --> <table border="0" cellpadding="0" cellspacing="0" class="board-frame"> <tr> ...more >>

Event handler not firing
Posted by Tom Perkin at 12/2/2005 6:16:43 AM
Hello all, I have an ASP.NET page written in VB.NET that dynamically adds rows to a table from data returned by a database query. Some rows in this table contain buttons whose events I handle. In the event handler I rebuild the table adding event handlers again using addHandler. When the ha...more >>

ASP.net to SQL server , connection not closing even after Log out
Posted by thomson at 12/2/2005 6:02:13 AM
Hi all, In my application i use efficient use of the DAL, but for eg 4 users has been connected to the application, it shows 4 connections established, when all the users logout, and again logs in it shows 8 connections established, What should i do inorder to release all my connectio...more >>

Set Custom Page properties declaratively
Posted by Richard Brown at 12/2/2005 3:18:02 AM
Hi, I have a base class (which inherits from System.Web.UI.Page) for all the pages in my application. I have a property defined on this class that I want to set declaratively in the .aspx (i.e., not in the .aspx.cs) file. Is there any way to do this declaratively? When I try to use the...more >>

Frame related quetion - to enable cookies
Posted by amitprasad.one NO[at]SPAM gmail.com at 12/2/2005 2:40:21 AM
Hi- This is Amit from Pune. A link in an Upper Frame, targetted to open in the bottom frame as a New Web site that is it is a new web site, doesn't do so. Cookies are not enabled and hence the Web page does not open in the body of the page which is another frame. Hope you've understood...more >>

Hosting
Posted by John at 12/2/2005 2:36:39 AM
Hi What are some of the good asp.net 2.0 web hosts in UK? Thanks Regards ...more >>

Help with design decision
Posted by tubby at 12/2/2005 2:08:45 AM
I’m developing an application that will send a lot of data (up to one gigabyte) from a user to a company file server. One of the requirements of the solution is that the user doesn’t have to choose what file to send, all he has to do is press a button to start the upload. One solution is to cr...more >>

Access inherited aspx control from base aspx ?
Posted by Jeff User at 12/2/2005 12:53:28 AM
Hello I am using C#, .net1.1 Vis Studio 2003 I am using homeBase.aspx.cs page as a base for several other aspx/aspx.cs web pages. The base page handles some operations that are common to all pages. like this: somepage... public class homeBase : System.Web.UI.Page .... then other pages..... ...more >>

Web.config.exclude
Posted by Mark Rae at 12/2/2005 12:35:53 AM
Hi, Am currently in the process of migrating a whole heap of v1.1 ASP.NET solutions to v2.0, and would be interested to know what others are doing about excluding web.config from projects. In v1.1, it was quite usual to exclude web.config from the project so that it wouldn't get deployed...more >>


DevelopmentNow Blog