all groups > asp.net > april 2004 > threads for tuesday april 13
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
Custom Authentication and Authorization
Posted by coollzh at 4/13/2004 11:40:56 PM
I want to remove asp.net default Authentication and Authorization =
HttpModule handler and add my custom Authentication and Authorization =
HttpModule.
in my custom Authentication HttpModule Handler,i assign Iprincinpal(with =
some roles) to Current user ,
but how can i Authorizated the Current... more >>
Cost of web.config parameters
Posted by John Bailo at 4/13/2004 11:28:30 PM
What's the cost of web.config parameters? Low or high?
Is web.config read into memory?
Or is there disk access each time a parameter is read ?
--
W '04 <:> Open Source
... more >>
Response.Redirect in asp.net pages ?
Posted by WJ at 4/13/2004 10:11:47 PM
1. I have a website called "myWeb" resides under E:\SOS\myWeb.Net" folder in
an IIS-6/Windows 2003 server. Its host-header is "myWeb.Net".
2. Default page is "Index.aspx".
3. In the same folder as above, there are two additional aspx pages called:
page2.aspx and page2.1.aspx.
4. The "Inde... more >>
Images to database
Posted by Steve Peterson at 4/13/2004 10:01:14 PM
Hi
I was hoping that someone could point me in the direction of some articles
on how to get images into a SQL Server database. I have an ASP.NET app where
I need to let the users upload images to the server (that's no problem), but
then I need to get the uploaded image into a table in SQL Serv... more >>
Download file programatically?
Posted by Xavier MT at 4/13/2004 9:24:24 PM
Does anybody know how to start a download programatically but first check
who is actually downloading the file?
... more >>
Embedded help
Posted by Ian Williamson at 4/13/2004 9:21:06 PM
Greetings
Our company is in the process of converting a portion of our fat client to a web based solution. We wish to have context sensitive help, table of contents, search capability, etc that runs inline with the application.
The integrated .NET help tools seem to wrap an application as oppo... more >>
Design Question
Posted by william.lopez NO[at]SPAM eds.com at 4/13/2004 9:06:11 PM
I'm getting this error (system stack overflow) when attemping to
instantiate a hastable or assigning a new hastable to the class
property. I have a "base" class that uses the MustInherit keyword and
I believe this is the cause...Every business rule must inherit from
the base class...Am I using t... more >>
C# ASP.NET design question
Posted by Chris at 4/13/2004 8:54:54 PM
Hi
I'm trying to understand avoiding duplicating html within a website. At the
same time
I'm trying to figure out how, when implementing page rendering functions,
how do I
use templates to keep html and code separate.
I define a class public class Page that extends/inherits from
System.We... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
2 datarepeaters on same page
Posted by suzy at 4/13/2004 8:08:32 PM
hello,
how can i have multiple datarepeaters on the same aspx page?
i have tried something similar to this:
<asp:repeater id="repeater1" runat="server">
<itemtemplate>
<td>text</td>
</itemtemplate>
</asp:repeater>
<asp:repeater id="repeater2" runat="server">
<ite... more >>
How to encode cookies
Posted by Peter Afonin at 4/13/2004 7:52:46 PM
Hello:
I'm using cookies in my application. I store them like this:
Response.Cookies("Cookie_FullName").Value = customerDetails.FullName
Then I retrieve them like this:
Request.Cookies("Cookie_FullName").Value
If the name is in English - everything works OK. But when the name is in,
... more >>
display datagrid
Posted by Mike at 4/13/2004 7:44:04 PM
How can i get the datagrid to appear within my web page without using a DB?
Currently I'm creating some screen mock ups and want the datagrid to appear
within the browser without connecting to a database right now, I want to see
the look of my page first.
... more >>
dynamic html table with textboxes
Posted by Michael Meckelein at 4/13/2004 7:16:40 PM
Environment: VS.NET 2003
Application: ASP.NET web application
Program language: C# (Csharp)
Situation:
I get some information from a sql database. With this information I generate
a html table "myHtmlTable" dynamically. For each data row I added an
additional column. In the additional column... more >>
Setting the value of a password textbox at runtime
Posted by John at 4/13/2004 7:16:23 PM
Hi all, I thought that this would be very basic. Basically, I have a textbox
set at type password. When I try to set the value of this textbox at runtime
the text field does not get populated.
I thought I could just go
=========
txtPassword.Text = "MyPassword"
=========
If I do this, noth... more >>
HowTo: databound hyperlink in DataGrid?
Posted by Alex at 4/13/2004 6:38:27 PM
I would like to have one column in my DataGrid that content acts as a
hyperlink.
In addition to that I would like that the content is databound to a DataSet
source.
If I create a hyperlink column in VS.NET I loose the databinding feature for
that column. If I choose a data bound column I don'... more >>
Application_Error and ASP.NET error screen
Posted by A.M at 4/13/2004 6:01:39 PM
Hi,
I have the following code in Global.asax. Using a breakpoint, i can see that
that all errors are being trapped in Application_Error and the event handler
is being run properly. The problem is still it shows standard ASP.NET error
screen. That means Response.Redirect ("genericerror.htm "); ... more >>
Running .NET Webpages in Win XP Pro
Posted by John at 4/13/2004 5:31:04 PM
I am trying to test a ASP.NET webpage before I post it online. I keep getting an error that basically says I need to set the permissions on the IIS to allow for ASP.NET pages to run. Any advice on how to do that? I have tried a bunch of things, but nothing has seemed to work
... more >>
SQL Server Connection problem
Posted by Justin Ray at 4/13/2004 5:12:21 PM
I've created an ASP.NET application that runs on my local IIS server. It
needs to connect to a SQL Server database on a different machine. The SQL
server is setup for "mixed mode" authentication.
As you can tell from the connection string in the following code, I am using
SQL Authentication.... more >>
Insert multiple record into table using ado.net ?
Posted by Jeff at 4/13/2004 4:56:02 PM
I need to insert into a table multiple item of a listbox. (item.text and item.value
Right now, I'm using an OleDBConnection with Access, a Command(Insert string) and parameters. I don't see how an ExecuteNonQuery() would fit in a loop ? Must be a simple solution out there
dim Item as listIte
... more >>
Shared User Control - with Codebehind
Posted by Marcos MOS at 4/13/2004 4:38:13 PM
Hi there!
I'm following this article
(http://www.codeproject.com/aspnet/ctrlreuse.asp -> "Share your user control
across multiple web applications".
It explains how to share user control with codebehind.
So, I have 2 projects: The first is my UserControl's project and the other
the Consume... more >>
Server-Side Unit Testing in ASP.NET
Posted by Steven Padfield at 4/13/2004 4:31:03 PM
If anyone is interested in finding a solution to the HttpContext problem during unit testing, I've found one. Check out my write up..
Server-Side Unit Testing in ASP.NET
How to create an HttpContext outside of II
http://home.comcast.net/~stevenpadfield01/blogger.htm
Let me know if you have a... more >>
System.Diagnostics.Debug.WriteLine
Posted by A.M at 4/13/2004 4:30:17 PM
Hi,
If I use System.Diagnostics.Debug.WriteLine in a asp.net application, where
does the output go?
Is there any trace monitor application thar shows me the trace output?
Thanks,
Allan
... more >>
Bug Tracking/Change managment software
Posted by Mike at 4/13/2004 3:59:11 PM
Hi,
We are looking for some bug tracking/change management software primarily
for our ASP.Net applications, but for other applications as well. Do you
have any suggestions?
Mike
... more >>
RequiredFieldValidator and Cancel Button
Posted by Mvk at 4/13/2004 3:47:12 PM
Hi;
I have a simple aspx form. I have put a textbox and 2 buttons on it. The
textbox is linked to a requiredfieldvalidator.
Click on button 1 (= ok button) = Store value in textbox in database.
Click on button 2 (= cancel button) = Redirect with
Response.Redirect("AnotherPage.aspx")
... more >>
Create table at run time.
Posted by Anil at 4/13/2004 3:13:36 PM
I am developing an app in ASP 3.0
I want to create a table with some text boxes at run time, so that when i
press a command button on the page, some rows and columns should be created
on the page.
Please help me on how to create these html table tags at run time. If anyone
can point to a sample... more >>
how to measure memory consumption
Posted by Tom L at 4/13/2004 3:07:27 PM
How can I tell how much memory is being user for each user session?
... more >>
DirectoryEntry Disposal Test
Posted by cameron at 4/13/2004 3:04:59 PM
I am in a situation in which I am recieving a DirectoryEntry that may or
may not be already be disposed. I need a very fast, (from a code point
of view not necissarily a coding point of view), way of testing if it
has been disposed.
Currently I have:
try
{
string Junk MyDirectoryEntry... more >>
How to "double post" ???
Posted by Assaf at 4/13/2004 2:56:55 PM
Hi all,
My client is using an online service provider that processes survey
responses.
After a user fills survey.aspx and presses the OK button, 2 things need to
happen:
1. the data has to be posted behind the scenes to the provider's URL (e.g.,
http://www.surveyprocessingprovider.com/srvy... more >>
Import Namespaces
Posted by Jena at 4/13/2004 2:39:21 PM
Hi all,
i've an example where in the page.aspx there are two strings like these:
<% @Import Namespace="System.Data" %>
<% @Import Namespace="System.Data.OleDb" %>
in the page_load sub, using this declarations I Can declare:
Dim objCommand As New OleDbCommand(strSQL, objConn)
i would li... more >>
"Save As" dialog???
Posted by Richard at 4/13/2004 2:31:03 PM
Hi
I'm new to ASP/Web programming so any help would be appreciated...
Situation: On my web page I would like to present a link {or button} that would allow the user to download a large file. When the user clicks to start the download I would like to display the "Save As" dialog, allow the use... more >>
Sensing failed downloads
Posted by Buddy Ackerman at 4/13/2004 1:48:21 PM
Is there any way to determine that a user received a downloaded file. I'm
developing a service that sells documents (like PDF books) and I need to
have a way to determine if the buyer actually got the document. Is there
any way to determine is the client received the full download?
--Buddy
... more >>
Security warning msg when opening PDF file under Https://
Posted by Mark at 4/13/2004 1:11:03 PM
Hello
I was hoping to appeal to the gurus of the audience that may be able to contribute to resolving my problem
I built a web reporting website in .NET using Crystal (God help me!) but I've gotten to the point where the final item I'm trying to resolve has more to due with displaying large repo... more >>
Datagrid
Posted by sonny at 4/13/2004 12:56:02 PM
I have a HyperLinkColumn in a Datagrid that I want to pass 2 DataNavigateUrlField parameters to it. Is there a way to do it
Thanks...sonny... more >>
A little confused...
Posted by Amy Snyder at 4/13/2004 12:30:45 PM
I am trying to discern the difference between creating a web service or
using IIS Virtual Directory Management for SQL Server Utitly if I want
to provide xml data from a database.
I have created some xml templates that will allow a user to access the
data in xml format when entering the http:/... more >>
Cannot use "Console.WriteLine"
Posted by Grey at 4/13/2004 12:12:04 PM
Can I use System.Console.WriteLine('fasfasdf') in ASP.NET development as =
I need to print out some message in the console during the debug stage..... more >>
Web application causes Web Access Failed message
Posted by Simon Jefferies at 4/13/2004 11:51:53 AM
Hello,
I'm trying to create a new ASP. NET Web Application project, when I enter a
name and press OK i get the following:
Web Access Failed.
The default web access mode for this project is set to file share, but the
project folder at "http://..." cannot be opened with the path
"C:\inetpub\... more >>
Executing Assembly eg MyWebApp.dll
Posted by Thomas at 4/13/2004 11:41:03 AM
Hi,
I want to get the name of the web application dll from within several
library external assemblies deep. How do I do that? The assemblies runs
outside the web application too - so I can't use HttpContext.
Much like the old VB 6.0 App.ExeName.
- Thomas
... more >>
Config error in appli when using an assembly
Posted by Cui at 4/13/2004 11:40:55 AM
Hello,
I make an application in ASP.NET (using VB.NET and some web services). For
my needs, I use also the SQL DMO library (with the SQL DMO.interop assembly)
and the Microsoft Web UI controls (in order to have the tree view, multi bar
controls).
When I make the compilation and the executi... more >>
intellisense
Posted by akoda11 NO[at]SPAM hotmail.com at 4/13/2004 11:27:48 AM
I am working on writing an aspx page. I am using vb.net standard
edition, I have ordered Visual Studio 2003 but it hasn't arrived yet.
Should intellisense work on asp.net pages? It does on WebForm Pages??
Thanks
Mike... more >>
Deployed ASP.NET app to 2nd machine: SLOW PERFORMANCE
Posted by Sid at 4/13/2004 11:21:02 AM
Hi,
I've run into the classic "it works on my box" but doesn't
work as expected on another test PC.
Both boxes have Win XP Pro and .NET 1.1.
On the dev box in Visual Studio the app runs.
On the dev box I can launch IE and browse the site and the
app displays the page quickly - 1 second... more >>
multiple datarepeater
Posted by suzy at 4/13/2004 11:10:44 AM
hello,
how can i have multiple datarepeaters on the same aspx page?
i have tried something similar to this:
<asp:repeater id="repeater1" runat="server">
<itemtemplate>
<td>text</td>
</itemtemplate>
</asp:repeater>
<asp:repeater id="repeater2" runat="server">
<ite... more >>
Calling a sub in a user control
Posted by Murphy at 4/13/2004 11:07:54 AM
Can a user control call a sub procedure in another user control ?
For example I have an aspx page with 2 user controls, header.ascx and
body.ascx I would like to be able to call a sub procedure that updates an
image in header.ascx.
Thanks
Murphy
... more >>
reusing codebehind files?
Posted by Anders Bohlin at 4/13/2004 11:06:46 AM
hi.
I got a mainpage wich uses cutom controls.
i want to use the same codebehind for the customcontrol as i have for the
mainpage. is this possible?
yours truely /Anders
... more >>
Changing httpRuntime settings during execution
Posted by Artem Kliatchkine at 4/13/2004 11:05:47 AM
Hi All,
HttpRuntime settings such as executionTimeout are normally set in
Web.config. Is it possible to change them at runtime?
I have a rarely executed method which works long time (sometimes -
hours). For this particular method I would like to change the
executionTimeout, keeping it uncha... more >>
Set Focus on a control
Posted by Steven K at 4/13/2004 11:02:31 AM
Hello,
On a click event, I need to test certain text boxes and then based on their
values go to another text box. How do you set the focus using vb?
--
Thanks in advance,
Steven
... more >>
This works on my locahost, but not on a remote server?
Posted by SteveS at 4/13/2004 10:35:27 AM
Hello. This problem is perplexing me.
I have a asp:button which runs a javascript function when it is clicked. It
returns a true or false depending if a postback is needed. This works great
when I run it on my development pc. But, when I run it from another
computer, it ALWAYS does a postba... more >>
Injecting html
Posted by Simon Harvey at 4/13/2004 10:29:30 AM
Hi All
I am making a particular asp.net page using the codebehind method. What I
need to do is write out html in the code behind into a specific place in the
page. Somewhat like the way Servlets work.
I have a couple of questions I hope someone can help with:
1. Can I output html by doing... more >>
Invalid Characters in ASP.NET ??
Posted by Charles A. Lackman at 4/13/2004 10:09:20 AM
Hello,
I have made a web site that streams music using mms. The service works
great but I have noticed that when the song or song location has an
apostaphie in it the server (or something) cuts everything off after the
apostaphie and causes the song not to stream. i.e.:
mms:\My Music\Grea... more >>
Best design practices for user control interaction
Posted by jharris NO[at]SPAM securitytrustco.com at 4/13/2004 9:53:03 AM
Here is my question:
It is common to have many pieces of business logic encapsulated within
asp.net user controls. This can be found in high visibility projects
such as the iBuySpy portal from MS. Virtually every bit of the site
is encapsulated within user controls. The problem begins when ... more >>
ViewState and Javascript.
Posted by Ken Varn at 4/13/2004 8:58:20 AM
Is it possible to interact with the ASP.NET ViewState using JavaScript? I
would like to be able to access data in ViewState through JavaScript and
also set ViewState data. Not sure if this is the "best:" way to send data
between ASP.NET pages and JavaScript. If anyone has other suggestions,
p... more >>
Data form wizard
Posted by zalihe.ahmet NO[at]SPAM sage-partners.com at 4/13/2004 8:44:36 AM
hi,
i would like someone to confirm something for me, i have the trail
edition of vs.net2003 which i will upgrade to the standard
edition,once i get it through the post. ive been looking at a book
which guides you through the process of developing asp.net apps. the
section dealing with form ... more >>
Validation Controls
Posted by Murphy at 4/13/2004 8:29:07 AM
I would like to utilise validation controls on a user login page however
there are two scenarios I need to validate and I am unsure if this is
possible or how to implement it.
Firstly, if the user clicks "login" then they must have entered a username
and password in the appropriate boxes alter... more >>
Parser Error Message: Access is denied
Posted by Christopher at 4/13/2004 8:06:03 AM
I’m experiencing the following error. Research I’ve done implies that this is caused by a conflict with index server. I’ve disabled index server and continue to get the error. I’ve also disabled the antivirus real time scanning
The application is running perfectly on other servers. Any ... more >>
Problem with Session_End in Global.asax
Posted by Bela at 4/13/2004 7:21:04 AM
Hello
I was wondering if someone could help me out with a Session_End problem in my Global.asax. I've tried everything, and still no success
Here is the scenario: sessionstate is set to InProc. I have timeout set to 1 min
I have a variable in session_start that is incremented each new session... more >>
Big problem with Querystring and App Integration !!!!!!!!!!
Posted by Alejandro Perez at 4/13/2004 7:06:05 AM
Hi... i have a big problem.. We'r development an App that reads querystring data sended from other App
The problem is that sometimes, the "Old" app send querystring data like: "Juan Pérez", and when we try to read that parameter in our ASP.NET app, the result is "Juan Prez". We know about the Ser... more >>
Problem populating dropdownlist control
Posted by CHRIS at 4/13/2004 6:21:03 AM
Hi
I am unable to puoplate my dropdownlist control witht he correct data. I am tying to load the dates from a column in sql server via a stored proc. The date is appearing as 12/01/2001 12:00 am. I want it to be 12/01/2004. I used the convert function in sql server but i get an error loading the pa... more >>
closing excel
Posted by mark_groot NO[at]SPAM hotmail.com at 4/13/2004 6:16:27 AM
Hi all,
as many had, i have some problems terminating the excel-process.
I implemented the solutions i found in this forums. Tried most
combinations of them ;-).
It still doesn't work.
I'll post my code-snippets below. I hope u can shine some light on the
solution.
Thx,
Mark
<code... more >>
Forms authentication
Posted by Bonj at 4/13/2004 5:41:02 AM
I'm trying to use Forms authentication for my site, I've got
<authentication mode="Forms"><forms loginUrl="MyLoginPage.aspx">
.....</forms></authentication>
in my web.config file, and I've designed a login page. But the login page never gets displayed. How can I make the login page get displayed ... more >>
How to generate complex custom control
Posted by Dennis M at 4/13/2004 5:21:14 AM
Hey everyone,
I am curious what the performance impact of a custom control would be if it
had a significant hierarchy of children. For example, 40 child controls, 5
levels deep, each control on average has 20 properties. What would be the
best way to implement such a thing?
The book I am ... more >>
Retrieving SQL output
Posted by jb at 4/13/2004 5:16:02 AM
Using ADO.NET from ASP.NET. Have a SqlConnection executing stuff (stored procedures)
I would like to be able to retrieve informational messages from the SQL sps, which comment on what they are doing (updating tables etc.), and show them to the user/write them to a file. Is there any way I can ge... more >>
EnableViewState="False" Does not take effect?
Posted by kai at 4/13/2004 4:11:20 AM
Hi, All
I create an ASP.NET page, it contains FirstName textbox and LastName
textbox. I setup "enableViewState=false" in page directive. When I enter
data in FirstName and LastName textbox, after I refresh the page or go to
different page and come back to the same page, I find data entered i... more >>
ASPNET Performance Problem : Pentium 3 is better than Pentium 4
Posted by arkam NO[at]SPAM caramail.com at 4/13/2004 2:17:50 AM
Hi,
I wanted to test and compare performances of Webservices / Assemblies
and Remoting in dotnet using aspnet clients !
I performed a lot of tests and there are the results : (less is
better)
Desktop Pentium 4 1.7GHz 512MB, Win 2000, IIS 5.5 : 4.5 seconds
Server Pentium 4 2.0GHz 1GB , ... more >>
Debug/release ASP pages?
Posted by Bonj at 4/13/2004 2:01:04 AM
When building a windows forms application in C#, I notice that you get two different folders for different builds, debug and release. But when building a web application there is only one, c:\inetpub\wwwroot\<projectname>\bin ..
Am I right in thinking that whether the current build that is prevale... more >>
'Per user' variables
Posted by Bonj at 4/13/2004 1:56:03 AM
H
In creating an ASP.NET page in C#, I notice that it seems very efficient with regards to things like what I would call 'pooling', for instance: I have a string variable that the Page_Load procedure checks and if it is null/empty, it loads the value from the registry. Now I notice the sub-procedur... more >>
Display html pages within an aspx page
Posted by Robert at 4/13/2004 1:51:06 AM
Display html pages within an aspx page
I would like to display HTML pages within an aspx page.An example might be: I have an aspx page with a menu on the left side and by clicking on one of the menu items I display a html page (which can be found in a specific folder) in the center of my aspx page... more >>
Draw Text on OWC Chart Control
Posted by kamal anand at 4/13/2004 12:37:52 AM
Hi
if i say
public void AfterFinalRender(object sender, Microsoft.Office.Interop.
OWC10.IChartEvents_AfterFinalRenderEvent e)
{
---------
---------
}
it shows an error:
--------------------
Compiler Error Message: CS0234: The type or namespace name 'OWC10' does
not exist in the clas... more >>
|