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 2004 > threads for tuesday march 23

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

Passcode to submit form
Posted by Brian W at 3/23/2004 11:26:18 PM
Hi All, I have a page a user would fill out then click submit. What I would like to do, to help prevent bots from auto submitting (I know, it's not perfect) So I would like to do that trick where an image is displayed with a randomly selected string and have it mangled so only (hopefully) a...more >>


ItemCommand event not triggered
Posted by Markus at 3/23/2004 10:20:52 PM
Hi all! I have a datagrid where I added a template column. I added an ImageButton to the template column and set its command name. I registered the grid's ItemCommand handler. If I click on the image button, the ItemCommand event is not triggered. If I add a LinkButton instead of an image butt...more >>

newbie command builder question
Posted by Chris Kennedy at 3/23/2004 10:19:35 PM
I have an app which uses a dataview. You page through the record one at a time and the text boxes are 'bound' ie their text property is set manually. A little like an Access form. I am using a dataview so I can use the filter. I can get the changes in each record to be reflected in the dataview b...more >>

test for ado column existence
Posted by MattB at 3/23/2004 9:50:10 PM
I'm try to test if a certain column exists, but keep hitting the null object reference error. How do I test for a particular column without throwing an error by referring to it? (vb.net) Thanks! -- Matt "Gravity. It's not just a good idea, it's the law!" ...more >>

environment variables
Posted by Arvind P Rangan at 3/23/2004 7:14:16 PM
hi, How can change / add a new environment variable to the local machine. can anyone help me with the example. thanks Arvind. ...more >>

ASP.NET ....... Crystal Logon failed
Posted by anil at 3/23/2004 6:33:46 PM
I am having problem when trying to display crystal report from webform using SQL server as backend. This gives Logon failed error. This error comes in when I use data from more than one table. The same report works fine if MS access is the back end. Single table report is working fine with SQL ...more >>

CORRECT?? strSQL = "SELECT * from vocabulary where ID = " & Session("ID")
Posted by Robert Airton at 3/23/2004 6:29:56 PM
I wonder if anybody can sort out this error for me. I has someone write a little asp program for me but it sometimes gives the error Syntax error (missing operator) in query expression 'ID ='. I am not technical and know nothing of ASP. However it appears that it is in the first line of th...more >>

forms authentication
Posted by Andy Fish at 3/23/2004 6:05:02 PM
Hi, I was just about to build some simple authentication using a form to login and session (i.e. session cookie) when I discovered asp.net has some built-in forms authentication functionality I have seen the definitions for the classes on MSDN but there don't seem to be any good articles on...more >>



Webbrowser controls
Posted by SS at 3/23/2004 5:42:07 PM
I have a winform in which a web Browser Control is emnbedded. I want that the user can select text in the browser control, and i want to get the xpath of that selected text. The problem with this is when a event handler is registered we can not get any system events working like Context M...more >>

PageIndexChanged event not firing
Posted by Timothy Elvidge at 3/23/2004 5:41:05 PM
I have checked that the page_load event doesn't touch the underlying datagrid but I get no PageIndexChange event firing. Any work arounds or any help to get past this problem....more >>

Code behind not running
Posted by Timothy Elvidge at 3/23/2004 5:26:08 PM
I have the following web form: <%@ Page language="c#" Codebehind="ProductsT.aspx.cs" AutoEventWireup="false" Inherits="loyaltynz.ProductsT" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html><head><title>ProductsT</title><meta name="GENERATOR" Content="Microsoft Visual Studio .N...more >>

How to Enable/Disable a asp:CheckBox
Posted by RSB at 3/23/2004 4:16:10 PM
Hi Everyone, this is so strange... :o(( i have a test.aspx page with two web forms elements, a check box and a Button. Now i can change the State of the Button from disabled to Enable on the client's side but not with the Checkbox. What am i doing wrong here.. here is the CODE of my test.as...more >>

Sorting a Hashtable in VB.Net/ASP.Net
Posted by jknaty NO[at]SPAM yahoo.com at 3/23/2004 4:00:00 PM
Basically I have a ASP.Net application most of which is written in .vb codebehind with some custom classes I wrote. One class builds a hashtable from names of people from a database. I need to sort the hashtable or sort the list box that I am listing the values from the hashtable in alphabetic...more >>

Basic Crystal Report Problem
Posted by Tina at 3/23/2004 3:39:44 PM
I'm trying to do the example that Brian Bischof has in his Crystal Reports sampler for his book. I create a basic Employee List report, add a Reportdocument, hook up the bindings, put the databind() in my page_load event. The report looks fine at design time. But when I run it I get the foll...more >>

updating dataset from aspx not updating?
Posted by Rich at 3/23/2004 3:18:21 PM
Hello, I'm trying to update a dataset from an aspx where the source data lives in a table in an Access mdb. Here is what I have: sub pageLoad(...) dataset1.Clear() dataAdapter1.Fill(dataset1, "tbl1") end sub sub btn(...) Dim dr As Datarow dr = dataset1.Tables("tbl1").Rows(6) dr(0...more >>

Radio Buttons in a Repeater Control
Posted by Chuck Hartman at 3/23/2004 3:03:48 PM
Is there a workaround or fix for the problem described by KB article Q316495? BUG: Radio Buttons Are Not Mutually Exclusive When Used in a Repeater Server Control -- Chuck Hartman ...more >>

"Exception" no longer recognized
Posted by Gary at 3/23/2004 2:47:11 PM
the last time I did a build, Exception was no longer recognized in any of my modules. To make it recognized, I need to explicitly type system.exception. The only thing I have changed is that I applied a Crystal Reports Service pack 1. I have never had to have Import statements for system.except...more >>

Project
Posted by Misko at 3/23/2004 2:30:04 PM
Hello mates! Can you explain me a word "project"? Exact definition if it possible. thanks a lot Cheers Misko ...more >>

Hide Datagrid paging when not needed
Posted by Logan McKinley at 3/23/2004 2:25:03 PM
I have a datagrid that uses numeric paging and want to hide the paging when it is not needed. Right now i only need paging 10% of the time or so and the other 90% of the time there is a random 1 that confuses the users. Is there any way to only show the paging when it is needed? Thanks in adva...more >>

Help
Posted by Darren Spooner at 3/23/2004 2:22:09 PM
what is the best way to transfer data between pages? using property values using sessions variables or some other way please explain darren ...more >>

Button does not respond to click event
Posted by Jeremy Ames at 3/23/2004 1:49:30 PM
Repost: Yes. I have other controls that are working correctly. "Abhijeet Dev" <abhijeet@abhijeet-dev.net> wrote in message news:%23YnOI3TDEHA.1456@TK2MSFTNGP09.phx.gbl... Check if ur button is in a <FORM runat='server'></FORM> or not. "Jeremy Ames" <yourname@here.com> wrote in message...more >>

What is the best way to parse XML using XmlDocument class?
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 3/23/2004 1:34:28 PM
Hi all, I've just finished writing some ASP.NET code that will parse an xml file and display it to the user. I want to find out whether I've gone about it the right way. I've used the XmlDocument class and I pass over the entire structure grabbing certain nodes, parsing those nodes and then d...more >>

How to instance a web services proxy class
Posted by Earl Teigrob at 3/23/2004 1:08:58 PM
I have created a web reference from a wsdl file and now I need to instance the class. How do I determine the namespace name and the class name so that I can create an instance of the web proxy class? Thanks Earl ...more >>

Putting JavaScript Functions on RadioButtonList Items
Posted by Michael Schnell at 3/23/2004 1:02:39 PM
Is it possible to attach Javascript functions to individual RadioButtonList Items? I've tried doing the Attributes.Add on the items collections like so: Me.Radiobuttonlist2.Items(0).Attributes.Add("onblur", "DoPopupfrmDucted();") Me.Radiobuttonlist2.Items(2).Attributes.Add...more >>

preventing upload of file on certain control postback
Posted by dinosaur8000 NO[at]SPAM yahoo.com at 3/23/2004 12:57:16 PM
I have a simple aspx page with a few controls. One is a standard HTML File input. In addition I have two DropDownList objects and an ASP:Button to submit the form. I'm using AutoPostBack on one DropDownList object to dynamically load the contents of the other DropDownList server-side. Problem...more >>

HTML Menus...
Posted by Colin Basterfield at 3/23/2004 12:54:58 PM
Hi, I want to create a menu structure for my web site, and wondered what people recommend as a way of generating it, I have GoLive 6, and wondered if that was something I could use to generate the HTML and make it a bit snazzy, and then port it into ASP.NET??? Any thoughts? TIA Colin ...more >>

How to trap postback events on client?
Posted by Peter Rilling at 3/23/2004 12:44:27 PM
My form has many controls that postback to the server, some are buttons, some are listboxes. I tried to use the "onsubmit" event to take action just before the form was posted but then realized that this only happens when a button is clicked, not when the submit method is called which is how li...more >>

Example of inheriting a control
Posted by Eric at 3/23/2004 12:39:42 PM
Are there any examples to look at for inheriting a web control such as a TextBox, or a Button? Thanks ...more >>

Item Collection Editor doesn't preserve collection
Posted by Andrés Giraldo at 3/23/2004 12:31:28 PM
Hi! I'm trying to create a control that has an item collection property. Inheriting from a WebControl, my CustomControl Inherits it's base editor too. It's editor allows to fill the item collection property in design time, that's ok... But when I create the items collection and I look into ...more >>

web.config best pratices for passwords
Posted by Jay Douglas at 3/23/2004 12:28:11 PM
Hello all. I have a few different applications that store passwords for various items in the web.config file in plain text. (i.e. SMTP Credentials, DB connection strings) .. I know this is a pretty serious security risk, however I'm having a hard time find a better way to allow easy modifi...more >>

RegisterHiddenField
Posted by harry at 3/23/2004 12:26:07 PM
Hi all, I have a form for the user to fill out. After they enter the required info, the user hits the Enter key. The form is supposed to post back to the server and process the info. I have used RegisterHiddenField in another application before and works properly but for some reason, it is no...more >>

How to get actual path to a file within a virtual directory
Posted by Roy Chastain at 3/23/2004 12:21:03 PM
I have need to access a file from my Global.asax. The file is in the same virtual directory as the global.asax. In old .asp I would use the mappath method. What do I need to do to get the full path so that I can access the file? Thanks ------------------------------------------- Roy Chastai...more >>

Launching Local EXE's
Posted by Kris Rockwell at 3/23/2004 12:08:59 PM
Hello, I have been searching for a solution with little success. Currently I am trying to develop a system that will launch an application located on the local (client) machine from a web page. I would like the following process to occur: 1. User launches application from the web page 2. T...more >>

datagrid?
Posted by DzemoT. at 3/23/2004 12:02:37 PM
I have two columns in my database (example: Male as boolean and Name as string). How to get in datagrid if male= true to show name for that row or else to get empty row. (can i in database write something as "if male=true then name else '' " thx ...more >>

Do I have to call Page.Validate on server side for val controls?
Posted by TS at 3/23/2004 11:52:14 AM
If I have a required field validator for instance, does it require any server side code to make it validate on server? I'm not sure if this is called by default, or if I need to call this on my page, and wrap all my code within this if block. ...more >>

Frameset URL of .htm page
Posted by Tony at 3/23/2004 11:41:06 AM
I have a frameset 8-( (oohh no I hear u say - but stick with me), with 2 .aspx pages. For simplicity lets say Main Page - Maintenance.ht ASPX Top frame - Top.asp ASPX Bottom frame - Bottom.asp All I want to do is CAPTURE (in Top.aspx) the QueryString that is passed in Maintenance.htm. The m...more >>

ASP.net Authentication question
Posted by Simon Harvey at 3/23/2004 11:30:35 AM
Hi everyone, I'm hoping that someone can help me with the following: I don't know to much about asp.net security, but I've copied the following code out of one of microsofts security books. What I'm trying to achieve is allow a user access to a secured directory only once his details have be...more >>

MySQL Update problem
Posted by news.skynet.be at 3/23/2004 11:00:17 AM
Hi; When I do an update query in my ASP.NET page. I am unable to store values of type string... The parameters @ID, @LoginID, etc etc etc are properly filled in. Eg: @ID = "1" @LoginID = "Julia" @LastName="Roberts" @FirstName="Julia" @Email=Julia@hotmail.com @Grp=1 @Active=1 @Password=...more >>

Path so site root?
Posted by Jeff S at 3/23/2004 10:59:49 AM
How does one get the full path to the site root - but not from a code-behind module? I need it in a helper class. Thanks ...more >>

How do I deploy Global.asax
Posted by Roy Chastain at 3/23/2004 10:49:36 AM
I have a very simple Global.asax file (this is my first ASP.Net stuff). I would like it to work the way that the old Global.asa worked in that I have only 1 file and it compiles when it changes and the Application restarts. I have copied the file to the virtual directory of the application on t...more >>

dropdown Overlap my table in html
Posted by Daniel at 3/23/2004 10:36:27 AM
Hi. I have a trouble and maybe somebody can help. I have an aspx page with a table control (html control) and a dropDownList. The problem that I have is that when it is in run-time the dropdown is over the table and it isn't the result I'm looking for. Thanks for any clue. ...more >>

Signing ASP .NET DLL
Posted by Hayato Iriumi at 3/23/2004 10:33:05 AM
I've been trying to use sn utility to sign my ASP .NET DLL, but no luck. Well that's because ASP .NET gets compiled in a weird place like C:\Documents and Settings\ProfileName\VSWebCache\MachineName Does anyone know how I can accomplish signing ASP .NET DLL from VS .NET IDE? I'm using VB .NET ...more >>

Reset Button
Posted by Andrea Williams at 3/23/2004 10:32:59 AM
Does anyone know a quick and easy way to reset the controls on a form? There doesn't seem to be a RESET control, so back to the HTMLControls reset button? thanks, Andrea ...more >>

List Box Question
Posted by Amy Snyder at 3/23/2004 10:30:41 AM
I was expecting the code below to write the selected item in the list box to the browser but nothing happens. What I am trying to do in the grand scheme of things is change the pagesize of a datagrid after selecting from a list box. I figured I could do this with the SelectedIndexChanged ev...more >>

Send mail from asp.net - smtp server running locally
Posted by George at 3/23/2004 10:23:28 AM
Yes, I am trying to send mail from an aspx page. The SMTP server is installed and running, but the code below is not sending me any mail. Any suggestions appreciated what I could do: ------------------------------------------------------ <%@ Page Language="VB" %> <%@ Import Namespace="Sy...more >>

Remove project
Posted by simon at 3/23/2004 10:23:15 AM
How am I supposed to delete an ASP .NET web application properly and also remove the solution too? I've scoured the help and they never seem to mention it. Also, after createing an ASP .NET web app called HelloWorld I right clicked on project icon in the project manager and chose delete. ...more >>

Selective Sessions
Posted by Mike at 3/23/2004 10:19:51 AM
Is there a way to only create sessions for specific users? I already have the user logging in and only want to use sessions for the few administrators that log in. My concern is that asp.net will just create a session for each person that comes in. Maybe I can intercept this behavior in the glo...more >>

requests limit for trace element
Posted by Freddy at 3/23/2004 9:11:26 AM
In the trace element <trace enabled="true|false" localOnly="true|false" pageOutput="true|false" requestLimit="integer" traceMode="SortByTime|sortByCategory"/> is there any ideal number of requests limit for the requestLimit attribute? Thanks, Freddy ...more >>

Deploying Interop files
Posted by Harry Simpson at 3/23/2004 8:51:58 AM
Couple of questions: If i have a ThirdParty.DLL and set a reference to it, it creates the interopThirdParty.DLL in the BIN directory. As for deployment: 1. Is it best to include the ThirdParty.DLL in the BIN with the interopThirdParty.DLL? 2. Using Wise for the install, do I have to regist...more >>

When page is 'refreshed', calculation occurrs again...
Posted by Trint Smith at 3/23/2004 8:41:19 AM
I tried IsPostBack and got the error "object not ...reference". Is there a way to make sure the button MUST be pressed to call function and protect it from 'refresh'? Thanks, Trint ..Net programmer trintsmith@hotmail.com *** Sent via Developersdex http://www.developersdex.com *** Don't ...more >>

error message
Posted by DotNetJunkies User at 3/23/2004 7:18:46 AM
Just trying to run a test page and I am getting an error message. The error is "Server cannot access application directory 'X:\Inetpub\wwwroot\WebApplication1\'. The directory does not exist or is not accessible because of security settings". I have basic authentication set and I am authenticated ...more >>

Problem in disbaleing list items of checkboxlist
Posted by RS at 3/23/2004 7:06:05 AM
Hi I am populating a checkboxlist dynamically from a database and want to check the default values and disable them , so that teh user can not uncheck the defualt checked values. I am not able to disable the listitems .I do not see the disabled or enabled property for the list items of checkboxli...more >>

Not Closing the Registry Key
Posted by jzink at 3/23/2004 5:56:09 AM
If I am only reading the registry (not updating) is it necessary to close the registry key ? The code in question is in a data access component that gets hit pretty hard from the .aspx pages. Here is my code string sUserId="" string sPassword="" RegistryKey rk = Registry.LocalMachine.OpenSubKe...more >>

RedirectFromLoginPage, but somewhere else
Posted by Michał Januszczyk at 3/23/2004 4:11:09 AM
Is there any possibility to redirect user (after having authenticated him to some custom aspx page, not the original that he requested and whic caused him to be shown the logon screen now, I call if(IsAuthenticated(user,password) FormsAuthentication.RedirectFromLoginPage(user,false) ...more >>

In Page PostBack control losing its reference
Posted by Shravan at 3/23/2004 4:01:09 AM
Hi All I am a newbie to ASP.Net. I am creating controls dynamically in my code behind file. When I am debugging, in postback the controls reference are found to be undefined. I also used ctrl.Attributes.Add("runat","server") for the controls But if I am adding the controls in .aspx file then it...more >>

Maintaining State
Posted by Jim Heavey at 3/23/2004 3:02:32 AM
I have a placeholder control and in code I am adding a asp.net Table control and a button control. When I press the button (right now the event handler procedure only writes a line to the Console) I make a round trip to the server, but the event procedure is never executed. Also my table d...more >>

Chat Application
Posted by Kareem Shaker at 3/23/2004 2:41:07 AM
Hi Everybody .. I just want to make an online technical support like that provided by Microsoft , I want to make one of my Customer Support team in front of a PC and when one visitor of my site clicks : "chat with one of our agents", a window is displayed in which the agent can chat with the visit...more >>

fire server side event from client side code
Posted by Neil at 3/23/2004 1:46:07 AM
Hi I have a number of HTML tables that are dynamically rendered from server side code. I've added an onClick event to the tables that fires a client side function (jscript) to redirect the user to an appropriate page using location.href I need to capture this event some how on the server side so...more >>

How to restart asp.net process in a nice (and easy) way.
Posted by Anders Both at 3/23/2004 1:26:56 AM
How can i restart (or stop) the asp.net process in a nice healthy way. I know that I can stop the w3wp.exe in Windows Task manager, but I also know that this will be a wery hard shut down, and that stop_events etc, are not beeign called. ?? Best Regards Anders Both ...more >>

Read edited values on postback in datagrid template column
Posted by moondaddy at 3/23/2004 12:52:08 AM
I have a datagrid with a template column which as a textbox in it. The user can change the value in this text box for many different rows. When the user clicks on the update button, in the code behind I want to loop through the rows of the datagrid and capture an values that have been changed. ...more >>

How to disable validator controls clientside when chk box is chked
Posted by moondaddy at 3/23/2004 12:21:58 AM
I have a data entry form for billing address and shipping address and all fields are required. However, just above the shipping address is a checkbox titled "Shipping Address Same As Billing Address". When this checkbox is checked, I would like to disable all the validator controls for the ship...more >>


DevelopmentNow Blog