all groups > asp.net > may 2004 > threads for thursday may 27
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
ASP.Net Whidbey new webproject nuisance
Posted by Paul van Brenk at 5/27/2004 11:52:02 PM
Not sure if this is the right newsgroup, but it's the best I can find.
Is there a way to have the new webserver host the files without a virtual
directory?
Right now the following happens:
I create a webproject at c:\websites\web1, this is hosted by the integrated
server as http://local... more >>
Server Control Collection Properties Solutions,Problems MVP Advice Requested
Posted by Brian at 5/27/2004 11:10:57 PM
NOTE ALSO POSTED IN
microsoft.public.dotnet.framework.aspnet.buildingcontrols
I have solved most of my Server Control Collection property issues.
I wrote an HTML page that describes all of the problems that I have
encountered to date and the solutions (if any) that I found.
http://users.adelp... more >>
Question: Parser Error Message: Access is denied
Posted by VB Programmer at 5/27/2004 10:54:45 PM
I am using a free rich text control from ExportTechnologies.
I was developing and debuggin fine. Restarted VS.NET 2003 and now I get
this error when trying to run my web app. Any ideas?
<---- ERROR BELOW ---->
Server Error in '/MyWeb' Application.
---------------------------------------... more >>
image in asp.net
Posted by Sam at 5/27/2004 9:59:41 PM
hi,
how to retrieve(display) and save image in sql server?
thanks,
... more >>
request object and http header
Posted by google NO[at]SPAM tacoturtle.com at 5/27/2004 9:46:42 PM
Hello All,
do all the properties that the request posses directly correlate to a
http header variable? The reason I ask is that I am trying code
against a scenario where the header variables do not exist, but obtain
some of the values provided by the header variables through other
means in asp.... more >>
Building Web Project offline
Posted by Terry Wilson at 5/27/2004 9:26:03 PM
I have what I think is a very simple question, but so far I have been unable t
find the answer
I have developed a small web based application that we will ship with one o
our products. I developed the project locally on my machine which has IIS installe
and running. Now I need to check the so... more >>
XML Dateset Problem
Posted by Chris Kennedy at 5/27/2004 8:20:20 PM
I am having big problem manipulating XML in a dataset. I am reading in a
schema based on the following XML document. The minute I try to e.g. create
a new row I get 'Object reference not set to an instance of an object' error
<?xml version="1.0" encoding="utf-8"?>
<DocumentElement xmlns="http:... more >>
How do display progress with a logn running server side task
Posted by Roy Chastain at 5/27/2004 8:09:25 PM
I have a aspx web page that is a long running task (1 - 2 min's). I would like to display an actual progress such as X out of Y items
processed.
I assume that the correct way to start about this is to put a meta refresh in the page (say every 10 seconds) to force the page to get the
new output... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataBinder.Eval(Container.Item, "myDownloadFile") Question
Posted by Chris at 5/27/2004 8:04:32 PM
Hey
Okay using DataBinder.Eval in a repeater.
My question is this - if the value is empy, eg the myDownloadFile is empty,
how can i display different output than if it was populated.
# pretend code
<% if DataBinder.Eval(Container.Item, "myDownloadFile) == String.Empty) { %>
Now download ... more >>
Trapping a ' potentially dangerous Request.QueryString value'
Posted by John Morgan at 5/27/2004 6:56:29 PM
I am attempting to use a try/catch block to trap a querystring which
is caught by ValidateRequest="true" in the @page directive
A simple example of the blockthat does not work is
Try
routeID = Request.QueryString("routeID")
Catch
response.Write("a dangerous query string has been ent... more >>
Problem with ItemDataBound / ItemCreate (text seems to be empty)
Posted by Gabriƫl at 5/27/2004 6:48:31 PM
Hi All,
I've created an eventhandler for ItemdataBound and ItemCreated, but when I
access "e.Item.Cells[0].Text" it's always empty. BUT, when I assign a value
to this empty field (while being in debug mode, via the Command Window) it
DOES show up in the page that's been rendered. So I CAN assi... more >>
Problem updating Active Directory from code
Posted by Robin at 5/27/2004 6:23:17 PM
When using the following ASP.Net code the error "The directory service
cannot perform the requested operation on the RDN attribute of an object."
is displayed when the commit changes is run. What modifications need to be
made to the code to allow it to update the details?
Dim rootDSE A... more >>
terminal server client
Posted by EricJ at 5/27/2004 6:23:16 PM
Hi all
Is it possible to expose a terminal server (remote admin) client w asp.net ?
We have a win 2003 server running terminal server (our server our router,
firewall .. no probs here) but our clients (nr of retailers of a big
network) don't have permission to change the configuration of the... more >>
Multi-Lingual application
Posted by Z D at 5/27/2004 5:06:47 PM
Hello,
I need to support multiple languages in a product package being developed in
both ASP.NET (vb.net) and WinForm .net (c#).
I was wondering if there are any best practice guides, application blocks,
resources, tutorials, or just general advice that someone could recommend to
get me sta... more >>
Prompt for user name/password
Posted by Morten at 5/27/2004 4:58:03 PM
Hi!
Can someone help me figure out why when you fill out this form:
http://dir.dk/partner/login.aspx
IE doesn't prompt you for saving user name and password?
Thanks in advance
Morten
... more >>
Best practice - should DataBinder.Eval be used in a 3-tier architecture?
Posted by Mike Lerch at 5/27/2004 4:47:17 PM
Pretty much, TSIA, but I'll expand a bit: I'm still trying to get my
head around the n-tier approach to web design. It seems to me that
when you use DataBinder.Eval in the ASPX that your tiers aren't fully
separated. If you're displaying data in a DataGrid, is it appropriate
to define a label ... more >>
Role Based Security
Posted by sean at 5/27/2004 4:45:40 PM
HI There,
I have created 3 tables in my application tblUsers, tblRoles,tblGroups, when
I perform a login and execute a store pocedure I return the user role for
example "administrators". I would like to restrict access to some of the
pages according to user role returned. How can I interface w... more >>
session expiring unexpectedly
Posted by hch_nguyen at 5/27/2004 4:44:08 PM
Hi,
I have an asp.net app. The session state is set to expire in 20 minutes in
web.config, but my sessions seem to timeout randomly even though I interact
with the application regularly, which is supposed to reset the expiration
time I believe. Is there a specific way that you have to start a... more >>
DotNet Interface to IIS? Not working
Posted by Patrick at 5/27/2004 4:06:13 PM
Environment: Windows 2000 Server SP4, IIS5.0, Dot Net Framework 1.1
Situation:
A Console application that send an email using System.Web.Mail.MailMessage
Observation:
1) Recently, the application is failing to deliver messages!
2) Even when eMails was delivered, there are no entries logged ... more >>
VS removing runat="server"
Posted by librablue9 NO[at]SPAM hotmail.com at 5/27/2004 3:16:59 PM
I try to set the page title dynamically in an aspx page, but sometimes
an error occurs due to VS removing the runat="server" attribute at its
own will...
How do I stop from doing so??
Libra Blue... more >>
Cannot create or open a c# asp project - http/1.1 500 Internal Server Error
Posted by Emil at 5/27/2004 3:08:36 PM
Hello,
Two days ago I tried to create my first asp project but when I tried to
create a new asp project I got the following error message:
'The web server reported the following error when attempting to create
or open the Web project located at the following URL:
'http://localhost/WebAp... more >>
Cookies Not Written When Debugging?
Posted by Johnnie Norsworthy at 5/27/2004 2:53:24 PM
I am trying to debug a C# ASP.NET application in VS.NET. I have added a
text box to my form for storing a user signature which I am trying to
persist using cookies.
In my Page_Load() I have added the following:
try
{
Signature.Text = Request.Cookies["Signature"].Value;
}
catch
{
Signatu... more >>
passing variables from page to control
Posted by DC Gringo at 5/27/2004 2:52:24 PM
I have a simple index.aspx page that declares and sets a sectionID in the
Page_Load. The in a user control later on in the page, I read the sectionID
variable (in the control's Page_Load) to determine which panel to show. It
does not work
"Name 'sectionID' is not declared" is my error while ... more >>
ASP.Net cookie -> ASP -> ASP.Net
Posted by Ben at 5/27/2004 2:40:06 PM
I'm having problems with cookies from asp.net to asp back to asp.net.
It seems like I can set a cookie in asp.net fine, and alter it at will, as
soon as asp touches it, asp.net won't have anything to do with it. Can
someone please help!
The code below, going from aspx to aspx, works great t... more >>
Length of an if statement in dotnet (migrating from asp to asp.net)
Posted by me NO[at]SPAM privacy.net at 5/27/2004 2:31:31 PM
I have a module that's processed as an include file in a tradtional asp
application that I'm migrating to dotnet.
In one of the modules, there's an if statement that's gotten appended to
over the years it's been in production, that when it's been translated into
dotnet, the if statement (if...... more >>
Page has Expired
Posted by moondaddy at 5/27/2004 2:10:53 PM
Often when browsing my site and using the forward and back buttons I get the
err msg "Page has Expired "
My pages are blank with a user control for the content. Is there something
I need to be doing with the page (or control) cache? Or something else?
--
moondaddy@nospam.com
... more >>
Moving back a page
Posted by Simon Harvey at 5/27/2004 2:05:10 PM
Hi,
Does anyone know if its possible to make the browser navigate back by one
page in response to a button press. This has to be done in an event handler
in code behind.
The reason I want the browser to go back, rather than just Response.Redirect
is because I want the fields on the previous... more >>
Last line of file
Posted by Pablo Tola at 5/27/2004 1:51:24 PM
How can obtain the last line in a log file?
regards,
pablo@imaget.com
... more >>
deployment of asp.net application
Posted by Edward at 5/27/2004 1:41:41 PM
hi, does anybody use tools other than vs.net to make installation media of
asp.net application?
thanks in advance.
... more >>
How to get value of html control?
Posted by dgk at 5/27/2004 1:33:53 PM
Simple question. How do I get the value of an html textbox? This is
the guy:
<INPUT style="Z-INDEX: 113; LEFT: 657px; WIDTH: 78px; POSITION:
absolute; TOP: 62px; HEIGHT: 21px type="password" size="7"
name="pwtext">
It doesn't seem to become a session variable.... more >>
Multi-Line TextBox writting to Sql Server
Posted by John Carnahan at 5/27/2004 1:33:24 PM
I have a problem writing the text from a multi-line textbox to the Sql
Server db.
If the user sends a vbcrlf (enter key) in the middle of the entered text,
the text gets
truncated at the vbcrlf when writting the data to the database. The text
could get rather long.
The dataset has all of t... more >>
How do i submit a webform without a button?
Posted by Darren Clark at 5/27/2004 1:28:30 PM
My question is more for how to access the data when it is submited..
eg..
We have a flash game that when a user clicks the register button... it =
will call some javascript on the web form...
From there.. the javascript will simply run document.forms[0].submit()
this is all good and wor... more >>
URGENT problem - creating new ASP.NET web application
Posted by VB Programmer at 5/27/2004 1:23:43 PM
When I go to create a new ASP.NET web application VS 2003 freezes on this
message:
Contacting server to create Web project 'WebApplication1'...
I checked my file system and the C:\Inetpub\wwwroot\WebApplication1
directory is created. One file is in there called
vs-211169597029639694_tmp.h... more >>
Running Virtual Folder on Network Share with a different user.
Posted by flat_ross NO[at]SPAM yahoo.com at 5/27/2004 1:10:21 PM
Hi,
I am in a shop where developers are required to work off of a network
share. This is so that code is backed up nightly.
So I am testing running an ASP.NET Web application with a Class
assembly all on a shared drive.
I have the solution working perfectly. However, I have run into a
hi... more >>
Dropdown list style (CSS)
Posted by Pontimax at 5/27/2004 12:51:08 PM
Hi,
by default all dropdown list have a 3D look-and-feel. How can I change that style in a way
that they become flat controls with a thin border?
Take a look at the <a target="_new" href="http://www.mscrm.at/demo/index.php">MS CRM demo</a> for example (in German). If you open an arbitrary dialo... more >>
Really noob question about asp:Image control
Posted by Chris Dunaway at 5/27/2004 12:50:13 PM
I was looking over some asp.net code and saw this asp:Image control:
<asp:Image ImageUrl="~/images/logo.gif" runat="server" ID="Image1"/>
What does the tilde (~) mean in the ImageUrl attribute?
Is it some sort of relative addressing? On the design surface, that shows
as an error until I... more >>
Regex OR match ???
Posted by jason NO[at]SPAM cyberpine.com at 5/27/2004 12:37:05 PM
I have following two regex expressions. I am trying to match in the
event that *EITHER* is found - combining with an OR. However, I can't
seem to get the syntax right.
Dim regexp2 as Regex = New Regex("a(.+)b", RegexOptions.IgnoreCase)
Dim regexp3 as Regex = New Regex("c(.+)d", RegexOptions.... more >>
Optimising Connections & DataAdapters
Posted by Jon Maz at 5/27/2004 12:20:11 PM
Hi,
I just read the following in an old NG thread:
"when you use the adapter with a closed connection it will open it, do your
requested database access, and close it immediately. If you use the adapter
with an open connection the connection will continue to be open after the
adapter is don... more >>
CRLF How does it work for asp.net???!!
Posted by Michael Persaud at 5/27/2004 12:19:20 PM
Hi All,
Im trying to have a few strings presented in a LABEL. However the CRLF is
not working.
eg str = str1 + crlf + str2 + crlf + str3
label.text= str
Do i need to declare the crlf as a public constant with chrw(10) +
chrw(13)?? cause this does nothing either
Can some one tell me ho... more >>
asp.net and microsoft word
Posted by mark at 5/27/2004 12:16:56 PM
is it possible to open / create word documents in word ?
eg open a document and replace text and print ? using asp and vb behind.
if so is there any tutorials anywhere ? (heh difficult searching using
google for asp / word.... !)
mark
... more >>
variable reading
Posted by ven at 5/27/2004 12:09:36 PM
Hello
i have a question about two aspx files...I have a variable in one page
called login.aspx and when user correctly loged another page is
opening...this second page is called default.aspx....
how to read a variable from login.aspx when i`am in default.aspx.....
or maybe there are a global ... more >>
converting asp .net??
Posted by DaveF at 5/27/2004 11:56:50 AM
What is the .net alternative to: Set = rsFields("tblname")
--
Dave
... more >>
DataGrid OnDeleteCommand Problem
Posted by itsmash NO[at]SPAM aol.com at 5/27/2004 11:44:39 AM
Hi,
I've been trying to get a button to delete a record from the DataGrid
for absolutely ages and have had no luck. At the moment clicking on
the delete button does nothing. I have no idea what I'm doing wrong.
Hopefully someone can help me out!
<form id="myform" runat="server" method="p... more >>
ASP.NET w/ SQL Server Sessions & Cluster Failover
Posted by news.microsoft.com at 5/27/2004 11:22:14 AM
Is there an elegant way to clear out the ADO connection pool used by the SQL
Server State Service following a cluster failover?
We are using a SQL Cluster to store both the ASP Session State database and
our application database.
When the SQL Server cluster is failed-over, any "pointers" to ... more >>
datagrid problem
Posted by kozmo at 5/27/2004 11:11:07 AM
I'm getting the error
'System.Web.UI.WebControls.TableRow.Cells' denotes a 'property' where a 'method' was expecte
on this line of code
roleid = (string)e.Item.Cells(0).Text
There is only one column in the grid
... more >>
Problems with image render timout when browsing on local machine.
Posted by Ken Varn at 5/27/2004 10:51:39 AM
I have an ASP.NET page that renders around 32 dynamic images using an
HttpModule class. For some reason when I run the browser on the localhost,
some of the images do not show up. I get the red X and then have to
right-click and select the Show Image option. This does not seem to happen
when ... more >>
Browser event from webform control
Posted by Arne at 5/27/2004 10:41:05 AM
How do I make a web form control react to a client side event in the browser
THe onclick event to server based. I am looking for onclick event on the client
I need something like this from a webform button control
<input type=button onclick="return OK()>"><script language="javascript"
fu... more >>
Freetextbox Rich Text Control
Posted by Scott Simons at 5/27/2004 10:41:02 AM
Does anyone know what happened to the freetextbox.com website. I'm looking for a rich text control that comes with the source that is reasonably priced. Thanks, Scott... more >>
Best way to write log file
Posted by Pablo Tola at 5/27/2004 10:05:49 AM
Hi, I'm developing a site statistics application, now it's in testing and I
get a very high CPU usage on the aspnet_wp.exe, I think it's because the way
I'm writing the log file, I'm using XML to do it, Which is the best way to
do it, I'm including a portion of the code so you can see what I'm do... more >>
build a personalized link on a datagrid
Posted by Luis E Valencia at 5/27/2004 10:04:36 AM
I want a row of the datagrid with a personalized link. The fields of the
link are on the select related to the datagrid
the link would be accoiones.aspx?iddireccion=2&idindicador=5
I tried this but doesnt work
<ItemTemplate>
<asp:HyperLink runat="server" id="Hyperlink2"
Navigat... more >>
accessing code behind
Posted by ashish at 5/27/2004 10:01:56 AM
I Tried this, and my html code looks like
<asp:HyperLink id="HyperLink1" runat="server" NavigateUrl='<%=
CreateHyperLink %>' >HyperLink</asp:HyperLink>
but the rendered code now looks like
<a id="HyperLink1" href="<%= CreateHyperLink %>" >HyperLink</a>
any other ideas ?
than... more >>
Custom validation
Posted by simon at 5/27/2004 9:55:32 AM
I have 2 <asp:textbox controls>:
<asp:textbox id="txt1" Runat="server" ></asp:textbox>
<asp:textbox id="txt2" Runat="server" ></asp:textbox>
User must insert the value either in txt1 OR in txt2, so one of them
shouldn't be empty.
So I use custom validator:
<asp:CustomValidator id="v... more >>
creating a data entry form
Posted by Martin at 5/27/2004 9:52:08 AM
I want to build a data entry form for creating and updating info on
something.
When I'm first creating an item all the fields need to be editable. There
after some fields become readonly. Most of these fields are text based, and
I really want to have them appear as a label rather than a text... more >>
Securing data against theft of the server or hackers
Posted by Nick Gilbert at 5/27/2004 9:47:31 AM
Hi,
As part of a website (ASP.NET) we're creating, we need the ability to
store documents with pretty much 'mission critical' security. ie, if the
server is completely compromised (eg a trojan/virus is installed or
someone physically steals the server) they will still not be able to
gain ... more >>
Datagrid paging problem
Posted by J. Muenchbourg at 5/27/2004 9:46:48 AM
I'm trying to use paging in a datagrid, but I can't get past the "cannot
compute Count for a data source that does not implement ICollection"
application error, as it does not point to a line in the code. Does the
same thing even when i change the AllowCustomPaging property to
AllowPaging . Wo... more >>
MapPoint asp.net VB How to catch a click?
Posted by collegeCoder at 5/27/2004 9:45:53 AM
Please help
I want to show a mapPoint map on a web page with say thumbtacks or som
other marker to show where a location is. When the user clicks on tha
location I want to take some data associated with that location (i.e.
FK into another DB or just say a unique ID and the name of tha
locatio... more >>
Copy ASP.NET project to another PC
Posted by Rob Nicholson at 5/27/2004 9:36:06 AM
How do you go about copying an ASP.NET project to another PC when you can't
use Copy Project. I basically want to transfer a copy to my home PC so I can
work from there.
Thanks, Rob.
... more >>
Page_Load being fired twice
Posted by Nimrod Cohen at 5/27/2004 9:31:01 AM
Hi
During the page_load of my Aspx page "http://myMachine/MyWebApp/Quote.aspx" , i write to the response an html that embeds a form with the action pointing out to the same aspx page
i.e
Response.Write( "<html><head></head><body><form action="http://myMachine/MyWebApp/Quote.aspx" name="QuoteForm... more >>
aspnet_wp.exe garbage collection threads utilization
Posted by Kevin Jackson at 5/27/2004 9:25:32 AM
On our production servers, we see the priority 10 threads use alot of CPU
time about once every 1 to 3 minutes.
We use Dispose on all of our library ServicedComponents.
Can anyone explain the behavior we are seeing?
... more >>
strip non-numeric characters
Posted by MattB at 5/27/2004 9:10:13 AM
Is there simple way to take a string that should be all numeric (like a
credit card number) and strip out anything that isn't a digit? In the past
I've done this in VFP using the IsDigit() function, looping through each
character. It was a little awkward, but worked. Is there something similar,
... more >>
Refresh another Frame
Posted by Eddie at 5/27/2004 9:05:01 AM
Hi All,
I really need to Update my "header" frame when the user click on a button on
the "main" frame of my web page.
How may I do that ? The problem is that I don't have choice to use Frame...
I have to modify an existing web page with frameset...
Any help will be appreciate ...
Thx
... more >>
validators subset
Posted by news.microsoft.com at 5/27/2004 9:03:27 AM
Hi,
When I click a button that has CauseValidation = true, is there a way to use
only a subset of the validators in the page? The reason for this is that I
have a webform in which there is an editable datagrid. When I edit a row in
the datagrid, the edittemplatecolumn has validators in it that... more >>
Very, very, easy question
Posted by jhoge123 NO[at]SPAM yahoo.com at 5/27/2004 8:54:00 AM
I need to do something on a page with a datagrid in the case where the
page is loaded but the Update button is *not* clicked.
Specifically, I am adding a blank row to the dataset with an external
Add button. The dataset is strongly typed, so I can't add a blank
value to the primary key. I put ... more >>
having a page load 'parts' when the data comes in, without hanging
Posted by Matt Swift at 5/27/2004 8:50:09 AM
I have a question regarding the way that we can load page components
seperately, so that a user sees various parts of a site load as the data
comes back, but the whole site in general is already loaded up, so it looks
like stuff isnt being held up and it looks more realtime.
this happens on so... more >>
Server configuration
Posted by Chris Good at 5/27/2004 8:11:02 AM
Please can anyone help!
I have created a new Windows 2000 server running IIS 5, sp4 and installed the .net framework 1.1.
When trying to create a new project on the server I get the following error "unable to create web project "web application1". The file path \\productive\wwwroot$\webapplica... more >>
How do I make tabbed links in Visual Studio?
Posted by Rob at 5/27/2004 7:24:31 AM
Hi,
I am new to this, but starting to get a handle on datagrids, repeaters, etc.
Now I want to start formatting my pages so they look nice. My background is
with database programming, not web design, but I still want to make things
pretty.
Looking at the top of some pages (such as asp.net) ... more >>
Transferring ASP .net program from test box to server
Posted by Ranjan as usual at 5/27/2004 7:01:02 AM
Dear folks
After completing my ASP .net application, I had to transfer it to my server PC running 'windows server 2003'. I just copied all the files from my folder and then copied it to the shared folder in that server computer, but nothing worked! Does the server computer require VB .net ? It does... more >>
Programatically add sorting and paging to a datagrid
Posted by mg at 5/27/2004 6:16:02 AM
I have created a databound datagrid programatically (that is, without wizards) in my C# codebehind
How can I programatically add sorting and paging to this datagrid?... more >>
Does DataBind close a datareader?
Posted by Joel Reinford at 5/27/2004 5:11:55 AM
I am attempting to verify whether a datareader is closed by calling the
databind on a control.
for example (fake code)
Dim rdr as SqlDataReader
rdr = mycommand.executeReader...
MyDataGrid.DataSource = rdr
MyDataGrid.DataBind()
Is the DataReader closed at this point or do I still need t... more >>
Encrypting Passwords
Posted by Tayo at 5/27/2004 1:01:02 AM
How do I encrypt passwords before saving in the database
... more >>
IIS refuses to parse ASP.NET or ASP (but not both at the same time)
Posted by Rea at 5/27/2004 12:02:54 AM
Hi,
I'm seeking some help for a problem that I'm trying to tackle for some
days now. I've searched all over the web and tried everything I can
possibly think of.
Here's the problem: Recently I noticed that my webserver (IIS5 on
Windows 2000 server) refused to server ASPX pages after a re... more >>
|