all groups > asp.net > april 2006 > threads for thursday april 20
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
Properly handling exceptions Part II (Passing it back)
Posted by Darrel at 4/20/2006 11:52:46 PM
I asked this a while ago but got sidetracked and now have finally gotten
back to it.
Karl wrote a nice (and easy to read) article here:
http://codebetter.com/blogs/karlseguin/archive/2006/04/05/142355.aspx
I've given it a once through, and, while it made sense, I know I'm still
missing ... more >>
what is the best ajax lib?
Posted by Peter Rilling at 4/20/2006 11:43:55 PM
I would like the opinions of those who actually use Ajax libraries and maybe
tried various APIs before settling on the one you currently use. I would
like to know what libraries (that are free) would people recommend using for
a site.
... more >>
any ajax best practices?
Posted by Peter Rilling at 4/20/2006 11:20:01 PM
I am starting work on a website that uses Ajax heavily. I have never
developed an Ajax app before and am currently evaluating the various
libraries. Are there any articles that discuss best practices for Ajax in a
..NET world?
... more >>
Random Appdomain restarts
Posted by J_A5 at 4/20/2006 10:49:19 PM
Hi,
I recently upgraded my web app from 1.1 to 2.0 and SQL Server 2005. After
the upgrade, I am seeing random appdomain restarts. It was not even logging
any information untill I turned on logging all events in the healthmonitor
section. The appdomain restart is logged as an info event. The e... more >>
Emailing a dynamically generated aspx page
Posted by Gary Coutts at 4/20/2006 9:30:12 PM
Hi,
After dynamically generating an aspx page I need to email what is being
displayed by the browser.
I have looked at System.Web.Mail but it looks like you have to generate the
body of the message as one long string.
Can anyone point me in the right direction.
I am using VS2003 ASP ... more >>
Javascript with Webcontrols
Posted by Peter Afonin at 4/20/2006 8:01:29 PM
Hello,
I'd used before methods like RegisterStartupScript with ASP.NET, but this
problem I was unable to solve yet using this method.
I have a web form with a few web controls - textbox, dropdown lists,
calendar control. If the textbox has a value- I need to disable all other
controls when ... more >>
Why do we need more code in Application_AuthenticateRequest()?
Posted by Andrew at 4/20/2006 6:51:02 PM
Hello, friends,
I am implementing a role based authentication (Forms authentication) for our
web app using .net 1.1. I read the paper:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT04.asp
However, what I could not understand was: After adding a new ... more >>
temporary internet files
Posted by Mark at 4/20/2006 6:43:03 PM
Is there a way in asp.net to delete the temporary internet files from IE?
Thanks.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is there a way to block images from being viewed if not loaded inside a page?
Posted by darrel at 4/20/2006 6:22:06 PM
Is there a way to prohibit images from being viewed (linked directly to)
unless they are loaded from a page in my application?
I'm working on a project where one can create galleries of images. Some of
these galleries can be PWD protected. Of course, it's easy to protect the
ASPX files, but... more >>
*.cs files and ASP.NET 2.0 code beside model
Posted by Maxwell2006 at 4/20/2006 6:13:03 PM
Hi,
I am a bit confused about the inline source code compilation (or code beside
model) in ASP.NET 2.0
My understanding was that anything in App_Code folder will be compiled at
the 1st request time.
Today I created a Default.aspx file in VS2005 IDE. The IDE also created the... more >>
downloading file from asp.net to flash not working
Posted by Trapulo at 4/20/2006 6:10:12 PM
Hi, I've a big trouble with an asp.net page.
Basically, the page has an swf that starts and downloads some data from an
other asp.net page. The application works well on my testing IIS 6, but when
I upload it on production server (an other IIS6), it cannot download
anything. The application... more >>
ActiveDirectoryMembershipProvider Object Reference not set ...
Posted by JD Qixcle at 4/20/2006 5:08:01 PM
I have been following several threads between David Thielen and Luke Zhang
[MSFT] regarding the ActiveDirectoryMembershipProvider as used for ASP.NET
2.0 Forms authentication, but I receive a slighly different error. I
consistently receive the following message after submitting credentials fr... more >>
Can I break a codebehind file up into two parts using partial clas
Posted by AAOMTim at 4/20/2006 4:56:01 PM
I want to break up development of my codebehind file to allow developers to
work on them independently without worrying about merging the files. Each
references objects from the aspx file. Any suggestions?
--
Tim... more >>
How to determine where submit() was sent from???
Posted by dandrew22 via DotNetMonster.com at 4/20/2006 4:48:55 PM
Hi all
I'm completely new to ASP.Net and need some help please.
I'm doing some client side validation using Javascript. The relevant code is
below:
<input type="button" value="submit" onclick='return checkDetails();' />
formObj = document.forms[0]; //refers to the current form.
formObj.... more >>
Can the Profile data be altered by the client?
Posted by Christian Döring at 4/20/2006 4:35:09 PM
Hi,
I want to store a refferer id in the ASP.NET 2.0 Profile. I have read, that
you shouldn't store sensitive data in the Profile without encryption. Is it
because it is stored as clear text in the database or are there other
reasons? When I set the refferer id on the server side, can I rel... more >>
Does Visual Express support Code Behind or Inline model only?
Posted by Charlie NO[at]SPAM CBFC at 4/20/2006 4:14:55 PM
ASP 2.0 databound controls and code behind
Posted by Charlie NO[at]SPAM CBFC at 4/20/2006 3:58:36 PM
Hi:
The new databound controls (GridView, DetailsView, ect.) use declaritive
syntax (i.e, setup in HTML at design time). However, at times sql
statements and parameters may need to be derived at runtime. In ASP 1.0 we
could do this in code behind, but how do we do it in ASP 2.0? The exa... more >>
how to make a dll registrating in registry from a webserver
Posted by Lars Skogshus at 4/20/2006 3:30:16 PM
I made a UserControl in VB.NET and uploaded it to the webserver, my problem
is that the dll dont register in the registy at the client registry. I
think it do How should i do?
here is my code from the website.
<html>
<body color=white>
<hr>
<font face=arial size=1>
<object id="myControl... more >>
SmtpClient Asynch
Posted by Dabbler at 4/20/2006 3:30:02 PM
I need to send an email from a page's code behind. I wondered if I can use
SendAsynch and then response.redirect to a confirmation page without having
to worry about the message.Dispose() method. Is this bad practice?... more >>
Casting a page as Previous Page
Posted by g3000 at 4/20/2006 3:13:39 PM
I have a problem with a Visual Studio 2005 web project.
I have two pages. SelectProject.aspx and ShowProject.aspx
The first page ( SelectProject.aspx) has two drop down lists.
After the user selects the value in the first drop list the second
filters. That works fine.
But when I click t... more >>
what the heck...
Posted by Brian Henry at 4/20/2006 3:04:21 PM
I posted a question about atlas twice now and it never showed up, did anyone
see it? i posted one last night and one today
... more >>
PLEASE - ASP.NET 2.0 popup window not processing dateselected event
Posted by K B at 4/20/2006 2:43:26 PM
I'm using 2.0 and am opening a popup window in javascript. All works
fine including the Calendar popup window and the select function. When
it gets to the last line which is to process the client script to return
the value to the window.opener it just keeps the popup window open.
I tried test... more >>
Back button (.net) generated not working
Posted by ShaneFowlkes at 4/20/2006 2:37:08 PM
Somethinng odd is happening. I have a form button and on page load, I add a
javascript "back" function to this button. Like so:
btnCancel.Attributes.Add("onclick", "javascript:window.history.go(-1);")
<asp:Button ID="btnCancel" runat="server" Text="Cancel and go back." />
This g... more >>
Issue with skins and style sheets (CSS)
Posted by Mike Grace at 4/20/2006 2:20:06 PM
Hi,
Sorry for the stupid question but :-
Am I correct in thinking that a CSS style sheet file only affects HTML
elements and not asp.net controls and that the skin file is used for this?
I am trying to set up a theme and no matter what I put in the CSS file, it
doesn't seem to have any ... more >>
Scrolling to bottom of page
Posted by magreenb at 4/20/2006 2:12:04 PM
I need the browser to scroll my asp.net page to the bottom when the user
clicks on a server-side link or button at the top of the page. I added an
anchor tag <a name=#bottom> to the html and tried to attach javascript to
the click event of the button that creates <a href=#bottom>, but it won'... more >>
is it possible that pressing "previous page"(back) button of web browser by code
Posted by yasin at 4/20/2006 1:40:42 PM
is it possible that pressing "previous page"(back) button of web browser by
code ?
... more >>
Open Popup Window
Posted by Lou Civitella at 4/20/2006 12:32:30 PM
Using VB 2005 and ASP.Net 2.0.
I have a Image control on my page that gets updated when you click on an
item in a list box. This works without any problems. Now I want to be able
to use the same value that is in the list box and have the user click on the
image control and open a new window... more >>
Visual * Express free forever. Thank u Microsoft !
Posted by Web learner at 4/20/2006 11:52:30 AM
http://blogs.msdn.com/danielfe/archive/2006/04/19/579109.aspx
... more >>
Cross Page Posting using public property on previous page
Posted by theWizard1 at 4/20/2006 11:43:02 AM
Using Visual Studio.Net 2005, Asp.Net 2.0, and trying to use technique shown
in the Programming Asp.Net 3rd Edition by O'Reily, page 257.
On the first page, this would become the previous page, I have 2 dropdowns.
According to their technique, I should create a public property on my
pre... more >>
Javascript errors on page while displaying SQL Reports in asp.net
Posted by Beginner at 4/20/2006 11:18:01 AM
I get javascript errors on the page when I try to display SQL Report using
Report viewer in ASP.NET 2.0 (VS 2005). Even the images are not displayed.
Please advise.
Thanks.
... more >>
Render Html Question??
Posted by Islamegy® at 4/20/2006 11:09:26 AM
I have all HTML in my Database.. and I need to have a search capability in
my site..
I can't search using SQL Select statment because of html tags may give
undesired result...
So I thought about to way to implement search
1- render html to get the text and search in it..
2- search the html... more >>
ASP.NET Forum?
Posted by Bill at 4/20/2006 11:05:10 AM
Can anyone recommend a good, free ASP.NET forum?
I'm experienced in classic ASP, and I want to learn ASP.NET. I'm looking for a free
VBScript ASP.NET forum who's code I can learn from.
I've been searching the web & so far have come up with nothing substantial.
Thanks!
... more >>
ReportViewer and print?
Posted by Chris Botha at 4/20/2006 10:15:02 AM
I'm using ReportViewer in VS2005 to generate local reports, i.e. the report
is in the project, not in Report Server, and it works great.
Problem is, when the user wants to print, the report has to be exported to
PDF and then printed.
There is a property on the ReportViewer named ShowPrintButto... more >>
DataGridView - Determine if a row has been edited
Posted by P K at 4/20/2006 9:56:01 AM
I have a Datagridview.
I only edit couple of columns.
No new rows are added.
I need to know the count of "rows" that were modified.
how do I acheive this?... more >>
Gridview error
Posted by Phuff at 4/20/2006 9:33:20 AM
My Delete and select commands work like a charm, but Update won't
work!! Can someone help??
<asp:GridView ID="GridView1" runat="server" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4"
DataSourceID="concept" ForeColor="#333333"
GridLines... more >>
PP: Processing Time for Methods and Functions
Posted by prabhupr NO[at]SPAM hotmail.com at 4/20/2006 8:56:56 AM
Hi Folks
Is there any tool currently available that can tell me execution time
for each of my Methods & Functions within my .NET Application.
What I'm trying to achieve is, identifying the culprit methos who
consume more memory + execution time.
If this is a wrong discussion group/board, th... more >>
System.Diagnostics.Trace.Write() doesn't work in ASP.NET apps
Posted by Oleg Ogurok at 4/20/2006 8:24:30 AM
Hi there,
My ASP.NET 2.0 app uses an external assembly that calls methods like
Trace.Write() and Trace.TraceError() of namespace System.Diagnostics.
I need to enable tracing in my web app so that I could see the trace
messages from the component.
Here's what I've added to web.config so far:... more >>
stop client side caching
Posted by James Coleman at 4/20/2006 8:04:02 AM
I am using the loginview control on my pages where a logged in user gets a
different nav control than a non logged in user. The problem is, that if the
client's IE page caching is set to automatic, the non-logged in view is shown
to a logged in user if they had previously hit the page logged ... more >>
un-necessary HTML Changes
Posted by Sai at 4/20/2006 7:47:12 AM
Friends,
Every time I go to design mode of ASPX page, and add a control to the
form my HTML is getting changed and
adds un-necessary tbody tags and other junk code. As a result of this
screws up whole design,
how can I stop this from happening, is there any setting to lock the
HTML code?
... more >>
adding smtpClient to web.config
Posted by theWizard1 at 4/20/2006 7:41:02 AM
Using VisualStudio 2005, asp.net 2.0:
What do I put in my Web.Config to avoid hard coding the: myserveraddress.com?
The following shows how I have hard coded it without having the value in the
we.config, and it works. However, I would like to place it in my web.config
file, and then just... more >>
Javascript file not being called at appropriate time in 2.0?
Posted by Roy at 4/20/2006 7:12:20 AM
Quick 2.0 question. I have this script in my <HEAD> tag:
<script TYPE="text/javascript" src="js/myscripts.js"></script>
I'm using the callback functionality of 2.0 and the page doesn't work
correctly because the javascript file is clearly being loaded at some
time that is incompatible with t... more >>
HttpHandler + Server.Execute to achieve URL Rewrite
Posted by Jeeran at 4/20/2006 7:07:02 AM
I need to perform url rewriting to convert this (for example):
/blogs/feeds/popular/posts/
to this:
/blogs/feeds.aspx?type=popular&type2=posts
What I did was the following:
1. Created an http handler that parses the url and based on it will execute
another aspx page using Server.Execute... more >>
How to read/import an excel file programmatically to a db?? help
Posted by Reza Solouki at 4/20/2006 6:55:01 AM
Hello,
I never had to do anything with office tools programmatically till now(I
guess there is first time for everything), so this might be a very silly and
simple question for some of you.
Any way, the new system that I am programming will need to be feeded daily
with an excel file. So I... more >>
form submit
Posted by Davey P at 4/20/2006 6:49:02 AM
I have a webform (frmMain) which contains an iframe. In this iframe I display
another webform (frmSub). I needed to submit frmSub from frmMain client-side,
so used the following javascript:
myIframe.document.forms[0].submit( );
It submits frmSub in the iframe, but the behaviour is not what... more >>
asp 2.0 Master Page and Page_Load
Posted by kajsa.linderborg NO[at]SPAM afa.se at 4/20/2006 6:47:11 AM
I have a problem with getting my aspx-pages with a master page to
understand that I have written something in my controls in the
Page_Load-event of the content-page.
I have a simple page with a textbox and a button. I write something in
the field and click the button. In the Page_Load it seems... more >>
Gridview and Updating
Posted by Michael at 4/20/2006 6:29:02 AM
Hi Everyone,
I've been having a problem with the Gridview control. I have posted a few
messages relating to the issues, but I have a general question. Does the
Dataview control have to be bound to a datasource that also contains the
update/delete Sql statements? The resaon I ask is that I've ... more >>
Form submission when hitting enter
Posted by mazdotnet at 4/20/2006 6:27:43 AM
Hi guys,
I have 2 fields and a button where users have to enter a username and
password. How do I set it so that my page gets submitted anywhere the
user clicks enter while filling out those forms? Right now you have to
click the button using your mouse or using TAB to bring it in focus.
But ... more >>
Selectall() on texbox
Posted by Sean at 4/20/2006 6:27:02 AM
In windows forms
textbox1.focus()
textbox1.SelectAll()
makes the text in the textbox selected when the above is run
What is the ASP.NET version of the same task becuase Texboxes do not have
..SelectAll()
Thanks... more >>
Some data is missing when Excel Import. (T.T plz help.)
Posted by bluewind44 at 4/20/2006 5:18:54 AM
Hello, I made a page that used for import data from .xls files.
At this page, users upload the .xls file to the server, then the app
uses an OleDB connection and the Jet provider to read the data using
the OleDB DataAdapter, then I bind it to a datagrid.
It works fine, but occationally some ... more >>
Load report failed
Posted by Andreas at 4/20/2006 5:11:02 AM
I am tryng to load a Crystal Report in Visual Studio 2005 but I'll get "Load
report failed"...
I have tryed to load the file with a FileStream and it works without error
so I can load the file as I have understand it...
My simple code to test report loading:
string reportPath = Serv... more >>
users and aspnetdb.mdf
Posted by szosty at 4/20/2006 4:31:36 AM
hi
how can I add 1000 users (user_name, password) from txt, csv file to
aspnetdb.mdf database???
thanks
eresz
... more >>
more info
Posted by paris baughman at 4/20/2006 4:22:02 AM
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<identity impersonate="true"/>
</system.web>
<location path="~/Maintenance">
<system.web>
<identity impersonate="false"/>
</system.web>
</location>
</configuration>
the above is... more >>
Problems With the <location> element in my Web.Config
Posted by paris baughman at 4/20/2006 3:46:02 AM
Im trying to setup impersonation in the root directory and turn it off (
false ) in another directory. im doing to allow my crystal reports to work (
as i get the login failed message ) and also ensure that only certain people
has access to the maintenance folder ( impersonation = true ). H... more >>
refresh gridview at postback
Posted by Simon Strandgaard at 4/20/2006 1:53:19 AM
Hi group,
my setup:
I have a GridView that extracts data from my table (a SqlDataSource).
For each row, I have an 'edit' button and a 'delete' button.
The 'edit' button opens a popup, through which one can insert and edit
the table.
The 'delete' button deletes the row.
my problem:
Th... more >>
Status bar with menu and sitemapprovider
Posted by Kjell at 4/20/2006 1:17:02 AM
Hi
Is there any way to have the status bar showing a custom text (such as a
description) when hovering over an asp.net menu menuitem?
We are using our own custom sitemap provider and it would be great if we
could have the status bar show a unique description for each menuitem instead
of ... more >>
OutputCache
Posted by Liming at 4/20/2006 12:02:00 AM
Hi all,
A quick question on Cache. I'm not sure what I'm doing wrong. I'm
testing out two pages. Page1 and Page2. Page1 click a button, redirect
to page 2.
on both page, i have
<%@ OutputCache Duration="1" Location="None" VaryByParam="none" %>
and on both page_load, I try to do print ... more >>
How to precheck the checkbox of Bound CheckBoxList?
Posted by oshiko at 4/20/2006 12:00:00 AM
Hi All,
Below is my SQL Statement,
Select Text, Value, Status from Tables
I want to mark as a checked when the Status is true, how do I achieve this
during databinding?
Thank you very much.
Regards,
Oshiko
... more >>
This page contains both secure and nonsecure items
Posted by Mantorok at 4/20/2006 12:00:00 AM
Hi all
This has been driving me nuts for months now, if I access my site from IE
https://db.cornwall.gov.uk/PlanningApplications and then hover over one of
the 2-level menus it comes up with the message:
"This page contains both secure and nonsecure items. Do you want to display
the nonsec... more >>
Problem in UPDATE query in GridView
Posted by Saber at 4/20/2006 12:00:00 AM
I have a gridview:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None"
DataKeyNames="ADid">
and it is my update query:
UPDATE tblAds SET ADName ... more >>
|