all groups > asp.net > october 2004 > threads for tuesday october 26
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
Access to the path "D:\Kevin's Web Apps\InternalSPHIR\Config\Resource.Config" is denied.
Posted by kevin.quigley NO[at]SPAM scieh.csa.scot.nhs.uk at 10/26/2004 11:56:05 PM
Hi,
I am getting the above error messsage and I can't work out why this is
happening.
I've checked what account the application is running on (using
System.Security.Principal.WindowsIdentity.GetCurrent().Name) and it is
the ASPNET account.
I've given ASPNET account full permissions on th... more >>
shift + ctrl charactor
Posted by Guoqi Zheng at 10/26/2004 11:56:03 PM
Can some one tell me what is the chr value of Shift + Ctrl? a kind of soft
return. an Enter, hard return is represented by chr(10) + chr(13), how
about shift + ctrl?
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
... more >>
Need help applying a stylesheet to a pushbutton control in a datagrid
Posted by Tim Meagher at 10/26/2004 11:46:16 PM
Can anyone help me figure out how to apply a stylesheet to a pushbutton
defined in the asp:BoundColumn or asp:EditCommandColumn elements of a
datagrid?
... more >>
how to display sql server uniqueidentifier (GUID) in a combo box in ASP.NET
Posted by geeksgk NO[at]SPAM yahoo.com at 10/26/2004 11:03:11 PM
I need to display uniqueidentifier (GUID) from a table in SQL Server
into a ASP.NET Web Page (Combo box). I'm using C#.
When I tried to display GUIDs in a combo box I get "System.Byte[]" for
all the items in the combo box.
Code :
ddSeverity.DataSource = A dataset is returned here;
ddSeve... more >>
access the base Page class from user controls??
Posted by Davíð Þórisson at 10/26/2004 10:44:25 PM
Please can someone tell me how on earth to create an instance of my top
level (base) Page class so that I can access it's objects from an user
control?? Someone told me
public myParent = (default_aspx) this.Page;
where default_aspx is the class name of the base Page...
... more >>
Session_End doesn't fire after uploading new code to live server
Posted by Ben Fidge at 10/26/2004 9:39:04 PM
I use the session_end in global.asax to perform clean-up of a temporary
shopping cart table. Shoppping Cart items are stored with a session id in
the table, and when a session ends a small rountine checks the shopping cart
table and deletes any stray items.
This has worked a treat for weeks... more >>
force dynamically added controls to be initialized
Posted by Egbert Nierop \(MVP for IIS\) at 10/26/2004 9:11:30 PM
Hi,
I have a complex asp.net 1.1 program that dynamically needs to load controls
(LoadControl)
The textboxes etc inside these controls keep viewstate and values but not
within
Page_Load()
when that event is 'going on' the load control happens but the values are
not yet 'filled in' They... more >>
No such host is known
Posted by Guoqi Zheng at 10/26/2004 8:54:09 PM
This is an email application. I need to connect to the pop server user
specify. However, when they input an invalide host name, they will get an
error message saying that No such host is known.
How can I validate the host and give them an predefined error message to
correct it?
--
Kind re... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.NET, SQL Reporting Service, & Temp File problem
Posted by hotice3100 at 10/26/2004 8:23:01 PM
I have created an interface for a SQL Reporting Service report. SQL Reporting
Service makes a virutal directly in IIS called ReportServer.
There are various buttons on the form I created and one is View. When the
user clicks View, I fire a window.open, that has the URL string, to the
Repor... more >>
debug stored procedures
Posted by Max at 10/26/2004 7:33:37 PM
The only way VS.NET will let me step thru stored procedures is if I first
open up enterprise manager. Is there a way to debug without this open?
Apparently opening it authenticates a Windows login I guess...
-Max
... more >>
Page.Request in class file
Posted by Colin \(615498\) at 10/26/2004 5:33:31 PM
Why is the request and response properties not available from within a class
file? Do I need to refer in same way to objects or classes from the calling
page?
Thanks,
Colin.
... more >>
Regular Expressions
Posted by Scott Natwick at 10/26/2004 4:57:28 PM
Can anyone suggest a good reference for Regular Expressions?
Or more specifically, I need to check that a user has made a selection from
Drop Down List. The default in my Drop Down List is "[Select a Model]". I
need a Regular Expression to trigger if this default value has not changed.
A... more >>
Authorization problem
Posted by Nikolay Petrov at 10/26/2004 4:54:41 PM
The following code doesn't produse the expected effect to only allow the
members of Administrators group to access the web method, it stops everyone.
=========
<WebMethod(), _
PrincipalPermission(SecurityAction.Demand, Role:="Administrators")> _
Public Function HelloWorld() As ... more >>
Microsoft Script Control 1.0 and ASP.NET
Posted by Harry Simpson at 10/26/2004 4:46:47 PM
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C4BB7B.6205B810
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
My boss is an ol' Microsoft Script Control 1.0 script guru. So when we =
needed to calculate fees he wanted ... more >>
Style sheet - two textboxes - different styles
Posted by Chris at 10/26/2004 4:43:45 PM
Hi
I have another style sheet question:
We effectively have a page that has two text boxes on it.
We would like one text box to be in one style and the other text box to be
in another style.
The problem is we would like the user to be able to control the styles using
style sheets.
Is th... more >>
Accessing a property in a webcontrol from parent page
Posted by spmm# at 10/26/2004 4:29:39 PM
Hi!
Could someone please help me with the following; I have a WebControl that
basically looks like this:
public class LeftMenu : System.Web.UI.WebControls.WebControl
{
private string m_CurrentNodeId = string.Empty;
public string CurrentNodeId
{
get
{
return m_CurrentNodeId;... more >>
Login.aspx??? Error
Posted by Sam at 10/26/2004 3:59:35 PM
I'm trying to create authentication for username and password but encounter
below error message:
Error Message
-----------------------
The ConnectionString property has not been initialized.
Description: An unhandled exception occurred during the execution of the
current web request. Pleas... more >>
part of setup exe runs under system account
Posted by Prashant at 10/26/2004 3:31:25 PM
Hi,
I have a setupt program that calls an exe as custom action, problem is this
exe gets executed under system account, while setup runs under olgged in
user account, that prevents exe to make sql connections, as it is using
windows authentication.
If i run that exe separately it runs under log... more >>
Good asp.net examples - Any website suggestions?
Posted by Dave Smithz at 10/26/2004 3:14:11 PM
Hi there,
I need to find some websites that show a good example of using ASP.net as a
front end to MSSQL. I have to demonstrate this to a potential client and
they want an idea of what the forms can look like.
Ideally there would be forms showing inserting customer etc, just like a
traditio... more >>
VS2003 new web project
Posted by Neven Klofutar at 10/26/2004 3:13:39 PM
Hi,
Can anyone tell me what exactly happens when VS2003 creates new web project,
what kond of permission it creates and where ... I can see that by default,
it tries to make new virtual directory on c:\inetpub\wwwroot.
When I deploy a web project on server my admin created for me (manualy, n... more >>
How to use Data Formatting Expression?
Posted by Dexter at 10/26/2004 3:05:56 PM
Hello all,
I have a DataGrid in my Web Application, and it contains a column that i
need to format.
The data is 03856219000126 and i need to show as 03.856.219/0001-26.
Somebody can help me with this?
Thanks
Dexter
... more >>
ImageButton has not onClick method
Posted by tshad at 10/26/2004 3:02:24 PM
I was trying to change my asp:button to asp:ImageButton, but got a message
saying that ImageButton does not have an onClick function.
How do I get the ImageButton call a function?
Thanks,
Tom.
... more >>
Conflicting dependency error/warning message
Posted by Dave at 10/26/2004 2:45:02 PM
I keep getting this warning (sometimes error):
Warning: The dependency 'Brierley.Process, Version=1.0.1711.13537,
Culture=neutral' in project 'ATCustomerSrv' cannot be copied to the run
directory because it would overwrite the reference 'Brierley.Process,
Version=1.0.1760.27985, Culture=neu... more >>
formatting date
Posted by Manny Chohan at 10/26/2004 2:17:08 PM
How can i convert 2004-10-26T14:52:51.515Z to mm-dd-yyyy format? i am
getting this when querying exchange server for date recieved for messsages.
THanks in advance.
Manny
... more >>
DataGridItem.DataItem property?
Posted by Joel Lyons at 10/26/2004 2:09:25 PM
The help pages make it look like the DataGridItem.DataItem property would
return a row from the bound table. Like so:
//(during setup)
myGrid.DataSource = myDataset.MyTable;
myGrid.DataBind();
//(in OnSelectedIndexChanged)
MyTableRow row = myGrid.SelectedItem.DataItem as MyTableRow;
myL... more >>
Can you have the Validation Summary control update without a button click?
Posted by Mike at 10/26/2004 2:00:16 PM
I have a bunch of validators set up to run on the client. They are all
updating as expected on the client side. The summary is only updated when I
click a button. Is it possible to get the Validation Summary to update any
time a validator is updated? (focus changes, etc...)
Thanks,
Mik... more >>
Register client script question
Posted by Hardy Wang at 10/26/2004 1:58:47 PM
Hi,
By calling Page.RegisterClientScriptBlock, the JavaScript will be
generated right after VIEWSTATE hidden field. Is there a way I can register
my script to end of page instead beginning?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
... more >>
Web.Config Error?
Posted by Sam at 10/26/2004 1:51:57 PM
I try to create login page name authentication.aspx and encounter following
error message.
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your con... more >>
Programatically resetting web form
Posted by Hrvoje Vrbanc at 10/26/2004 1:50:02 PM
Hello all!
I have the following question: what's the easiest way to reset the content
of an ASP.NET web form from within some event handler (e.g.
DropDownList_SelectedIndexChanged) in the code behind file?
I have a web form that has plenty of text fields populated by records from a
datab... more >>
Clearing a DropDownList
Posted by Vi at 10/26/2004 1:43:08 PM
Hi,
Is there a way to clear a DropDownList from code behind, something similar
to myDropDownList.length=0 on the client?
Thanks.... more >>
System.ArgumentOutOfRangeException: Index was out of range
Posted by hari at 10/26/2004 1:09:31 PM
This is a multi-part message in MIME format.
------=_NextPart_000_001E_01C4BB5D.0808E5D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Anyone have a link to solve this one?
I am using the SqlData class in an asp.net page. The class fills a data... more >>
Okay to Exclude both Name and ID?
Posted by Guadala Harry at 10/26/2004 12:57:33 PM
I'm dynamically building an HTML <table> that has a bunch of rows - each of
which presents read-only data in DIVs.
Just wondering if it's okay to omit both the Name and Id attribute of the
DIV tags in the table - or if there is some good reason why I should go to
the effort to create a unique ... more >>
Creating a Product/License Key
Posted by SouthSpawn at 10/26/2004 12:55:35 PM
I am creating a web application. I would like to create a product key for
the app that expires after a full year of usage. Any suggestions?
Thanks,
Mark
... more >>
Session Hijacking?
Posted by kevin NO[at]SPAM kevinolds.com at 10/26/2004 12:39:01 PM
Hello all,
I have written an asp.net application using C# and am having an
issue in multiple-user environments. If one user is logged in (using
Windows authentication), everything is fine. Once another user logs
in, the other user already logged on also becomes that user. I have
code in the... more >>
How to remove a client script in a page?
Posted by Hardy Wang at 10/26/2004 12:30:42 PM
Hi,
I have a page which will call RegisterStartupScript function to register
a client script. I also need to remove it under some certain condition, is
there a way?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
... more >>
How2 View Code From Framework Classes?
Posted by clintonG at 10/26/2004 12:14:59 PM
Hopefully the subject of this message was self-explanatory.
--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET csgallagher@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwauke... more >>
What Does <%# mean/do in asp.net?
Posted by Hasani \(remove nospam from address\) at 10/26/2004 11:59:11 AM
What Does <%# mean/do in asp.net?
I couldn't find it in the msdn docs.
... more >>
Style sheet formatting not working with Multiline text box.
Posted by Chris at 10/26/2004 11:32:36 AM
Hi
We are using style sheets to set the font of our labels and text boxes.
This has been working great until we required a text box with a textmode of
Multiline.
The control picks up the correct font/size until the text mode is changed
from single line to multiline.
We're currently using... more >>
Session.Abandon when closing the browser
Posted by JMM B at 10/26/2004 11:30:30 AM
How can I execute asp.net SESSION.ABANDON from a client script event
onbeforeunload.
I'm trying to do this to logout a user without waiting for the session
timeout.
thanks a lot.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for... more >>
Session.Abandon when closing the Browser
Posted by JMM B at 10/26/2004 11:30:25 AM
How can I execute asp.net SESSION.ABANDON from a client script event
onbeforeunload.
I'm trying to do this to logout a user without waiting for the session
timeout.
thanks a lot.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded... more >>
Nested DIVs - is there a better way?
Posted by Guadala Harry at 10/26/2004 11:29:40 AM
Please follow my thinking here and tell me if I'm nuts or if this is a
reasonable thing to do given the objective:
I'd like to present 3 data values on an aspx page - each styled uniquely,
and the total width to be limited to some arbitrary value (400px or so).
Given that I'd like to limit t... more >>
ValidationSummary issue
Posted by Hardy Wang at 10/26/2004 11:14:31 AM
Hi,
I have some validations on a page, some of them are CustomValidation
which will go to server to do some complex logic.
I set the ValidationSummary.ShowMessageBox = true, but message box won't
popup. After I do a research over net, I found it is a bug from MS. Anybody
has good wor... more >>
How prevent users from dl my mdb
Posted by VB Programmer at 10/26/2004 11:12:58 AM
My ASP.NET app is referencing an mdb file. How can I prevent hackers/etc...
from downloading the mdb (if they know the name/location of it?)
Right now they can just go to http://www.mysite.com/MyDb.mdb and save it to
their hard drive.
Thanks.
... more >>
Code Behind Form
Posted by Prince at 10/26/2004 11:04:29 AM
I have strange problem. If in Design Mode and I drag a
Web Server Control onto the form, Visual Studio
automatically declares the control for me in the code
behind page.
However, if I'm working in HTML mode and I manually enter
the the Web Server Control, nothing is written in the
code... more >>
request timed out
Posted by saumin_patel NO[at]SPAM hotmail.com at 10/26/2004 10:53:28 AM
I have an aspx page, which ususally takes 7-10 mins to execute. So, I
set
executionTimeout=600 under httpRuntime tag in my web.config. But after
3 minutes, it fails with the error message of
"System.Web.HttpException: Request timed out".
The aspx is calling a .NET component which is doing diffe... more >>
DataGrid - Textbox
Posted by Irishmaninusa at 10/26/2004 10:43:53 AM
Hello Everyone,
I have a datagrid and have used a text box as way to allow a user to edit
items in the grid. My question for you is how is it possible to write code
for the text change event of the text box. I want to put in some validation
and I don't want to use the validator controls bec... more >>
Sending attchments in a web service (SOAP with DIME)
Posted by ipsita.mohanty NO[at]SPAM gmail.com at 10/26/2004 10:31:55 AM
Hi!
I am trying SOAP with DIME attachments in web services. For example
say, I have a file resume.pdf stored somewhere on my server. How does
the web service send the file to the client, so that the client can
store it and also read from it. I am trying out with C# and ASP.NET.
Is there any s... more >>
Need "get" accessor to return property name
Posted by Bill Borg at 10/26/2004 10:23:02 AM
Hello,
I've got a simple shared property, e.g.
Public Class dbObject
Private Const m_ID As String = "ID"
Public Shared ReadOnly Property ID() As String
Get
Return m_ID
End Get
End Property
End Class
Rather than use the private var... more >>
How to a call a function from a user control's parent page ?
Posted by grist2mill NO[at]SPAM excite.com at 10/26/2004 9:51:08 AM
I want to create a standard tool bar that appears on all pages that is
a control. The toolbar has a button 'New'. What I wolud like when the
user clicks on 'New' depends on the page they are on. I would like to
do this by defining a NewFunc() that is different in each
(code-behind) page which is... more >>
Changes are not visible
Posted by simon at 10/26/2004 9:42:01 AM
I change something in code behind and clik Build solution.
Then I go to the page and click refresh.
The changes are not visible? Why? What should I do?
If I close the window and open it again, than the changes are visible.
But I can't open and close the windows all the time, it takes time.
... more >>
URL rewriting and querystrings
Posted by anthonykallay NO[at]SPAM hotmail.com at 10/26/2004 9:17:20 AM
Hi all,
I have succefully implemented url rewriting into my application using
the instructions from here,
http://www.codeproject.com/aspnet/URLRewriter.asp
All is well except i would like to ocassionally use a querystring as
well..
so instead of page.asp?Id=100&Error=true
it would b... more >>
Internal or External Reqest
Posted by Qingdong Z. at 10/26/2004 9:17:04 AM
I have an asp.net application which used by internet and intranet in the same
time. I can get the IP Address from Request Object. How can I know the
request come from Internet or Intranet?
Thanks.... more >>
printing tables...
Posted by alnur.ismail NO[at]SPAM scotiabank-dot-com.no-spam.invalid at 10/26/2004 8:55:37 AM
Hey guys,
I've got a page that has multiple tables (all same format, they just
contain diffrent information) and when u print that page the tables
get cut up and spread out on multiple pages. I've done my research
and it looks like it isn't impossible to print the tables properly
even when us... more >>
exception handling
Posted by stermic NO[at]SPAM gw.co.jackson.mo.us at 10/26/2004 8:36:30 AM
ok, i'm getting the "System.FormatException: Input string was not in
correct format." error. all i want to do is see the select statement
that the code is generating. how do i do it? i'm guessing i need to
catch it in a try except block but i'm so green that i can't figure it
out. also i have my... more >>
Authorizing Anonymous User - IIS6/.NET
Posted by Kevin Hoskins at 10/26/2004 8:23:44 AM
Is there anyway to force authentication of the Anonymous user?
Here is the situation:
I have an ASP.NET page which calls an assembly which requires a certain
level of permissions. The page is running in a virtual server whose
anonymous user is a network account with the required permissions. ... more >>
Scrollable Datagrid : creating paging links dynamically outside the scroll bar
Posted by RJN at 10/26/2004 7:40:29 AM
Hi
Sorry for posting again.
I have a datagrid which is put inside a div tag to make it scrollable. I
need to page the datagrid. The page numbers appear at the bottom of the
datagrid and has to be scrolled down completely to see the page number
links. The page number should always be visible... more >>
Render PDF to HTML on-the-fly?
Posted by Steve E. at 10/26/2004 7:35:00 AM
Hello,
I'm looking for ideas (code, 3rd party apps, suggestions) regarding how to
display/convert a PDF file to HTML on-the-fly.
Thanks in advance for your help,
Steve E.
... more >>
SQLXML: error loading XSL stylesheet (A security error occurred)
Posted by campwes at 10/26/2004 6:57:04 AM
Hey, all! We're having trouble displaying SQL Server data in a web site as
XML, using a transform. The query is a simple SELECT statement. When
running the query, we get the following error from the web site:
<error>
[COMException (0x80004005): SQLXML: error loading XSL stylesheet (A secu... more >>
Connection String object Convert to String Variable Type
Posted by Mike Moore at 10/26/2004 6:49:02 AM
does anyone have an example of how to get the connection string object
converted to a string variable type in order for me to call a function?... more >>
Managed and Unmanaged Code Confusion
Posted by Sandy at 10/26/2004 5:29:05 AM
I am confused about Unmanaged Code, How .Net Framework treate that code,
What is the use of that.
Thanks in advance
Sandeep Chitode... more >>
Global ASAX
Posted by PRTC at 10/26/2004 3:30:02 AM
I'm trying to use the global.asax in my new web aplication proyect
using the Application start to store my connection string
GLOBAL.ASAX.vb
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim objConnection As OleDbConnection
Dim daContent As OleDbDataAdapter
Dim objD... more >>
Webservices SOAP and Namespace prefixes
Posted by Corne Rabe at 10/26/2004 3:25:05 AM
Hi all
I've got a webservices that will be called by a delphi product. They have
defined a soap message that they will use to call my webservice. A header
snippet is found below:
<soap:Header>
<mm:TheHeader xmlns:mm="http://The URL">
<SomeValue>123</SomeValue>
<AnotherValue>bl... more >>
Urgent: Postback for Repeater's ItemCommand
Posted by Amir at 10/26/2004 1:07:03 AM
It's very crazy problem.
I have a Data Repeater with a LinkButton in its ItemTemplte. I have a event
handler for ItemCommand event of the Repeater too.
In runtime, when I click the link(s) generated for repeater and debug my
code, just page_load executes.
I tested many solutions.
- Deleting... more >>
When to use HTML encode and when not to?
Posted by Darrel at 10/26/2004 12:32:55 AM
How does HTML.encode work?
I'm trying to save text in a hidden form field into a SQL DB. The tedt is
HTML (from a WYSIWYG editor...X-standard).
One problem I have is that stray apostrophe's in the HTML text are throwing
a SQL error. Html.encode doesn't seem to do anything with these, eh?
... more >>
|