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 > march 2005 > threads for friday march 4

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

Backcolor changes
Posted by Matt at 3/4/2005 11:12:04 PM
I'm having a problem when I place ASP:Textbox controls on a form. During design time the control's backcolor is set to white. When I run the project in debug mode or deploy the page to a test web server, the backcolor for some of the fields changes to yellow. I've reviewed the HTML and do...more >>

Template / Skin in ASP.Net?
Posted by Shelby at 3/4/2005 11:07:19 PM
Hi, if I want my asp.net application to have a consistent look and feel throughout, is there any techniques or mechanism to do it? It's something like template or skin. So that when I decided to change the layout of the application, I do not have to change it in every of my aspx file. In...more >>

Databinding a SQLDataReader to a DataGrid control
Posted by Jeff at 3/4/2005 11:01:40 PM
Hi - I'm having trouble Databinding a SQLDataReader to a DataGrid control. I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in a directory of my localhost on my development machine. The database is on the web. When I run the app on the loc...more >>

back button woes
Posted by Robert Megee at 3/4/2005 10:06:41 PM
I've been able to essentially disable the back button on IE6 by expiring the cache. I would like to do the same for the browser that runs on pocketPC. I believe it is IE4. However this technique doesn't seem to work. Anyone know how I might try to keep the back button from showing previous ...more >>

Improving Performance in ASP.Net
Posted by Robin at 3/4/2005 9:05:56 PM
For an asp.net project that is deployed to a load balanced web servers, are there any performance changes that can be made in .Net runtime or IIS 6? Also are there any additional tips for reviewing the asp.net (VB) code for improving performance? ...more >>

Problem with server.transfer
Posted by Robin at 3/4/2005 9:03:07 PM
When using server.transfer generates the following error. Thread was being aborted Mscorlib I have added Catch threadEx As System.Threading.ThreadAbortException ' do nothing To the code but still the error is produced, the page is not transferred to the other page but the...more >>

Export to Excel strange Thread Error
Posted by Chris at 3/4/2005 8:53:01 PM
I'm using an article "http://www.dotnetjohn.com/articles.aspx?articleid=36" to create an exported excel doucment, it works great expect when I placed an reponse.write catch error on his try/catch I get this: Catch Exc As Exception Response.Write("Error: " & Exc.Message & "<br...more >>

can't place label in datalist
Posted by Andy Sutorius at 3/4/2005 8:48:32 PM
Hi, Are datalists able to have labels inside of the ItemTemplate? Every time I try to place a label in the Item Template it does not show up in the code behind/intellisense. FYI the datalist contains items that can be placed in shopping cart. I want the label to notify the user that the placem...more >>



Cannot log out user when leaving and coming back to app
Posted by Sacha Korell at 3/4/2005 7:33:49 PM
My customer wants a user to be logged out of the system when he uses the same browser to navigate to a different website (without explicitly logging out). In other words, if the user navigates to a different website and uses the "Back" button to get back to my application, he should have to l...more >>

reset selected index on droplist
Posted by TJS at 3/4/2005 6:51:16 PM
After a post back the selected index should be rest in a droplist to match user's choice, but page always show selected item as first one in the droplist. How can iforce the selected item to be reset I have: Sub Page_Load(s As Object, e As EventArgs) If Page.IsPostBack then ...more >>

Question
Posted by Manny Chohan at 3/4/2005 6:11:03 PM
Hi Guys, I have a website coded in c#. Now one of our programmer want to code another application in vb .net for no reason and wants to put it as a virtual directory under the my application. I am not sure if this can be done or not. Can someone shed some light on this topic? Thanks Man...more >>

Home directory in IIS?
Posted by Krunom Ancini at 3/4/2005 6:03:38 PM
Hi, all stuff works fine if i define absolute paths but with relative i have some problems: i defined my at Internet Information Services (IIS) home directory of my "default web site" and I define in my application all file destinations relative to this home directory. An example from .aspx...more >>

