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 > june 2004 > threads for wednesday june 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

datagrid paging
Posted by ven at 6/2/2004 11:02:25 PM
hello i have datagrid who may take data from two sources : 1. dropdown list with categories of items - when client choose category then items are displayed in datagrid usin select from 2. textbox where user can write a part of item name and all items with part of word are displayed in datag...more >>

Enabling a Client to Download a File
Posted by Sleepy at 6/2/2004 9:46:04 PM
I am wanting to allow a client to download a file from a web server and save it on their local PC. The only way that I have found to do this is to use HTTP headers. I am using the code shown below (which I have copied with some variable name changes) from a book on ASP.NET programming. This code ...more >>

updating datalist
Posted by mahsa at 6/2/2004 9:21:02 PM
Hi I have a Datalist that can Update each row my problem is i have a edit update and remove link in datalist when user click edit it show update and cancel button but when they click update button it again show update and cancle I want it to show edit button and dont show update and cancel do you ha...more >>

permission to File.Exists
Posted by Marcos MOS at 6/2/2004 8:33:41 PM
Hi, In my Web Application, I need to check whether a file exists. I'm using the System.IO.File.Exists("filename") method. This file is in another server. Always the return's method is False. But through the windows explorer I have permission to access it. So Can I do? thanks a lot Marcos ...more >>

Session Timeout
Posted by Greg Decos at 6/2/2004 8:23:58 PM
I am using forms authentication using a FormsAuthenticationTickets set to expire in 30 minutes and the ticket is added to the collection of cookies. I am not sure where the following values are used: 1. timeout in: <authentication mode="Forms"> <forms ...timeout="30" 2. ses...more >>

Basic Permissions Problem HELP !!!
Posted by Dougie at 6/2/2004 8:05:08 PM
I've built a web service that accesses a XML file and writes to it. The methods are correct, but I have a permissions problem when writing to the file. Can anyone help me? I'm using IIS with Visual Studio on XP Pro. I'd greatly appreciate any help, I'm supposed to hand the project in tomorr...more >>

panels and variable state
Posted by Lerp at 6/2/2004 7:42:12 PM
Hi all, I was just playing around with some code to hide/show panels and I discovered that I am losing a variable's value when my sub is called from a button in paneltwo. Why is this? Cheers and Thanks, Lerp Code below: <script language="vb" runat="server"> Dim myvalue as Lon...more >>

