all groups > asp.net > april 2004 > threads for friday april 16
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 Create a menu(ASP.NET)
Posted by Raghu Raman at 4/16/2004 8:47:36 PM
Hi,
I am new to .net and got a good foundation in Vb and i hope i am picking
up the .net framework.
I could easily create a menu item in VB.NET
But
How to create a webpage with menu items IN ASP.NET .
thanks
With Regards
Raghu
*** Sent via Developersdex http://www.devel... more >>
IFrame
Posted by source at 4/16/2004 8:33:34 PM
I have an HTML page, I used an IFRAME within an HTML page.
I am displaying data from database within the IFRAME using a grid.
Can I just update the IFRAME without refreshing the whole page.
Will I have to use IHTTPHandler for this?
... more >>
problem using Image control in DataList
Posted by Vitalii at 4/16/2004 7:46:02 PM
Hi
I am using Image control with DataList control but have a problem. Here is the code I am using
<asp:Image ImageURL='<%# DataBinder.Eval(Container.DataItem, "imagefilename" ) %>' Runat="Server" /
I would like to change it to something like this
<asp:Image ImageURL='images/<%# DataBinder.Ev... more >>
Web User Control
Posted by Chris at 4/16/2004 7:07:10 PM
Hi,
I want to create a User Control that shows a registration page on first
visit, or if the visitor has already registered (this session)
shows a list of files for download. I will be using cookies to manage the
registered user's sessions.
In the Page_Load method i check if the cookie exis... more >>
Phone Number Validation with Three Text Boxes?
Posted by Jeff Kiesel at 4/16/2004 6:16:17 PM
Has anyone used three textboxes for phone number input and successfully
validated it?
One textbox for area code, one for exchange, one for number. (yes, we're
only doing US numbers) :o)
... more >>
VBscript parsing in IIS
Posted by AT at 4/16/2004 5:44:28 PM
I have the ASP page
<%@ Language=VBScript %>
<%
Option Explicit
Response.End
A = b
%>
On some servers I get parsing error on some I don't
Error says that variable A is not defined.
This is understandable but the script is not even supposed to get to A = b
line
because of Respons... more >>
Help This Is Killing Me: Access to the path is denied
Posted by moondaddy at 4/16/2004 5:08:16 PM
This has worked before but not now for this project. I'm using vb.net and
web services to talk to IIS and read and write to files (image files). I've
gone in to the IIS MC and assigned write access to the folder. The I went
into window explorer/props/security on this folder and assigned every ... more >>
Role-Based Authorization
Posted by PTB at 4/16/2004 5:01:03 PM
I am using ASP.net with Access as my database. I would like to use role-based authorization for my login page. Can anyone help me? Thanks!... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
User Control design Question
Posted by Andrea Williams at 4/16/2004 4:37:04 PM
I have several User Controls and I will need to fill some of the Web Form
Controls in them with data from the database. So here's the question:
Should I write the code to bind a RadioButtonList control to a dataset
inside the code-behind for the UserControl?
or
Should I create a method calle... more >>
How send SP parameters to the function, which creates dataReader
Posted by simon at 4/16/2004 4:29:16 PM
Always when I need data reader in my programs, I simply have functions,
which creates it for me:
Dim rdr As SqlDataReader
dim sql as string
sql="myStoredProcedure"
rdr = createDataReader(sql, False)
And the functions are:
Function createDataReader(ByVal sqlStr As String, Optional ByVa... more >>
Complex update Command objects
Posted by Mervin Williams at 4/16/2004 3:42:51 PM
If my SelectCommand points to a stored procedure containing a select
statement which joins two tables, my DataTable will consist of the results
of the query. Here is my statement:
SELECT * FROM Contact INNER JOIN Company_Contact ON Contact.contact_id =
Company_Contact.contact_id WHERE (Company_... more >>
Retrieving SQL table properties
Posted by Vik at 4/16/2004 3:27:34 PM
What is a method to create a datatable containing the properties of an SQL
Server table?
Thank you.
... more >>
machineKey values: how?
Posted by TK at 4/16/2004 3:24:48 PM
How can I get my unique key values for the "validationkey" and
"decryptionkey" attributes in a <machineKey> element in my web.config?
Is there any tools I can use for?
Any input would be highly appreciated.
TK
... more >>
Connecting to SQL Server 2000
Posted by Andy at 4/16/2004 3:11:04 PM
I am trying to connect to SQL Server 2000 from asp.net and I keep getting an error "Login failed". Everything is working fine in test server but the production server is having a problem Test SQL is 7.5 abd production SQL is 2000... more >>
WebUIValidation.js error
Posted by Ron Rasmssen at 4/16/2004 3:01:04 PM
I have read all of the questions about the error: Unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js'. Try placing this file manually, or reinstall by running 'aspnet_regis -c'
I have tried to make sence out of the advise but I can't get this thing to work. Since ... more >>
Creating a "Web Application" in the IIS Docroot in VS
Posted by Alex Maghen at 4/16/2004 2:51:18 PM
I'm not sure if the question belongs in one of the Visual Studio boards or here but it's like this
In Visual Studio.NET, if I want to create a Web Application, I seem to have to create it UNDER the IIS docroot as a Virtual Directory but not at the docroot itself. What if I want my application to b... more >>
CACHE PROBLEM !
Posted by Kruno at 4/16/2004 2:43:25 PM
Hi !
My problem is :
I have a link on my secure part of web site with which user can signout...
Along with that below link is users name under which user signs in..
When user presses that link he is redirected to default
starting page and on the way I call the Session.RemoveAll,
FormsAuthent... more >>
DataGrid Column Width is broken - is this a bug?
Posted by Jeremy at 4/16/2004 2:35:47 PM
I have googled for this issue, and many other people have the same problem
with no resolution. The data grid column sizes automatically resize based
on their contents no matter what the Style.Width is set to. I was looking
at the HTML output, and the values I entered for Width does not even get... more >>
Passport authentication -- how can I debug it?
Posted by Stan at 4/16/2004 2:31:05 PM
Is it possible to debug a web site with password authentication in PreProduction mode
Here is what I have done
- Installed Passport SD
- Set Password authentication in web.confi
- Created PassportIdentity object in the asp.net web pag
Here is what is happening
- LogoTag returns me a url to... more >>
asynchronous asp.net
Posted by Alex Wagner at 4/16/2004 2:29:09 PM
could somebody show me how to asynchronously call some methods from a web
service? I'm kind of fuzzy on delegates, IAsyncResult, etc...
1. web service is being called by outside source
2. web service calls method "startProcessing" in business layer
a. fires off asynchronous method querying... more >>
How to redirect
Posted by nonospam NO[at]SPAM wowway.com at 4/16/2004 2:17:03 PM
All,
I am using Form Authentication with Roles.
E.G. PageA.aspx is permitted for Role "Admin",
and PageB.aspx is permitted for Role "Basic".
When a user of "Basic" role try to access an "Admin" page directly,
Login From shown and he enters his username and password.
He is then AUTHENT... more >>
use of panel inside datagrid
Posted by Fre at 4/16/2004 2:05:09 PM
Hi,
Someone who can give me a tip how i can use a panel inside a datagrid?
Thx in advance!
Frederik
... more >>
OLEDB database connection from ASP.NET
Posted by louise.hadley NO[at]SPAM hadleybain.com at 4/16/2004 1:34:55 PM
I can connect to a Sybase database from a WindowsApp project without
any problems, but when I use the same code to connect from an aspx.vb
file I get an OLEDB exception "Database server not found".
Code is:
Imports System.Data.OleDb
Public Class WebForm1
Inherits System.Web.UI.Page
... more >>
~ character
Posted by suzy at 4/16/2004 1:18:04 PM
i have seen examples where the ~ character is used in the web.config file
when storing directories.
eg: ~/files/data.xml
what does that character mean?
... more >>
Using Regular Expression Validation
Posted by Coleen at 4/16/2004 1:06:55 PM
I can't remember the correct way to write a custom regular expression validator, and the help file for VB.net is not terribly helpful...it does not give any real world examples. I've got the main syntax of ^[a-zA-z] but I can't remember how to write the next portion. I need to validate passwords..... more >>
Javascript label change with browser back button
Posted by dotnw NO[at]SPAM hotmail.com at 4/16/2004 1:02:36 PM
Hello.
I have an aspx page that changes an HTML label's text using
javascript.
After the label's text has been changed in this way, I redirect to
another aspx page.
If I then use the back button on the browser, the label has lost it's
newly changed value.
Do you know how I can make su... more >>
Session_end, User Identity and resource cleanup
Posted by Dan Walls at 4/16/2004 12:49:43 PM
Hi,
I am looking to clean up some database locks whenever a user session ends. A
user session ends whenever they:
a. shut down the browser and the session times out after 20 mins (20 mins is
the default)
b. they click logout button and I call session.abandon()
However a user session ID c... more >>
Unable to Kill aspnet_wp.exe
Posted by Microsoft at 4/16/2004 12:42:08 PM
I have Windows 2000 Professional as OS and have Visual Studio 2003. I am
unable to
End Process from Task Manager for aspnet_wp.exe.
I get a message titled "Access Denied".
Can anyone help ?
Thanks
Rama K.
E-mail: ramas@phxa.com
... more >>
Dataview into new table ???
Posted by Sjaakie Helderhorst at 4/16/2004 12:15:12 PM
Hi,
I've come a stage that I'm feeling an absolute idiot.
Struggling with this issue for days and can't find a suitable answer.
Have this dataset which 'amount' value can be updated. Need to send all
records with 'amount > 0' to a webservice as a Datatable. (Ignorant as I
might be) I Dim a ... more >>
ftp upload with mac browser using asp.net
Posted by psb at 4/16/2004 11:55:42 AM
I have a file upload Web page using
System.Web.UI.HtmlControls.HtmlInputFile. Anyone have any issues uploading
files using MacOS browsers of any sort?? Almost all of them bomb on our
server. Is there something I need to put in the web.config or page
directive that will allow ftp uploading on ... more >>
signout and browser back button
Posted by Kruno at 4/16/2004 11:52:07 AM
Hi !
My problem is :
I have a link on my secure part of web site with which user can signout...
Along with that below link is users name under which user signs in..
When user presses that link he is redirected to default
starting page and on the way I call the Session.RemoveAll,
FormsAuthent... more >>
Where to store DB Name and Password
Posted by Paul at 4/16/2004 11:49:24 AM
Hi, I've got a SQL Server backend where I'm testing a new app and I'm
currently storing the DB name and password in a table. I suppose this
is secure to some extent, but what would you recommend, or is this the
defacto location for this type of data?
~Paul
*** Sent via Developersdex http:/... more >>
Server Application Unavailable - aspnet_wp.exe could not be started. HRESULT for the failure: 80004005
Posted by Philipp Schumann at 4/16/2004 11:41:15 AM
Hi,
when trying to access any aspx page on my localhost IIS 6 (Win XP Pro), I
always get a big read "Server Application Unavailable", with an
Administrator Note pointing to a system event log entry, the entry reading
"aspnet_wp.exe could not be started. HRESULT for the failure: 80004005". I
h... more >>
HttpWebRequest
Posted by RCK at 4/16/2004 11:36:08 AM
Hi All
Can anyone know how to convert following ASP statement into .NET commands? I want to know what class in .NET is equivalent to the XMLHTTP.open command. Thanx
fileName = request("fileName"
Set xDom = Server.CreateObject("Microsoft.XMLDOM"
xDom.async = FALS
Set xh ... more >>
weird listbox problem
Posted by Dean at 4/16/2004 11:25:21 AM
I've been using listboxes for a long time with no problems but I have a
weird problem on a page that I can't figure out....
I'm filling a listbox, as usual with a dataset but when the user selects
some entries, other entries get returned instead of the one selected. Also,
some items in the li... more >>
.Net Validation within Modal Dialog Box possible???
Posted by Earl Teigrob at 4/16/2004 10:52:45 AM
Can a Modal Dialog Box do forms ASP.NET forms validation from within the
Modal Box? I want to pop up a dialog box to the user and have it do its own
post backs with validation checking and then save the data and close the
dialog when the page is valid. I have read a little about using Iframes to
... more >>
LoadViewState not firing
Posted by William F. Robertson, Jr. at 4/16/2004 10:38:42 AM
I am having difficulty in diagnosing this problem and was throwing it out
for some other eyes.
I have derived my own Page class from System.Web.UI.Page and have overridden
the LoadViewState method. I derive all of my application pages from my own
Page.
For some reason on two of my pages th... more >>
Frames alternative. .net?????
Posted by DaveF at 4/16/2004 10:37:04 AM
I have an ASP site that has a frameset below. I am in the process of
redesigning/coding in ASP.NET. What are my alternatives to framesets. The
execute frame does most of the processing. This is a very data intensive
site.
<frameset id="FrameCols" cols = "137,*" border=0>
<frameset rows="1... more >>
How do I get browser to cache images, css etc..?
Posted by Peter Row at 4/16/2004 10:22:00 AM
Hi,
I have a site were the pages are dynamically generated on demand.
These pages like any static html page may contain image tags and
references to CSS files.
All the images and CSS files etc... are stored in a database so in the
HTML produced for the page the source of an image, for examp... more >>
Server.MapPath in Global.asax
Posted by Sebastiano at 4/16/2004 10:19:31 AM
I want to use Server.MapPath function in Global.asax because I want to save
in an application variable the path of my database. Global.asax is in the
root directory of my web folder and database is in database/database.mdb.
Now, if I start my web site from default.aspx in the root folder all is o... more >>
Verisign PayFlowPro- does it work with ASP.NET?
Posted by Charlie NO[at]SPAM CBFC at 4/16/2004 10:12:28 AM
Hi:
How well does it integrate with ASP.net?
Thanks,
Charlie
... more >>
Performance Question
Posted by A. Elamiri at 4/16/2004 9:53:11 AM
I am building a portal for a college. I have offices and departments divided
into groups, and within each group there is 3 different levels of Authority:
Director
Director Delegate
Content Creator
Access to certain folder is restricted to certain group, but at the same
time it can restricted... more >>
Question about IIS
Posted by Dinçer at 4/16/2004 9:40:23 AM
Hi,
I have two ASP.NET web projects residing on IIS. (Lets say,
http://localhost/Web1 and http://localhost/Web2 )
When I debug one of these applications (using VS .NET) and stop at a
breakpoint, I came accross this problem:
I can't run the other web application from Internet Explorer. The p... more >>
Blocking down level browsers- what is the risk?
Posted by Charlie NO[at]SPAM CBFC at 4/16/2004 9:26:18 AM
Hi:
I'm using a lot of JavaScript and HTML 4.0. Things seem to work well in
Netscape 7.0 and IE 5.5\6, but not Netscape 4\6 and not sure of IE 5.0.
My site blocks downlevel browsers and redirects users to page to upgrade
browsers. My question is- how much of market am I potentially losing... more >>
Obtaining older versions of IE for testing
Posted by Charlie NO[at]SPAM CBFC at 4/16/2004 9:19:51 AM
Hi:
Where can I obtain older versions of IE for testing? I checked MS site, but
couldn't find them.
Thanks,
Charlie
... more >>
asp:label control doesn't show up as a form element
Posted by John Holmes at 4/16/2004 9:15:13 AM
I would like to turn on a label control in javascript with the onfocus event
of another control by setting the Visible property to true. When I try and
reference this label control it says "Microsoft JScript runtime error:
'document.Form1.lblSigGrantor' is null or not an object". I wrote a loop a... more >>
What does EnsureChildControls really Ensure?
Posted by pookiebearbottom NO[at]SPAM yahoo.com at 4/16/2004 7:54:53 AM
EnsureChildControls makes sure CreateChildControls() is called
So then the children are "created"
What does "created" actually mean? Is only Constructor() call?
OnInit()? OnLoad()? ...?
Guessing EnsureChildControls() is recursive. Are the grandchildren
"created" to?... more >>
GetThumbnailImage
Posted by Andrew Banks at 4/16/2004 7:36:52 AM
Is it possible to use GetThumbnailImage with images being pulled from an SQL
DB and if so how? All examples I've seen refer to working with an actual
image stored on the server.
My code for pulling the image from the DB is below if it makes a difference.
Thanks in advance
private void Pag... more >>
Reference .cs File From .cs File
Posted by davidmurphy NO[at]SPAM zoomtown.com at 4/16/2004 7:34:50 AM
I have two classes and a web page: test1.cs, test2.cs, and test.aspx.
I know how to add a reference to test1.cs from test.aspx using the
assembly directive (<%@ Assembly Src="test1.cs" %>). This works fine,
but what if test1.cs needs to call a method from test2.cs. How can I
add a reference t... more >>
How can I control the IE back button from ASP.NET in VB?
Posted by niels.heick NO[at]SPAM teleca.dk at 4/16/2004 7:22:41 AM
Is there a way to capture the Back Button when it is
clicked via the IE. I am developing a ASP.NET page and I
need to know when users click on the Back button. After the
event from the back button, I need to control server side
variabels. How can I do that ?... more >>
HTML Question
Posted by Shreyash Patel at 4/16/2004 7:16:05 AM
How do you embed HTML Page in to a another HTML Page. Like its done on this webpag
http://www.myfloridahouse.com
where The White Status boards (Current Bills) is actually a different webpage. How do you embed HTML Page into another HTML Page like that.... more >>
Namespace does not exist in VS-generated code
Posted by John Spiegel at 4/16/2004 7:03:53 AM
Hi all,
I used wsdl.exe to create a proxy class that I'm now trying to access from a
page. When building the project, the using command in the codebehind:
using System.Web.Services.Protocols;
is indicating:
"The type or namespace 'Services' does not exist in the class or namespace
Sys... more >>
.net Validation Controls dont work in Netscape ! Help
Posted by raagzcd NO[at]SPAM yahoo.com at 4/16/2004 7:00:03 AM
Hi,
I am using the .NET validation controls for validating .
The validation works fine with IE but none of them work with
Netscape 6 browser.
Do i have to configure something in vS.NET to make the validations
work in Netscape too or is it .net validation controls dont work with
Netscape.
... more >>
XML and DB
Posted by brian at 4/16/2004 6:55:56 AM
I am going to try and get Scott Mitchell's Dynamic Menu
working but it binds to an XML file.
In ASP.NET are there classes that can create an XML file
from a DataSet?
I know barely anything when it comes to XML so please
bare with me.
If so can you please point me in the direction I s... more >>
File download dialog
Posted by John Spiegel at 4/16/2004 6:43:13 AM
Hi all,
How does one allow a user to download a file WITH selecting where it should
be downloaded to on their machine? Also, when using the WebClient.Download
method, will the destination path written in Windows format (backslashes,
etc.) translate across client platforms? Is there a better ... more >>
Store SqlConnection in SessionVariable
Posted by rolf.gossen NO[at]SPAM gmx.de at 4/16/2004 4:40:09 AM
Hello NG,
sometimes I read: "Never store an SqlClient.SqlConnection in a Session
Variable." But noone explains why. Is there anyone who can briefly
summarize the main problems about this approach.
Thanks in advance
Rolf... more >>
Server Application Unavailable
Posted by Jack at 4/16/2004 4:36:05 AM
I am trying to run an aspx app on my Windows 2000 professional and I get this erro
"Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administr... more >>
Problem with language. Thank You.
Posted by Miguel Dias Moura at 4/16/2004 2:20:38 AM
Hello,
i have a Calendar Control in my web site and when it's in my computer the
months and weekdays are in portuguese.
When i change it to my server the months and weekdays change to english.
Do you think i can solve this by changing culture in my web.config file?
If yes, can you tell me... more >>
qry returns nothing (no data matched qry)
Posted by Bob Green via .NET 247 at 4/16/2004 12:59:07 AM
I want to know how to determine if a qry through ASP to a access database returns nothing (ie. there is no record that matches the query). I want to write a message stating no matches found if no records match the search.
Here's the portion of code:
<%
dim strArtType
Set objRS = Server.Cre... more >>
Polis Signs
Posted by Ine Embrechts at 4/16/2004 12:17:32 AM
I have a asp.net website based on an SQL Server database. There are
texts in 8 languages in it. But I have problems showing the polish
signs. How can I fix this?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
|