all groups > asp.net > march 2004 > threads for thursday march 18
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
need advice
Posted by kreso at 3/18/2004 11:36:05 PM
i dont understend how can aspx be faster then standard asp pages, when on my computer asp parses 2-3 times better then .NET. i got feeling that something is blocking or making the engine tired. i mean, when i first fire some page it took a while, but after calling it again it has better response
i... more >>
Not to validate whole page
Posted by Hardy Wang at 3/18/2004 10:42:14 PM
Hi all,
I have an ASPX page with several controls to be validated on clicking
some button. I also have a ASCX control in this page.
Is there a way I can control the button in ASCX control only to validate
input within ASCX control range? Right now, when I clicked button in
customer cont... more >>
Is there a way to detect the cause of a postback?
Posted by Paul at 3/18/2004 9:58:07 PM
I'd like to set a DataView on a DataGrid during Page_Load() but only if
the page is loading because of it being hit by a response.redirect from
another page. Is there any way to detect what entity causes a postback?
Page_Load() itself offers very little because sender is always an entity
on t... more >>
Hierarchical allow only one relations at a time
Posted by Gene Ariani at 3/18/2004 9:02:10 PM
Hi;
I have a hierarchical dataset that I would like to show in a grid. When I
set a relationship between A and B I can expand B to see the detail and When
I set a relationship between A and C it also works. The problem it appears
that the code only accepts the first relation and ignores the ot... more >>
DataGrid with DropDownBox
Posted by Mark at 3/18/2004 8:58:21 PM
G'day,
I'm having trouble switching from asp to asp.net, and i'm trying to
create a list from a database using a datagrid but i'm not sure how to
go about it.
i need a grid that displays two coloumns from a databasem, and three
other coloumsn that have dropdown boxs that the user can cha... more >>
Web page Templates in ASP.net?
Posted by nikhil_r_garge NO[at]SPAM yahoo.com at 3/18/2004 8:29:04 PM
How to create web page templates in ASP.net as in Dreamweaver with
editable regions and non-editable regions?
Thanks,
Nik... more >>
How to display a simple please wait on button click
Posted by E43509 at 3/18/2004 8:06:08 PM
Newbie to asp.net using vb.ne
Using javascript, I know how to add to an onClick event on a button to display a please wait in a div as my slow connection processes data. When I do this in asp.net the form does not submit.
How do I accomplish this task
Thanks... more >>
Figuring out mime type?
Posted by Amil Hanish at 3/18/2004 7:31:39 PM
Using just a file name, or a URL, is there a way to figure out the mime type
of a file? I want to store this so later on I can stream it back via http,
but I must want to know the correct mime type.
For file names found on a disk, how could I figure out the mime type?
For URLs, without down... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP .Net Versions.
Posted by Adam Knight at 3/18/2004 7:06:38 PM
Is there any major difference between asp.net version 1.0 and 1.1.
I can purchase a book (ASP.NET wrox press) on version 1.0 very cheaply but
wonder if it is worth while ???
... more >>
The Best Book
Posted by C# newbie at 3/18/2004 6:44:21 PM
Hi,
I know some of you guys have lot of expereince, so I need you to tell me
what would be the best book to start ASP.NET. Just as reminder I'm a C++/C#
programmer and need to get familar with web programming and AP.NET. Any
suggestions ?
Thanks
Newbie
... more >>
Default Button in Web Page
Posted by Bob Mixon at 3/18/2004 5:33:30 PM
All,
This question, I hope, has a simple answer. I have a .net web page,
basically a form. Included on this form are a number of text boxes and a
few buttons. As one would expect with a form, when the focus is in a text
box and the user presses the <Enter> key, one of the buttons is pressed... more >>
How to run a CLient Side Function for a <asp:button >
Posted by RSB at 3/18/2004 5:12:24 PM
Hi Every one,
Having tuff time to make this work ..
i want to have a button and on my form say Delete button. So once i click on
it i want to confirm "Are you sure?" on the Client Side and if client select
"Cancel" then i want to ignore the action and if "OK" selected then i want
to Execute a... more >>
DataSets & DataAdapters
Posted by Z D at 3/18/2004 5:03:41 PM
Hello,
here's the situation:
I have a query that returns 2 columns of data from a table. This data is
loaded into a typed dataset (DS).
I display each column's data in a text-box in ASP.NET.
Now, I dont want to have to save the DS or its corresponding dataadapter in
session or viewsta... more >>
Button does not respond to click event
Posted by Jeremy Ames at 3/18/2004 5:01:25 PM
I am using C# to create a web form. I have got a button that I am trying =
to debug but the program doesn't ever stop at the event procedure for =
the button. Here is all of the pertinent information:
aspx file:
<asp:button id=3D"btnEditEquipment" runat=3D"server" =
CausesValidation=3D"Fal... more >>
Inheritance
Posted by Andrea Williams at 3/18/2004 4:42:57 PM
I'm trying to add common functionality to each of my ASPX page, using =
inheritance from a project class out side my web class. When I do that, =
the Web Forms Designer does not load.
public class UserRegister : WebBaseClass=20
{
}
//In a different assembly
public class WebBase... more >>
How to create a DLL out of web application!
Posted by Santosh at 3/18/2004 4:41:20 PM
Friends,
I am new to aspx.
If I have a webapplication called WebApplication1, how does the Visual
Studio convert this application to a DLL in Visual Studio.
I would like to do this, since I am using an online demo of Visual Studio,
and I do not have a VS on my machine how do I make a DLL ou... more >>
Help with simple HTML table formatting
Posted by Bill Borg at 3/18/2004 4:41:06 PM
Hello all
I'd like to set up a master table behind my page, with room for a single-row header at the top, and another single column down the left. I'd like each of these to always grow/shrink with the browser. When the code below runs, you see a small break between the top row and the left colum... more >>
How to get reference to parent class from user control?
Posted by Brent at 3/18/2004 4:10:12 PM
This is one of those issues where I'm wondering if i'm going about this the
right way...
In a user control, I need a reference to an instance of the parent page's
class. How do you get it?
--------
Why do i need it? I have a page, Page1, with 2 user controls: UC1 and UC2.
The 1st user ... more >>
problem registering events in class heirarchies in asp.net
Posted by jpugh NO[at]SPAM gladstone.uoregon.edu at 3/18/2004 3:57:30 PM
I am using visual studio.net to do my work and I have a base page
class that my other page classes derive from. the base class has on
OnInit method in order to register the InitializeComponent method
which is where vis stud automatically adds event handlers for the
various objects in the asp.ne... more >>
Prevent page from being cached on client, but do cache images.
Posted by moondaddy at 3/18/2004 3:51:31 PM
I'm using vb.net 1.1 and have a bit of a catch 22 situation. I have a login
and logout button and code. I'm using frames (header, left side menu, and
main where the various pages load). When the user clicks the logout button
in the left side frame this jscript runs:
parent.main.frameElement... more >>
Need DropDownValidator Control
Posted by Jonathan Wood at 3/18/2004 3:50:13 PM
I need a validator control to fail if the first item in the dropdown list is
selected.
I'm new to .NET and am finding the problems associated with writing my own
(custom controls, client-side event handlers, etc.) more than I may want to
take on.
Thanks for any suggestions of where I might ... more >>
send email from form with dynamic data
Posted by nicholas at 3/18/2004 3:30:55 PM
I have a shopping cart on an aspx page.
Let's say the buyer bought 2 products.
The buyer sees 2 products he bought and also has to fill in his personal
data in a webform.
When he submits the form, an e-mail should be sent with all the products he
bought and his personal data.
Transmitting ... more >>
aggregate from datatable
Posted by MattB at 3/18/2004 3:17:35 PM
I know I could loop through the rows in a ado.net datatable to do this, but
is there a way to do the equivalent of "select sum(fiieldname) from table
where..." in a nice concise way? Thanks.
--
Matt
"Gravity. It's not just a good idea, it's the law!"
... more >>
adjustable colwidths in datagrid?
Posted by Rich at 3/18/2004 2:48:07 PM
Hello,
How can I make the column widths in a datagrid control in
an aspx adjustable? I am using vs.net2003. Do I set a
property(s)? or is it code - or is it even doable?
Thanks,
Rich... more >>
DropDownList SelectedValue? Or ClientID?
Posted by Richard Morse at 3/18/2004 2:36:14 PM
Hi! I'm trying to use a DropDownList in an .aspx file that bases data
off of a database. I'm using the .NET Framework 1.1. According to the
documentation, I should be able to assign a value to the SelectedValue
property, and this would tell the DropDownList to use a particular value
as th... more >>
Whidbey UI Question
Posted by Mark Jerde at 3/18/2004 2:18:08 PM
Sorry but I don't have time to research or use Whidbey at present...
I love the power of VS .NET 2003 but I really miss VB6's MDI environment. I
develop on a 4-monitor desktop and because I haven't hit the lottery only
one is a 21". ;-) (The 4th monitor is a 17", very useful for testing at
... more >>
Always get exception for: response.Redirect(url)
Posted by moondaddy at 3/18/2004 2:11:03 PM
I have some code I'm using from the OpenHack4 sample app from MS which
redirects a page to another page. Everytime I run the code I get an
exception, however the page still redirects to the correct page. I have
some other problems I'm trying to debug just after this code runs and I
don't know ... more >>
Failed to start monitoring file changes
Posted by M K at 3/18/2004 1:51:08 PM
Has anybody gotten this
Access denied to 'C:\inetpub\secure\menu.aspx'. Failed to start monitoring file changes.
It happens when I add the <identity impersonate="true" userName="Domain\user" password="password"/> tag to the web.config file
Any ideas why?... more >>
Repeater control
Posted by sourabh at 3/18/2004 1:44:33 PM
HI
I Have repeater control which is tied to a template which looks like
<tr
<td width=3D"40%">
<%# DataBinder.Eval(Container, "DataItem.Name") %>
</td>
<td width=3D"15%">
<input type=3Dradio name=3D<%# "status"+DataBinder.Eval(Container, =
"DataItem.Id") %> value=3D<%# "status1"+Data... more >>
How would you do this...
Posted by Brian W at 3/18/2004 1:33:06 PM
....or would you?
In order to minimize the number of bytes a pages consists of (to minimize
download time), and, admittedly, to disguise my HTML a little, all my pages
derive from a base class that I derived from Page.
In this class I override the Render method and do what is shown in the co... more >>
ASP debugging in .NET
Posted by John Morsley at 3/18/2004 1:27:12 PM
I have set up VS2003 to debug "normal" ASP pages. It works fine, except
that the web site uses virtual directories to point to various physical
directories on the hard disk. These don't appear when I attempt to debug
the application.
Any suggestions?
John
... more >>
JavaScript to "click" Dynamically Created HyperLink
Posted by Dewek at 3/18/2004 1:23:14 PM
I'm dynamically creating a few hyperlinks. After they're loaded, I want to
programmatically "click" the last one. I plan to use RegisterStartupScript
to do this, and just need the required JavaScript.
Thanks!
... more >>
How to cancel client side validation control from server when page loads
Posted by moondaddy at 3/18/2004 1:00:04 PM
I'm running vb.net 1.1 and have an aspx page with some textboxes and
required validation controls on it. Depending certain conditions (server
side) I'm setting a few of the textboxes to not visible when the page loads,
however, these textboxes still have a required validation control associated
... more >>
Creating and writing to a text file
Posted by amessimon at 3/18/2004 12:54:51 PM
Hi i need to create, and write a string to a text file, and then save the
text file in the root directory of my application.
What is the best way to do this? Could anyone provide me with a code example
in VB?
Thanks in advance
Simon Ames
... more >>
Why more Single-Page support in Whidbey?
Posted by Bruce W.1 at 3/18/2004 12:36:06 PM
In the upcoming Whidbey version of Visual Studio, there will be more
support for Single-Page Architecture (as opposed to code-behind).
For more information read this:
http://www.asp.net/whidbey/whitepapers/VSWhidbeyOverview.aspx?tabindex=0&tabid=1
Does anyone here know the motivation for th... more >>
Convert .jsp to .aspx
Posted by Howzit at 3/18/2004 12:28:53 PM
Hi
We have a website that is in .jsp with a mysql database.
How involved would it be to convert the front end to .aspx? Would it be
possible to copy / paste the .jsp into the .aspx pages, and run it as
embedded java script?
Would it be more adviseable to redo the whole site and start from... more >>
How to read output parameter returned from a function as sqlDataReader
Posted by reddyvsk NO[at]SPAM yahoo.com at 3/18/2004 11:56:46 AM
Code:
-------------------------------------------------------------------------------'stored
procedure
CREATE PROCEDURE SP_Test( @id as varchar(50), @supname as varchar(50)
output ) as
Declare @sid as varchar(10)
select lastname +''+firstname from employees where id = @id
select @sid =... more >>
Style Sheet not loading
Posted by dotnetboy2003 NO[at]SPAM yahoo.ca at 3/18/2004 11:53:03 AM
Hi there, I'm a newbie in using style sheet (.CSS file).
When I developed the ASP.NET pages on my desktop, everything was
working and looking great.
When I uploaded the files (ASPX, CSS, etc) to the web server, the
styles didn't appear although all logics were working.
After searching on ... more >>
ASP.NET Controls Don't Render
Posted by Kareem Shaker at 3/18/2004 11:46:15 AM
I have recently installed VS.NET on a Windows Professional Edition and of course installed IIS but the problem is that when I just make a simple web form it does not render at all I mean when I add any server controls like <asp:Button .... et
or a textbox or any server control the tags are just sen... more >>
Component/control to create Amazon.com-style ratings?
Posted by John Buchmann at 3/18/2004 11:00:29 AM
You know how sites like Amazon.com has a feature where
customers can "rate" and/or "review" a product? You
would give it a star rating, and a descriptive review.
Does anyone know of a .net control or component that can
help me w/ this?
Thanks!
John... more >>
Compilation question - nearing wits end!
Posted by Bob H at 3/18/2004 10:56:31 AM
Hi,
I've had to go back to a creating simple app to see if I can find out what
is going wrong with an app I've done. I've been trying various ways and they
all work on my local dev PC (using inline code, code behind, compiling
business dll,compiling code behind file into dll). The following is... more >>
ASP.NET SQL connection problem
Posted by udgund NO[at]SPAM yahoo.com at 3/18/2004 10:49:42 AM
I'm having a problem connecting to a MSSQL server database from an
ASP.NET page. Here's the connection code I'm using:
<%@ Page Language="c#" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<script runat="server">
void Page_Load()
{
... more >>
Insert record into bound datalist or OleDbDataReader
Posted by Steven K at 3/18/2004 10:45:10 AM
Hello,
I am binding data from a stored procedure to a datalist:
Dim spCategoryList As OleDb.OleDbDataReader
Dim cmdCategoryList As New OleDb.OleDbCommand("sp_web_Search", cnnSearch)
cmdCategoryList.CommandType = CommandType.StoredProcedure
spCategoryList = cmdCategoryList.ExecuteReader()
d... more >>
Making a subdirectory into an application causes inherits attribute to "lose" reference to .vb code
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 3/18/2004 10:39:27 AM
Hi all, this is a fairly trivial question, but I can't seem to figure
it out.
My set up is I have a directory - let's say:
c:\blah\foo
That directory is mapped to the virtual directory:
http://localhost/test
I have a bunch of .aspx and .vb files in that directory and it all
works fine.
... more >>
PayPal IPN problem...
Posted by Greg at 3/18/2004 10:33:44 AM
I have code (below) that was working a year ago that I'm trying to use again
and it's now not working. The response is always "invalid". Anyone know
why?
Code:
Function GetPayPal() As Boolean
Dim myRequest As HttpWebRequest =
CType(HttpWebRequest.Create("https://www.paypal.co... more >>
Question: MSDN Universal - Too good to be true?
Posted by VB Programmer at 3/18/2004 10:10:44 AM
I am going to be an independent sw consultant/programmer.
Instead of purchasing VS.NET 2003, Office XP, etc... isn't it CHEAPER to buy
the MSDN Universal?! It's seems like there's a catch because it's too good
to be true. Don't you get ALL this software + more with the 1 year
subscription?
... more >>
Submitting a form from the Server
Posted by thalko NO[at]SPAM juno.com at 3/18/2004 9:44:40 AM
Hi and help!!!
i am building an application that is supposed to do validation(Zip
Code) on the server. The unfortunate thing is I have been told that i
need to use a 3rd party's website to do this validation. This is how
it needs to work:
1.) the user will enter the zipcode in my webform an... more >>
Letting a user option to download files
Posted by RA at 3/18/2004 9:43:19 AM
Hi
After I get the user entering the information, I would like to start
downloading a file when he clicks the submit(server side) button. I don't
want to give access to the downloaded file directly but only to be able from
the server side to download the file to the client (Basically I don't w... more >>
inserting data into a database
Posted by dana_livni NO[at]SPAM hotmail.com at 3/18/2004 8:57:39 AM
i'm trying to insert data into a database.
this is what i wrote:
<%@ import namespace="system.data" %>
<%@ import namespace="system.data.oledb" %>
dim objconn as new oledbconnection("provider=microsoft.jet.oledb.4.0;"
& "data source=C:\Inetpub\wwwroot\asp.net\1.mdb")
objconn.open
dim my... more >>
Question: Using frames
Posted by VB Programmer at 3/18/2004 7:47:38 AM
Can you design a HTML webpage with frames in VS.NET? If so, how?
... more >>
Running multiple ASP.Net applications on the same IIS virtual directory
Posted by ronniek NO[at]SPAM netvision.net.il at 3/18/2004 7:33:41 AM
Hi,
I have several ASP.Net projects I created and I want to run them on
the same on a single IIS virtual directory
can someone help
Ronnie... more >>
Launching an EXE from ASP.Net
Posted by rozdelisi at 3/18/2004 7:31:06 AM
Whenever I launch an application from asp.net, the exe shows up in Task Manager, but the GUI never displays. I've tried it many different ways using the system.diagnostics.process class and nothing works. I even tried launching notepad.exe and all I got was 8 separate instances of notepad.exe in the... more >>
binding data to a dropdownlist Question
Posted by oakleyx NO[at]SPAM hotmail.com at 3/18/2004 7:10:56 AM
hi,
I'm a newbie to asp.net.
I have a dropdrown list
<asp:dropdownlist id="department" runat="server"
DataValueField="departmentid" DataTextField="departmentname">
<asp:ListItem Value="0">No Department</asp:ListItem>
</asp:dropdownlist>
The problem I'm having is that when I bind... more >>
Session timeout
Posted by James at 3/18/2004 6:06:05 AM
I have two web server hosting the same web service, one is windows 2003 server with IIS 6.0 and XP with IIS 5.1
In web.config, I changed timeout from 20 to 600 like below
<sessionState
mode="InProc
stateConnectionString="tcpip=127.0.0.1:42424
sqlConnectionSt... more >>
Load image
Posted by Roland Wolters at 3/18/2004 5:27:02 AM
Hi,
I need to build a webpage that shows the pages of a mutlipage tiff file. I
cannot load it directly into the System.Web.UI.WebControls.Image but I can
load it into a System.Drawing.Image. I can select a page with
SelectActiveFrame. Now how can I load this image in the webcontrol? Sure I ... more >>
Uploading files with Visual Studio 2003
Posted by postings NO[at]SPAM alexshirley.com at 3/18/2004 5:16:48 AM
Hi
Currently I upload my ASP.Net web application by copying over files
from my local server to the web hosting provider using explorer and
ftp.
Is there a better way using the Visual Studio.Net 2003 environment?
Can you do a deploy somehow or do something along the lines that
dreamweaver a... more >>
ASP.Net On Windows 2000
Posted by Jim Heavey at 3/18/2004 2:50:22 AM
Hello, I have installed Visual Studio.Net on a windows XP Pro workstatiion,
but now I am going to install it on windows 2000. I currently do not have
Admin rights to this machine, but that is in progress. I also to not have
the Windows 2000 Installation CD.
My question is - Must I obtain ... more >>
Execute client side jscript on page load based on server side logic
Posted by moondaddy at 3/18/2004 12:29:42 AM
I'm using vb.net 1.1 and have an aspx page that I want some jscript to run
when the page loads on the client. Also I want this script to use logic
provided from the server in the Page_Load event. for example, if some
server side logic were true then when the page loads I would want the script
... more >>
Datagrid and hidden unique ID columns
Posted by paul.rogan NO[at]SPAM totalise.co.uk at 3/18/2004 12:26:40 AM
Hi,
I am using Datagrid quite a lot to show lists of items from a database
that I might want to delete / edit.
These database entries are uniquely identified by a single integer ID
field and when I edit/delete I want to use this primary key to pass
into stored procedures used to edit/delete... more >>
|