Hiding datalistitems
Posted by tshad at 3/4/2005 5:44:12 PM
I am trying to hide all my datalistitems, which contain labels, textboxes a datagrid, etc. I want to show each datalist item one at a time on the page as the user pages through it. I tried: for each oItem as DataListItem in DataList1.Items oItem.Visible = false And that doesn't se...more >>

Session Variable Security
Posted by theintrepidfox NO[at]SPAM hotmail.com at 3/4/2005 5:25:35 PM
Dear Group Is there any information or your views on session variable security? I'm using my own authentization, storing whether a user has access to a page in a session variable being either set to true or false. I evaluate the variable in the page load event and if false the user is direc...more >>

ASP.Net 2.0
Posted by Arne at 3/4/2005 5:25:01 PM
Where do I find a news group for ASP.Net 2.0 ? I tried to install the November and December Beta 2, but none of them installs one Windows 2003 server. ...more >>

dataset
Posted by James T. at 3/4/2005 4:59:33 PM
Hello! Is it possible to fill a DataSet only once without need to fill it again every time in custom methods? Dim myDS As DataSet Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not Page.IsPostBack Then Dim Product...more >>

asp.net web page and web service in same folder...
Posted by Dan Bass at 3/4/2005 4:17:52 PM
Is is possible to have a web service running in the same folder as a web site in ASP.Net? I've been given someone else's project and the naming's not that great, and the clients asked for them to be merged into one folder. http://servername/myApp/defaultForm.aspx http://servername/myApp/w...more >>

Caching a dataset
Posted by Craig G at 3/4/2005 4:04:31 PM
im having my first play about with caching a dataset but seem to be = having some problems in doing so!! basically i have a dataset which i add to the cache as follows Cache.Insert("myDS", dsResults, Nothing, DateTime.Now.AddMinutes(5), = TimeSpan.Zero) i then have a select button whi...more >>

Enumerate HtmlGenericControls?
Posted by xenophon at 3/4/2005 3:42:16 PM
I have a div area in my ASP.NET page template with this HTML in it: <iframe id="ifmContent" name="ifmContent" src="about:blank" frameborder="0"></iframe> I beleive this iframe is an HtmlGenericControl, and in my C# code-behind I am trying to enumerate all HtmlGenericControls in the div t...more >>

Deleting Content of a text file
Posted by GMK at 3/4/2005 3:30:20 PM
Dear all in my asp.net application i have a text file that is installed with my application on the server. this text file is filled with data through a web interface in my application. i need to know how could i update this text file programatically and using a web interface. what i need is n...more >>

Can I remove this meta tag?
Posted by theintrepidfox NO[at]SPAM hotmail.com at 3/4/2005 3:23:04 PM
Dear Group Just wondered what this meta tag is for: <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> Can I remove it or change it to <meta content="https://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> as I think that might be the pr...more >>

Server.Transfer and Session
Posted by PJ at 3/4/2005 3:14:34 PM
I'm trying to set up a front controller pattern in my web application but having Session issues when using Server.Transfer. I have created a web handler that processes requests for .ptv files. I have enabled default documents for the web app and set the top entry to default.ptv and have create...more >>

Track a session user
Posted by tshad at 3/4/2005 3:05:41 PM
If I am using FormsAuthentication, is there a way to check who is logged in? I want to be able to check at any particular time, not just how many people are logged in, but who they are. One thing I want to do is not allow someone to log on from one browser and then log on again at the same...more >>

Session or cookies
Posted by Joseph Byrns at 3/4/2005 2:51:02 PM
I have written a shopping cart type web application using session variables to store the shopping cart details (with a timeout of 59 minutes). Originally my timeout was set to the default 20 minute timeout, but I was finding that people could take longer than 20 minutes between pages. So my ...more >>

Session has ended message
Posted by tshad at 3/4/2005 2:42:24 PM
Is there a way to automatically jump to a session has ended error message automatically from all my pages? Right now I have to check to see if the session cookies are gone from each page. Thanks, Tom ...more >>

