all groups > asp.net > june 2004 > threads for tuesday june 22
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
How to do this? EmailMessage.ValidateAddress = false
Posted by Miguel Dias Moura at 6/22/2004 11:49:12 PM
Hello,
when i uploaded my web site to a server i got this message everytime there
was a form with authentication of an email address:
System.Exception: The FromAddress is not syntactically correct, based upon
the pattern set by EmailMessage.ValidateRegEx: [\w-]+@([\w-]+\.)+[\w-]+ To
turn pr... more >>
What am i doing wrong in calling this script? Urgent please. Thank You.
Posted by Miguel Dias Moura at 6/22/2004 11:02:10 PM
Hi,
I just uploaded a web site and i am getting an error.
I have a script which sends form values to an email using AspNetEmail.=20
The script was working when i was calling the script like this:
<asp:Button ID=3D"Finish" runat=3D"server" OnClick=3D"sendEmail">
However, in this new web si... more >>
Allowing multiple sites to share Cached Data?
Posted by Sam-I-Am at 6/22/2004 9:48:22 PM
Hi There
I have multiple asp.net web apps that all make use of a common set of sql
data. I currently have each application cache this data using the cache api.
As the data is same for all apps, I want to save memory and "share" the
cache across all sites.
I was thinking of creating a webs... more >>
csc.exe error
Posted by Cezar Nasui at 6/22/2004 8:23:08 PM
Hi,
I installed the framework on a server (W2K, II5) and when I'm trying to run
an aspx page, I get the following error.
I searched on google and microsoft site but none of this helped.
Can someone help?
Thank you,
Cezar
-----
Cannot execute a program. The command being executed was
"c:... more >>
TemplateContainer attribute - Flexible?
Posted by cosine... zero at 6/22/2004 7:29:37 PM
Hi -
I want to build a templated control that can change types of the template at
runtime. Possible?
I would need to have TemplateContainer be a type that's either an abstract /
inherited type or be changeable at runtime, but I'm not sure I can have
either.
Any thoughts? I realize the o... more >>
convert from access project to dotnet
Posted by me NO[at]SPAM privacy.net at 6/22/2004 4:52:29 PM
Is there anything that can take an access project and convert it to dotnet?
Would appreciate any utilities that I could investigate.
I know that's probably not the best way to go about getting stuff over to
dotnet & the web, but in a perfect world we all have time to rewrite every
line of code... more >>
postback Freaks-out only on Windows 2003 server...
Posted by rooster575 at 6/22/2004 4:35:37 PM
I just finished developing an ASP.NET app on my [Windows 2000 Server].
Everything was fine so I deployed to the production machine [Windows 2003
Server].
Now any postbacks that occurs in the app causes strange results:
[session vars seem to be ok, but the postback values get lost and sometim... more >>
What is the best way to hide email addresses in a web site from SpamBots?
Posted by Miguel Dias Moura at 6/22/2004 4:20:02 PM
Hi,
i have some email addresses in a web site of a client.
Can you tell me what are the best ways to somehow hide the email addresses
from the SpamBots.
Can you give the a list of:
1. What To Do
2. What Not To Do
Thanks,
Miguel
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Stop a button posting back
Posted by JezB at 6/22/2004 4:13:47 PM
How can I programatically stop a Button or an ImageButton from causing a
postback ? I just want it to do nothing.
... more >>
Help with User Control & State
Posted by Paul Say at 6/22/2004 4:07:43 PM
Here is the seniaro,
I have a user control consisting of a list of 3 Companies. e.g
1 - Company A
2 - Company B
3 - Company C - These are read from a data base and may increase in the
future.
What I wan to be able to do is have the control rember its state. with
regards to the following
... more >>
Detecting which key was pressed on a textbox
Posted by Simon Harvey at 6/22/2004 4:00:12 PM
I'm having a problem with a textbox I'm using. On all the other pages i
have, if the user presses the enter key the form submits and moves on to the
next page. However with this page if the user presses enter, he/she is
directed to the index page of the site - None of the buttons on the page
eve... more >>
Specified cast is not valid Problem
Posted by Matt Tapia at 6/22/2004 3:49:48 PM
I having a problem that receives the following error:
Specified cast is not valid
And I need some help. Here is what is happening:
I have a form with a drop-down control that contains a list of control names
(TextBox, DropDownList, Calendar). On Post back of this drop-down control, I
clea... more >>
Image attributes
Posted by Rob T at 6/22/2004 3:30:52 PM
I have a page that can upload or display a particular image from a SQL
server....works fine. Data is stored as a binary data type.
I'm looking for a simple way to find out what some of the attributes of the
image are, such has the size, x & y dimensions.
Thanks. -Rob T.
... more >>
why <asp:ButtonColumn> for datagrid doesn't have CausesValidation property like <asp:Button>
Posted by z. f. at 6/22/2004 3:24:28 PM
Hi,
I'm having an aspx page with a server form.
i have a grid with a delete button and below the grid, another area with
inputs for inserting new values and an "add" button for submiting the lower
area of the form.
on the lower area i have validators for validating input.
my problem i... more >>
FTP to remote server
Posted by Wayne Carlaw at 6/22/2004 3:17:07 PM
I'm having no luck getting the FTP sample found here:
http://www.csharphelp.com/archives/archive9.html
to work. I've tried every conceivable angle, but can't figure it out why I
can't successfully upload a file. I'm almost convinced it's a permissions
issue when the System.IO tries to read t... more >>
double click on datagrid
Posted by Mike at 6/22/2004 2:11:14 PM
I want to double click on a row within the grid and have it take me to a
edit screen for that row.
Currently I allow the user highlight a row and click the Edit Button and
that takes them to a edit screen,
can I have it work the same way if they double click the row?
in VB.NET
... more >>
Javascript and Page Validation
Posted by Jeff Tolman at 6/22/2004 1:44:46 PM
Is there anyway for a Javascript routine to determine if the validators on
its page are successful? What's happening is I'm adding a javascript
routine to the Submit button of a page (to perform my own validation tasks),
and by doing that it always submits the page regardless if any of the
vali... more >>
Developing with dial-up connection irritations
Posted by Paul K at 6/22/2004 1:26:01 PM
I'm in the middle of developing a web app, and every time I attempt to connect to the web server (on the same machine) the connection dialog pops up to connect to my isp. If I choose to work offline nothing works.
I can just place the connection dialog out of the way, but it seems like there sho... more >>
Pubs database
Posted by And at 6/22/2004 12:47:13 PM
I everyone!
I'm a new asp.net user and I'm trying to run some sample files from de msdn
database and most of them use the pubs database.
My problem is that although I see the pubs database in the folder where (I
guess) it should be when I try to work with it (even with the msdn samples)
I a... more >>
OK the most asked question again.... What is a good PDF writter component?
Posted by Darren Clark at 6/22/2004 12:23:35 PM
What has everyone used and what can you recommend for creating PDF's.
i know it has been asked lots in the past but i cant find any of the old
threads.
... more >>
Modal dialog
Posted by mac at 6/22/2004 12:23:00 PM
Is there any way to create control that displays my web page in (modal)
dialog window and returns value when closed?Like in Winforms.
like:
DialogWindow t = new DialogWindow("mypage.aspx");
t.Show();
return t.MyVariable;
... more >>
Attaching CSS classes to web controls
Posted by wh at 6/22/2004 12:18:36 PM
This is more a question of style really, nothing too technical - honest.
My question is what is the preferred way of defining the styles of elements
in an asp.net page?
Supposing I have several *Web* controls (i.e. <asp:label> elements) that I
want to apply a formatting style to. The first m... more >>
Need Code Sample for ASP and and browsing files and folders on the Server
Posted by Nut Cracker at 6/22/2004 12:14:52 PM
Hello,
If anyone can point me to a good ASP based Control Panel for IIS5, I would
be much obliged.
I hacked together an ASP site for file uploads and sharing. Its very simple,
and basically shows the user the files that exist in one folder. I want to
expand this functionallity so that they ... more >>
Problem navigating to subwebs
Posted by Daveyman at 6/22/2004 12:09:51 PM
Hi,
I'm having a problem navigating to/from a subweb using forms authentication.
The setup in IIS is as follows:
TestSite
+----SecureDir
+----ReportsSubWeb
In VS.Net 2003 this has been set up as a single solution containing two
projects; the first project contains TestSite and SecureDir... more >>
User Passwords In a Hosted Environment
Posted by Jordan at 6/22/2004 12:06:30 PM
I'm implementing ASP.NET Forms authentication, and storing passwords in a
SQL Server database.
Just wondering what some of you who have implemented this scenario in a
hosted environment do to keep the passwords in the database "safe". Do you
store them as plain text, do you base(64) encode the... more >>
How does a static interfere between sessions
Posted by Harald at 6/22/2004 11:42:02 AM
Hi
My question is if and how a static variable remains the same state if more than one session of my web site is running. Is the content of my static different at all sessions
or not.
For sample session 1 - Static int = 10
session 2 - Static int = 8
If a third session is running does the sta... more >>
ASP.NET: Error "Login failed for user 'sa'."
Posted by Tony at 6/22/2004 11:37:29 AM
Dear all,
When running the program, I recieved the following error
"Exception Details: System.Data.SqlClient.SqlException: Login failed for
user 'sa'."
In web.config file, the connection setting is below:
"
<appSettings>
<add key="PubsString" value="workstation
id='sha-tongl-xp1';u... more >>
open new browser window from server
Posted by Wardeaux at 6/22/2004 11:26:50 AM
I can't find a way to open a new browser window from my codebehind.
1) My page does a postback to the server.
2) On server I evaluate whether to return to existing page or leave existing
page displayed and open new window with different page
Seems easy enough, I've just not found the key ele... more >>
Object moved to here
Posted by Brad at 6/22/2004 11:23:18 AM
In one of my asp.net apps a response.redirect is sometimes resulting in the
blank page with "Object moved to here." I've tried repsonse.clear and
response.buffer (true & false) but still get this error sproadically.
Understand this was problem in some older versions of browsers...I'm using
IE... more >>
extender provider properties not persisting !
Posted by JezB at 6/22/2004 11:00:00 AM
I've written an extender provider for ASP.NET windows forms controls and web
controls. My windows forms solution works fine, but my ASP.NET solution does
not persist any property values I enter via the visual studio property grid.
Upon examination of the code within InitializeComponent I can se... more >>
HTML Message Contains Exclamation Marks
Posted by rvanvolken at 6/22/2004 10:54:02 AM
After sending an email message formatted for HTML using the STMP Mail function within .NET, my message arrives with exclamation marks throughout the text, which inadvertantly hinders the correct formatting of the text.
Importing the source from one of these messages to Microsoft Word, I was able ... more >>
Intranet and Integrated Windows Authentication
Posted by Andrew at 6/22/2004 10:36:24 AM
Hey all,
I would like to preface my question by stating I am still learning ASP.net
and while I am confident in the basics and foundation, the more advanced
stuff is still a challenge. Ok. :)
We are looking at redoing our entire Intranet, starting over from scratch,
as a .Net websi... more >>
Gracefully Handling Logged Out User
Posted by - Steve - at 6/22/2004 10:29:48 AM
I'm using Forms Based Authentication.
I've written my code so that when a user does something but has timed out,
it gracefully logs them out and asks them to log back on.
I do this with . .
Session.Abandon()
Response.Redirect("logon.aspx")
That puts them back to logon, but then they en... more >>
REmembering User accounts without using cookies.
Posted by Ryan Ternier at 6/22/2004 10:05:59 AM
Hey!
We need a solution for a problem. We're designing a site where users hate...
absolutly hate... with a passion to sign in with a user name / password
system. They want to sign in once, and that's it.
User's are all behind an internal IP so we can't use the old method of
remembering IP's... more >>
Performance question
Posted by simon at 6/22/2004 9:19:04 AM
I have one question.
DataGrid control is performance cost.Use any other control if possible. That
is by the book.
But I need sorting and paging on all my pages.
So, is there any better solution or I should use dataGrid anyway?
Thank you,
Simon
... more >>
validation
Posted by Mike at 6/22/2004 8:56:38 AM
On my "classic asp" application I have some javascript that runs when the
user clicks Submit and verifies all the required fields are filled in and
the email, phone, and fax numbers are formatted correctly and if they're not
a message box pop's up and tells the user they missed something and then... more >>
Asp.net with Javascript Problem
Posted by krishna at 6/22/2004 7:35:02 AM
Below is the code.
language = asp.net/vb.net
private sub openW()
sResult = sResult & "<script language=javascript> mywindow = window.open('http://localhost/mohsaic/default.aspx?tc=Client/Manage'); "
sResult = sResult & "mywindow.parent.frames[1].location = 'http://localhost/treeview/... more >>
Does IIS6 get reset when changing web.config?
Posted by deja NO[at]SPAM chothu.mailshell.com at 6/22/2004 7:34:17 AM
Hi,
In IIS6, is there a way to reset an individual web application rather
than the whole IIS? Does that happen when you change something in
Web.config and save it?
Thanks,
Chumma Dede
... more >>
Uploading files using ASP.NET problem
Posted by darin_dimitrov NO[at]SPAM hotmail.com at 6/22/2004 7:25:01 AM
Hello,
I have the following Html form:
<form name="submitForProcess"
action="http://localhost/xml/process.aspx" method="post"
enctype="multipart/form-data">
<input type="text" name="customerId" value="5" /><br />
<input type="text" name="customerName" value="Johnson" /><br />
<... more >>
persist xml in class referenced in asp.net page
Posted by yurps NO[at]SPAM yahoo.co.uk at 6/22/2004 6:57:08 AM
hello I am putting together a web form which builds an xml file.
I have another class which is referenced in the asp.net page.
The first page load creates an instance of the class. In the class
are various methods which build up an xml file...ie create method
builds the
first root element, a... more >>
Page_Load for Child.aspx web dialog
Posted by DavidS at 6/22/2004 6:42:01 AM
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then reopen the form again by clicking the button control from the parent - the Page_Load function is not calle... more >>
Windows Control in Internet Explore
Posted by Chung at 6/22/2004 5:24:01 AM
Hi All,
I have tryed to create a windows control for Internet Explore. It is working fine without Database process. When I add any database process in the code then I started to get an Error from the Control.
Chung
... more >>
Excel automation memory leak
Posted by RoboSchro at 6/22/2004 4:36:01 AM
I'm building a reporting system in asp.net which needs an "export to Excel" function. We have Excel 2000 in the office. So I've added a reference to the Microsoft Excel 9.0 Object Library.
Having added "<identity impersonate='true'/>" to my Web.config, I can now create an instance of Excel and ma... more >>
date formatting
Posted by Thomas Scheiderich at 6/22/2004 4:18:54 AM
I need to format a todays date as:
June 22, 2004
The closest I can come is
Tuesday, June 22, 2004
I need to do this in both asp.net and asp.
I was trying something like:
<%= FormatDateTime(Now(), 2) %>
But can't get the format I want.
Is there a better way?
Thanks,
Tom.... more >>
data reader question
Posted by Mike P at 6/22/2004 4:17:34 AM
Can somebody please tell me if I am going about this task the right way?
I have a recordset that I want to read and then perform a test and an
update on each record in the recordset. Should I use a datareader to
read the data and then a foreach loop to do my test and update? And if
so, what wou... more >>
Web UserControl - how to determine whether running in IDE
Posted by Ben Fidge at 6/22/2004 4:03:33 AM
As the Web UserControl class has no DesignMode property
(it's not derived from Component), how do you tell if
your UserControl is running in the IDE.
I've got a public property on my UserControl that
persists it's value to the ViewState in its "set"
accessor, and reads it's value from the... more >>
How to write a bool datatype in a access DB?
Posted by georgmayer NO[at]SPAM gmx.de at 6/22/2004 2:10:16 AM
Hi,
I am trying to write a bool in an Access Database, where I have the
datatype "true/false" (or "wahr/falsch" in German).
I am using a DataSet, where I am doing my changes to the variable.
After that I am calling the update()- method on my DB-adapter-object
('adapter.Update(dbItems)') -- and ... more >>
Wrong use of OR? Thanks
Posted by Miguel Dias Moura at 6/22/2004 12:39:20 AM
Hi,
i want to make a table visible if any of 3 database field values are
different from "".
The code i have is this:
visible='<%# dataSetPerson.FieldValue("Value1", Container) <> "" OR
dataSetPerson.FieldValue("Value2", Container) <> "" OR
dataSetPerson.FieldValue("Value3", Container) <>... more >>
Consuming webservice
Posted by John at 6/22/2004 12:15:34 AM
Hi
I have created my first web service that returns a dataset, on my local
win2k server. How can I now consume the web service in a vb.net app also
running on the same server?
Thanks
Regards
... more >>
|