all groups > asp.net > february 2005 > threads for thursday february 24
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
IIS6 issue with asp.net pages hosting.
Posted by Jensen bredal at 2/24/2005 10:00:31 PM
Does anyone remmber this?
*********
Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\mysite\f6f85ac1\7e19f787" is denied
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET req... more >>
Dynamic Connectionstring in Web.Config ?
Posted by karfei00 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/24/2005 9:39:13 PM
Setting dynamic connectionstring in aspx files is easy, for example :
"server=(localhost);uid=sa;pwd=; databse=" + database
But can i do this in Web.Config? I want to pass the value of the
variable "database" from aspx to Web.Config ad then set the dynamic
connectionstring there. Can i do th... more >>
Crystal Report function-pls help
Posted by Kapil Shah via DotNetMonster.com at 2/24/2005 8:56:59 PM
Hello Everybody,
I am trying to write a crystal report function which should return a value
of 1 for crystal report with no parameter and return a value 2 for crystal
report with parameter.
Public Function LoadReport(ByVal reportname As String, ByRef patable As
System.Web.UI.WebControls.Tab... more >>
using visualstudio F5 to view a page in the browser
Posted by dharma25 via DotNetMonster.com at 2/24/2005 7:37:00 PM
After ive created a page and click on the start icon in visual studio to
view the current page in the browser.... it always displays some other page
from the site. then I have to manually enter my filename in the browser to
call the page i want to.??
--
Message posted via http://www.dotnetmo... more >>
Mac.Netskape - Server error ! all other browsers - OK
Posted by TJmaster at 2/24/2005 6:37:52 PM
Hello everybody!!! I want to complain on strange problem!!!
private void ImageBind()
{
ImageUpload ui = new ImageUpload();
ui.FileName = Path.GetFileName(fileMap.PostedFile.FileName);
ui.SourceFile = fileMap.PostedFile;
/* :KLUDGE: ×ÓÕÎÕÔØ ÐÒÏ×ÅÒËÕ × Common */
if (fileMap.... more >>
Microsoft Access 2003 Record-Locking File doesn't close
Posted by Jay A. Moritz at 2/24/2005 6:14:13 PM
I have an ASP .NET 2003 application that uses an Access 2003 database.
Trimming my application down to just one page that connects to the database
and uses an OleDbDataReader to get info, then closes the Reader and then the
Connection, I still get the .LDB Record-Locking file staying open on t... more >>
Invalid attempt to read when no data is present
Posted by Andy Sutorius at 2/24/2005 6:00:06 PM
Hi,
I am getting the error "Invalid attempt to read when no data is present"
when I run the following code. I have checked the sql and it is returning
data. What am I missing?
string sqlGetEmail = "SELECT content, subject FROM tblContent WHERE id =
" + Convert.ToInt16(ddlChooseEmail.Sele... more >>
Impersonation
Posted by Viorel Ghilas at 2/24/2005 5:59:47 PM
Hi all
I have webserver that share common services and i set in web config
<identity impersonate="true" /> and on IIS I set specific user account that
will be used. The main problem that when the IIS start applicaton and
execute the methods from Global.asax.cs it use ASPNET account but not... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Access Web.Config from a seperate Class Library in same Solution
Posted by bradtm at 2/24/2005 5:55:02 PM
So I have this hierarchy:
+ Solution
|
|--- + Class Library Project
| |
| |--- LogError.vb
|
|--- + ASP .NET Web Application
|
|--- Web.config
I want to access from Web.config:
<appSettings>
<add key="sqlConnString" value="myDBString">
</appSettings>
... more >>
Simple ?
Posted by Claude at 2/24/2005 5:50:48 PM
Hi,
a simple question:
if i have a class who generate the code for a page by returning a
system.ui.webcontrols.table (webcontrols: table and button WITH EVENTS) and
the action on this button change the look (delete a row for example)
how can i do to fire events in my webforms to have the ch... more >>
Message sending application in ASP.NET
Posted by Patrick Olurotimi Ige at 2/24/2005 5:37:21 PM
Does anybody know of a sample application in .NET that can be used to
send messages to PC in an intranet environmet.
For example when the message is sent it should popup a message box.
Any ideas
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get... more >>
Setting label = datasource...
Posted by Roy at 2/24/2005 5:28:21 PM
Could someone please post some sample code on how to set an <asp:label>
equal to the results of a sql query?
This seems like it should be simple, but I can't seem to get it done.
... more >>
Do I Really Need to Copy All This?
Posted by Wayne Wengert at 2/24/2005 5:18:10 PM
I am using VSNET 2003 to build an ASP.NET/VB set of pages. There are
currently about a dozen aspx pages. When I make even a minor change to one
page I currently rebuild the solution, copy the project files to a copy
directory on my local wwwroot and then FTP all those files and directories
to my... more >>
Exception problem!!
Posted by Vadivel Kumar at 2/24/2005 5:15:26 PM
I've a problem in handling a custom exception
The following is my custom exception class:
public class AppException : public Exception
{
public AppException (string message, Exception innerException)
{ }
public override string Message
{
... more >>
How do I pass values to properties ? (eg StartYear='<%=DateTime.Now.Year%>')
Posted by Alan Silver at 2/24/2005 5:00:19 PM
Hello,
I have a user control that has a property StartYear. Logically enough,
this takes an Int32 value. I have no problem doing something like ...
<ctls:fred id="frdFred" StartYear="2000" Runat="Server" />
but if I try ...
<ctls:fred id="frdFred" StartYear='<%=DateTime.Now.Year%>'
R... more >>
WriteFile, BinaryWrite, OutputStream.. all not working
Posted by Random at 2/24/2005 4:57:33 PM
I have tried all the Response methods I can think of (WriteFile,
BinaryWrite, OutputStream) to write the byte array of a pdf file to the
response. The result looks like it's trying, it comes up as a blank PDF
file (without the Adobe toolbar that normally comes up). Here is the code I
am us... more >>
Anybody help me on this: System.InvalidCastException
Posted by DOTNET at 2/24/2005 4:43:06 PM
Hi,
Anybody help me regarding this error:
I am assigning the values to the session variables when the button is
clicked and passing these session variables to the next page and when I am
printing these session variables they are printing. After that I am
assigning these things in hidden... more >>
Stack Trace Line Number
Posted by Hope at 2/24/2005 4:17:03 PM
I created an error handling page which sends out an email with error
information.
one of the things included in the email is ex.StackTrace.
But in the email, I don't see any offset numbers (the '+number')
eg.. if the error is
[NullReferenceException: Object reference not set to an instan... more >>
WebControls.Panel versus DIV tag
Posted by Rob Nicholson at 2/24/2005 4:12:35 PM
I'm confused as to when you'd use the WebControls.Panel instead of the DIV
tag as they appear to offer similar facilities on the surface.
Thanks, Rob.
... more >>
How do I uniquely identify a control?
Posted by Alan Silver at 2/24/2005 3:54:54 PM
Hello,
After much battling, I think I am finally seeing some progress on my
first user control (thanks to the patient souls who have answered my
many questions!!). I am left with one more problem though...
As detailed elsewhere, I have identified the need to use the ViewState
to hold a f... more >>
How to fetch attributes of LDAP entry?
Posted by Dennis Dobslaf at 2/24/2005 3:09:27 PM
I try to do some authentication with LDAP. But it's a bit different to
the sample in msdn.
I wrote a class LdapAuthentication with a method
public bool IsAuthenticated(String domain, String username, String pwd)
{
String domainAndUsername = domain + @"\" + username;
DirectoryEntry entry =... more >>
dropdownlistbox
Posted by pari kanaga at 2/24/2005 3:02:26 PM
I have server control dropdownlistbox populated with data from table.
I don't know how to make this dropdownlistbox searchable.
( for example if i click the dropdownlistbox and type the name it should
automatically list them on the top of the dropdownlistbox)
thanks
PK.
*** Sent via Dev... more >>
Change the MouseOver for a LinkButton
Posted by Craig G at 2/24/2005 2:52:39 PM
is it possible to set the mouse over for it?
i tried to do an attributes add but this wouldnt work
hypPainSite.Attributes.Add("Onmouseover", "window.status='Pain Site';")
... more >>
ASP.NET Set selected value of Dropdown within Datagrid
Posted by Jenna Alten at 2/24/2005 1:47:23 PM
I have a datagrid with a template column that contains a dropdown list.
I currently fill and display the dropdown list on the page load. This is
working correctly. I am NOT using an Edit Column. I am receiving errors
when trying to set the selected value of the dropdown within the
ItemDataBound(... more >>
Urgent problem
Posted by Bart Schelkens at 2/24/2005 1:42:11 PM
Hi,
i have this website (www.polytools.be) it works fine when i'm viewing it
with Internet Explorer.
When i'm trying to view it with mozilla, i get the following error :
Server Error in '/' Application.
Specified argument was out of the range of valid values. Parameter name:
value
Descr... more >>
Impersonate via code?
Posted by cmay at 2/24/2005 1:35:18 PM
I know that you can do different things to enable different types of
impersonation using the config files (like set it up so the end user is the
one being impersonated, or set it up so the asp.net WP runs as a specific
domain user).
But, what I am wondering if it is possible to change the i... more >>
uploading files from users
Posted by ray well at 2/24/2005 1:34:37 PM
hi,
i need for users to have the ability to upload some files to an iis web
server. how can i do that in asp .net?
i would appreciate a code snippet.
thanks
ray
... more >>
scheduled email reports
Posted by Scott Reynolds at 2/24/2005 1:26:29 PM
Hello!
I am developing a scheduled (daily) email reports system. The report
contains results from a database, based on subscriber definied keywords. I
have seen similar system often used on dating and real estate web sites...
Could anyone provide me some information how to do it? Where to ... more >>
MHTML Streaming
Posted by MER78 at 2/24/2005 1:21:05 PM
I am streaming an MHTML file to an aspx page:
Response.Clear()
Response.AddHeader("Content-Disposition", "inline; filename=MyFile.mht")
Response.AddHeader("Content-Length", MyByteArray.Length.ToString)
Response.ContentType = "multipart/related"
Response.BinaryWrite(MyByteArray)
Response.Flus... more >>
Show/Hide something in Usercontrol? How to?
Posted by Lynn at 2/24/2005 1:04:55 PM
Hello,
I have a user control that contains a table, and some text fields. I would
like to show or hide a particular row of this table, based on a selection
the user makes on my page.
Here's the situation...I have a page that has some panels that are hidden.
The first panel is visible...the ... more >>
upload file to a non IIS site using asp.net
Posted by brianinbox NO[at]SPAM hotmail.com at 2/24/2005 12:59:05 PM
Hi, I've been trying to find a way to upload file to another site that
is not using IIS. The site that I want to upload file to has a simple
php script to receive file uploaded through standard http post with a
file upload. However, how do I upload file to the site using asp.net?
thanks
B... more >>
HttpApplication.EndRequest Event NOT Calling my Method!
Posted by Breeto at 2/24/2005 12:49:03 PM
Can anyone please tell me why the following doesn't work...
using System;
using System.Web;
namespace AspTests
{
public class Test : System.Web.UI.Page
{
override protected void OnInit(EventArgs e)
{
System.Diagnostics.Trace.WriteLine( "Test.OnInit()" );
HttpConte... more >>
Sending E-Mail
Posted by John Daly at 2/24/2005 11:55:05 AM
Is there away from ASP.Net to automatically send an e-mail to a domain user
who does not have a SMTP e-mail address. 13 outo of our 110 computer users
have no SMTP e-mail address. Thanks in advance for all help.... more >>
ASP.NET interacts with Flash
Posted by markfoong NO[at]SPAM yahoo.com at 2/24/2005 11:43:53 AM
Is there a way, where on a submit event, that a web form can send data
over to flash?
I know that in flash, you can do flash remoting, but that seems to be
an event triggered by flash instead of the web form sending it over to
flash.
Any ideas?
... more >>
radio button checked change event question
Posted by Carlos at 2/24/2005 11:42:26 AM
Hi all,
I need to handle the checked change event for a radiobutton,
but without the autopostback property set to true. Is that possible?
The objective is to maintain the status of the same page, and only
handling the event within the group of radiobuttons that I have defined
inside the page... more >>
forms authentication returns 401 instead of going to login page
Posted by Andy Fish at 2/24/2005 11:39:50 AM
Hi,
I have an app in the 1.1 framework that uses forms authentication .
In the normal case, if the user requests a page and is not logged in, he is
redirected to the login page. However, I have noticed that if the original
request includes a parameter called "ReturnUrl", the server immedia... more >>
ASP.NET/Crystal Reports Logon Failed
Posted by mollyf NO[at]SPAM hotmail.com at 2/24/2005 10:42:54 AM
I have tried various suggestions that I have found searching the
newsgroups and still haven't been able to figure why I keep getting the
logon failed error.
I created a report in Crystal (not via VS 2003). The data source to
the report is a stored procedure (SQL S2K) that has no parameters. ... more >>
Row filtering
Posted by siaj at 2/24/2005 10:37:02 AM
Hi all,
I am having a dataset which is Reading from the XML file. The Dataset has a
table Users with Scheema (US_ID, US_Name). I am attempting to add new user to
this table. for this I want to fetch the max US_ID , increment by One and add
to table
The code is
maxID = dsUser.Tables(0).Sele... more >>
Basic Login Problem
Posted by Ben at 2/24/2005 10:06:09 AM
Hi
I have the below code and am having problems with it, i get transferred to
the logindenied.aspx whether the credentials are correct or not.
Also once authenticated I want to forward the user to auth.aspx. How would
I do this?
Any help would be much appreciated.
Thanks B
Privat... more >>
Error handling
Posted by Iams at 2/24/2005 9:42:47 AM
When your program gets an error, is there a name of that Exception somewhere
on that error page so that you can trap it with the correct exception name?
For instance, I errored when attempting to bind a grid, because a field
didn't exist in the query that was on the grid. How do I find the name ... more >>
Pls Help ! Oracle error
Posted by Raghu Raman at 2/24/2005 9:37:28 AM
Hi,
In my web app , i am using oracle 9i as db.i an open the oracle database
but i cant retrieve the data.
It tells
ORA-00376: file 7 cannot be read at this time ORA-01110: data file 7:
'/mnt/ora_data/tcms/data02.dbf'
Error.
Could u pls tell me , how can i look around that.
R... more >>
Error Handling / ASP.NET / QueryString
Posted by Patrick at 2/24/2005 9:22:38 AM
Hello
I have an application, that runs on asp.net. Now it happens sometimes, that
an error occured, and I redirect in the web.config the user to my custom
error page
<customErrors mode="On" defaultRedirect="/error.asp" />
I redirect to the asp page, because the one and only error we... more >>
Good, Cheap .NET/SQLServer Web hosting?
Posted by Tina at 2/24/2005 9:20:31 AM
I'm looking for a webhoster for my new website that will have a few demo
asp.net/SQLServer apps, web services, etc.
Looking around I find there are quite a few but they want to charge a lot if
they have to support SQL Server. Does anyone know of someone good and
economical that will suppor... more >>
Draw a rectangle
Posted by Praveen at 2/24/2005 8:52:51 AM
Hello,
I have a web page which will display the map of a
city/place. I have a toolbar which contains 'zoom in'
and 'zoom out' buttons. When the user clicks on zoom
in/zoom out button, he should be able to draw a rectangle
on any part of the map. The map will refresh automatically
with ... more >>
OT: GenuineASP
Posted by Steven Turner at 2/24/2005 8:32:46 AM
Has anyone got a website hosted by GenuineASP. I have been having problems
this last few months and they have not responded to a single support ticket,
or email request. I live in the UK and they are based in Canada so
telephone support is not somthing I really want to do. But, this last fe... more >>
How to change backcolor in the new tablecell?
Posted by Vadim at 2/24/2005 6:52:32 AM
Actually I would like to make backcolor to light-gray
I tried to set backcolor property and got error
that cannot convert string into System.Drawing.Color
What should be a solution?
Vadim
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rew... more >>
Simple redirect to frame-question
Posted by Greg Cyrus at 2/24/2005 6:45:46 AM
I have a frame with link-buttons.
Now I want to show the corresponding link pressed by that button inside
another frame (response.redirect or maybe other mehtod with
destination-frame - or Webform overgiven)
... more >>
Nested repeater controls show/hide?
Posted by junk NO[at]SPAM spirit.co.za at 2/24/2005 6:41:20 AM
Hi All,
Posted after extensive searching!
I have a nested repeater control as follows: (Simplified ;-))
<table>
<asp:repeater id=parent onItemDataBound=createChild>
<tr><td>Level 1</td></tr>
<asp:repeater id=child>
<tr id=childrow><td>Level 2</td></tr>
</asp:repeater... more >>
OutputCache in web.config?
Posted by Nils Hedstr=f6m at 2/24/2005 6:11:14 AM
I have noticed that it is possible to create a small "DOS"-attach in IE but
pressing the reload-button (this generates 30-50 requests/second). I want
to protect my ASP.NET-site from this kind of use by caching the output of
all aspx-pages for 1 or 2 seconds.
One way of accomplishing this is... more >>
Populate a dropdown list with a variable from a Querystring
Posted by Jim via DotNetMonster.com at 2/24/2005 4:43:10 AM
Hi,
I'm passing a variable to another page through a querystring. I then want
to use that variable to retrieve records from a database to poulate a
dropdownlist. I can read the variable from the querystring but I'm not sure
how to pass that value. I get the error that IntCourseID is not declar... more >>
Creation of simple COM-Objects fails after latest ASP.net security patch
Posted by jp_news NO[at]SPAM gmx.de at 2/24/2005 4:27:11 AM
Hi.
I am in the progress of migrating an ASP/vbscript application to
ASP.net/VB.
At the moment my asp.net code still contais a lot of late bound
com-objects with worked well until I installed the latest asp.net
security-patch from MS.
The application is (at the moment) impersonated via web.c... more >>
safety upload
Posted by Mango at 2/24/2005 3:56:18 AM
Hi friends,
Please help me.
I want to realize upload on .jpg files in my web server and I am not sure
haw to protect it. I mean, when the user do upload I have to give him/her
write privilege, I am not sure is this dangerous.
Is my server become more vulnerable?
How to protect it?
I... more >>
reaching the parent
Posted by Esref DURNA at 2/24/2005 3:07:02 AM
I want to get the parent of the user control.
PortalModuleControl portalModule = (PortalModuleControl) this.Parent;
but i get an error Specific cast is not valid.
and this is my class
public class PortalModuleControl : UserControl {
does anybody have any idea?
Thanks
--
Esref ... more >>
How to display "Dont show again" checkbox in messagebox
Posted by soundar rajan at 2/24/2005 2:42:25 AM
Hi,
I wanna display messagebox, and also at the bottom i wanna display "Dont
show again" with checkbox using VB.NET. Immediate help needed!!!!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
The JScript "getYear" does not work in Mozilla ? :-)))
Posted by Alex Nitulescu at 2/24/2005 1:14:25 AM
Hi. I have a header implemented as a user control (ascx). On start-up, I
show the date/time (in a label named "lblTimer") like this:
<html>
.......
<span....
<%=Now.ToShortDateString() %> - <%=ctype(Now.ToLongTimeString(),
datetime).tostring("H:mm:ss tt") %>
</span>
Then, I have a Java... more >>
Hwo to Upload file ?
Posted by Arsalan at 2/24/2005 12:12:48 AM
I've couple of controls on my webform, for e.g
4 textbox and 2 file box
How do I write upload code where 2 file box will contain the path of the
local machines file.?
... more >>
|