Groups | Blog | Home


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 > february 2004 > threads for friday february 27

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

Session doesn't work in Application_Error in Global.aspx
Posted by Mike Malter at 2/27/2004 11:50:30 PM
I have a general error page that I configured in web.config as <customErrors mode="On" defaultRedirect="CRDefaultError.aspx" /> This error page comes up whenever an error occurs outside of any try/catch blocks. This page has a text box in it that I would like to fill with relevant information a...more >>


Using MS's IE MultiPage and TabStrip on public websites
Posted by jsausten NO[at]SPAM hotmail.com at 2/27/2004 10:45:38 PM
Has anyone had any browser compatibility issues using Microsoft's IE MultiPage and TabStrip (http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/webcontrols_entry.asp) in their web projects? I think the controls are built specifically for IE 5.5+ and use a lot of XML to rende...more >>

How to capture browser close event when user click on x?
Posted by feng at 2/27/2004 8:51:11 PM
Hi, In our asp.net app, we need to capture the event when user close the browser window by clicking on the "x" button. But it doesn't seem to be as easy as it sound. Can someone show me how to do this? Thanks...more >>

How to keep the password in a password field when page post back?
Posted by feng at 2/27/2004 8:47:11 PM
For a HTTP textbox with a Type of "password", the default behaiver is that the field will be cleared out when the page is posted back. This make sense in most of the cases. But in some situation, it become problematic. In our asp.net applicaiton, I would like to keep the password in the fi...more >>

dynamically displaying .ascx files
Posted by BK Kim at 2/27/2004 7:39:33 PM
Hello. I have made some .ascx files which displays some data. What I am trying to do is in my .aspx file, I dynamically display a.ascx file or b.ascx file depend on who logs in. Is there any way I can achieve this? Thanx in advance ...more >>

HTML text filters, display control, utilities
Posted by _eee_ at 2/27/2004 6:05:13 PM
Does anyone have a pointer to code for: 1 Filtering text from html? (removing html tags, etc) 2 Displaying HTML in a windows form or any other useful utilities for dealing with raw HTML. ...more >>

Help needed: Problem with dynamic generated TableRow and TableCell
Posted by hb at 2/27/2004 5:38:53 PM
Hi, I have a page bill.aspx and its code-behind bill.aspx.cs. On bill.aspx I have: === Select a month: <asp:dropdownlist runat="server" id="lstDate" autopostback="True" /> <br> <asp:table runat="server" id="tabBill" /> <br> <asp:button runat="server" id="btnSave" text="Save" cssclass="but...more >>

Page redirection by clicking image button.
Posted by Phoebe. at 2/27/2004 5:37:36 PM
Hi, Good Day! I've a image & would like to direct it to another webform by clicking it. <input class="imageGo" src="images/go.gif" ondblclick="EnterPage" runat="server" type="image"> Above is what i insert but it does not direct me to the page i want. Can someone help? Thanks in advanc...more >>



HTTP_REFERER blank
Posted by SStory at 2/27/2004 5:12:20 PM
Need to know what page called my aspx (page via a form) calling page could be aspx or asp. sometimes HTTP_REFERER is blank.... Why? Is there another variable to use to get it? Ideas? Thanks, Shane ...more >>

downloading files from another server through aspx
Posted by Wardeaux at 2/27/2004 5:03:35 PM
Hey all, I'm hitting a wall... We have many daily reports generated on another server, need to present list of available files and allow user to download desired files from aspx page... any suggestions on how to do this? The other server is running Win2K3 with SQL but no IIS... tried mapping...more >>

Question about web services and sharing classes
Posted by Chris Dunaway at 2/27/2004 4:58:32 PM
How can a class be shared between a web service and a client that consumes the web service? Suppose I have a Class Libraray with the following simple class: Public Class SimpleClass Private _AnInteger As Integer Public Property AnInteger As Integer Get Return _AnInt...more >>

SSL and local web server.
Posted by Mike Malter at 2/27/2004 4:55:21 PM
I am having problems using https when calling a page on my local machine. I am running XP professional. All I get is a general error page telling me there are problems with my page. I have installed a certificate from our domain CA on the single web site allowed in IIS 5.1. I've successfully ...more >>

Broken Images ASP.NET/IIS Problem
Posted by Jacob at 2/27/2004 4:47:54 PM
Has anybody else encountered a problem when running your asp.net applications off your localhost and having broken image links? The weird thing is, the links aren't really broken. The reference is correct. And what's weirder that than, it will only do it sporadically. I can refresh the scree...more >>

