all groups > asp.net > july 2004 > threads for tuesday july 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 31
Can you intercept the url request before a 404 error occurs?
Posted by RUSSELL MCGINNIS at 7/13/2004 11:34:01 PM
I am trying to get an HTTPModule to handle some form processing for me i.e. the form action tag points to a predefined url that doesn't exist and my BeginRequest handler check the url request and if it the predefined one it deals with the Request object etc.
However control never gets into the Be... more >>
Question: "Access to path denied" message
Posted by VB Programmer at 7/13/2004 11:09:50 PM
When I run this line:
Dim sw As New System.IO.StreamWriter(strFileName)
I get this error:
System.UnauthorizedAccessException: Access to the path
"c:\inetpub\wwwroot\MyWeb\Resources\Templates\MyPage.Html" is denied. at
System.IO.__Error.WinIOError(Int32 errorCode, String str) at
System.IO... more >>
ListBox and SelectedItem.Value
Posted by Mike at 7/13/2004 10:48:59 PM
Hello,
I have a web form with a Listbox. When trying to read the value of the =
last selected item with the statement below, I always get the first =
item, even if the user selected another item:
lstGrants.SelectedItem.Value)
I am new to ASP.NET, so I don't know whether AutoPostback sho... more >>
Element in Form
Posted by Mike at 7/13/2004 10:38:25 PM
Hi,
I have a form with some dynamic controls. I then open a popup calendar =
and set the selected date back to the "parent" form using this =
statement:
string script =3D "<script>window.opener.document.getElementById('" + =
control.Value + "').innerText =3D '";
script +=3D myCalenda... more >>
Processing delimited list then adding to listbox in java script
Posted by Brian Henry at 7/13/2004 10:12:22 PM
I haven't worked with java script much, I know how to do this server side by
constant post backs to the server on a webform, but it seems like i should
be able to do this client side also...
What happens is a modal dialog recieves a listing of users in a semi-colon
delimited list so its like t... more >>
Internet Explorer WYSIWYG HTML Text Editor
Posted by Jake at 7/13/2004 10:05:10 PM
Hi All,
I am writing an intranet page specificaly for IE 6 and
above that will contain a a few text boxes and a WYSIWYG
HTML Text Editor. Does anyone know if there is a WYSIWYG
HTML Text Editor in IE that I can use as a control on a
web page?
Thanks in adance
Cheers Jake... more >>
Object reference not set to an instance of an object.
Posted by Moe Sizlak at 7/13/2004 9:59:18 PM
Hi There,
I have a user control that has 2 listmenus populated from a database,
I want the form to submit when the listmenu are changed which seems
to happen no problem when the page is on it's own but when I have it
as user control I get the error "Object reference not set to an
instance
of... more >>
dispose and nothing? whats the main difference?
Posted by Asha at 7/13/2004 8:57:02 PM
greetings,
should i do this
obj.dispose
then
obj = nothing
both does the same thing right? whats the core difference?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Dynamic loaded webcontrol instantiation
Posted by kw at 7/13/2004 8:33:25 PM
Page X loads WebControl Y which loads WebControl Z.
WebControlZ defines a button:
protected System.Web.UI.WebControls.LinkButton SearchByAssr;
here comes the problem:
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
this.ButtonZ.Click += n... more >>
dropdownlist woes
Posted by martinthrelly NO[at]SPAM yahoo-dot-com.no-spam.invalid at 7/13/2004 8:32:04 PM
i have a dropdownlist consisting of titles (Mr,Mrs,etc.). I use the
text property to store a title and the value properties to store a
default gender code. e.g.
Title Default Gender
---- ----------------
Capt M
Col M
Dr U
Mr M
Mrs F
Ms F
lets say i choose 'Mr'. when i do a po... more >>
2 problems when exporting to excel HELP!!!
Posted by martinthrelly NO[at]SPAM yahoo-dot-com.no-spam.invalid at 7/13/2004 8:31:13 PM
i am using this code to export my page to excel:
Response.Clear();
Response.Buffer = true;
Response.Charset = "";
Response.ContentType = "application/vnd.ms-excel";
this.EnableViewState = false;
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
myDat... more >>
How to use java class object in ASP.NET?
Posted by cartooncat at 7/13/2004 7:11:49 PM
I have to translate an ASP project to ASP.NET, in the former project, a java
class object was used by VBScript:
Set Obj = Server.CreateObject("ccb.pub.RSAsig")
Obj.generateKeys()
Obj.getPrivateKey()
Obj.getPublicKey()
the object "ccb.pub.RSAsig" is a java class object registe... more >>
Custom configuration section handlers
Posted by Nick Gilbert at 7/13/2004 6:06:45 PM
Hi,
I would like the ability to store the configuration settings for all
versions of my site in a single web.config file by using different
sections. Eg:
<siteConfig>
<machine name="XENON">
<site url="/blog/">
<mode value="live">
<add key="ConnectionString" value="blah"... more >>
Permission check for secured subfolders?
Posted by TK at 7/13/2004 5:13:41 PM
Excuse me for multiple posting because I've posted this message to
aspnet.security NG but have not got any response yet.
I'm building an ASP.NET application works in Forms Authentication mode with
custom user account database. And it shows clients a list of hyperlinks to
content pages located ... more >>
Apply css to asp:HyperLinkColumn
Posted by Maziar Aflatoun at 7/13/2004 5:01:45 PM
Hi everyone,
Does anyone know how I can apply the css 'linksmall' to my hyperlink in my
datagrid?
I have the following and it doesn't work
<asp:HyperLinkColumn Text="Edit" DataNavigateUrlField="PID"
ItemStyle-CssClass="linksmall"
DataNavigateUrlFormatString="ManageItem.aspx?PID={0}">
... more >>
Accessing a Network Directory
Posted by G. Dean Blake at 7/13/2004 4:42:57 PM
using the following code....
Dim rootdi As DirectoryInfo = New
DirectoryInfo(Session("ScannedInvoicesDirectory"))
this works fine if it is a drive local to the web server. But if I try to
access a directory on a mapped drive, it comes up not found. I tried using
a Universal Naming Conventio... more >>
iFrame replacement
Posted by John Cosmas at 7/13/2004 4:36:31 PM
I had a page using iFrame and was able to control the contents of the
document inside of the iFrame. I took the same document, converted it into
a ASPX, and changed the iFrame to a Panel. I took the inset document and
changed it into an ASCX. Both pages are rendering correctly, but I'm not
ab... more >>
SmartNavigation, PostBack, and Filters are crashing IE 6
Posted by Greg Leizerowicz at 7/13/2004 4:10:33 PM
I'm crashing IE 6 when doing the following:
1. turn on SmartNavigation
2. run the following sequence a few times (IE will crash around the 3rd
time):
a. PostBack
b. set a filter using jscript - ex: document.body.style.filter =
"Gray()";
I've set up a simple project with one page, ... more >>
Best Way To Break Up Large ASP.NET Apps
Posted by cmay NO[at]SPAM walshgroup.com at 7/13/2004 4:05:27 PM
Where I work, we basically have 1 large ASP.NET application that we
work on.
This is compiled into one big DLL.
I think it would be a good idea to somehow break up the project, so
that if I am in the middle of development on some sub project, I don't
have to push up that code to fix a bug i... more >>
Smart Navigation
Posted by Simon Harvey at 7/13/2004 3:54:30 PM
Hi Everyone,
I've put the SmartNavigation = "true" directive into my page element on an
aspx page, but it isnt working.
The page is relatively simple.
It contains 2 user controls with various fields in each of them. Followed by
a single image button. I'm expecting it to retain its scroll ... more >>
Howto put the CodeBehind in a Class Library?
Posted by cmay NO[at]SPAM walshgroup.com at 7/13/2004 3:48:31 PM
As I understand it, I could create a class library, and then have some
of my ASPX pages inherit from classes in the class library (the web
application would have a reference to the class library DLL).
But is it possible to make this work nicely in VS.NET, the way the
default code behind pages ... more >>
Get a Value from HTML Control to WEB Control
Posted by Mariame at 7/13/2004 3:35:21 PM
Hi Everyone,
How to get a value from an HTML text filed (client side) to textbox (Server
Side) ?
Thanks
... more >>
Is it supported to render a ASP.NET user control in Excel
Posted by mail NO[at]SPAM sekhar.net at 7/13/2004 3:06:15 PM
I have a user control with a datagrid and few other information on
title and summary. Will I be able to render this control on a Excel
(Meaning Export to Excel) - just like the way we do for the datagrid?
Thanks in advance.
Sekhar.... more >>
How to Order these Records?
Posted by Miguel Dias Moura at 7/13/2004 2:41:16 PM
Hello,
i have this SQL code in my dataSet (I am working in ASP.Net / VB):
SELECT Author, COUNT(Author) AS totalDocuments
FROM documents
GROUP BY Author
ORDER BY COUNT(Author) DESC
What i want to do is this:
> When there are 2 Authors which published the same number of documents, i
wa... more >>
Help with ASPX Style Sheet
Posted by Wade Beasley at 7/13/2004 2:14:44 PM
I have a web site I am working on for a client using ASP.NET with VB.Net
for the language. The client decided they needed the ability to choose
between different page layouts based on a setting in the database. I
have the header and footer working correctly by using a custom base page
and bef... more >>
Can someone help with this response.text?
Posted by TN Bella at 7/13/2004 2:14:37 PM
Hello,
I don't know why I keep getting this error. I have 15 of each txtacctnum
(txtacctnum - txtacctnum14), txtcostcntr, txtrefnum, and txtacctamt.
Some of the inputs are null, so I don't want to display unless there is
a value. Can someone please help?
Object reference not set to an insta... more >>
Get UserPassword in ActiveDirectory
Posted by ruca at 7/13/2004 2:04:55 PM
Hi,
I have a Login Page that have Active Directory permissions. I can get the
domain and the user that are trying to access application, but I need to
"know" the password that user insert, because I have to compare with another
password that I have in a Database. Only if their are equal, user ... more >>
Referencing value of a dynamically created control
Posted by Mike at 7/13/2004 2:01:03 PM
I have a placeholder object in which I am dynamically placing controls based on a database query. Of course during postback these controls go away. I have seen other questions posed where someone wants the dynamically created controls to appear on the page. However in my case I don't really need to ... more >>
Book Recommendations
Posted by George at 7/13/2004 1:47:49 PM
Any good book recommendattions for ASP.Net using C#?
Thanks
... more >>
Diagnostics.Process class and ASP.NET
Posted by BCM at 7/13/2004 1:33:48 PM
In a simple console app the following few lines open up an Acrobat file
without a hitch:
Process p = new Process();
p.StartInfo.FileName = @"C:\test.pdf";
p.Start();
But the same code in an ASP.NET app does NOTHING. No error message, not
anything at all. In fact, if I add the following lin... more >>
ASP.NET /Classic ASP Security Mix
Posted by J at 7/13/2004 1:20:02 PM
Hi all, is there a recommended approach to integrate ASP.NET security features in a classic ASP app? My general idea is to create a front end sign in process to authenticate the user and issue an authentication ticket that the ASP pages could somehow use to identify the user. Has someone already s... more >>
Can I install tigether VS2003 and VS2005 on the same computer
Posted by vaidas gudas at 7/13/2004 1:15:38 PM
Problem with button in asp.net
Posted by vaidas gudas at 7/13/2004 1:12:26 PM
Hoe to make that on pressing button he asking "yes" or "no" on the client
side, and if it is pressing "yes" further it is processing the sub
button_onClick which is on the server,
I am programming in VB.NET
... more >>
Displaying different controls in repeater, depending on condition
Posted by sforeht NO[at]SPAM hotmail.com at 7/13/2004 1:03:49 PM
I am trying to use a repeater control in an ASP.NET application
(codebehind is C#), to display a bunch of error messages after a
validation has occurred.
In the codebehind, I have access to the type of error (severe or
warning). If the type of error is "warning", I want to display a
checkbox... more >>
asp.net setfocus after validation not working
Posted by usenet_daughter NO[at]SPAM yahoo.com at 7/13/2004 12:54:26 PM
i am trying to set focus to a specific control depending on the
outcome of a validator control and it is not working.
none of these methods are working to setfocus:
1. RegisterStartupScript("sf","<scriptlanguage='javascript'>document.form.MyControlID.focus();</script>");
2. Andy Smith's F... more >>
Calendar control questions
Posted by Jim at 7/13/2004 12:49:03 PM
Is there a way to add a user-defined column to the calendar control? For instance, I would like to give the user the ability to select a week at a time or daily tasks for a scheduling application I am working on. Below is a illustration of what I am asking for.
Week 1 | Day 1 | Day 2 | Day 3 |... more >>
Does it work in 1.1?
Posted by sluderisinthehouse NO[at]SPAM yahoo.com at 7/13/2004 12:34:33 PM
I am running this example:
http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/default.aspx
The example is a multifile upload that runs a winform in a browser.
The article was written for v1.0 of .Net and I am running v1.1. Has
anyone else run this example in v1.1? I can't get it to r... more >>
Please Help.It is very urgent
Posted by pargat_g NO[at]SPAM yahoo.com at 7/13/2004 12:11:34 PM
Hi
I format my M/C and install fresh copy of Win2000 and ISS.First
thing after that i install VS.net and every thing goes well without
any error.When i try to open asp.net application i am getting
web access failed
The default web access mode for this project is set to file share, but
... more >>
Added TemplateColumn is not showing in DataGrid after PostBack
Posted by missjadeseguin NO[at]SPAM hotmail.com at 7/13/2004 12:01:20 PM
Hello,
Hope somebody can help me with this cause I'm a ASP.NET beginner. I've
created A DataGrid, and I added few BoundedColumns, and in my
Page_Load section I added few TemplateColumns through the
myGrid.Columns.Add(myTemplateColumn). After that I bind the datasource
to the datagrid in the P... more >>
ASP.NET Newbie Question
Posted by Sheldon at 7/13/2004 11:25:52 AM
I have an ASP application that has been working for some time. I am in the
process of converting it to ASP.NET and I have run into a simple problem.
How do I convert the following code to ASP.NET?
If Not isNull(dtrSample("Address_1")) AND dtrSample("Address_1") <> ""
Then ......
Every t... more >>
WebClient.DownloadFile creates an error ??
Posted by Chris at 7/13/2004 11:13:04 AM
Hi,
I try to download a file using the following :
WebClient client = new WebClient();
client.Credentials = new NetworkCredential("Administrator",
"test","MYPC");
client.DownloadFile("http://localhost/afile.txt", "c:\\test.txt");
but I get an error :
The remote server re... more >>
Problem Copying Web Project
Posted by VB Programmer at 7/13/2004 11:09:37 AM
When I try to do a copy project up to my website I get this error:
Unable to create Web project 'MyWeb'. Server error: The server extensions
were unable to access the file "frontpg.lck". Please check the file
permissions.
Any ideas?
Thanks.
... more >>
Dynamically Adding Controls
Posted by Sandeep at 7/13/2004 11:06:47 AM
Hi
I am doing one thing in my website ,actually i want to add controls =
dynamically to a web form and want to access the
elements but when i postback the form,and access that control, it gives =
error Object reference not set to an instance of an object.
*********************************... more >>
Urgent: Integrate WebBrowser Control in ASP.NET/VB.NET?
Posted by ASP .NET Newbie at 7/13/2004 10:51:38 AM
How can I run a WebBrowser control using ASP.NET/VB.NET? I know I can use
the WebClient to get the page data, but I need to be able to use the
WebBrowser (AxWebBrowser)?
Thanks,
Chad
... more >>
Events involved with Checkbox in datagrid?
Posted by Lars Netzel at 7/13/2004 9:31:30 AM
If I put a checkbox in a datagrid (ASP.NET) and set the Autopostback to true
I can catch OnChange event on checkbox but how do I then catch what
DataGridItemIndex is?
Can I use some Event in the Datagrid that will fire off when the Checkbox is
changed?
regards
/Lars
... more >>
is this a hack?
Posted by foldface NO[at]SPAM yahoo.co.uk at 7/13/2004 9:17:25 AM
Hi
I commonly have the problem that given a page with 2+ usercontrols
many of the pages events occur before the childs, e.g. PageLoad, because
of this I wind up moving code from PageLoad to PreRender. This doesn't
feel right.
More info:
(1) I put code in Page_Load in the usercontrols so th... more >>
Uploading Large File to SQL
Posted by - Steve - at 7/13/2004 8:45:06 AM
I have the following function that is supposed to save a file to a SQL =
server. It works fine when the file is under about 5mb, but bigger than =
that and after I hit submit (which eventually fires off this function) =
it get a 400 page error.
private void btnUpload_Click(object sender, Syst... more >>
Server.HTMLEncode and the # (pound) symbol
Posted by cmay NO[at]SPAM walshgroup.com at 7/13/2004 8:20:19 AM
Can someone tell me why HTMLEncode doesn't convert # to %23?
I am building a querystring and the # comes through as a #, which of
course kills the rest of the items in the querystring.
Any idea? Is there another function I can use? For now I just wrote
my own to swap out any #s.... more >>
ASP.net architecture issue
Posted by kw at 7/13/2004 7:52:37 AM
I've developed about a dozen sites with ASP.net and never had much
trouble...until now.
What I wanted to do with the new web app was create a single page with a
treenode collection that would dynamically load content into a placeholder.
I ran into two showstoppers:
1)"The control tree int... more >>
Single threaded class for COM interop
Posted by robsomething NO[at]SPAM hotmail.com at 7/13/2004 7:36:36 AM
Hi.
I'm having difficulty calling a 3rd party COM object that must be
called in the apartment (single) threaded model. As far as I know,
there are 3 ways todo this:
1 - use "aspcompat=true" for aspx pages
2 - use [STAThread] attribute for windows/console applications
3 - use System.Thread.... more >>
it's all about semantics
Posted by Dimitris Pantazopoulos at 7/13/2004 7:20:01 AM
Hi
Instead of a direct opinion on the following matter I prefer to post it as a quiz. What do you expect the code below does:
---
ListItem[] litems = new ListItem[5];
for (int i = 0; i < 5; i++)
litems[i] = new ListItem("text"+i,"value"+i);
DropDownList ddl;
for (int j = 0; j < 3; j... more >>
Need help on regular expression in .Net:
Posted by prabu.daniel NO[at]SPAM vizual.co.in at 7/13/2004 6:30:34 AM
I would like to get some help on regular expression to validate
decimal numbers. It should also match negative value, empty value.
The expression:
^(\-){0,1}([1-9]{1}[0-9]{0,8}(\,[0-9]{3})*(\.[0-9]{0,8})?|[1-9]{1}[0-9]{0,}(\.[0-9]{0,8})?|0(\.[0-9]{0,8})?|(\.[0-9]{1,8})?)$
is doing this job, b... more >>
encoding problems (utf-8)
Posted by Guillermo Rosich Capablanca at 7/13/2004 5:47:56 AM
I have a problem with utf-8 enconding and I don't know=20
what to do in order to make it work.
=20
I want to open a new window with excel data so the user=20
can choose to save it local. Everything works fine, the=20
new window, the excel data appears, but, extended=20
characters are wrong.=2... more >>
WebUserControl and JavaScript
Posted by arunaiyar NO[at]SPAM yahoo.com at 7/13/2004 5:13:52 AM
I am new to ASP.NET I need some help for this scenario
The scenario is like this
I have a template Page which loads a WebUserControl (uct1.ascx) inside
a PlaceHolder (PH1)
Now this Web User Control (uct1.ascx) has a table with 2 rows
First row has a 5 text boxes 2 Combobox and 6 buttons (... more >>
email / textbox limitation
Posted by mg at 7/13/2004 3:49:01 AM
The simple e-mail webform in the shown in the code below sends the characters in its textbox as an email message correctly when text of any length is pasted into the textbox but not when large numbers of characters are typed into the textbox. The limit to the number of characters that you can type i... more >>
Can't cast as a textbox (VB)
Posted by postings NO[at]SPAM alexshirley.com at 7/13/2004 3:28:05 AM
Hi
Sorry this is (a sort of) repost. I am trying to trim all text boxes
on my web form. I've got no problem with the trim function, I have a
problem with casting. I am told that if I want to access the Text
property, I need to have typed reference (castit to TextBox with CType
and set the val... more >>
hosting that provides iis app ext mappings
Posted by Navain Goksin at 7/13/2004 2:17:41 AM
Hi,
Anybody knows a hosting provider which gives the facility to configure
application extension mappings... eg http://my.com/myapp/*.ada should be
opened by aspnet_isapi.dll etc.. so I can use http handlers to handle *.ada
in asp.net...
Many thanks
Goksin
... more >>
ASP.NET validation controls not working on remote server + event handler
Posted by keith NO[at]SPAM techvisioneer.com at 7/13/2004 1:04:48 AM
I'm having a problem with an asp.net web app after uploading to the
remote server. It seems that most of the button event handlers are not
firing. This occurs mostly in the form pages for editing info. The
initial data get binded correctly (for an update) but when you click
save, nothing happens... more >>
Generic Master detail class/form in asp.net
Posted by swatisahasrabudhe NO[at]SPAM yahoo.com at 7/13/2004 12:18:44 AM
Hi All,
I have an application in which I have lots of master-detail forms. I
would like to make this code as much generic as possible so that I
dont have to do the repetitive tasks everytime. It will be very useful
for me if anyone can give me comments or links to resources about
this.
I k... more >>
objects being rendered
Posted by tfs NO[at]SPAM dslextreme-dot-com.no-spam.invalid at 7/13/2004 12:02:56 AM
I thought that objects are not rendered until the Page_PreRender
event?
I have a textbox object and when I do a trace.warn(object.text) in the
Page Init event - it has the correct text?
I would have thought I wouldn't get the correct data until
Page_PreRender.
How come?
Thanks,
Tom... more >>
|