Forms authentication problems
Posted by Mike at 6/2/2004 7:26:02 PM
1. For some reason after the session has ended and the authentication cookie has expired I'm not being redirected to the login page. Insted I'm be assigned a new authentication cookie? Anyone have any ideas as to what may be causing this? (I'm using Microsoft's example 2. I'm also transferring a f...more >>



System.IO.FileNotFoundException help
Posted by msnews.microsoft.com at 6/2/2004 7:22:08 PM
Not sure where this error is coming from. I have my asp.net app set to email me error messages, but this error message does not indicate where it occurs. There is no page called get_aspx_ver.aspx and I don't know where it's getting that. Any ideas? System.IO.FileNotFoundException: c:\inetpub\...more >>

Time format
Posted by Just D at 6/2/2004 7:13:20 PM
Did anybody see this bug? I tried to reproduce that using 12-hour and 24-hour system settings. Anyway it still causes a problem in VS2003. When I convert DateTime to a string using default ToString(), like DateTime.Now.ToString() C# returns me this string instead of a correct one: "19:25:35 ...more >>

Can not create ASP.NET on a W2K Server
Posted by Gilgamesh at 6/2/2004 6:46:06 PM
I'm trying to develop an ASP.NET app on a W2K server which has .NET 1.1 installed on it. When creating the ASP.NET, using VS.NET 2003, I'm getting the following error: Visual Studio.NET has detected that the specified web server is not running ASP.NET version 1.1. I've followed the instructions ...more >>

Login security in ASP.net
Posted by Pravin A. Sable at 6/2/2004 6:24:50 PM
Hello Everybody, I have one login page and other pages which will be shown only if user logs successfully. If someone tries to access page without identification then she should be directed to login page. I have following code after successful login I do... Session("UserID") = txtUser....more >>

change textbox colors in code
Posted by Mike at 6/2/2004 5:46:33 PM
On my update screen i want to change the textbox color to Yellow only if the field is editable. How can i do that within code? thx ...more >>

access web server using raw HTTP...
Posted by Satinderpal Singh at 6/2/2004 5:43:07 PM
Hello Everybody, How can we request a web server and get the response without using HttpWebRequest and HttpWebResponse object. I mean, how can we access it at a raw level. Regards Satinder ...more >>

HTML button
Posted by Victor Sayas at 6/2/2004 5:03:40 PM
i have a html button in a webform that i converted to run as web server control. i have an onclick event on the .net ide and also in the html side. my problem is i cant seem to syncronize it so that when i redirect the page, the necessary data needed will already be available. document.location....more >>

Templating
Posted by Chad A. Beckner at 6/2/2004 4:45:58 PM
Hey everyone, Ok, I'm trying to create a site that will utlize a common template file. I was able to do this in ASP by using an ISAPI filter to redirect the requests to a .asp file, in which in that I executed a server.execute. As for ASP.NET, all I have found is creating .ascx files, and r...more >>

panel's controls
Posted by Alexandre Soares at 6/2/2004 4:41:40 PM
Hi, If I make a control that derives from panel, how can I persist the state of the controls that are inside the panel when it is not rendered (visible = false)? The reason for this is that I'm making a custom user control that derives from the Panel class. In the render method, I render so...more >>

Excel Automation in JScript.Net
Posted by Franky at 6/2/2004 4:14:23 PM
Hello, I'm trying to migrate an Asp Webapp in Asp.Net. I'm just using the follwing JScript.Net code: var objExcel = new ActiveXObject("Excel.Application"); objExcel.Visible = false; objExcel.DisplayAlerts = false; On a WinXP Pro with Office 2003, it works. But on a Win2K Office XP, it ...more >>

ADODB.NET and "Access Denied"
Posted by ASP.Confused at 6/2/2004 4:04:30 PM
I have an ASP.NET page writtein in VB that uses ADODB. I just had to force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses this, and I wanted to be compatible with them.) I had to manually install all of the ODBC drivers and the rest of the DLL's, and now I am getting "Acce...more >>

View State error
Posted by Albert Pascual at 6/2/2004 3:31:07 PM
Got this error in my web app and it is driving me crazy. Any clue Computer 2 CPU, SQL Sessions and no web farm or web garde System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The viewstate is invalid for this page and ...more >>

Validators with CSS
Posted by Mark at 6/2/2004 3:30:59 PM
We have Validators embedded in an asp table server control. The table server control is necessary and cannot be replaced. We want to apply CSS formatting to the validators, but the validators have a default RED font that appears to be difficult to remove. We could hard code in a blank font co...more >>

DoDialog
Posted by Just D at 6/2/2004 3:14:48 PM
Hi All, Does anybody know, if I call a pop-up window as top.__doDialog, and do some changes to my data, then close this pop-up page, how can I force a reload of the main window to refresh the data? In a few words, I'm having a main WebApp, I need to do something on the database, enter a...more >>

Generate menu dynamically
Posted by Grey at 6/2/2004 3:11:05 PM
I currently have a menu written in Javascript. For the ASP, i know how = to connect to DB and then generate the menu depend on user access right = in DB as ASP is easily integrate with Javascript. However, for the = ASP.NET, I found it's much difficult to do that. Is there any sample for = me to...more >>

