all groups > asp.net > december 2004 > threads for friday december 17
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
User Input Validation
Posted by Buddy Ackerman at 12/17/2004 11:33:52 PM
I have a form into which users will enter text. I want the user to be able to enter "some" HTML however I would like to prevent "bad" HTML. The "bad" HTML would be things like <SCRIPT>, <OBJECT>,
<APPLET>, etc. Does anyone know of a good server side validator that will catch this type of "bad" ... more >>
Images Loading Problem in ASP.NET
Posted by Anavim at 12/17/2004 11:26:46 PM
Hi,
I have a really wired behaviour in my asp.net application.
Little background,
I have a base pages which contains about 17 images laying around
(create a circle) and this page contains a control where I'm
presenting my pages content.
Here is the problem:
In most cases, when the p... more >>
System.InvalidOperationException: Connection must be valid and open
Posted by Alejandro Penate-Diaz at 12/17/2004 10:03:56 PM
Hi.
I am using this function tu execute updates to a MySql database from a sql
string, but I am getting a System.InvalidOperationException: Connection
must be valid and open.
Database queries work fine, but I cant update the source. Am I missing
something?
Thanks, Alejandro.
p... more >>
Two-hop issue
Posted by AGB at 12/17/2004 8:25:46 PM
Hi all,
I have a two hop issue. I have two machines in the same domain--one
webserver and the other hosting SQL Server. I am using impersonation
and integrated windows authentication but for some reason the
connection is bailing to the database from the IIS machine. I can use
my localhost ... more >>
ADO.NET missing?
Posted by Psych971 at 12/17/2004 6:23:35 PM
Hi, I'm wondering where I'm supposed to get the ADO.NET component? The
documentation says to reference System.Data.ADO but it seems to be missing
from my system as I've checked the System.Data namespace in the Visual
Studio object browser and it's not there. Is this a separate component that
... more >>
effecting postback without auto postback controls
Posted by Psych971 at 12/17/2004 4:59:38 PM
Hi, I'm wondering how I can generate a postback using javascript on a page
that does not have any controls with the auto-postback property set to true.
I know I can just use the submit() function but this triggers page
validation which I do not want. What I'm trying to do is dynamically write ... more >>
embed element/object
Posted by Richard Roche at 12/17/2004 4:53:03 PM
I'm able to document.oops.play(); in a htm but when i move it to my aspx file
it ignores it. Any suggestions or where can i read more?
thanks.
<EMBED SRC="x.wav" NAME="oops" AUTOSTART=FALSE MASTERSOUND HIDDEN=true>
--
Richard... more >>
RadioButtonList
Posted by Franck Diastein at 12/17/2004 4:26:15 PM
Hi,
I have RadioButtonList for Yes/No
This are values:
<asp:ListItem Value="True">Yes</asp:ListItem>
<asp:ListItem Value="False" Selected="True">No</asp:ListItem>
rblQuestion.Items.FindByValue( _myObject.Question.ToString() ).Selected
= true;
I can't get Yes selected when _myObject... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DropDownLists in DataGrids-- can I dynamically name them?
Posted by Jim Bancroft at 12/17/2004 4:24:00 PM
Hi everyone,
I'd like to put some DropDownLists in my DataGrid, populating each from a
database query. I'm having a little trouble naming them based on the
current record in the DataSet.
For example, here's a snippet of what I have now in my DataGrid
<ItemTemplate>
<asp... more >>
.ASPX page hit twice if Custom Error page in IIS
Posted by jonhyland NO[at]SPAM hotmail.com at 12/17/2004 3:02:23 PM
Hey all,
I'm writing a .NET application where I want all HTTP errors such as 404
to redirect back to the home page.
Since .NET only handles HTTP errors if the client is requesting a .NET
resource (.ASPX, whatever), I need to go into IIS -> Custom Errors tab
and set my homepage under each HT... more >>
Re-cache when new records are added
Posted by WebMatrix at 12/17/2004 2:53:04 PM
Hello!
I am working on a web application with Windows Authentication.
In WindowsAuthentication_Authenticate event of Global.asax file a user is
Authenticated and User/Roles Array is loaded into GenericPrincipal object. So
User.IsInRole("somerole") can be used. User/Roles Array first retrieve... more >>
Combo's inside a datagrid
Posted by Craig G at 12/17/2004 2:15:06 PM
i have to combo's in the footer of my datagrid. the combo1 is populated on
load. but the combo2 can only populate after an item in combo1 has been
selected
is there anyway of getting the SelectedIndexChanged event in the codebehind
for combo1?
or how else would i do it?
Cheers,
Craig
... more >>
Type Reflection and Code Directory
Posted by Andrew Feldman at 12/17/2004 1:30:21 PM
Is someone from MS listening? Every thread I've seen on this topic
goes dead. Even the MVP's don't seem to have an answer.
My problem:
I'm working with ASP.NET 2.0 Beta 1. I have all web application
instance-specific code factored into the /code directory of my web
project. I have custom ... more >>
looking for help file for ASP.net
Posted by TJS at 12/17/2004 1:21:25 PM
Is there a .chm help file which can be downloaded for ASP.net ?
... more >>
Help: IIS no longer responding after 2.0 installation
Posted by Will Program For Food at 12/17/2004 12:58:58 PM
Hi,
My IIS installation had been working fine on my WinXP Pro laptop with
VS.NET 2002. Then to make space I removed VS.NET 2002.
I then installed the Microsoft Web Studio Development 2005 Beta with the
..NET Frameworkd 2.0.
Subsequently I installed VS.NET 2003 (Framework 1.1).
The proble... more >>
Dynamically Loading a UserControl
Posted by Harry at 12/17/2004 12:47:58 PM
Hello,
I have a page with a RadioButtonList and a PlaceHolder control. The
RadioButtonList's AutoPostBack attribute is set to TRUE and its
SelectedIndexChanged event loads one of three UserControls into the
PlaceHolder's child control collection depending upon which of the three
radio buttons i... more >>
Strange Error
Posted by Ganesh Ramamurthy at 12/17/2004 12:41:57 PM
Hi Experts,
I have Visual Studio 2003 Installed in my Windows 2003 Sever. However, I
have problems in creating new Projects, Classes, Forms etc. When I try to
create New projects, I get an error that some wizard is missing and I get
an empty project opened. There are no forms, web.config, glo... more >>
Timezone conversion
Posted by Bijoy Naick at 12/17/2004 12:23:38 PM
I have an events table which stores the time of each event - the time and
assoicated timezone. Is there a way of converting this time into GMT (with
support for DST).. some sort of function which accepts a time and timezone
as parameters and returns the time in GMT?
... more >>
applications not posting back
Posted by Jason Penniman at 12/17/2004 12:20:24 PM
Here's an interesting one that has me stumped. I have several ASP.NET
applications writen in VB.NET that stopped posting back on click of a
button. Nothing has changed in the code or the environment, it just stopped
working. Here's my config:
Production:
ASP.NET 1.0
..NET Frameworks 1.... more >>
Email Validation
Posted by Kiran B. at 12/17/2004 12:19:58 PM
Hi, how can I validate the fomat for valid email and the most important is
if that email is real working email...sort of checking mx record? How can i
do this in asp.net
Thanks in advance....
KB
... more >>
Blocking a PostBack
Posted by Greg Smith at 12/17/2004 11:39:22 AM
I am developing a form that uses a lot of Web Form controls (not HTML). I
disable certain controls in sequence, but as I click on other buttons on the
form the disabled controls get reset to their original state, enabled, and I
have to turn them off again.
Is there a way to keep this from ... more >>
regular expressions validator
Posted by V. Jenks at 12/17/2004 11:19:24 AM
I'm in a hurry and I was curious if there's anywhere out
there offering *free* regular expression examples for the
RegularExpressionVaildator.
I tried regexplib.com but half of the examples are throwing
errors which leads me to believe they're not .net-compatible.
I need several different k... more >>
Get List of Session IDs
Posted by MrDotNet at 12/17/2004 11:13:02 AM
Hi
Any one know how I get list of Session IDs, I mean all current Session IDs.
Thanks
--
-MrDotNet MCAD, MCSD
Sr. Software Engineer / Lead Architect
... more >>
Feed Text File Into Crystal Reports for .NET
Posted by crjunk at 12/17/2004 11:09:01 AM
I have a few text files out on our server that are being created dynamically
by an existing ASP web page. I'd like to write a small ASP.NET web form that
will allow users to view these text files as a PDF by using Crystal Reports
for .NET.
Is this possible? How would I go about feeding th... more >>
Reseting cache for SQL server query
Posted by Dave at 12/17/2004 11:07:08 AM
I have a page with a button that updates a table in the database. This should
affect the data displayed on the page.
I've used break points to ensure that the code calling the query to collect
the data is being properly called.
The query process itself consists of building a new SqlConnect... more >>
Page_Load event not firing
Posted by Brad Wood at 12/17/2004 10:58:49 AM
I've built a simple ASP app that runs fine on my desktop. When I deploy
it to a server, the page opens, but the Page_Load doesn't fire. I'm
setting the text of a label in the event, and the label always shows
it's static text.
When I change the static text of the page and re-upload, the n... more >>
Programmatically retrieving ASPX Compilation Error details
Posted by Plat at 12/17/2004 10:45:03 AM
I've Googled this for a while, to no avail. Hopefully someone can help me.
Maybe I'm using the wrong terminology.
Here's the scoop! Let's say I've got a simple *.ASPX page that has a syntax
error. For example, broken.aspx might only contain the following line of code:
<% Dim x as %>
... more >>
Integrated Windows Authentication Problem
Posted by AGB at 12/17/2004 10:38:33 AM
Hi all,
I just created a website in IIS 6. I am using ASP.net and have set
impersonate=true in my web config. I set the security level to
Integrated Windows Authentication but don't get prompted by any login.
Does IIS 6 do something different? Am I missing something?
... more >>
Binding data to a Drop Down List
Posted by Richard Pidcock at 12/17/2004 10:33:02 AM
I'm trying to bind data from a table in a database to a dropdownlist. I can
successfully add the connection and data adapter but when I add the dataset I
get and error during build.
The type or namespace name 'DataSet1' does not exist in the class or
namespace 'CiscoSpares.CiscoSpares' (a... more >>
ViewState questions
Posted by et at 12/17/2004 10:24:23 AM
I'm not sure I understand the use of the ViewState.
Do I understand correctly that values of controls are automatically held in
a hidden control called ViewState?
If so, then why can't we get them, or how do we get that value? I always
have to set the ViewState("FirstName") = txtBox.text ... more >>
Convert images to Jpeg format
Posted by Kenneth Keeley at 12/17/2004 10:16:45 AM
Hi,
I am creating a news and events page on my Intranet site and I wish to
allow people to upload an image with there news to my site. The text and
image are all stored in an SQL database. I have been successful in uploading
Jpeg files and downsampling them to a size that fits the web site. My... more >>
Play a sound
Posted by Rick Lederman at 12/17/2004 10:09:26 AM
I need to play a .wav file from my program. I know how to do it from a
regular desktop program but have no idea how to do it from asp.net. My
application regularly plays short (4 seconds or less) wave files depending
on the results of an input. I'm about to start the conversion from the
norma... more >>
dynamic page layout ?
Posted by Jon at 12/17/2004 10:08:16 AM
I have a page that has a standard form and for one customer will have a set
of 4 extra buttons right in the middle of the form. So, if possible I'd
like to make one page that can hide/show those buttons according to a
web.config setting. But, when the buttons are hidden, I don't want there b... more >>
Unknown server tag
Posted by James Goodman at 12/17/2004 9:53:13 AM
I am experimenting with the dynamic linked listbox control example found on
the atgconsulting.com website.
I downloaded the example & then compiled the linked listbox & linked
dropdown custom web controls into a DLL named LinkListbox.dll.
I then added a reference to this in my web applicat... more >>
Unable to start debugging on the web server
Posted by derek at 12/17/2004 9:43:41 AM
When I select "Debug->Start" from the menu to debug my ASP.NET web app,
I get the
following error message in a dialog box:
Error while trying to run project: Unable to start debugging on the web
server.
My Web.config has the following entry:
<compilation defaultLanguage="c#" debug="true" /... more >>
HTTP Module attaching to Application_OnStart
Posted by Mike Logan at 12/17/2004 9:35:01 AM
We are creating an HTTP Module to add code to the Application On Start of an
applicaton. However, there is no HTTPApplication.OnStart event to attach to.
Does anyone know how to attach to this event? Oh, and while we are at it,
attach to the Session Start also.
Thanks,
--
Mike Logan... more >>
CSV File Download from an ASP.NET page issue
Posted by Bernard Matthews at 12/17/2004 9:15:03 AM
I'm using the following code to stream a CSV file download to the client
browser -
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ClearHeaders();
HttpContext.Current.Response.ContentType = "application/vnd.ms-excel";
... more >>
cURL in ASP.NET
Posted by Chris at 12/17/2004 9:12:21 AM
Does ASP.NET support for cURL which available at most unix system?
Or is there a function that can post and grab the html result?
Thanks.
Chris
... more >>
Transfer ADO Code to ADO.NET
Posted by leeronald1982 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 12/17/2004 8:59:40 AM
HI,
how to do a RecordSet in OleDbConnection???
my original code is using ADODB.RecordSet
But how can i do the RecordSet in OleDbConnection?
my original code
Function openDB() As Object
objConn = New ADODB.Connection
objConn.Open(dbDNS) '("dbfile")
objRS ... more >>
Asp.net application cannot connect to sql2000 server in VS2003 IDE but OK on installation!
Posted by bk at 12/17/2004 8:52:05 AM
This is driving me crazy. I get "SQL Server is unavailable or does not
exist" error while developing asp.net application in vs2003's IDE
development mode but when I install the application on the server the
error disappears and everthing seems to be ok.
The error does not appear when I connec... more >>
Mixing ASPNET with Frontpage
Posted by OHM ( Terry Burns ) at 12/17/2004 8:51:08 AM
I want to mix my front page site with ASPX pages. has anyone done this. Also
this is more complex because I'm using Dynamic WEb Templates on Frontpage
rather than frames. I know I can use IFrames but that will reduce my reach
because not everyone uses exploer.
Any ideas would be welcome.
... more >>
VS.NET burps. Nobody else has seen this??????
Posted by David C at 12/17/2004 8:41:41 AM
I've posted a couple of times before, but to my amazement, nobody else seems
to have experienced.
In short, while I am coding in the codebehind of a aspx page, color coding
and intellisen vanish out of the blue. It has become rampant despite that
VS.NET is a fresh install.
Very frustrating... more >>
input validation problems
Posted by John Slate at 12/17/2004 8:29:20 AM
I have built a simple form that uses input validation. I use the
EnableClientScript option to produce a javascript alert box when input
errors occur. The only validation is a password confirmation which uses
a compare validator and a validation summary. On my local machine, this
form performs as... more >>
Role Based Security Question
Posted by Mike Logan at 12/17/2004 7:47:04 AM
Questions about Role Based Security in ASP.Net:
I have a few questions about role based security in an ASP.Net application.
Below are some points about our system:
- We have a hierarchical roles system stored in a database.
- We are also using Windows for authentication.
- Page - Role... more >>
Role Based Security Question
Posted by Mike Logan at 12/17/2004 7:47:01 AM
Questions about Role Based Security in ASP.Net:
I have a few questions about role based security in an ASP.Net application.
Below are some points about our system:
- We have a hierarchical roles system stored in a database.
- We are also using Windows for authentication.
- Page - Role... more >>
Simple question!
Posted by Tim::.. at 12/17/2004 7:45:03 AM
How do I transfer the value of one variable in one sub to another variable in
another sub???
Thanks... more >>
Event handling: Button Click Vs Repeater OnItemCreated
Posted by mauritsius NO[at]SPAM hotmail.com at 12/17/2004 7:11:00 AM
I have a simple page where I would like to modify a repeater (bounded
to a dataset) if a button (outside the repeater) is clicked or not.
I tried to solve this with a button click event that raises a global
flag and a repeater OnItemCreated event that modifies the repeater
items accordingly.
... more >>
bind data to textboxes
Posted by Mike at 12/17/2004 6:49:04 AM
I'm calling a component to get my data. The component is returning a
dataset. I need to populate text boxes on my aspx page with the data within
the datalist.
Where can I find an example that does this?
Here is the code i'm using and i'm gettting an error:
code:
Try
dbConn.... more >>
apache webserver and asp.net
Posted by seed at 12/17/2004 6:31:28 AM
Can I run an ASP.NET program on apache web server?... more >>
Form retaining values
Posted by cFleury at 12/17/2004 6:19:03 AM
This system works in a intranet w/ some 200 stations and this particular form
is retaining its values among different stations...like if I enter some
values in the form on station 1 walk to station 2 and call the form the
fields will be field w/the same info....
What can I do ?
Thanks
C.Fle... more >>
Page_Load Event fires twice....sometimes!
Posted by doobdave NO[at]SPAM yahoo.com at 12/17/2004 3:29:00 AM
Hi all,
I'm experiencing a rather strange problem:
I am coding a web application using VB.net ASP.net and Visual Studio
2003.
It's quite a large application, but the problem only occurs on one of
the Web User Controls.
This particular Web User Control has some text entry fields in it,
d... more >>
Wiring Up Events Nightmare
Posted by Eldon Ferran de Pol at 12/17/2004 3:23:03 AM
I'm trying the dynamically wire up events for a load of LinkButtons contained
within an <asp:Table>. For some reason if I try and do this outside the
Page_Load event my events simply don't fire despite the correct postback code
being added on the client and the postback taking place.
Can... more >>
Wiring up events nightmare
Posted by Eldon Ferran de Pol at 12/17/2004 3:21:03 AM
If anyone can help with this it would be much appreciated.... more >>
Get current windows domain name
Posted by Dorte at 12/17/2004 3:13:04 AM
Hi,
I need to use check the current windows user of the application by using
User.IsInRole(DOMAIN\USERGROUP)
I have knowledge of the usergroup to check on, but since the application
will be installed at different web servers, I cannot be sure of the windows
domain. Is there an easy way to... more >>
SQLSession vs InProcess Session State object references problem (C#)
Posted by radioboring NO[at]SPAM hotmail.com at 12/17/2004 1:21:07 AM
Hello!
I have a problem with SQLSession state on my ASP.NET pages.
SQLSession state behaves very different from InProcess session state,
which I think is very bad.
I can understand some of the differences, e.g that every object you
store in SQLSession state have to be serializable, but ot... more >>
|