Validators are all firing
Posted by tshad at 3/4/2005 2:39:41 PM
Is there a way to tell the validators to not fire if one of the validators fails the input? For example: In the following code, if someone doesn't enter anything in the field, I should get the message " A password must be entered". I am also getting the message that I need " 1 numeric",...more >>

RegEx Help
Posted by George Durzi at 3/4/2005 2:38:43 PM
I'd like to write a RegEx that validates the format of a file name - The first two letters should be "dc" or "iq" - Followed by a period - Any six integers - Followed by a period - The letters "lw", or "cw" - Followed by ".txt" Valid examples for the file names are dc.050277.lw.txt dc...more >>

how to get values from stroed procedure
Posted by Yoshitha at 3/4/2005 2:38:12 PM
hi all i created a stored procedure like this which retruns values am not sure whether it is correct or not. if it is wrong can you tell me where i did mistake. CREATE PROCEDURE QA_Select_Candidate @role sql_variant AS declare @fname varchar(50) , @lname varchar(50) , @email varcha...more >>

RegularExpressionValidator allowing no entry
Posted by tshad at 3/4/2005 2:27:11 PM
I have a RegularExpressionValidator that doesn't seem to work correctly if you don't enter anything. In the following, it works correctly if you have at least 1 character. If you just enter through the field it lets you (even thoug no entry would be less that 6 characters. <asp:te...more >>

Help - P2P connection in .Net - like Yahoo does for IM
Posted by Mahesh Devjibhai Dhola at 3/4/2005 2:24:24 PM
Hi, I want to develop p2p (peer-to-peer) communication connection for chat in ..Net (Lang: c# - preferable) NOTE: if two LAN are behind their own router then also it should work as yahoo, msn messenger works. Let me explain scenario: In yahoo: - We login to yahoo server from yahoo messeng...more >>

css - controls within div's
Posted by Harold A. Mackey at 3/4/2005 2:18:55 PM
I have created a three-column .aspx web page using css via an external css file. I can add fonts to the columns, but when I try to add a control the size of the column is rendered wrong, and takes up the entire space. Actually, if you click on the control it appears to be taking up all of the ...more >>

Label control question
Posted by hecsan07 at 3/4/2005 1:47:06 PM
I need to use a label control that depending on the page where the control is use sets the control into a sort of edit mode. That is, I need to use a label that sometimes I can type text to. Can this be done? or Is there another control I can use to accomplish this (web control or HTML)? HS...more >>

Urgent help needed in page caching
Posted by Raghu Raman at 3/4/2005 1:27:26 PM
Hi, In my asp .net page am using many controls and a grid.i populate many html controls innside the grid dynamically .if i click the grid ,it wll go to other page using onclick client side javascript function. I,want my grid data to be maintained in cache when i click the html button. be...more >>

How to convert an EPS (Postcript Image) to .GIF or .JPG to display in WebForm?
Posted by David Hearn at 3/4/2005 1:14:53 PM
I have the need to display some images that are stored on my server in one of my ASP.NET WebForms. EPS images are not supported so I was wondering if there is a way to convert the image temporarily to either .GIF or .JPG format so that it will be in a valid format for display on the web. Th...more >>

Tips: Playing Flash Files in ASP.NET
Posted by Jignesh Desai at 3/4/2005 12:59:36 PM
Playing Flash Files in ASP.NET Copy the HTML code below and paste it into your HTML<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://downloa d.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"WIDTH ="550" HEIGHT="400" id="myMovieName"><PARAM NAME=mo...more >>

Placing the cursor in a textbox
Posted by Tina at 3/4/2005 12:41:31 PM
How is it possible to designate a textbox so that when the .aspx page is displayed the cursor is already there so the user can just start typing instead of having to click in the textbox with the mouse first? thanks, T ...more >>

Reload window and do PostBack
Posted by Randy at 3/4/2005 12:30:34 PM
Hello, I'm trying to figure out how best to implement a Reset button which will reload the aspx page (do a PostBack) which will reload the page from an Oracle database (in the PostBack section). Can someone tell me how best to do this? Thanks :) ...more >>

Search engines crawling our .NET site
Posted by Mark at 3/4/2005 12:12:53 PM
Our site gets searched by robots all the time. This is great. However, many of our pages that we want to be cataloged are data driven, so we end up with pages like: www.ourdomain.com/products.aspx?productid=356 Let's assume that we stop selling productid 356. This means that the url abov...more >>

UniqueID vs. ClientID Why are they Differenct?
Posted by Ken Baltrinic at 3/4/2005 12:08:29 PM
Can someone explain this? I am writing an owner rendered User Control that basically wraps some functionality around a text box. This control uses client side javascript and implments IPostBackDataHandler. In order for my JaveScript to find the control using GetElementByID I must emit Con...more >>

printing a datagrid
Posted by bill at 3/4/2005 12:00:13 PM
I have a web form with datagrids. I would like users to be able to print the page and control the location of the page break somehow, so text doesn't get divided between two pages. Has anyone already thought of good ways to format a web forms page for printing? Can I get it to print landsca...more >>

Load User Control Dynamically, Cast object dynamically
Posted by Reza Nabi at 3/4/2005 11:36:32 AM
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a placeholder dynamically based on the ctlName querystring passed in the URL. Webform (LoadCtl.aspx) also passes a variable (targetId) in to the usercontrol (IntergySite.aspx) by calling its setter method. Currently,...more >>

how to enable
Posted by Yoshitha at 3/4/2005 11:29:58 AM
Hi inorder to display check boxes in datagrid, in itemtemplate i had written like this. <input type="checkbox" id="chkclient" runat="server" name="chkclient" disabled> also am using <asp:editcommandcolumn>. what i want is whenever i click on edit button within any row of a datagri...more >>

.NET tutorials
Posted by Andrew Price at 3/4/2005 11:29:11 AM
Hi, Im a It Grad with 4+years dev experence in Coldfusion, ive dabbled with Perl and traditional ASP. I was just wondering if anyone could point me in the direction of a 'Hello World' App in ASP.net which goes on with a few other examples so that I can start to get to grips with the lang...more >>

Secure site
Posted by Maziar Aflatoun at 3/4/2005 11:24:26 AM
Hi, We have a section of our website that requires NT authentication ex. http://www.oursite.com/secure . So once a user tries to access this section he/she is required to type in a username/password. Is it possible to send this username/password in C#.NET? So that the user doesn't get pro...more >>

DataGrid Contents to Excel - Advanced Methods
Posted by MattC at 3/4/2005 10:26:19 AM
Hi, I am trying to export the contents of a DataGrid to Excel. I have already found the following articles: http://support.microsoft.com/default.aspx?scid=kb;en-us;317719 http://www.c-sharpcorner.com/Code/2003/Sept/ExportASPNetDataGridToExcel.asp These methods _only_ work if the followin...more >>

Load User Control Dynamically, Cast object dynamically
Posted by Reza Nabi at 3/4/2005 10:23:01 AM
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a placeholder dynamically based on the ctlName querystring passed in the URL. Webform (LoadCtl.aspx) also passes a variable (targetId) in to the usercontrol (IntergySite.aspx) by calling its setter method. Currently,...more >>

Allowing ASP.NET user access to printers on server
Posted by Rik Hemsley at 3/4/2005 10:22:39 AM
Hi, My ASP.NET application (running on IIS) doesn't see any of the printers installed on its server. I'd like it to be able to see, and print to, all printers. Is there a way to give the ASP.NET user this kind of access? Apologies if this is an IIS newbie question! Cheers, Rik...more >>

Multiple worker processes/ViewState
Posted by mabrin at 3/4/2005 10:21:02 AM
Hi, we use 5 worker process on win2k3 to serve. We have a small form with a post back. It nearly almost throws "Unable to validate data" (ViewState is not getting too long). We save your session infos in SQL Server. If we turn down the processes to one, everything is alright. Does anyone...more >>

problems creating web service project
Posted by param NO[at]SPAM community.nospam at 3/4/2005 10:18:46 AM
Hi all, I have vs.net 2003 locally installed on my XP PRO machine. I have a web server on the LAN which has a website configured at http://services. This is accessible via my web browser and already has a web service (built using sdk and notepad) at http://services/services/services.asmx. Now ...more >>

File Upload/Downloader
Posted by BW at 3/4/2005 10:12:01 AM
I am creating an upload/download function for an extranet site. Files will be uploaded to directory based upon the users login and associated project. The function works as long as I use "c:\Temp" as the directory. When I use any other hard coded directory or even Server.MapPath() the upload f...more >>

Access files on Network Drive from ASP.NET Client
Posted by Mike McIntyre [MVP] at 3/4/2005 10:03:59 AM
I am working on an issue where and ASP.NET web application on one computer (A) needs to access files on a network mapped drive (B). This application uses as DSN on (A) that maps a proprietory ODBC driver to data on a (B). The DSN directory path points to mapped network drive mounted on (A)...more >>

Help inserting Records
Posted by Brian Ciarcia at 3/4/2005 10:02:23 AM
Can someone please take a look at this code and tell me what I am doing wrong??? I am getting the following error: ---------------------------------------------------- Object reference not set to an instance of an object. -------------------------------------------------- at this line: ...more >>

sending email
Posted by dappy at 3/4/2005 10:00:01 AM
Hi, I want to know what is the code if once i click the hyperlink it will automatically pop up the microsoft outlook to allow the user to send email via microsoft outlook. and how the mailto is automatically appear in To: text box in the microsoft outlook. thanks....more >>

Community Server Skins
Posted by Stefano at 3/4/2005 9:50:18 AM
Hi all, can you link me to a directory that contains ready-to-use .Text/Community Server Skins? I'm looking for a XHTML Skin, using table-less layout. Thank you so much! Bye -- Stefano Giannone MCP .NET http://www.giasoft.it ...more >>

Problem with SELECT Statement
Posted by I am Sam at 3/4/2005 9:49:11 AM
I have a select statement that isn’t functioning properly: private void Page_Load(object sender, System.EventArgs e) { myClubNow1=new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day); dsClub=new DataSet(); ...more >>

Displaying Stored Procedure results in a textbox
Posted by neil_pat at 3/4/2005 9:49:09 AM
I have a stored procedure which returns a decimal field from a table and i want my asp.net page to read in the result and then diplay it in a textbox or a label. What is the best way to do this? ...more >>

Excel report using asp.net
Posted by Terry at 3/4/2005 9:36:49 AM
I am building an ASP.net application which will generate a formatted Excel report. Is there a way I can using the Excel on the client pc? Do I have to do a full install of Excel on the server or just add the needed dll's to my ASP.net project. Terry ...more >>

Problems to access data and saving date/time to database
Posted by Ruy Castelli at 3/4/2005 9:28:53 AM
I created a ASP.NET page using C# and I'm using two components to access a MS-Access database, which are: - oleDbConnection - oleDataAdapter The MS-Access database is in the correct directory (IIS has permission to read/write) and everything seems ok, but IIS says that it can't open the ...more >>

Table join question
Posted by Chris at 3/4/2005 9:21:05 AM
I'm using ASP.NET and SQL Server and this might be an obviuos question for most, but if I have a table that contains several fields that I need to relate to just one field in another table, how do I do that? I.e. Table 1 has Integer values for enteredbyID, CoordID, CustContactID Table 2 is t...more >>

if (control.visible == false) viewstate disabled?
Posted by Alejandro Penate-Diaz at 3/4/2005 9:02:22 AM

50 Buttons!
Posted by Krunom Ancini at 3/4/2005 8:44:13 AM
Hi, I have on my page something about 50 buttons that "user" should use only for loading some session-variables: click on the button -> session variables loaded and i wish that after click, clicked button changes his color and thats no problem. I use: Button43.Color=red; ... or som...more >>

Help with Response.WriteFile/TransmitFile
Posted by jeffpriz NO[at]SPAM yahoo.com at 3/4/2005 8:25:13 AM
I'm have a situation where I need to put a download link/button on a page, where the file to be downloaded does not exist on our webservers .... So I'm using Response.WriteFile (i've also tried Response.TransmitFile) to put the file into the response.. My trouble is with a Zip file.. The user ...more >>

Tracking down threads created within a ASP.NET app
Posted by mareal at 3/4/2005 7:33:07 AM
I am using the System.Diagnostics.Process class in order to loop thru all the processes running. Within that loop I am looking for the process name “aspnet_wp” in order to get the process ID. Once I find it, I use the process ID to find all the threads running under that process. This work...more >>

datagrid update Command
Posted by siaj at 3/4/2005 7:25:06 AM
Hello All, If some one has faced a similar issue.. My datagrid Update command is not getting fired in fact it seems that the no event fires on clicking the update link. Although the cancel and the Edit Commmand are getting fired properly. The One difference I have seen is that in the task b...more >>

Moving items between listboxes on client side
Posted by dfev77 NO[at]SPAM yahoo.com at 3/4/2005 5:04:52 AM
I have to ListBox controls (or 2 html select controls with runat=server) on a web page and some buttons to move data from one listbox to another (using javascript). The problem is that when the page gets on the server I can't get the items that I've moved from the 1st list to the second on the c...more >>

How can I use an array as the datasource of a ListBox
Posted by ad at 3/4/2005 4:33:57 AM
Is it necessary to use dataset as the datasource of a listbox? can I use an array as the datasource of a ListBox? ...more >>

ASP.NET communication with cold fusion
Posted by Priya at 3/4/2005 4:11:02 AM
Hi, How do I pass a session variable & cookies from ASP.NET page to coldfusion page? Thanks in advance Priya...more >>

Word Document
Posted by Alex at 3/4/2005 3:29:02 AM
Hi, I have posted this question on various forums/websites without much success. Is there any strategy in place for producing and editing word documents within an asp.net project. This seems like a fairly straightforward requirement and yet all the possible solutions suggest using either ...more >>

running a funstion from template column of datagrid
Posted by MERAL GUVEN at 3/4/2005 3:27:04 AM
Hi, I have put a datagrid on a aspx page named "PriceCheck". I have added an templatecolumn and put a label to hat column. The code as the custom binding expression of this labels text property is as follows: ctype(Page,PriceCheck).isinstock(Container.dataitem("unitsinstock")) But when i ...more >>

Maintain Session State
Posted by Jon at 3/4/2005 3:23:05 AM
Hello all, I have written an application in VB.net where I set a session. I have also written another application is C# and want to retrieve the session that I set above, however, I cant seem to pick it up! Why is that? Does asp.net allow this? Thanks in advance, Jon...more >>

Client certificates over SSL webservice
Posted by ranjinisrao NO[at]SPAM gmail.com at 3/4/2005 3:13:47 AM
Hi, Can any one please help me. I am trying to connect to a webservice via SSL using a webpage over a proxy server. The webservice requires client certificate to authorise the transaction. I am connecting to this webservice via a normal web page (not on SSL). I am running the Webpage on IIS6....more >>

Content-disposition question
Posted by Alex Nitulescu at 3/4/2005 2:04:09 AM
Hi. First of all, I *HAVE* to express my annoyance with how badly (at least) this content thing is documented in MSDN. There's no head, nor tail to it. Anyway, I have this code in a form named "Download.aspx". There's all there is to it - no UI, nothing else. This is all the code. __________...more >>

killing Excel instance through ASP.NET
Posted by (kunal.kewalramani NO[at]SPAM patni.com) at 3/4/2005 1:11:05 AM
I'm opening an Excel file using ASP.NET, but Excel process remains it is not killed, I tried killing it by using Quit() that is also not working, if anybody have any solution for this please help me out. ********************************************************************** Sent via Fuzzy Sof...more >>


DevelopmentNow Blog