XmlUrlResolver xsl:include
Posted by Gideon de Swardt at 2/27/2004 4:35:39 PM
I am trying to do a server side transformation using an xsl:include in my xslt stylesheet. The include stylesheet is stored /Library/abo.Library.xslt and is included in multiple xslts, one example would be /Valuation/ValuationSelect.xslt which is also used on the client side via JavaScript and M...more >>

Architecture Ques: FormatInfo class
Posted by TS at 2/27/2004 4:30:26 PM
Hi, I had a microsoft guru help my team build a project. I noticed that in 2 situations where a value needed to be formatted in a certain way when viewed in browser, he would create a new class called "format_nameFormatInfo". He used 2 functions in each: Public Function GetFormat(ByVal formatT...more >>

Transaction block
Posted by orianavim NO[at]SPAM hotmail.com at 2/27/2004 3:55:04 PM
Hi, I have a wired problem. I have a code block in my code (ASPX file) which I need to force it to be transactional. I'm doing the following: 1. for each one of the items i. Add record to the table which indicate that a transaction has been completed successfully. (X) ii. Set a varia...more >>

postback and refresh!
Posted by francois at 2/27/2004 3:46:44 PM
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its data automatically. The problem is that when i click on the dropdownlist, i post back informati...more >>

get information from the Request
Posted by francois at 2/27/2004 3:37:52 PM
Hi everyone, When I do some postback I need to discover some information like what aspx form or even the relative url to the project that the postback is orginated from. For exemple if I have projectRoot/folder1/folder2/page.aspx when i do the postback from that page, i want to get som...more >>

Databind() and flexibility?
Posted by me at 2/27/2004 3:32:07 PM
I want to do various stuff, such as calculate TimeSpan, create html anchors and so on, based on the fields returned from a sqldatareader before I bind it to a datagrid. Is it possible and how? ...more >>

System.Diagnostics.Process Question
Posted by Steve Bishop at 2/27/2004 3:28:33 PM
How come this will start the process on the server, but not the actual application. Is there a way to actually run the application? Help appreciated. <%@ Page Language="VB" Debug="true" %> <script runat="server"> Sub Button1_Click(sender As Object, e As EventArgs) System.Diagnostic...more >>

ASP.NET Content Export TO PDF?
Posted by .NET Follower at 2/27/2004 3:27:17 PM
hi, i want a way to export the data on a datagrid to PDF format ? any pointers... Thanks and Regards, Amit Agarwal Software Programmer(.NET) ...more >>

Any control with Sorted property ?
Posted by Steve Caliendo at 2/27/2004 3:24:21 PM
Hi, Is there any control in asp.net that I can use that will alphabetize a list for me ? Thanks, Steve ...more >>

Newbie: Declaring Variables
Posted by Steven K at 2/27/2004 3:03:17 PM
Hello, I am trying to convert an ASP application to ASP .Net. The first issue I have come across is declaring the variables for my connection to SQL Sever 2K stored procedures: Dim strParm00 As String Dim spSearch Dim con_search Dim adcmdStoredProc Set spSearch = con_search.Execute("...more >>

Display DataGrid's RowNumber in Bound column?
Posted by D. Shane Fowlkes at 2/27/2004 3:00:16 PM
I have a DataGrid which is populated by a DataBind command and is bound to a DataSet. It displays nicely on the page and all is well. Is it even possible to have one of the "columns" filled with the row number of the actual content from a field?? In other words...something to the effect of: ...more >>

Link Control
Posted by Krishnan at 2/27/2004 2:31:25 PM
Hi, Could anybody tell me how to make a link control open a new window when clicked? Thanks Krishnan ...more >>

XSLT to HTML
Posted by Slipperman at 2/27/2004 2:12:52 PM
say i have 2 xml files i want to combine and format using XSLT but i'd like to route the output to an HTML file. can this be done?? every sample i've seen on the net is using Console.Out which sounds like it writes to the browser or the output window, not a file. also, how do you actually use th...more >>

Postback Confusion
Posted by William_Woods NO[at]SPAM ca8.uscourts.gov at 2/27/2004 1:48:57 PM
The goal is to have a new web page called from a dropdown component. HTML: <asp:dropdownlist id="drpPacer" runat="server" ForeColor="Navy" Width ="372px" AutoPostBack="True"></asp:dropdownlist> In the aspx.vb file, the list is bound to a command that fills the list value with the URL to b...more >>

where are cookies written?
Posted by Jason Shohet at 2/27/2004 1:39:15 PM
I need to get the computer name that the user's browser is on (intranet app here). We don't want Netbios turned on. So, when the user logs in, the network engineers have a file written onto the user's machine. Then, my .NET app is going to read from that text file -- ON THE USER'S MACHINE. Ho...more >>

ASP.Net Page that has a control to display HTML
Posted by David Elliott at 2/27/2004 1:36:05 PM
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying... protected System.Web.UI.WebControls.Panel htmlPanel; protected System.Web.UI.WebControls.Image htmlImage; htmlString =...more >>

Syntax in VB.Net
Posted by Nicky Crider at 2/27/2004 12:59:28 PM
I have C3 code like this. WebForm1 wf1; wf1 = (WebForm1)Context.Handler; MyLabel.Text = wf1.UserDefinedProperty what is the equivalent syntax in VB.Net for ASP.Net application Thanks Nicky ...more >>

How can I read login details from FormsAuthenticationTicket ?
Posted by Fresh_Air_Rider NO[at]SPAM Hotmail.com at 2/27/2004 12:55:36 PM
Hi I have implemented a system of Role-based Security with Forms Authentication in my website which retrieves a comma separated list of user roles via a SQL Server stored procedure. The system all works fine except for one part. If I log into the system, I get authenticated as expected. If ...more >>

Slow page performance
Posted by Kairi at 2/27/2004 12:46:09 PM
Hi all I have an aspx page (not compiled) that exhibit the following behaviour every once in a while When a request for the page is made, aspnet_wp spikes up to 100%, and then after about 30 seconds or so the Page_Load method is finally invoked, and the page loads as normal This happens every 5...more >>

ASP.NET page unable to instanciate an Excel application object
Posted by Ginger at 2/27/2004 12:36:05 PM
Using VB.NET, I attempt to instanciate an Excel application object with the statement: Dim oExcelAppl As Excel.Application = New Excel.Applicatio I receive a runtime error with the message "Access is denied. Does anyone have a work-around ?...more >>

movie to thumbnail
Posted by db at 2/27/2004 12:17:15 PM
In explorer you can change the view setting to thumbnails, and you get thumbnails even from movies. I want to do the same from asp.net. I want to create 'on the fly' thumbnails from some mpg movies, but I don't know if that's possible from asp.net. Who can help me with this? ...more >>

Validation doesn't stop
Posted by Janaka at 2/27/2004 12:15:01 PM
We have a multi-line textbox that we do not want to allow the user to enter HTML code. I've added a regularexpression validator to the page which catches the error. However after editing it doesn't remove the error message. Anyone have this problem? <asp:RegularExpressionValidator id="sDescVa...more >>

Sending an email after a condition is met in SQL server
Posted by Simon Harvey at 2/27/2004 12:08:32 PM
Hi chaps, My company runs a website that allows users to sign up to a seven day trial of a software product. What we would like to happen is, about three or four days after the trial expires a message to be sent to the user encouraging him to signup to the paid service. My question is, what...more >>

is there any is integer function ?
Posted by Tee at 2/27/2004 12:08:19 PM
Hi, how do we detect if a value is a positive integer ? thanks, Tee ...more >>

problem with iframes
Posted by Ashish at 2/27/2004 11:55:47 AM
Incase the problem got bogged down reposting... Hi Gregory, I think I didnt make myself much clear. The problem is: 1. I have one ASP.NET application (no classic asp) and it has a main page (i.e. kinda SDI main window) that contains an IFrame. 2. I load different ASPX pages (that belong ...more >>

importing data from files
Posted by SOS at 2/27/2004 11:53:01 AM
hi guys ! i'm trying to write an editor like Free textbox/ i want to let the user to select a text file from his/her hard disk and then open this file in my editor. (such as file->open menu in the Word or other word processors) how can i do that ? (i don't want to use html file control) Thanx ...more >>

SQL Server does not exists or access denided
Posted by SOS at 2/27/2004 11:52:16 AM
hi guys , i want to coonnect to a sql server on an other machine in a LAN network. i use of this connection string : "data source=TargetMachine;initial catalog=mydatabase;password=1;persist security info=True;user id=a;packet size=4096" but when i trying to get some data, i get this error : "SQ...more >>

Why my session expires? And will a sessionID survive...?
Posted by Welman Jordan at 2/27/2004 11:33:20 AM
Hello all, In Session_OnStart, I set a session variable: Session["LogInTime"] = DateTime.Now; and Session.Timeout = 15; Then the user begin to browse around ASPX pages. In those pages, Session["LogInTime"] is queried and displayed, but not modified, and no more Session variable is ...more >>

Regex Matching Q
Posted by George Durzi at 2/27/2004 11:31:09 AM
Consider the following HTML snippet. I want to extract the section shown below. <!-- some html --> <TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 border=0><?xml version=1.0 encoding=UTF-16?> ** There is some HTML here that I want to extract ** </TABLE> <!-- some html --> I did this: R...more >>

Query Exchange Server for ASP.NET web app
Posted by J at 2/27/2004 11:26:06 AM
I was wondering if there was a way I could query an Exchange server for use in an ASP.NET web application? I don't want to create a SQL table to hold the same information that's already being stored in our Global Address Book on an Exchange server. If this can be done please point me in the righ...more >>

dataset help, adding a column inside a loop
Posted by schwartz NO[at]SPAM cableone.net at 2/27/2004 11:20:01 AM
I need help adding a column to a dataset, but its a little bit more complicated then just that. Here's the situation: I have many xml files in one directory, each which represent a newsletter. I want to create a page that will display a title and date of each newsletter, along with a link to ...more >>

Building Dataset from Class Array
Posted by Marc Castrechini at 2/27/2004 11:16:05 AM
Forgive any bad terms. New to .Net development My business layer has something similiar to this class Accoun private m_Notes as Note( ' Get Mehod .. end clas Class Not private m_strText as Strin private m_dCreateDate as Dat ' Get Method .. ' Load Function ...more >>

Pageable DataGrid
Posted by André Almeida Maldonado at 2/27/2004 11:05:45 AM
Hy Guys... I have a Datagrid with custompaging. This DataGrid is editable, but when I am on the page 2 and need to edit the first row of the page 2, the datagrid understand that i am editing the frist row of the first page.. WHY???? See the code: Private Sub grdNotaProd_EditCommand(ByVal ...more >>

How to change Background Image
Posted by Bobofrut at 2/27/2004 11:05:08 AM
Hi In my ASP.NET application I try to change dynamicly picture in background of page. Ther is any way to do it without using webcontrols(like panel) I wrote the public function named getName() that return string "pic\1.jpg" and put this into html tag <body background="<%# getName()%>" botto...more >>

Save a file on client
Posted by Nikhil Tayal at 2/27/2004 10:54:09 AM
Is there a way to write a file on the client machine from an aspx page? I've a custom query page and need to store the search criteria specified in an XML file on the user machine from my web page (aspx). I form the XML at run time from the search fileds specfied by the user and now my aspx page ...more >>

Accessing a Control inside a Repeater from a code behind file
Posted by djscratchnsniffing NO[at]SPAM yahoo.com at 2/27/2004 10:06:34 AM
im new to asp.net. please help if u can. is it possible to refer to a control(ie lable, placeholder, textbox) that is inside a repeater object from a code behind file? when i place the control object outside of the repeater, i can refer to it from the code behind file. when i place the control o...more >>

Highlited default key does not work. Can any one explain this ?
Posted by makthar at 2/27/2004 10:01:07 AM
Thanks for taking the time to read this note Can anyone explain what went wrong and any ideas how to fix it I have a search page With three buttons few drop downs and a textbox. The search Button is the default button (because it is the first control in the HTML When anything is entered into t...more >>

New Browser
Posted by Jim Heavey at 2/27/2004 9:47:52 AM
If I want to cause an new instance of a browser window to open up to a asp.net page, How do I cause this to happen?...more >>

Need help with ASP and File Access
Posted by David Elliott at 2/27/2004 9:19:52 AM
As I am new to ASP.Net, I am looking for some insight on how to solve this issue. I have a main page that loads a custom control. The custom control has a DataList object. The DataSource is set to an array of objects which are filename, for right now. This will change to a File ID, Directo...more >>

Name is not declared
Posted by DC Gringo at 2/27/2004 9:11:41 AM
I'm getting a BC30451: Name 'pageID' is not declared. I have a user control that contains a simple condition to display one row or another like: <% If x = 1 Then %> ....some html... <% Else %> ....some html... <% End If %> The control is used to in two different .aspx pages (e.g. first...more >>

DataGrid and DropDownlist
Posted by Daniel at 2/27/2004 8:46:08 AM
Hello I've read several times the document called "Top Questions about the DataGrid Web Server Control" and the paragraph Displaying a DropDownList in Edit Mode but I still don't understand something When I run the code, with EditItemIndex = 0 the DropDownlist appears where I want it to appear i...more >>

Saving user data between requstes
Posted by RA at 2/27/2004 8:44:31 AM
Hi I use ASP.net with c#. The web application is hosted by a web host provider. The application gets user information for order processing. The information should be moved from one aspx page to the other until the user choose to submit the order. The order process has about 4 aspx pages. What ...more >>

Is there a "State Server"
Posted by C P at 2/27/2004 8:44:19 AM
I've seen references to using an out of process state server in cases where you need to maintain session state in a web server farm. I think SQL Server will be too slow to manage the state that I want to manage, and I can't find any actual product called a "State Server" on the MS site. Is ther...more >>

Can't apply CSS class to DataGrid's HyperlinkColumn?
Posted by Dave at 2/27/2004 7:26:06 AM
I have a hyperlink column in a datagrid as follows <asp:HyperLinkColumn DataNavigateUrlField="OrderId" DataNavigateUrlFormatString="OrderDetails.aspx?Id={0}" DataTextField="Order" HeaderText="Order" ItemStyle-CssClass="Green10pt"></asp:HyperLinkColumn renders ... <td class="Green10pt"><a href=...more >>

Weird problem
Posted by Constandinos at 2/27/2004 6:49:38 AM
Hi I have a very weird problem and very difficult to solve. There is a solution that I already know, but that is too time consuming and I need a quick answer if there is one I have a big asp.net project that until earlier today was working fine and it was ready for Monday’s release. I did som...more >>

Datagrid, empty date: How show nothing for date value - now shows 1/1/0001??
Posted by Reza at 2/27/2004 6:06:05 AM
Hi I have a column in my datagrid that can have values of null at times. I am not assigning any value to it, if it is coming from Database empty. Now, the problem is I guess the datetime variables have a default value. Thus shows an undesirable value of 1/1/0001 How do I go about not showing any...more >>

Bit Conversion
Posted by skchbs NO[at]SPAM yahoo.com at 2/27/2004 5:36:11 AM
Hi All, I have a table in the database with one column of bit datatype...how can i retrieve its value as yes/no or true/false in my datagrid column, i realize i need to convert it in the query n pass the modified datasource to the datagrid, but unsure on how to proceed...any help will be greatl...more >>

Life Scope
Posted by hifchan NO[at]SPAM yahoo.com at 2/27/2004 5:10:53 AM
In MS' TimeTracker sample app, a middle-tier component BLL has a class named TimeEntry. It's used in TimeEntry.aspx to remember a certain state of an entry. I must have missed something but just can not find a clue on its life scope, as the more request for the page, the more resources used up...more >>

Problem with pdf viewing in IE
Posted by PatLaf at 2/27/2004 5:01:05 AM
Hello to all I have created an asp.net application that needs to view pdf documents. I ran into a security issue but I added the identity impersonate = true and turned off anonymous access to the site to combat that but now when I run the application instead of the pdf being viewed from IE it promp...more >>

CustomValidator
Posted by Tom at 2/27/2004 4:11:05 AM
Hi I need to validate the duplication of username. Here is the aspx code [code <td>User Name:</td><td><asp:textbox id="username" Runat="server"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidatorUserName" runat="server" ErrorMessage="Please input user name! Display="None" Con...more >>

LinkButton Problem
Posted by Mike at 2/27/2004 2:08:27 AM
Hello, I am using dynamically created LinkButtons. When I run the project I get = an error message saying "Line: 114, Char: 33, Error: Expected ";", Code: = 0......." The code I am using to create these LinkButtons is: Dim obj As New LinkButton obj.Text =3D "<br>" + a.Description + "...more >>

Problem with iframes
Posted by Ashish at 2/27/2004 2:04:34 AM
Hi All, I have a main page that contains an iframe. Depending upon tab control selection, I load several different aspx pages (from the same app) to the iframe. My parent sets data in the session variable. The page in the iframe is unable to access the session object (shows null). My guess is th...more >>

RewritePath issues
Posted by Corey O'Mara at 2/27/2004 12:59:42 AM
Hello all, I'd like to have personalized URL's in my application. For example, http://mydomain.com/sites/page.aspx should be accessible via http://mydomain.com/sites/username/page.aspx. I'd like to parse the URL and grab the username so I can deliver the appropriate content on the page. This ...more >>

Set Column Headertext
Posted by Alessandro Rossi at 2/27/2004 12:16:07 AM
Hi I have a Datagrid with a templatecolumn, where I add at design time. I also checked the "create columns automatically" I would like to change the headertext of columns created automatically, but i don't know in which event I can do that Can you help me P.S. I tryied to set the headertext in...more >>


DevelopmentNow Blog