all groups > asp.net > october 2003 > threads for friday october 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
Custom Error Message
Posted by Kenny at 10/17/2003 11:25:46 PM
Hi,
How to create a custom error message when user hit this error so that I can
redirect to the login page.
"The page requires session state that is no longer available. Either the
session has expired, the client did not send a valid session cookie, or the
session state history size is too ... more >>
Need Help with Thumbnail Gallery in Panel
Posted by David Elliott at 10/17/2003 9:57:00 PM
I am creating a control to display GIF/JPEG images for my website. The control
has a Panel to hold the images.
I would like to perform the following.
1) store the original on disk and create a thumbnail on the fly.
2) thumbnail will be 20% of the original size.
3) the panel will hold a... more >>
access session & application variables
Posted by Barel Yoav at 10/17/2003 7:03:31 PM
Can I access the session & application variables of asp 3.0 from aspx or
*.vb page
... more >>
default button on form
Posted by Bratislav Jevtic at 10/17/2003 6:53:13 PM
hi,
how to make some push button default on the form? for instance, I've got 2
buttons (Submit, Cancel). submit is on the left, cancel on the right side.
on enter key pressed, cancel button is processed - wrong. so, how to make a
button default (when one presses ENTER then it's processed onCli... more >>
Inherits from web user control
Posted by ton at 10/17/2003 6:21:53 PM
I created web user control class (WebUserControl1) on my project.
This web user control class contains two button.
And i create new vb class that it inherit from WebUserControl1.
When i register vb class to web form.
It can not display any controls (buttons).
How can i use vb class on webfo... more >>
Div control and additional whitespace
Posted by Donal McWeeney at 10/17/2003 5:59:52 PM
Hi,
I noticed that the div control renders whitespace and a blank line when it
is rendered with no contents - it it possible to get it to output
<div></div> without any whitespace.
Thanks
Donal
... more >>
inserting into MS access using ASP.NET/VB
Posted by Kevin at 10/17/2003 5:32:56 PM
Hello experts,
I'm a newbee to ASP.NET. And I have been struggling solving
this problem. But I can't do it. Can you please help me get
over this wall? Below is the code and error message:
<%@ Page Language=3D"vb" AutoEventWireup=3D"true"
Codebehind=3D"RegisterForm.aspx.vb"
Inherits=3D"WebA... more >>
go back from server side
Posted by Bratislav Jevtic at 10/17/2003 5:28:44 PM
hi,
ASP.NET, framework 1.0, patch 2, Windows 2000 server
is this possible: from server side to say "go back" to browser?
-------------------
scenario:
I've got some page with a list. When one clicks some button goes to "detail"
page - for to add/update data. That form may have number of ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
File Download Dialog with aspx files
Posted by timtos at 10/17/2003 5:27:00 PM
Hello.
I am totally new to asp and already have a question.
I have put two files in my wwwroot directory. One
with the ending .asp and one with .aspx. In these files
there is just plain text.
Calling the asp file in the internet explorer shows me the
text, but calling the aspx file the "Fi... more >>
Query and Display an order list using DataList
Posted by homaneag NO[at]SPAM yahoo.com at 10/17/2003 5:26:06 PM
Hi to all,
My database has two tables: order and orderItem. the order table has
(idOrder, name, address, etc) and the orderItem table has (idOrder,
idProduct, Quantity)
I want to present the information using DataList so that for each item
(in itemTemplate) it shows the order information as... more >>
Access is denied
Posted by Marcelo Okano at 10/17/2003 5:23:55 PM
Hey there. I recently moved server, moving from one Windows 2000 server to
another. I have a .NET application linked to a Microsoft SQL database. When
I access the main page of my application, I get the following error:
Compiler Error Message: CS0016: Could not write to output file
'c:\WINNT\M... more >>
how to make asp:textbox printer-friendly?
Posted by Valera Simonov at 10/17/2003 5:23:16 PM
there are some asp:textbox on page which is have to be printed.
printed page looks good until text in the textbox exceeds size of it - in this
case only a part of text printed. can i somehow make textbox differ in size
depending on amount of text it contains?.. any solution i can figure now is to... more >>
Why does downloading a file break the webpage?
Posted by Jeff Cooper at 10/17/2003 4:59:53 PM
There must be something I'm missing. No else else seems to have this
issue -- at least I don't see it mentioned anywhere.
(Also, my appologies for my earlier posts in which I mistakenly referred to
a <Select> tag as a webcontrol dropdownlist. Here's what's happening:
I have a page inside a... more >>
Hooking Post Back Event
Posted by Yovi Oktofianus at 10/17/2003 4:26:07 PM
Hi all,
is it posible to hook every post back event ?
My goal is I want to know which control send post back event to my page
before Page.OnLoad event raised. Or at least in Page_Load event handler i
can find out which control raise it.
Thank's
... more >>
Bizzare session variable issue
Posted by bill joyce at 10/17/2003 4:01:54 PM
I have an app that was running (about 5 pages). I have a session var in
page load (see below) that I use to make sure people login. I added two
pages to the application, on these two pages the session variable is not
being recognized after the first postback. The older pages work fine.
Pr... more >>
System.DirectoryServices
Posted by David M. Weprin at 10/17/2003 4:00:38 PM
Is the System.DirectoryServices namespace not included in VB.NET 2003
Standard Edition? Thanks.
-Dave
... more >>
test if field is null
Posted by Alex at 10/17/2003 3:54:24 PM
Hi,
I have the following line in my code
strSalutation = objReader.GetString(4)
Now if the field is not null every thing is fine, however if the field is
null then an error is thrown.
is it possible to test if objReader is null before I assign it to my
string.
cheers
alex
... more >>
debugging (newbie)
Posted by Ashish at 10/17/2003 3:53:40 PM
hi all,
was just wondering when we start debugging asp .net application in vs,
whats the first point of execution (like the main in other
applications), i wanna trace one application to see what its doing,
thanks
... more >>
Formatting a label
Posted by Klaus Jensen at 10/17/2003 3:32:09 PM
Hi!
If I have a label that displays a price, and I want to apply formatting to
it ({0:C} for instance - displays the value as currency), how do I do that?
It seems like it is not possible.
What would then be the easiest and most correct way to make sure the
contents of the label is displaye... more >>
Can requests for page parts be coerced to the same server in a Web Farm?
Posted by paul.sullivan NO[at]SPAM avotus.com at 10/17/2003 3:16:52 PM
I anticipate a problem that may occur when we deploy our reports on
web farms. We have reports that generate both tabular and graphic
output in a single Recordset pass. Each report page request writes a
temporary graph GIF. Subsequently, another request for the GIF is
issued due to an IMG tag o... more >>
Creating user control/custom image control to handle multilingual site
Posted by SamIAm at 10/17/2003 3:03:28 PM
Hi There
I need to create either a user control or custom control to replace my image
controls. I need to be able to dynamically assign a id and file name to the
control before rendering it.
Any help appreciated,
S
... more >>
COMException Unspecified Error with ADODB and .NET remote users
Posted by Jim Lacenski at 10/17/2003 2:54:06 PM
I have a VB class that uses .NET and ADODB to write into
an Excel spreadsheet (via Jet) on a server as part of a
web application. ADODB is used instead of ADO.NET because
it greatly simplifies the write process, and is supported
for use on a server. (Excel is not supported (1),
licensing i... more >>
System.Web.HttpException: The viewstate is invalid for this page and might be corrupted
Posted by Gvnn at 10/17/2003 2:46:30 PM
Hi,
I've a little problem, i've an asp.net page, with a runat server form,
like this:
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="index.aspx.vb" Inherits="indexGstPro"%>
<HTML>
<HEAD>
</HEAD>
<body>
<form runat="server" method="post" id="indexGstPro">
</form>
</body>
<... more >>
Web.Config and Authentication
Posted by Brian at 10/17/2003 2:26:14 PM
Hi, I have a web application that I have set up that uses the Forms
authentication method. There are 3 web pages that do not want to force the
user to login in order to access. I created a folder and added a web.config
file with Authentication="None" and now I get an error saying the folder
is... more >>
What's the recommended way of using to SqlDataReaders in a loop?
Posted by Rico Alexander at 10/17/2003 2:19:58 PM
When the original has to be open to use its values as a parameter for the
second reader? Is it still possible to use one Connection?
... more >>
memory could not be read
Posted by Larry at 10/17/2003 2:14:19 PM
Hi, I have a asp.net small application that calls a xml
webservice this web service calls into some Vb 6 com
components and then returns a result back to my asp.net
client. The problem is - this works the first time no
problem, if you hit the back button (after results are
returned) and... more >>
Need help with windows form inheritance
Posted by Nathon Dalton at 10/17/2003 1:59:30 PM
I have created a project with a form called SetupBodyTemplate. I have
created a second inherited form called Demographics which inherits from
SetupBodyTemplate. I've created several of these templates that inherit from
the base form, but I'm getting some errors.
'DesignProject.SetupBodyTemplat... more >>
Off topic, but my read only in winxp wont change...
Posted by manokumar at 10/17/2003 1:40:29 PM
hiye, i notice that some if not all of my folders in winxp
pro. are set as read only and its giving me some problem
with development. so as the natural thing, i unchecked the
read only option and click apply then click ok. and when i
right click on the same folder again JUST TO MAKE SURE the... more >>
newb question
Posted by :\\\\derian at 10/17/2003 1:16:14 PM
Hi guys,
Background: VB.net developer
Question: Can i add and access an unmanaged COM dll to my asp.net
project?
Previous Attempt: I added a reference to the DLL in the references dialog.
Declared the variable and when i treid to instantiate it, I got an error!
\\\
dim loCOMDLL as... more >>
does c# have an eval method?
Posted by Will at 10/17/2003 1:11:03 PM
in javascript or the like, when you wish to evaluate a
string you use eval() for instance if you had five text
boxes named textbox1, textbox2, etc. you would write
something like:
for (x=1;x<5;x++) {
eval(textbox + x).text = "item: " + x;
}
how can you do a similar thing in C#? I... more >>
Datagrid, adding a row programatically
Posted by Michelle Stone at 10/17/2003 1:03:35 PM
I want to programatically add rows to a datagrid that is
bounded. How can I do this? The ITEMS property doesn't
seem to have an ADD function.
Thanks... (i gave up on the web form TABLE since it keeps
losing rows during postbacks)... more >>
Trouble creating new directory
Posted by Sheldon Cohen at 10/17/2003 12:12:04 PM
Hello,
I am using c# and running a site that is on a shared
host. The code in question is supposed to create a new
directory that is coming out of a text box.
It works fine on my computer, but I get the following
stack trace:
System.IO.DirectoryNotFoundException: Could not find a
part... more >>
Class in problem in ASP
Posted by Galileo at 10/17/2003 12:06:10 PM
I want to ask some questions about ASP, but not ASP. NET, sorry for my cross post because i don't know where asp newsgroup is
First, is it possible to use user defined class in ASP, if so, how?
and does ASP support something like inheritance? I know vb only support something like interface, is it t... more >>
Keystroke Count
Posted by Herb Stull at 10/17/2003 12:05:25 PM
Does anyone know of a way to count keystrokes client side? My users want to
know how many characters they've typed into a textbox. Picky, picky, picky!
Thanks, Herb
... more >>
How to clear all textboxes on Webform using VB.Net
Posted by Peter Afonin at 10/17/2003 11:59:25 AM
Hello:
I need to clear all textboxes on the webform after the data has been
submitted. How can I do this in one step?
I found a C# code:
// get a reference to your form control
Control frm = FindControl("YourFormID");
foreach(Control ctrl in frm.Controls)
{
TextBox tb = ctrl as TextBo... more >>
javascript problem asp.net
Posted by pl at 10/17/2003 11:33:53 AM
1) build drop down list on server
2) manipulating lists on the client using javascript
3) when postback to server, lost the values that were
manipulated on the client.
4) how we defined to client js
cboInternalOrigin.Attributes.Add
("OnBlur", "CheckRequiredField()")
4) why ? is there anot... more >>
Little offtopic "ASP.NET vs. notouch apps"
Posted by Flare at 10/17/2003 11:09:35 AM
Hi
I just read and experimented with normal .net GUI apps and deployed them
with notouch deployment strategie as smartclients.
Is it just me, or i this an very neglected topic?
For me it seems like the death of complicatet webpages full of hacks, and
the always present problem with browse... more >>
could not open design view???
Posted by Davef at 10/17/2003 11:09:04 AM
When I try to open design view in VS I get that error. Is there anyway
around that?
<td vAlign=bottom noWrap align=right background="<%= Application("AppPath")
%>/images/BarGradient.gif" >
--
______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
davef@helixpoint... more >>
SQL Connexion problem...
Posted by +The_Taco+ at 10/17/2003 11:00:23 AM
Im trying to insert only one row in my database with the SQLClient class.
But I get this error: "Object reference not set to an instance of an
object". Can anyone tell me why I get this error? Here's my code:
Dim cnn As New SqlClient.SqlConnection
Dim cmd As SqlClient.SqlCommand
Dim s... more >>
lopping off the text at the end
Posted by roko at 10/17/2003 10:42:59 AM
How do I lop off a long text at the end in ASP.NET to prevent it from
wrapping? Do I count the number of characters then do a concatenation? Or
is there a better way, i.e. looking at the size of the DataGrid Column then
work our way back with the text size?
This is a long text a ...
This is... more >>
Format datetime...
Posted by Doug Swanson at 10/17/2003 10:37:21 AM
I'm trying to get a datetime value (10/24/2001 6:00 AM) to display as
10/24/01 6:00. I know I could hard code some format but I'm trying to use
the culture info etc. so that (and this is my understanding of it) if in the
web.config I change the culture info to some country that disaplays as
dd/... more >>
the easiest way to convert a .net windows app to web app?
Posted by tom at 10/17/2003 10:27:07 AM
Hi all,
I would like to know what is the easiest way to convert a
VB.net window application to a web application?
Thanks in advance!
tom... more >>
Reverse Web Project Transfer
Posted by John Lundrigan at 10/17/2003 10:24:05 AM
I have a web application on my production server that I need to debug.
The problems is that I don't have permissions from my ISP to be able
to do that. There are two projects in the application, one for the
class libraries used be the web application, and the web application
itself. What I would... more >>
Help with regularexpressionvalidator
Posted by MS Newsgroups at 10/17/2003 10:22:27 AM
Hi,
I am new to Asp and need some help to write an expression to use with a
regularexpressionvalidator. I need to validate that the field meets these
requirements:
minimum of 8 characters
Contain a minimum of 1 lowercase and 1 Uppercase character and one special
character (or digit)
I n... more >>
UserControls
Posted by Dani at 10/17/2003 9:52:15 AM
hi
First of all: sorry for my bad english :-)
I've got a problem with usercontrols - and no idea how to fix it! :-(
I had registered a usercontrol navigation.ascx in the common-way
(page-directive and declared in aspx-page). This usercontrol has several
linkbuttons in it, who raises click... more >>
Need to find a Control to use.
Posted by Nat at 10/17/2003 9:37:06 AM
I need to view and select cells on a grid or table on a
web form. would like to be able to select one cell or
drag the mouse over several cells to get multiple cells at
once. looking for a control or method to do
this. etc...
... more >>
Can't debug server side ASP.NET code in one module (aspx.cs)
Posted by Joe Rattz at 10/17/2003 9:35:34 AM
I have a web page (aspx and aspx.cs) that I cannot debug
for some reason. The breakpoint will have the little red
dot with the question mark and the tooltip says "The
breakpoint will not currently be hit. No executable code
is associated with this line." I can debug another page
that is... more >>
want to link form.submit to button_clik method
Posted by Billy at 10/17/2003 9:33:42 AM
Hi.
I'm new to asp.net and I'm trying to create a confirm
dialog box using the confirm() javascript function that
will pup once the submit button is pressed. My problem
is when I call document.forms[0].submit() in the script,
I would like to execute the code in the click event of
the s... more >>
Uploading files ...
Posted by Gary at 10/17/2003 9:29:56 AM
Hi all,
I am trying to upload file (>500 MB in size) from my webform.
Bandwidth is not a issue as the asp.net application would be used in the
Intranet environment.
Can someone plz suggest any asynchronus way of inserting records into
database from a dataset ?
Also, is there any ansync... more >>
asp.net authentication
Posted by JGarcia NO[at]SPAM parkerinternational.com at 10/17/2003 9:15:52 AM
I have a login page. When the user logs in, I insert 1 frame into the
page and on that frame I navigate through the application, this is so
the URL doesn't display on the address bar. For some reason, when I
log out of the application back to the login page, if I hit refresh,
it will automatical... more >>
async process for bulk emailer
Posted by Max at 10/17/2003 9:15:38 AM
Just a simple question, can I run an asyc process on the server (with
ASP.NET) for hours at a time to do things like send bulk emails? Are there
some restrictions and timeouts that are set by the hosting companies? I use
shared hosting.
-M
... more >>
Page_Load called twice???
Posted by Andy at 10/17/2003 8:28:15 AM
Visual Studio 2003 web form problem using C#.
My Page_Load or OnInit routines seems to be called twice
for every post back to the server.
I have 2 web forms that produce this behaviour, all of
the others just run these routines once.
Any ideas!
... more >>
forcing a user control to update??
Posted by Philip Townsend at 10/17/2003 8:02:23 AM
I have a user control which displays the contents of a shopping cart. I
wnat it to update everytime an item is added or deleted from the cart. I
have created a button which edits a Session object, then I want the
usercontrol to display the contents of the session object. Problem: The
user contro... more >>
Pgae Directive
Posted by Jim Heavey at 10/17/2003 7:36:01 AM
Is the Page directive only go on ".aspx" pages? I think the answer is yes,
but I am not positive. I am trying to figure out why a called class can not
be found and I was wondering if I should place a page directive on the class
which I am trying to call.
In my situation I have "MyPage.aspx" ... more >>
Panel Control -- can't place controls...squished together?
Posted by KatB at 10/17/2003 7:02:54 AM
Hi,
Am I missing something re: the panel control? I finally have a use for
it, but when I put other controls into it, they squish up (yes,
technical term!), and I can not move them into other positions.
???
Thanks, Kat
*** Sent via Developersdex http://www.developersdex.com ***
Don't ... more >>
Databinding
Posted by Arne at 10/17/2003 6:42:44 AM
What is the source of the "Index 0 is not non-negative and
below total rows count." error message when I do a
databinding? (I know that I have no matching record). Is
that a normal error message when there is no record to be
found?... more >>
URL format string based on 2 data columns?
Posted by jib at 10/17/2003 6:40:47 AM
Hiya,
I have a data grid with one column being a "hyperlink column". I want to use
this column to jump to another aspx page based on two different column
values from the underlying dataset. Setting up a hyperlink based on a single
column is simple:
URL field: VariableA
URL format string: ... more >>
Active Directory on another domain
Posted by Christian Jacob at 10/17/2003 6:34:09 AM
Hi there,
I've got the following problem:
We've got a productive Active Directory on a domain
controller in our company. My project will have to handle
data from that AD. So that there cannot happen anything
bad to the productive one, we set up a new Windows 2003
server with an own DC an... more >>
Can't get Trace to work when used in .cs class
Posted by Joe Rattz at 10/17/2003 6:20:03 AM
I can get the Trace.Write() to work if I put the code in
an aspx.cs file. But, I have a (C#) class called by my
aspx.cs code that also has Trace messages, but none of
them show up in the Trace file, Trace.axd. Does anyone
know why?
Thanks.
... more >>
Is there anything wrong with my insert code?
Posted by Mano kumar at 10/17/2003 5:27:34 AM
hello guys, i'm having a very strange problem, this is a
simple insert code. andthe insert stmt has NO problem cos
i've tried it on my access table.
and heres the error msg
Operation must use an updateable query.
Description: An unhandled exception occurred during the
execution of the ... more >>
Urgent Need a solution
Posted by greesh maheshwari at 10/17/2003 5:02:18 AM
i am successfull to Create the Project on the Remote Web Server, now i
want to add a Class Library in same project, but the following Error
Occur.
1)The project is not filly trusted by the .net runtime. This usually
because
it is either a network share or mapped to a network share not o... more >>
Is it possible to check the existence of a URL in asp.net?
Posted by TaeHo Yoo at 10/17/2003 3:02:10 AM
The senario is we have a table that contains a number of URLs and we
want to check periodically that they exist. If not, then we will create
a report and send it to a admin.
So what I need to do is something like this,
---------------------------------------------------------------
run sche... more >>
Is it possible to check the existence of a URL in asp.net?
Posted by yootaeho NO[at]SPAM yahoo.com at 10/17/2003 2:47:19 AM
The senario is we have a table that contains a number of URLs and we
want to check periodically that they exist. If not, then we will
create a report and send it to a admin.
So what I need to do is something like this,
---------------------------------------------------------------
run sche... more >>
Insert records into database based on query
Posted by Andrew Bourne at 10/17/2003 2:01:36 AM
I would like to insert multiple records into a table
based on a query returned from the same table. For
example a datareader returns 3 records containing the
following records
user1 file1 group1
user1 file2 group1
I would then like to insert records into the table based
on the datare... more >>
Could not load type
Posted by Kevin Quigley at 10/17/2003 1:26:48 AM
Hi,
I have a small web application on my own machine and I am
trying to copy it to our web server. I am doing this by
copying all the files if the project from my machine to a
folder on the web server.
The application runs fine on my machine but when I try to
access it on the web serv... more >>
smartNavigation & Style Sheets
Posted by Seb at 10/17/2003 12:21:46 AM
Hello Everybody,
When using smartNavigation, after a ComboBox-selection
css-settings no longer take affect.
with smartNavigation="false" this is all right, but the
ComboBox looses Focus - off course.
Any hints?
Seb... more >>
|