all groups > asp.net > october 2004 > threads for monday october 25
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
Article : Authentication and Authorization in ASP.Net
Posted by Naveen at 10/25/2004 11:15:05 PM
Hi ..
This article throws light one Authentication and Authorization in ASP.Net
for developing distributed applications. It also describes a process that you
can use to help choose the most appropriate authentication and authorization
mechanisms for your application.
http://msdn.microso... more >>
treeview control
Posted by Priya at 10/25/2004 11:15:03 PM
Hi
I want to use the tree view control.
I downloaded the IE Web controls from net.
I load the tree nodes dynamically wirh value from database.
I was not able to handle the clickl event of a node selected.
When a node is clicked i don't want the page to refresh.
Do I nedd to use java script?
I... more >>
Used Datalist and No DatA ON THE PAGE
Posted by Patrick.O.Ige at 10/25/2004 11:11:05 PM
Hi guys,
Just using these small snippet below using Datalist with sorting!
But it appears i can see no Data on the screen when compiled with Visual
Studio .Net!
With WebMatrix its running fine!:)
Whats missing in VStudio .Net?
Imports System.Data.SqlClient
Imports System.Data
Imp... more >>
Sorry for simple question:
Posted by Wardeaux at 10/25/2004 10:21:26 PM
OK... how do I set the aspx page html title from my codebehind?
MTIA
wardeaux
... more >>
how to attach javscript to a ASP:BUTTON
Posted by Darrel at 10/25/2004 10:16:23 PM
I have an asp button I want to apply some javascript to.
I have this in the page head:
<script type="text/javascript">
function myOnSubmitEventHandler() {
document.getElementById('editor1').EscapeUNICODE = true;
document.getElementById('xhtml1').value =
document.getElementById('edito... more >>
New Page
Posted by Claudio at 10/25/2004 9:22:07 PM
I have a button on a web page. On the click event I want ot call another
page, but I would like this page be opened in a new window. I do want to
know if there is a way to call this page using C# command (using the code
behind of the click event to call it).
... more >>
Passing credentials to windows integrated authentication
Posted by Patrick.O.Ige at 10/25/2004 8:29:03 PM
Hi folks,
How can i pass credentials to windows integrated authentication.
I want to use my credentials from windows authentication and pass it on to
different asp.net and asp pages without having to login again.
Any help? ... more >>
what are the ways to ensure a sql connection is close?
Posted by Asha at 10/25/2004 7:29:01 PM
greetings, besides using objconn.State() to find out if a sql connection is
close or open, is there any other way to accomplish this task? thanks in
advance.
anywhere is sql server or the machine to tell this?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
"Binding" objects to the top level Page class
Posted by Davíð Þórisson at 10/25/2004 7:21:09 PM
asking a lot these days... how would I ever learn .Net without the
newsgroups!! Well I'm stuck on yet another point. All pages on my web have a
user control (initialise) that handles for example database connection;
opens db on page_onload and closes db on page_unload. But so that the
connec... more >>
Obtaining Session ID from within a class library?
Posted by Ben Fidge at 10/25/2004 7:00:23 PM
I've split my application up into an ASP.NET project and several class
library dlls. From within these dll's I want to write information to a log
file, and each line needs to have the session id recorded.
Is it possible to get the session id of the calling page, from within a
method in a cl... more >>
User Control Caching
Posted by Joe Fallon at 10/25/2004 6:52:55 PM
I have a simple user control that I use for the footer of each page.
It has one line of text with things link comapny name and a few hyperlinks
to jump to other pages.
If I want to use partial page caching I could assign this directive to it:
<%@ OutputCache Duration="60" VaryByParam="none" ... more >>
How to use Visual Studio 2003 to create ASP 3.0 (or previous) projects?
Posted by A.Neves at 10/25/2004 6:20:13 PM
Hi,
I need to build an application using classic ASP (3.0 or previous). I opened
some files, *.asp, and it seem that VS2003 recognises VBScript for ASP. So I
tryed to create a project to integrate some asp files from one project but
it seem impossible to set it up for debug.
Any hint wo... more >>
bidirectional sort with datagrid
Posted by DC Gringo at 10/25/2004 6:05:11 PM
Can someone show me how to turn this into a bi-directional sort allowing
ascending and descending using the default datagrid allowsorting attribute?
FYI, Session("source") is an sqldataadapter
------------
Protected Sub SortCommand_OnClick(ByVal source As Object, ByVal e As
System.Web.UI.... more >>
How to Cancel Validation for a <A> tag with OnClick Event.
Posted by RSB at 10/25/2004 5:59:28 PM
I have Few <A href> tags with onclick javascript fuction. and in that
javascript fuction i am using
window.document.form1.submit(); to submit the page.
Now this submit does a Validation before i submit the page and i want to
ignore it.
and as i am using <A> tags as button so there is no Cause... more >>
button visible/not visible
Posted by tshad at 10/25/2004 5:31:11 PM
I have 2 buttons:
<asp:ImageButton ID="ExpandButton" runat="server"
Font-Size="2" ImageUrl="../images/expand.jpg" Width="16" Height="16"
CommandName="Select" AlternateText="Click here to see
details"></asp:ImageButton>
<asp:ImageButton ID="CollapseButton... more >>
Unable to open web project error
Posted by Rob at 10/25/2004 5:20:01 PM
I asked this question before but having had no response i'll try to
simplify the description and hope someone can help this time.
Basically my problem is that i'm getting the error "Unable to open web
project...the file path 'blah' does not correspond to the url
'blahblah'. Fair enough becaus... more >>
Strange Exception with WebMethod
Posted by Kevin Spencer at 10/25/2004 5:16:47 PM
Hi All,
I'm experienceing a new and strange problem with a WebMethod I am working
on. It creates an instance of a class which contains a number of fields,
Collections, and classes, all of which are serializable (I'm pretty sure).
It compiles fine, and when I run it, I can step through all of t... more >>
Add formatted text to JavaScript function call during ItemDataBound of a Repeater Control.
Posted by Bryan at 10/25/2004 5:14:39 PM
Hello,
I am taking values from a datatable and formatting them for use in a
JavaScript Function Call.
The end result is a mouse over tool tip.
Here is what I am doing.
I have tried to use a property but it uses the last set value of all.
Private Sub drTasks_ItemDataBound(ByVal sender A... more >>
Exporting Datagrid's data to an Excel Sheet.
Posted by http://www.visual-basic-data-mining.net/forum at 10/25/2004 4:52:28 PM
I have a web form in which I have a datagrid, I need to export this data to
a Microsoft Excel sheet.
I'm doing it thus:
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
this.EnableViewState = false;
S... more >>
Stuck with launching IE from Web App
Posted by James N at 10/25/2004 4:40:25 PM
PROBLEM # 1:
-----------------
I am trying to launch a website in IE on the server from a C#/ASP.NET
web service. I am using the System.Diagnostics namespace and the
Process class methods. The IE process DOES seem to be running (since
there are IExplore.exe entries in the Task Manager), but n... more >>
trying to find source of error
Posted by Bruce D at 10/25/2004 4:30:45 PM
I'm new to .NET and I have a error that is coming up but it's not telling me
where the error is coming from (no file). Is that because I'm doing
something wrong...or is it a type of error that has nothing to do with my
code? P.S. I'm debugging someone else's code. Here's what the screen looks
... more >>
caching user control's output by property
Posted by z. f. at 10/25/2004 4:27:46 PM
Hi,
i'm writing a user control that lives inside a page,
and i want to cache the output of the control.
is it possible to cache the control's output using a property on the
control.
so that when the property is like the property of the cached data, the
cached data is being outputed.
if the... more >>
Try-catch not working - why does this throw an Exception?
Posted by Jon Maz at 10/25/2004 4:17:43 PM
Hi All,
The following code throws a "CS0020: Division by constant zero Exception".
I would have expected to see a nice, friendly "caught an exception" written
to the screen.
Can anyone explain?
TIA,
JON
<%@ Page Language="C#" %>
<script runat="server">
public void Page_Load(O... more >>
Visual Web Developer Express 2005 and SQL Server 7
Posted by jhoge123 NO[at]SPAM yahoo.com at 10/25/2004 3:56:19 PM
Supposedly the new VWD 2005 should work with SQL server 7. So far,
I've only had success with a local install of SQL2005 Express or a
remote SQL 2000. Has anybody had any luck getting VWD to work with a
remote SQL Server 7 install?... more >>
How to stop asp control from posting back?
Posted by Charlie at 10/25/2004 3:46:24 PM
Hi:
I would just like to run some java script I have added to a linkbutton's
attribute collection, but I don't want it to also post back. How do I stop
it from posting back?
Thanks,
Charlie
... more >>
ASP.NET's password protected user account on my computer
Posted by EvieS at 10/25/2004 3:25:01 PM
Is it common for ASP.NET to install it's own user account with password
protection on your computer?
... more >>
What .NET controls to use???
Posted by Random at 10/25/2004 3:16:34 PM
I need to generate a list of radio buttons, from either a database or an XML
file (I'd prefer to go the XL route). Now, for each item in my database/XMl
file, I have a foreign key to data that I will access through a Web Service
I've created. I would like to take the data that is returned an... more >>
Session Expired... Help Me Please!
Posted by Dexter at 10/25/2004 3:16:25 PM
Hello all,
I have a web application and in the web.config file, the attribute timeout
is 60, but the session variable that i set with the user id expire before 60
seconds.
Somebody know how to resolve this problem?
Thanks
Dexter
... more >>
"Master Pages" for ASP.NET 1.1
Posted by Nils Magnus Englund at 10/25/2004 2:59:56 PM
Hi!
I'm playing around with Wilson's master pages for ASP.NET 1.1. It seems ok,
but I'm really struggling with the following two problems:
1)
I want all .aspx pages to inherit from the same codebehind (lots of static
content). Some pages have a different menu. I want to be able to, in t... more >>
ASP.NET Error Message
Posted by Jeremy Ames at 10/25/2004 2:45:58 PM
I have recently uploaded my project to our production server. Everything ran
fine on my test box, but after trying to set permissions to the folder, I
receive the error message "Failed to start monitoring file changes." Can
someone please help?
--
Thanks,
Jeremy Ames
Code Powered Te... more >>
ASP Class not found Error
Posted by BlackBeltNerd at 10/25/2004 2:41:03 PM
I am using XP Pro with IIS5.1. my classic ASP programs were working fine but
now ASPX programs work but ASP programs result in an error message "class not
found". Anyone run into this issue, if so how did you fix it?... more >>
distribute assemblies via htm object tag
Posted by lh at 10/25/2004 2:39:45 PM
i'm trying to get the client to download new dlls contained in a cab file on
my server.
I'm using html's object tag to enable the downloading of the cab file.
My problem is that the user is using a cached version of the cab file if
they have not changed their browser settings to download a new v... more >>
Where to start?
Posted by James Goodman at 10/25/2004 2:29:50 PM
I regularly (every week) fly for work.
To do this at the moment, I have to manually check the website of the
couriers I use (Primarily Easyjet, BA, BMI).
This is a repetitive task which takes quite a lot of time, so I was thinking
about automating it.
Basically, I need to collect the pr... more >>
Saving state in a page
Posted by Børge Hansen at 10/25/2004 2:16:23 PM
Hi.
I am trying to create functionality for saving the contents (state) of a
page. The idea is that when navigating away from a webpage and later
returning the state of the textboxes, etc should be reinstated.... Just like
Viewstate, but not....
Basicly I have a tabbed GUI and wants to m... more >>
Anyone knows of a good JScript.NET code editor
Posted by Carpe Diem at 10/25/2004 2:15:09 PM
Hello, I'm trying to find a decent editor for my preffered .NET language. I
currently use textpad, which has nice syntax colouring, but no word
completion. I've been trying primalcode too, but it has problems with my
regional characters not being saved ok, and is somewhat pricy, so I ask you
if... more >>
SMTP: different mail from and from addresses?
Posted by Max Metral at 10/25/2004 2:02:11 PM
Does anyone know if it's possible to make CDO send different "MAIL FROM"
addresses and "From" header in a message?
Our site allows users to send mail to others via the system, but since the
mail originates at our servers, the MAIL FROM needs to have our address, but
the From should have the... more >>
How to force new Session when spawning browser using hyperlink
Posted by Børge Hansen at 10/25/2004 1:56:32 PM
Hi. Does anyone know how I can force a new session when my asp.net app
openes a window which links into my application using
javascript:window.open().
I want the application to spawn a new window (and session) which does not
interfere with each other....
Thanks
Børge
(please do no re... more >>
Default path and root website for opening xml document?
Posted by yburtin NO[at]SPAM freesurf-dot-fr.no-spam.invalid at 10/25/2004 1:55:17 PM
Hi,
I'm currently working on a dotnet web application and here is the
problem I have:
On my computer (french version of xp pro), I have my webserver
installed. Inside one of my webpages, I open an XML file
who is located on the root website:
XmlDocument _XmlParametres = new XmlDocument( ... more >>
OnClick
Posted by Vi at 10/25/2004 1:49:02 PM
Hi,
I want to clear a DropDownList control (selectedIndex=0) if the user types
in a TextBox. What is the easiest way to achieve this?
Thank you.... more >>
Best standard for error trapping?
Posted by VB Programmer at 10/25/2004 1:23:13 PM
Should I wrap every function in a Try/Catch block? What is the standard for
ASP.NET?
Should I call 1 common error trapping routine which does a respons.write of
the error? What do you all do?
Thanks.
... more >>
Bind multidimension Array to Datagrid
Posted by Manny Chohan at 10/25/2004 1:07:04 PM
Can someone help me with the code to bind 2 dimensional array to datgrid? I
just dont know how this can be done. Theres no code on the internet.
Manny
... more >>
Windows 2K update caused web application to revert back to asp.net 1.0!?
Posted by Chris Lewis at 10/25/2004 12:58:01 PM
Hi,
We have just experienced a very frustrating and time-consuming problem after
applying Windows 2K updates to our webservers over the weekend, and I though
I'd share this in case anyone else has the same problem and can learn from
this.
Our webservers are running .NET 1.0 and 1.1 side by ... more >>
Measuring Memory Useage
Posted by Guadala Harry at 10/25/2004 11:47:54 AM
Just wondering if/how it is possible to measure how much memory (physical
and/or virtual) is used by objects stored in
1. Cache object
2. Application State
3. Session States (across all current sessions of an application)
4. Output Cache (Page/Control caching)
Thanks
... more >>
Displying realtime data on asp-page, without sound and refresh
Posted by Henrik H at 10/25/2004 11:44:00 AM
Hi all,
Is there a way, to show data on a web-page, and not get the refresh sound,
when data is updated/refreshed??
My data should refreash every 15 secound, so I would be pleased no to hear
that sound and not to see my page refresh..
Unfortunly it's not an option, to disable windows-... more >>
How do I Share/Access properties between User Controls??
Posted by jonhyland NO[at]SPAM hotmail.com at 10/25/2004 11:39:16 AM
This might be a dumb question, but what is the best way for one
instance of a user control to access properties of an instance of
another user control?
For example, let's say I have an instance of UserControlA (ucA1) and
an instance of UserControlB (ucB1) on a particular ASP.NET page.
UserCo... more >>
Assembly Binding Path Broken?
Posted by localhost at 10/25/2004 10:49:04 AM
..NET Framework 1.1-SP1.
I created an ASP.NET project with Visual Studio, it automatically
created a bin directory. Then I modified web.config to add a new
binary assembly direcoty, moved the web application DLL to that
directory, and now ASP.NET cannot run the app. My web config looks
li... more >>
asp.net database password management
Posted by rgrimard NO[at]SPAM veridiem.com at 10/25/2004 10:40:37 AM
Is there an accepted strategy/design for database password management?
Multiple asp.net web applications all talking to the same database.
Each web app is on a separate machine and connectivity between
machines is not guaranteed. ***SQL Server authentication is
required.*** We currently sto... more >>
maximum number of sessions....
Posted by Ollie at 10/25/2004 10:02:07 AM
Is there anyway to montior the number of user sessions from an asp.net
app\page?
The reason I ask is because I would like to throttle the number of
concurrent sessions to a website, i.e. limit the number of concurrent user
sessions lets say to 10,000 and if a user session exceeeds this amount ... more >>
Events Dilemma
Posted by Bishop at 10/25/2004 9:55:44 AM
I have a page that generates a grid of controls; at the end of each row is
an update button that is dynamically created with an associated click event.
The grid changes based on the date selected in the calendar control and I
populate this grid of controls by calling a routine in the page load ev... more >>
DataGrid : e.Item.ItemType=Pager not executed in ItemDataBound
Posted by RJN at 10/25/2004 9:10:45 AM
Hi
The following statement is not getting executed inside the ItemDataBound
If e.Item.ItemType=Pager
--Some code
End if
I had put a break point, but the statements within the If block are not
executed. Same works fine in ItemCreated event.
Regards
rjn
*** Sent via Develope... more >>
question
Posted by Mike at 10/25/2004 9:09:04 AM
I have code that highlights a row when the user clicks on the row, but how
can i remove the hightlight of the clicked row when the user clicks on
another row?
i have this in the datagrid_itemdatabound
e.Item.Attributes.Add("onclick", "this.style.backgroundColor='yellow")... more >>
Some files can harm your computer message for ASP.NET page.
Posted by ashefer NO[at]SPAM hotmail.com at 10/25/2004 9:05:01 AM
I have ASP.NET web application running on Microsoft Server 2003.
It works fine for many clients but one of my clients gets a "File
Download" dialog "Some files can harm your computer" trying to see
aspx page.
Can it some browser problem, wrong browser security settings ?
Thank you,
Alex Shef... more >>
try block processing path
Posted by Marty U. at 10/25/2004 8:49:07 AM
In the following try catch block can I guarantee that part b will not execute
if part a throws exception
try {
part a
part b
}
catch (Exception ex) {
do something
}
finally {
dispose of any thing needed
}
I am doing a DB update in part a and an insert in part b based on part ... more >>
Server.Execute with parameters does not work
Posted by Ryan Taylor at 10/25/2004 8:46:43 AM
Hello.
I have an ASP.NET web application in which one page needs to execute another
page and retrieve it's results. The page to be called needs a couple
parameters passed in the URL. However, when I do this, the Server.Execute
fails. From tracing this is because the URL parameters are not prop... more >>
How to print a page.aspx in C#?
Posted by http://www.visual-basic-data-mining.net/forum at 10/25/2004 7:50:52 AM
Hello
I'm new at asp.net and C#.
I have a page called Information.aspx. On that page there is a button
"Print".
If you click that button I want to send the information that is on the page
to print it out.
Can anybody help me
--
angelica - forum member
http://www.visual-basic-data... more >>
Datagrid with fixed height
Posted by Mau at 10/25/2004 7:50:18 AM
I have a question:
I have a datagrid with paging (4 elements for page), header and footer
I set a fixed height: 600px
So the situation is (in a page with 5 elements)
6 rows (header + 4 elements + footer)
every with fixed height 100px, and this is ok
but in a page with 1 element (for examp... more >>
datagrid question
Posted by Mike at 10/25/2004 7:29:02 AM
I have a datagrid were i want to allow the user to select a row then click a
delete button and delete that row. I do not want to have a button in every
row, i want 1 button for the delete. How can i 1. select a row (highlight)
then allow the user to delete the selected row?
... more >>
Simulate Transaction
Posted by Marty U. at 10/25/2004 7:17:01 AM
Basically I have one task I need to complete successfully before another one
is attempted.
I update one record in one table with information. I then need to insert or
update multiple rows into another table based on the items selected in a
listbox with multiple selection enabled.
Here i... more >>
Integrate asp.net with asp site
Posted by velmj at 10/25/2004 7:01:07 AM
I need to integrate an asp.net module into an existing asp site. How can I
do this?. Can i create a subdirectory and put all the asp.net files into it,
and reference the default.aspx file from the linking asp page from main
directory. Or Any other way to do it. Any suggestions is helpful v... more >>
convert anytext to image
Posted by wandali NO[at]SPAM rogers.com at 10/25/2004 6:31:22 AM
Hello,
I have a formated passage (either a html or RTF) that I want to
display it onto the web page, however, I don't want the user have the
option to copy or save it...So I decided to make it an image...But how
I can do it in asp.net (vb.net)???
Basically, it doesn't necessary to be conver... more >>
Line Feed & Carriage Return with XML?
Posted by Raed Sawalha at 10/25/2004 5:07:03 AM
Dear :
I have XML File like :
<Root>
<Body>
Large Text
</Body>
</Root>
is there a way to provide a Line Feed for the Large text like (\n\r) in many
programming languages.
Regards... more >>
ASP.NET Buttons Stop Working After Windows Update
Posted by Chris Q. at 10/25/2004 5:03:01 AM
I have two different servers, a test server and a live server. My IT Manager
ran windows update on the live server and now none of my ASP.NET Button
Server controls work. The test server works flawlessly, but two seperate
applications on the live server are no longer working. However, I have s... more >>
RedirectFromLoginPage and loops
Posted by Rob O'Cop at 10/25/2004 4:51:01 AM
Hi,
I've got an Intranet site that's been using the usual Forms authentication.
Now, I want to retrieve the Windows Login and authenticate the user
automatically without her typing login+password.
Thus I changed the security parameters in IIS (anonymous user unchecked,
Windows authenticati... more >>
passing collection object to web service in .NET
Posted by vbvjain at 10/25/2004 1:51:44 AM
Hi
Thanks for your suggestion, i even tried that but now the error that is
generated is "There was an error generating XML". If i declare the input
parameter of my web service method as object and pass a collection, it
adds a web reference in client project but it gave me same error of
generating ... more >>
dll missing when debugging ASP.Net WebApp?
Posted by Victor Hadianto at 10/25/2004 1:49:05 AM
Hi,
Everytime I change my code and hit the start debug button on the ASP.Net
WebApp project I often get a very annoying message saying such and such dll
is missing from ASP.Net temporary directory.
This is really strange it seems that there is a problem with Visual
Studio.Net compiler be... more >>
Mouseover dropdown menu
Posted by Calvin KD at 10/25/2004 1:11:03 AM
Hi everyone,
Can someone show me or point me in the right direction as how to create a
"dropdown menu" which displays the menu items as a separete layer over the
top of the contents of the page below it. In classic ASP, I used xml, xsl,
css and htc to render the menu (with frames). Now in .NE... more >>
Get host/domain name
Posted by Arjen at 10/25/2004 12:23:54 AM
Hello,
How can I get the current host/domain name?
I my website is hosted at this http://www.mydomain.com or
http://mysub.mydomain.com/dir/ then I want to get this:
http://www.mydomain.com or (in sample 2) http://mysub.mydomain.com/
How can I realise that?
Thanks!
... more >>
using namespaces
Posted by Davíð Þórisson at 10/25/2004 12:16:56 AM
I've never understood fully, why do I have to td eg:
using system;
using system.data;
I would have thought that the top line imports system and all of its
submembers, including data??
... more >>
|