problem with HttpWebRequest/HttpWebResponse...
Posted by Satinderpal Singh at 6/2/2004 3:05:29 PM
Hi everyone, We are using HttpWebRequest to create a request to a URI, which requires = us to login first. In order to process all the transactions, first we = have to login and get the cookie value in a variable and make the = request again with that cookie as a header value (Digest = Auth...more >>

vb -> vb.net ASPNet Date question
Posted by me NO[at]SPAM privacy.net at 6/2/2004 2:54:00 PM
I have some asp code I am converting to .net code. In the old code, in a report, I have a report date & time that is returned to the screen. The value of Today() returns the date (6/2/2004) and TimeofDay() returns 14:51:00. However on the aspx version of this same report, those two function...more >>

non-persistent cookies
Posted by hochun at 6/2/2004 2:49:48 PM
How do I read non-persistent cookies Thanks Joe ...more >>

validating a Date
Posted by Chris at 6/2/2004 2:41:37 PM
Hi, how do I validate a date using a RegularExpression-validator control ? e.g. 05/20/2004 (May 20, 2004) Or should I use another validator-control ? and how ? Thanks Chris ...more >>

handling tree view web control events
Posted by Rea Peleg at 6/2/2004 2:36:57 PM
Hi everybody Can any one give an example for handling a tree view web control event, inside an asp.net application? I am able to build a tree view using this control on an asp.net web form (on page load) but can not handle its events later on.. html tag includes the reference to the event ...more >>

.ASPX -> .CS generation
Posted by Lenard Gunda at 6/2/2004 2:31:13 PM
Hi! When I make a request to an ASPX file, it is converted into a C# source file (given, the language is C#). This source can be seen, if I intentionally put in something bad between <% ... %>, because it is treated as source code, and if it is wrong, the C# compiler issues an error, when comp...more >>

Server Side Word Application
Posted by Mike Fellows at 6/2/2004 2:26:47 PM
I'm trying to create a server side application (through a web front end) that allows me to print specific documents from the server im using: Dim wordapp = New Word.Application and have added the word reference (and installed word on the server) the problem i have is that when...more >>

stop databind for invisible controls?
Posted by Martin at 6/2/2004 1:28:53 PM
Hi, I have a page where according to the mode of use, different controls are visible. I had assumed that Page.DataBind() would only bind visible controls, but apparently not. Do I have to write my own Page.DataBind() to step through and only bind to visible controls, or is there a better...more >>

deploy asp.net app
Posted by Mike at 6/2/2004 1:27:49 PM
I need to deploy my asp.net app to my test server now after coding and testing locally. I used the .aspx pages with the code behind, no special modules or class. I noticed that there is a DLL in the Bin folder with the name of my web project. What files need to go to the server? Is is just ...more >>

Re: Identity impersonate
Posted by Sorin Sandu at 6/2/2004 1:19:01 PM
In machine.config I have IdentityImpersonate true user pass. I want to use in web config IdentityImpersonate false. But now UserIdentity is NetworkService not windows user. ...more >>

Shut down classic ASP?
Posted by Bruce W.1 at 6/2/2004 1:18:55 PM
I know how to setup an ASP.NET project and website. But I'm not clear on how this is done with classic ASP. I've heard people say they need to shut down ASP before they can modify any of the files, no hot swapping like with ASP.NET. What's this all about? And how does one create a new cl...more >>

Selective DataGrid
Posted by Lillian at 6/2/2004 12:51:09 PM
Hello I have a question on DataGrids In an ASP page, I bind a DataGrid to a dataset. What can I do to display only the rows in which the first column = "some_text" I can probably define another dataset or have some sort of a query on the original dataset with the first column constraints, but i t...more >>

Event to catch the change options in dropdownlist
Posted by Grey at 6/2/2004 12:34:50 PM
I have a dropdownlist control in ASP.NET form. But when I click on the = control and attempt to change the option, there is nothing to happen to = the server side, that is cannot trigger in action. How come of this = happen??? Is it use "SelectedIndexChanged" for dealing the change = options eve...more >>

user control parent
Posted by Philip Townsend at 6/2/2004 11:59:49 AM
I have a user control that is reused frequently throughout a web applicaiton. Is there any way I can determine which web form is calling the user control? Thanks! *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

lifetime of Session object
Posted by Colin Basterfield at 6/2/2004 11:51:19 AM
Hi, I am confused... I have the following code in my Page_Load method private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if (!IsPostBack) { SiteSummary siteSummary = new SiteSummary(); RevenueList revList = siteSummary.Ge...more >>

Session cookie? Browser instance cookie?
Posted by Ben at 6/2/2004 11:49:46 AM
Hi, I'm sending out a session cookie. That is a cookie that has no expiration date. When I surf through the site, no problems, but if I close the browser and open it back up, the cookie is still there if other browser windows were open. Even if those windows didn't go to the site with the coo...more >>

Intermittent error with assemblies....Parser Error Message: Access is denied:
Posted by Stu Lock at 6/2/2004 11:44:21 AM
Hi, I have recently re-installed by machine and have started getting this error message after I compile a solution (in VS2003 using VB). http://www.cergis.com/OddErrorMessage.html If I reboot the machine it will run fine without re-compiling. This is happening with all referenced assembli...more >>

How to design an ASP.NET app
Posted by MattC at 6/2/2004 11:35:58 AM
I'm designing a simple timesheet system, I have done ASP sites before but the bulk of my work is in VC++ systems. I have have started with a list of classes that represent business objects within the application. However, as persisiting these objects is performance expensive in the ASP.NET m...more >>

performance ( slow at the first time )
Posted by BK Kim at 6/2/2004 11:20:00 AM
Hello. I have made my aspx websites and I realized that my application is running slow at the first time but next time, it is very fast. Is it because the codes are compiled at the first time? If that's the case, do I need to hit every single pages so that my web users will have better pe...more >>

deselect calendar control
Posted by Logan McKinley at 6/2/2004 11:15:40 AM
I don't want to allow users to select future dates on my calendar controls (System.Web.UI.WebControls.Calendar), right now i can throw the error message but i can't figure out how to remove their selection. Any help would be greatly appriciated, ~Logan ...more >>

RecordCount of a datareader
Posted by Steve Caliendo at 6/2/2004 11:05:06 AM
Hi, I can't seem to figure out how to determine the number of records are returned when using a DataReader. I use: While Rs1.Read some stuff end while But what I'd really like to know is Rs1.RecordCount which doesn't exist. Or does it in some other syntax? Steve ...more >>

Datalist
Posted by brian at 6/2/2004 10:52:40 AM
I have a datalist bound to a dataset using SQL server 2000. There is 1 button in the datalist and the buttons text property is bound in the databinding properties. How can I find the text of the button in the code behind? I have tried e.item.findcontrol("txtName", Button).text but get...more >>

Quotation mark in html
Posted by Steffen Loringer at 6/2/2004 10:32:47 AM
Hi group, I'm using a lot of button.style.add("top","20px") etc. on my aspx page. A look into the html source of the page on the client shows that style=&quot;top:20px&quot is used instead of style="..... How can I avoid &quot because it's much more data to be send by the server instead ...more >>

Assembly version compatibility issue
Posted by Bob at 6/2/2004 9:46:15 AM
I have a common assembly DLL that's installed into GAC (using msi created by a setup project). It contains classes used by all the applications we have. This works well but when I increase the version number (say, from 1.0.0 to 1.01), all existing applications have to be recompiled even if the c...more >>

Dcom and web services
Posted by ken at 6/2/2004 9:36:02 AM
dear al dcom and web services are the same concept, what if i need to write now, web services?...more >>

problem with IIS and ASPNet project
Posted by remani1979 NO[at]SPAM hotmail.com at 6/2/2004 9:08:13 AM
hi, when i am trying to browse my project using http://localhost/project/, the webserver is taking forever to load the page and is consuming all the CPU cycles. My project was working great till yesterday, and I have hardly made any changes to web.config. the http://localhost/ is rendering me...more >>

Sending the user back a page
Posted by Simon Harvey at 6/2/2004 9:04:04 AM
Hi, What would the easiest way be to send a user back a page when he clicks a asp.net image control (representing a button). Is it possible to fire an ASP.net event when this happens? Thanks Simon ...more >>

Extra characters in Email using System.Web.Mail?
Posted by GSK at 6/2/2004 9:00:46 AM
I'm using System.Web.Mail to send HTML formatted e-mails, and something very bizarre is happening. When I send a message to myself, it looks fine, but when my client sends one to herself, she gets a single exclamation point inserted, usually in the same spot but sometimes it shifts a place or ...more >>

Identity impersonate
Posted by Sorin Sandu at 6/2/2004 8:26:57 AM
How can I override Identity Impersonate setting from machine.config on a site on the same server ? I am using impersonate on most web sites but on one I need to use Windows Identity. ...more >>

JavaScript question
Posted by JennaS at 6/2/2004 8:26:05 AM
Hi. I have a page with 3 fields and a submit button. The user fills in the 3 fields and clicks the submit button I process the data and do a server.transfer call upon valid input. If input was invalid, I should display an error message to the user. I currently have sub btnSubmit_Click.. if dat...more >>

customvalidator problem in datagrid
Posted by philipl NO[at]SPAM vistatec.ie at 6/2/2004 8:12:30 AM
hi, i have a textbox in my edititemtemplate in my datagrid. I have created a customvalidator for it, when i update the row the appropiate function gets called to customvalidate but the problem is that the error message in my customvalidator does not get printed in the datagrid even though I h...more >>

Button disabled and re-enabled in client side not firing server-side click event.
Posted by Bin Song, MCP at 6/2/2004 7:46:05 AM
Hi all I got a strange problem In my webform, I have a server-side Button "btnDisable" to save some data and enable or disable all other fields in this form based on the data. The logic is: on server click event, save data, write a client-side script to set 'ynDisable' to true or false, and then...more >>

Visual Studio .NET and ASP.NET 1.1 Problems
Posted by bshade NO[at]SPAM eden.rutgers.edu at 6/2/2004 6:27:33 AM
Hi everyone, I am fairly new to developing with APS.NET and I have run into a big roadblock. I am trying to open up a solution file for Visual Studio ..NET 2003. Every time I try to open it I get the following error message: Visual Studio .NET has detected that the specified Web server is n...more >>

Date/Time Format
Posted by jim Heavey at 6/2/2004 5:41:07 AM
I am trying to figure out how to display "AM" or "PM" for the time? The book I am looking at shows "aa", but that does not work. This also means that I do not want to show time in a 24 hour format, but with a 12 hour format with am/pm indicator. How do you do this is in the .Net world Thanks in...more >>

Regular Expression
Posted by Jim Heavey at 6/2/2004 5:41:02 AM
If you write a regular expression which allows [ A-Z';:]{1,250}, how would you then alter the expression to not allow 2 '' values one right after another Your assitance is greatly appriecated!...more >>

UrlReferrer null, button click
Posted by John at 6/2/2004 3:46:49 AM
Hi, all - On Page1.aspx I have a button control that, when clicked, Response.Redirect("Page3.aspx"). On Page2.aspx I have a hyperlink to Page3.aspx. On Page3.aspx, I want to know which page the user came from. I tried UrlReferrer, but this only registers Page2.aspx (the hyperlink page). If ...more >>

Possible to turn on/off cookieless sessions dynamically on a case by case basis at run-time?
Posted by Steve Franks at 6/2/2004 2:58:14 AM
According to the docs you tell ASP.NET to use cookieless sessions by setting a value in the config.web file. However, what if I wanted to determine at run time whether or not I wanted to use cookieless sessions for a particular user, and if so, I'd instruct ASP.NET to turn on cookieless sessio...more >>

DropDownList Confirmation
Posted by neverusethisaccount NO[at]SPAM hotmail.com at 6/2/2004 1:52:59 AM
I have been struggling with this for a while, and have seen lots of related postings, but nothing (as far as I can see) that answers this directly. Im using vb dotnet and have an aspx that has a drop down list. For the selected item in the listbox a number of textboxes are populated from the ...more >>

Postback, DataBinding, Refresh
Posted by John at 6/2/2004 1:02:03 AM
Hi - I've got a couple of pages where a DataList is populated only if(!Postback). I have buttons in the datagrid that allow for the 'deletion' of items from that DataList. The problem is that the deleted items don't disappear on Postback, but only after a page refresh. I assume this is beca...more >>

How can I get a form value?
Posted by ozcankanbur NO[at]SPAM yahoo.com at 6/2/2004 12:11:12 AM
How can I get form value? I created an hidden html element and name it myKey. I have to get the value of the myKey for each postback.How can I get it. thanks...more >>


DevelopmentNow Blog