all groups > asp.net > january 2005 > threads for wednesday january 26
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
DirectoryInfo.GetFiles(Mask) finding too many files!
Posted by Aaron via DotNetMonster.com at 1/26/2005 10:04:58 PM
I am testing for several file types in a directory by creating an array of masks and for each mask in the array, I execute a GetFiles.
My issue is that the VB code:
myDirectoryInfo.GetFiles("*.asp")
is returning not only .asp files, but .aspx files in the directory as well!!!
A test ... more >>
cascade change other control based on dropdownlist control changes
Posted by william at 1/26/2005 8:57:03 PM
Hi,
I have a dropdownlist control and a few textbox on my web form. How can I
update those textbox content when user select item from dropdownlist control?
I really want to do this on client side so that don't need back to server.
Thanks.
william
... more >>
validating user before loading a page?
Posted by Patrick.O.Ige at 1/26/2005 8:57:02 PM
Is it possible to execute a query or do some validation before loading a page..
I have a survey page and i want to validate users before loading the page.
I have done it in the page_load.
But the problem i have is that if the user gets the URL and directly paste
it to the browser the USER still... more >>
Help With Datagrid
Posted by vi2psn NO[at]SPAM yahoo.com at 1/26/2005 8:18:57 PM
How to Add images in datagrid... more >>
Executing a validating query before loading a page
Posted by Patrick Olurotimi Ige at 1/26/2005 7:58:04 PM
Is it possible to execute a query or do some validation before loading a
page..
I have a survey page and i want to validate users before loading the
page.
I have done it in the page_load.
But the problem i have is that if the user gets the URL and directly
paste it to the browser the USER stil... more >>
.NET framework 1.1 istallation problem
Posted by lutfiz at 1/26/2005 7:49:02 PM
I'm having this problem while installing the .NET framework 1.1.
the error message is like this:
Error 1935
An error occured during the installation of assembly 'Microsoft_VsaVb,
Version="7.0.5000.0",PublicKeyToken="b03f5f7f11d50a3a",culture="neutral",FileVersion="7.10.3052.4'"
HRESULT... more >>
re-ordering rows/records
Posted by Chris at 1/26/2005 6:57:01 PM
Any good routines or suggestions to assist me in re-ordering my records in my
datagrid?
i.e. I have a field in each record that is used for ordering (i.e. 1,2,3,4).
I would like to implement a set of options to move the record up one, down
one, move to top, move to bottom of this order. Thu... more >>
Server Variables Question
Posted by Rob at 1/26/2005 5:03:12 PM
I have a simple piece of code which is being difficult.
I have a web page (in classic asp) that will redirect to a login page if
they didn't come from that page.
Which means that they have to access my page via the login page.
The login page...which is done in asp.net and resides on a serv... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Pop-up Window Coming back up. Message Box Problem
Posted by Microsoft News at 1/26/2005 4:57:15 PM
What I have is a message box that pops up. It is another browser window.
The code is a general function that you pass message, title and a key to.
The box works great except, that if you are on a page, get the message box,
then click ok on the message box go to another page and then back to t... more >>
Refreshing a page after data is updated
Posted by darrel at 1/26/2005 4:05:36 PM
I have a form that postsback to the server to update a DB table A. In this
form I have a repeater that is populated from DB table B.
Within this form, I have another button that, when clicked, will update DB
table B.
The problem I am having is that when this button is clicked, the following
... more >>
Variable number of SQL query conditions
Posted by ime at 1/26/2005 4:03:22 PM
Hi to all.
I'm making a web application in which users enter text
for a person's name, last name, sex, etc.
But user doesn't have to populate all text boxes, so I don't know how to
make query without these conditions (for example if I have an empty string
for a name) .
I've got 9 text boxes,... more >>
Easy way for user to tie up server resources in an ASP.NET application
Posted by steventhrasher42 NO[at]SPAM hotmail.com at 1/26/2005 4:00:42 PM
I very likely may be missing something here, but what stops a user from
holding down the F5 key in their browser and generating hundreds of
requests to IIS and thus tying up server resources?
If session state is enabled (enableSessionState=true), all of these
requests get queued and processed ... more >>
Securing .html pages using .NET Framework 2.0 on IIS 6.0
Posted by Tod Birdsall at 1/26/2005 3:55:26 PM
Hi All,
I am trying to secure non-ASP.NET files (i.e. .html, .pdf) in an
application running on IIS 6.0, Win2K3 using the .NET Framework 2.0.
What has worked in the past using .NET Framework 1.1 on IIS 6.0 is the
following :
1. Open IIS
2. Right click website, choose Properties.
3. Click ... more >>
missing CR LF with stream writer
Posted by Guoqi Zheng at 1/26/2005 3:45:04 PM
Dear sir,
When I tried to use streamwriter to write a text into a txt file. All the cr
lf in my original text are gone.
Any one know why is that and what should I do???
below is my simple script.
Dim sw As StreamWriter = New StreamWriter("TestFile.txt")
' Add some text to... more >>
How to handle a large drop-down list?
Posted by Paul W at 1/26/2005 3:31:14 PM
Hi - I'm developing a 'front-desk' app. to be used over the internet.
(SQL-Server back-end).
One of the pages will require the user to select an entry from a large
(~4000) list of 'member names'.
What are the options to reduce the bandwidth load of this? Is there any way
that I can cache... more >>
Application Recycle
Posted by MattC at 1/26/2005 3:20:56 PM
Hi,
I've got two questions.
Application has 200 users only.
1.) If an application can be accessed at any period between 8am and
12midnight, what would a reasonable app recycle time be?
2.) Where would I set the recycle time.
TIA
MattC
... more >>
Launch an interactive window from ASP.NET
Posted by Eric at 1/26/2005 2:56:02 PM
Hello,
I need to allow a web page to launch an interactive program on the web
server. For this example, I'd like to have the ASP.NET open notepad on the
asp server, so the current logged-in user can see it.
Here's the code I have implemented. Notepad starts, but is not visible on
the s... more >>
URGENT: HELP!!!! -- Dll's
Posted by Mahesh D. Rane at 1/26/2005 2:35:02 PM
I am creating web application folder.
and i am trying to create seperate dll for seperate folder in that web
appplication.
so i might have 40 folders. should whether its feasible to create 40 dll's
....instead of a single web.dll ?....
and how it will affect my performance...maintanance...mem... more >>
Crystal Reports error when running ASP.NET 1.1 app
Posted by ctk70 at 1/26/2005 2:25:01 PM
I'm trying to run a ASP.NET 1.1 app on a Windows 2003 server. The app runs
fine on my local workstation (Windows 2000 SP4). Both the server and
workstation have Visual Studio .NET 2003 installed. The app fails with the
following error:
Configuration Error
Description: An error occurred ... more >>
Printing From Server ASP.NET
Posted by ryanp NO[at]SPAM ungerboeck.com at 1/26/2005 2:19:20 PM
Printing From Server ASP.NET
Anyone have a good solution for easily printing files of different
types programmically... for example word documents, photoshop psd
files, jpeg's, xls documents, etc...
Is it possible to do this easily?
... more >>
Paging Control
Posted by DaveF at 1/26/2005 2:05:48 PM
Looking for a nice free paging control?
--
Dave
... more >>
Debugging
Posted by Murray Jack at 1/26/2005 2:02:44 PM
Hello
I have an ASP.net project running on my local machine (windows 2000 server)
and i am trying to debug some server side code
the problem is on one page of the project will not stop and any breakpoints
where all other pages stop fine
I have checked the web.config file and the project... more >>
Wait Page
Posted by PinellasBoy at 1/26/2005 1:57:02 PM
I have an stored procedure which takes long time to execute. So I am trying
to execute the procedure in another thread by using the thread start
function. After the SP starts processing I want to take the user to a "wait"
page and then return them after the processing is over.
The wait page... more >>
MouseOver Event
Posted by rkbnair at 1/26/2005 1:55:04 PM
Is it possible to change the background color of the DataGrid on pointing the
mouse over a certain row?
... more >>
Editable Rows in DataGrid
Posted by rkbnair at 1/26/2005 1:51:01 PM
To edit third record in a datagrid, we have to say:
this.MyDataGrid.EditItemIndex = 1.
However, is it possible to make all 20 rows editable at the same time?... more >>
Retrieve useraccount info from AD
Posted by Torben Jensen at 1/26/2005 1:49:39 PM
Hi,
Does anyone have experience in retrieveing useraccount information like eg.
name, lastname, phonenumber, adress etc from Active Directory from an
asp.net application?
Perhaps standard components have already been developped to accomplish this
task?
Should I query the AD directly each... more >>
ASP.NET and background threads
Posted by Paul Hatcher at 1/26/2005 12:55:11 PM
I have an ASP.NET application that uses a background threads to perform a
long-running process. What I'm not sure is how to track and communicate with
the thread.
The site is divided up into sections, each of which could have it's own
background process. Given that any user should be able to i... more >>
Forms Authentication and Classic ASP
Posted by Jo Inferis at 1/26/2005 12:41:02 PM
I have, for reasons I don't want to go into, an ASP.NET application working
alongside a classic ASP application. I'd quite like the ASP.NET application
to handle the authentication for the entire directory (i.e. requests to
*.asp should be authenticated by aspnet_isapi.dll, but then handed off to... more >>
Array type
Posted by Maziar Aflatoun at 1/26/2005 12:33:22 PM
Hi everyone,
Is there a type of array that would do the follow?
Store key/value pair
Return the current index in the array for a key or value?
BTW, I also need to bind it to a dropdown list .
Than you
Maz.
... more >>
Generic Forms on-the-fly?
Posted by Selden McCabe at 1/26/2005 12:25:21 PM
I have an application where they want to create numerous forms (for example,
an expense reimbursement form, a book availability form, etc.). The idea is
someone would create a form for a user to fill out, and after it's filled
out, the user would click "submit" and the completed form (or at ... more >>
VS.net, design view, and 100% table widths
Posted by darrel at 1/26/2005 12:08:34 PM
When I use VS.net in design mode, any tables/divs that are set to 100% width
end up being about 600% wider than my workspace. I'm guessing this is
another VS.net HTML bug. Other than setting the tables to pixel-widths, is
there any workaround for this?
-Darrel
... more >>
Custom SessionStateModule
Posted by Daniel Carlsson at 1/26/2005 12:06:10 PM
Hello
I was wondering if it is possible to use your own SessionStateModule instead
of the default one, what Im interested in is attempting to set a cookie
first, and if that fails using cookie-less URL rewriting, I cant find any
information about this however, the standard module seems to b... more >>
looping on Page.Controls
Posted by Mattia Saccotelli at 1/26/2005 11:46:36 AM
Hi to all. I'm trying to auto-save a form to XML using Page.Controls
property. Almost everything is fine, except a really weird behavior with
the HtmlTextArea control. I noticed that if it has a value (some text
inside!) it's NOT recognized as an HtmlTextArea in the loop, while if
it's bla... more >>
requiredfield indicators
Posted by venky at 1/26/2005 11:36:08 AM
I have a question.
I have two requiredfield indicators in my asp.net page and i have two
buttons like getnextlead and getcustomer.
I want the first requiredfieldindicator to be on for getnextleadbutton
but not for getcustomer button and second indicator active for
getcustomer button but no... more >>
dropdown list not keeping selection
Posted by Paul at 1/26/2005 11:35:02 AM
I have a dropdown list box and a button on a web form, the autopost back is
false for the dropdown list box and button. When the button is pushed the
selection in the dropdownlist box is lost, just wondering what is wrong.
Selected value is always 1 no matter what is selected in the dropdown... more >>
Faster access to MDB? MS Access MDB and ASP
Posted by Phil at 1/26/2005 11:29:05 AM
My website has HTML and ASP codes, using database of MS ACCESS.
When i surf html coded pages, its content comes out very quickly, however,
with asp codes, it takes more than 30 seconds to see one page.
I think it happens because asp pages are looking through mdb file
everytime(though they ha... more >>
Events not firing after a Response.Redirect from another Web App
Posted by michael_vanommeren at 1/26/2005 11:11:02 AM
I have two web applications that I am working with and I am trying to do a
Response.Redirect from one to the other. They are setup as separate web
applications on the same IIS server. If I go directly to the second
application in a browser, all of my events fire correctly. However, if I
h... more >>
button click not working
Posted by ACaunter at 1/26/2005 10:59:05 AM
Hi there,
I started a new website in asp.net.. made a page with some buttons and that
on it.. copied it several times on different pages, so i get the save buttons
in the same position on each page.. now i want to click on the buttons and
open the different pages...
Response.redirect("page.a... more >>
Open another browser during processing
Posted by lisa.staples NO[at]SPAM gnb.ca at 1/26/2005 10:53:07 AM
If anyone knows how I could go about doing the following, I would
greatly appreciate some info.
I have an aspx page that has some fields for user input as well as a
button. When the button is clicked, the data that was entered by the
user is saved to the database. If the save is completed su... more >>
posting from one form to another
Posted by (rbutch NO[at]SPAM coair.com) at 1/26/2005 10:37:03 AM
hey guys, i may be totally in left field on this, but i'll try to explain.
using a web form and VB.net.
a simple text box control.
and added an 'onclick' event to bring up another aspx form with a calendar.
works fine.
txtCal.Attributes.Add("onclick", "window.open('MyCalendar.aspx',null,'he... more >>
How to lock Header in a scrollable datagrid?
Posted by william at 1/26/2005 10:27:05 AM
Hi,
I have a datagrid which is scrollable. I want to lock the header somehow so
that the user will always see it. How can I do it?
Thanks.
william
... more >>
detecting the session closing
Posted by Russell at 1/26/2005 10:16:27 AM
Hi all,
I have a web page(a) that has a link to another web page(b). Now, on the
page load event of web page(b), I am doing the following:
Response.redirect("./test.pdf")
This pdf, if the user copies the url, can go back to it after they have
logged out of my web site.
I need to delete thi... more >>
Can you access Session Variables from Client Side Script?
Posted by Craig G at 1/26/2005 9:46:52 AM
Q: How to eliminate selection rectangle on ImageButton?
Posted by Tyrant Mikey at 1/26/2005 9:32:31 AM
I don't know if this can even be done, but I'd REALLY like to eliminate
the selection rectangle that appears around my ImageButton controls
when the user clicks on them. The buttons are on a black background,
and the selection rectangle looks like complete crap.
Any suggestions are greatly appre... more >>
datagrid - Header span over multiple columns
Posted by sri_san NO[at]SPAM mailcity.com at 1/26/2005 9:31:22 AM
Hello,
I have a datagrid in which the header needs to span over 2
columns. I have tried creating a tableCells and tableRow at runtime and
set the columnspan property of a cell to 2. But, the heading does not
look good and is not aligned to the datagrid columns. Is there another
way to do it?
... more >>
PDF creation
Posted by Neven Klofutar at 1/26/2005 9:05:56 AM
Hi,
I need to dinamicaly create PDF files from c# code. Is there a free
component for creating PDF ?
I can't use iText because it can't use images as headers/footers.
thanx, Neven
... more >>
Best Practices Question...
Posted by Derek Martin at 1/26/2005 8:48:57 AM
Hi list, I have been doing VB.Net for quite a while now and just now getting
into the forray of ASP.Net using VS2003. I have created our development
website and now we are ready to start putting it into production.
I've messed around with a few different deployment scenarios but the one we
... more >>
Hide datagrid
Posted by velmj at 1/26/2005 8:39:03 AM
Hi,
I have multiple datagrids on my page. I would like to display only one
datagrid at a time using a tab buttons. I used a client side javascript
function to hide the datagrid which is wrapped by <div> tag. But it didnt
work as i expected. once a datagrid becomes invisible it is not vi... more >>
HttpWebRequest
Posted by Amy at 1/26/2005 8:34:34 AM
I need to pass a user id from page1.aspx to page2.asp
when the user hits page1.aspx page.
page2.asp will return an xml document containing
additional user information which will be displayed in
page1.aspx
Can I post data to page2.asp using HttpWebRequest or is
there another way to do t... more >>
ASP.NET Stress Test ACT (Socket Errors)
Posted by Gustavo Barbosa at 1/26/2005 8:33:05 AM
I´m having this problem: I'm stress testing a ASP.NET web application using
ACT and comparing results with a previous version of the website (developed
in ColdFusion 4.5). When using 300 simultaneous users (about 25-30 rps),
everything works fine, although Cold Fusion seems to be a little fas... more >>
URLs
Posted by Mark Rae at 1/26/2005 8:26:23 AM
Hi,
I've been asked to write an ASP.NET app which uses traditional hyperlinks
with querystrings for navigation e.g.
http://<site>/customers/customer.aspx?id=123
The client wants the querystrings to be encrypted, sort of like Amazon.com
does. That's fine - no problem there.
However, th... more >>
Page validation with multiple panels
Posted by Jonas at 1/26/2005 8:22:43 AM
Hi!
I have aspx-page where I use multiple panels to make room for more controls
than would otherwise fit onto one page. On submit, the controls on all
panels, visible or not, should be validated with the ASP.NET validators, and
if the page is valid, it is sent to the database in one transactio... more >>
Debugging local ASP.Net applicaton on WinXP.SP2
Posted by Alex Kudakov at 1/26/2005 8:17:08 AM
Hello
I'm a little bit confused. I've just performed a fresh install on WinXP Pro
with builtin SP2. I've installed .net from same CD. It is 1.1 sp1. Computer
is a domain memeber. Settings are default. I've checked both with local and
domain user account. The are members of Debugger Users an... more >>
Timing
Posted by m_j_mather NO[at]SPAM yahoo.com.au at 1/26/2005 8:14:36 AM
Hi everyone,
I'm neck deep in ASP.NET and sinking fast ;) Any help much
appreciated.
I have two user controls on a page that I want to communicate with each
other. One control is called RoleList and allows the user to select
the type of view they wish to see on the page. The other cont... more >>
Date Problem
Posted by Sunil Sabir at 1/26/2005 8:13:04 AM
Dear All,
I have a field in the datebase called ReacheIELTSDate with a DataType
"datetime"
with a length 8. I have a ASPX Web Form with several TEXTBOXES to insert
values into the database table. One of the textbox is attached to this date
field . I have a save button which saves the valu... more >>
pass multiple values from one aspx page to another
Posted by macyp at 1/26/2005 8:03:04 AM
I have to pass values from one aspx page to another. The controls I
have in the first page are:
a textbox, 3 drop down lists, and 2 check boxes, and a submit button.
It is a search page, and the users need not enter values in all the
controls. they can leave the textbox blank, and select values ... more >>
Stop ASP.NET HtmlEncoding things automatically
Posted by Martin Smith at 1/26/2005 7:51:01 AM
How can I stop ASP.NET Encoding things automatically?
e.g if I create a button in my code and add the following attribute
objNewButton.Attributes.Add("onClick", "GotoUrl('http://test.asp?X=1&Y=2');");
Then When the button is rendered into HTML the output is something like this
onClick="G... more >>
WebRequest Error, the remote server returned an error: (401)
Posted by obeOnline at 1/26/2005 7:49:48 AM
I'm getting the following error...
[WebException: The remote server returned an error: (401)
Unauthorized.]
System.Net.HttpWebRequest.CheckFinalStatus() +676
System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
+139
System.Net.HttpWebRequest.GetResponse() +147
Web.WebDav.Page_... more >>
Object reference not set to an instance of an object.
Posted by Jon at 1/26/2005 7:47:05 AM
Hello all, can someone please be my second pair of eyes! I'm getting the
above error at line: for(int i = 0; i <= dlstScope.Items.Count-1; i++).
My code's below: (dlstScope is a nested dlstScope in a repeater). Thanks all.
private void butSave_Click(object sender, System.EventArgs e)
{
... more >>
Only Data Grid should be scrollable!
Posted by pmud at 1/26/2005 7:31:14 AM
Hi,
I have a web page (asp.net, code:c#). I havean html table with text boxes.
Based on the user input , records are displayed in the data grid below it.
Now the datagrid has a large no. of columns. & depending on what the user
enters, the data grid can grow very large. So to avoid scrolli... more >>
Add to ViewState from assembly
Posted by Marty U. at 1/26/2005 7:25:05 AM
Virus Scanning is causing our Sessions to drop and the application to
restart. So my only solution is to utilize ViewState for about 3 small
strings on each page in C#. However, I am not using VS and need to do this in
an assembly.
I have created a class and inherited the page class but how... more >>
There is no row at position 0???
Posted by Tim::.. at 1/26/2005 6:11:10 AM
Can someone please tell me why I keep getting the error!
There is no row at position 0
Dim row As DataRow = table.Rows(0)
I know it has something to do with the value of rowID because if I set rowID
as a fixed value rather than using a querystring it works!
Any ideas???
Thanks
Pri... more >>
Recommendation for Large File Upload Component
Posted by Mike Logan at 1/26/2005 6:01:04 AM
Under advice that native .Net upload compatibilities are not sufficient for
large files, can someone recommend a 3rd party ASP.Net upload component.
Thanks,
--
Mike Logan... more >>
XMLTextReader is not defined
Posted by XML reading with XMLTextReader at 1/26/2005 5:01:04 AM
im trying to read an xml file which is in the wwwroot folder.im using IIS on
XP Prof.
my code is :
--------------------------------------------------------------------------------------------------------
<%@ Page Language="VB" Debug="true" codePage="28599" %>
<script runat="server">
Sub Page_... more >>
Validating entry in one of the fields
Posted by danavni NO[at]SPAM officecore.com at 1/26/2005 4:34:39 AM
I have a form where the user need to fill some fields. some of these
fields are address fields (street, city, state, zip)
i want to validate that atleast one of these fields if filled with
data. then problem is that the CustomValidator control will not check
empty fields and the RequiredFieldVal... more >>
Terminal Services
Posted by trinitypete at 1/26/2005 4:05:04 AM
Hi All,
Here is what I would like to do, any advice would be greatly appreciated.
I have a forms authenticated web page that accepts user credentials, these
credentials are then looked up in a SQL DB, from these credentials we can
tell if the the user is an employee or customer. If the u... more >>
Global variable lifetime
Posted by Trapulo at 1/26/2005 3:43:08 AM
I've a question about globa variables lifetime in an asp.net app.
I've declared this class:
Public Class Utils
Private Shared _FcdDataManagement As FCD.DataManagement
Public Shared ReadOnly Property FcdDataManagement() As FCD.DataManagement
Get
If _FcdDataMa... more >>
Problem Updating Database
Posted by Justin at 1/26/2005 1:51:02 AM
I am using sql parameters to attempt to update a table but but no matter what
"CustomerId" is only the first row in the table is being updated instead of
the row specified, here is the abreviated code :
Me.SqlUpdateCommand1.CommandText = "UPDATE Queue SET January = @January,
March = @March,... more >>
formatting DateTime
Posted by Raed Sawalha at 1/26/2005 12:21:03 AM
Dear :
i have the following datetime in string
string sDateTime = "26/1/2005 10:18:30 AM";
and I need to get the same datetime with the following format
Wed, 26 Jan 2005 10:18:30 +0200
How can I format string to get the needed format ... more >>
Buttons not responding in freshly posted live system; works in dev environment
Posted by EO at 1/26/2005 12:15:05 AM
I'm stumped. I have some asp.net pages that work just fine in the
development environment.
But in production, none of the submit buttons are doing anything. I don't
even get a page_load. No browser window indication of anything happening, it
just sits there.
Might I have forgotten to pos... more >>
Is it possible to set the "default web application" on a web server?
Posted by MS at 1/26/2005 12:12:00 AM
I have an ASP.NET based site, and the main application is stored under a
virtual directory called "Main". So in order to view my site, a browser
would have to visit www.mydomain.com/Main/[default.aspx].
But if a browser just visits www.mydomain.com, he will NOT see my site
(since all the co... more >>
|