all groups > asp.net > october 2003 > threads for thursday october 30
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
403 access forbidden
Posted by RickN at 10/30/2003 9:36:32 PM
Tried to create first asp.net app in vs and got //localhost/webapp1 HTTP
/1.1 403 access forbidden.
What setting needs to be changed to get past this?
Thanks,
RickN
... more >>
add dataset to table
Posted by TJS at 10/30/2003 9:01:45 PM
using vb, msde, web matrix
I have a dataset and would like to append that to an existing table
any articles or samples which illustrate how to do this ?
my search is coming up empty
... more >>
What is the diference?
Posted by Bruno Piovan at 10/30/2003 8:56:48 PM
Hi,
what is the diference between
daAdapter.Dispose
and
daAdapter = Nothing
???????????
daAdapter is a DataAdapter
thanks,
Bruno
... more >>
adding tabitem to Tabstrip (ms ie webcontrol question)
Posted by Hal at 10/30/2003 8:44:13 PM
I am trying to programmatically build a tabstrip (creating a template
class for my site that contains a tabstrip in the header).
I have a form (as htmlform) to which I am adding controls and html
(via literalcontrol) and I try to add the tabstrip the same way.
'declare and initialize as appr... more >>
How can I submit an ASP.NET web form to a new page
Posted by Chung at 10/30/2003 8:39:14 PM
Hi all,
I have used the following code for doing the form
submission. I don't think this is a right way to submit a
from to a new aspx page because I need to add a dummy form
in between.
Could anyone tell me a proper way to do this?
Looking forward to your reply. Thanks!
Chung
My ... more >>
Deploying Web Application
Posted by Meir Rotfleisch at 10/30/2003 7:47:55 PM
Hi
Can anyone point me to specific info n how to deploy my app? No matter what
I do I get error messages about the config file..
Regards
Meir
... more >>
RequiredFieldValidator Runtime Error
Posted by Meir Rotfleisch at 10/30/2003 7:37:56 PM
HI
I am trying to use the RequiredFieldValidator and when I run the application
I get the following error
Unable to find the script library
/aspnet_client/system_web/1_1_4322/WebUIValidation.js try placing this file
manually or reinstall bu running aspn_regiis -c ...
my IIS has system... more >>
using DataBinder.Eval programatically
Posted by Jeronimo Bertran at 10/30/2003 6:27:37 PM
Hi,
I currently have the following HTML code for a button:
<asp:Button id=SelectButton runat="server" Text='<%# DataBinder.Eval
(Container.DataItem, "PageName") %>' CommandName='<%# DataBinder.Eval
(Container.DataItem, "PageName") %>'> </asp:Button>
The text for the button is evaluated at... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
javascript and c#
Posted by Ralph Soons at 10/30/2003 5:50:16 PM
Hi all,
I have a problem with calling a function from a javascript in a aspx file
var refresh = "<%#CheckRefreshRequired()%>";
The first time this line is loaded, the refresh variable is filled with the
return value of the function.
When the page is loaded for the second time, the functio... more >>
How to pass special characters in Update stmt!!
Posted by Jay at 10/30/2003 5:28:01 PM
Hello,
I need to use Update Sql stmt from my page.
Some of the field values has apostrophes and and quotes.
How do I make ado.net ignore those characters?
Eg-
UPDATE ROOM SET HEIGHT='3' - 5"' WHERE RMNU='100'
Iam using c#.
Thanks.
Jay
... more >>
How can I Use Multiple Authentication in ASP.NET
Posted by Arun at 10/30/2003 5:26:13 PM
[ How can I Use Multiple Authentication in ASP.NET
=20
Let say I have website's "root" folder, root folder contains 3 folders =
"Folder1" , "folder2", "folder3" before user access files in root he is =
authenticated using Forms authentication.(NOT 'NT' Authentication) ... more >>
Windows Control hosted in WebForm
Posted by Matt Theule at 10/30/2003 5:11:46 PM
I need to be able to allow users to drag files to a list box on a web
page. To this end, I created a Windows Control and hosted it in a
WebForm. When the file is dropped onto the listbox, the path of the
file is truncated down to 8.3 format (with the ~1 at the end). When the
Windows control i... more >>
Why is no one answering my queries..
Posted by ani at 10/30/2003 5:08:22 PM
Hi,
I have a datalist control and within the Itemplate I
have a radiobuttonlist control . I am binding data to the
datalist control in Page_load . Also I have sqldatareader
object that needs to be binded to the radiobutton list. I
am not able to bind the datareader to the radiobutton... more >>
count visits
Posted by Alberto at 10/30/2003 4:52:37 PM
I'd like to count the number of visits of my page so I need find out an
event raised only when the app starts. I think this could be the
Session_OnStart but I don't know whats the object who send it.
Thank you.
... more >>
Are instances of ASPX pages EVER reused ??
Posted by Steve M at 10/30/2003 4:50:17 PM
I think I have read conflicting information about this. Can someone share
some knwledge about this?
Is a new instance of my ASPX page class created for each request?? Or are
can they be reused by the framework based on a threading setting somewhere?
It is important for me to know this--Is there ... more >>
Directive different
Posted by Vitamin at 10/30/2003 4:27:32 PM
What is different between the directive "src=source.vb" and
"codeBehind=source.vb"
??
thx~
... more >>
Page templetes
Posted by priyank at 10/30/2003 4:24:41 PM
I am new to asp.net. I want to setup best presentation
layer templete so I can use easily of all aspx pages.
someone suggested that you should remove gridlayout and
choose flow but it is very difficult to setup sections on
page. I can not position objects easily. Any suggestions?
I do not ... more >>
Session End Synchronisation
Posted by Glenn at 10/30/2003 4:22:27 PM
I am working on a phased migration of a large ASP app to
ASP.NET using .NET Framework 1.1.
There is a strict 15 minute no activity logout for this
app, which obviously correlates to a session timeout.
However, I am having trouble synchronising the timeout in
ASP.NET and ASP. For instanc... more >>
Datagrid in-place editing
Posted by kai at 10/30/2003 4:07:39 PM
Hi, All
I use ASP.NET 1.1 on Win2K3 server.
I created datagrid and with the editing, delete and update feature. I deploy
this application on IIS.
When it runs on the server, it is very fast, but when access through the
Internet on different computer, it runs very slow because it downlo... more >>
ASP.NET Submit button in different frame
Posted by gan at 10/30/2003 3:48:59 PM
Hi, a simple question here. Can we place webcontrol button in a different
frame?
Thanks.
... more >>
Web.Config
Posted by WFB at 10/30/2003 3:27:48 PM
Hi,
I have an application with a couple of referenced assemblies. The
referenced assemblies and my application all share a few configuration
settings with the same name but different values. Is there a way to set up
the config file to recognize this? Im thinking <section name> elements, but... more >>
asp.net error
Posted by afsheen at 10/30/2003 3:18:35 PM
hi
i get this error when i try to open an existing project in vs 2003.
The likliest problem is that required components are not installed on the
local Web server.
i had created my application on a machine
and now i copied it on a new development system. on opening it i get this
error
... more >>
MSFT Why does this happen?
Posted by Emilio at 10/30/2003 2:48:42 PM
Hi,
I seem to get this error intermittently, It has nothing to do with the
advancedwebcontrols assembly, it seems to happen with any 3rd party assembly
from time to time, and the only way to around it is to restart my pc or
sometimes close all my IE windows.
What's up with this?
Server Er... more >>
How to detect when user clicks on a broken link to an external web page.
Posted by at 10/30/2003 2:28:41 PM
I am planning to develop a directory website (ASP.NET) which will contain
links to hundreds of external web pages. In an effort to keep the directory
up to date, I would like to trap (perhaps as an event) and then log when the
user clicks on a broken link (page not found or server not available).... more >>
<script language="vb" runat=server> versus <% %>
Posted by jason NO[at]SPAM cyberpine.com at 10/30/2003 2:25:29 PM
Pardon the newbie question...
What's the difference between (asp.net)VB code inside one versus the
other. And why have both?... more >>
Help: Data Binding to Custom Collection
Posted by Shrage Smilowitz at 10/30/2003 2:19:13 PM
I try to create a custom collection which i will then use to databind and
its not working.
Class Book
Public BookName As String
Sub New(ByVal lBookName As String)
Me.BookName = BookName
End Sub
End Class
Public Class books
Inherits Collections.CollectionBase
... more >>
Complex DataList formatting with a <table>
Posted by Leo Duran at 10/30/2003 1:48:01 PM
Hi,
I am working on an app right now that makes extensive use of the DataList
control. I chose the DataList because I need to do multi row formatting. I
am using it like so.
<DataList id="test" runat="server>
<HeaderTemplate>
<table>
<tr>
<td>
First Name
</td>
<t... more >>
Put value from DataList on user control to parent page?
Posted by mkerrigan NO[at]SPAM ktoys.com at 10/30/2003 1:37:18 PM
I have a user control (menu) with a data list:
<asp:DataList id="MyList" runat="server">
<ItemTemplate>
<asp:hyperlink
cssclass="MenuUnselected"
id="myLink1"
Text='<%# Container.DataItem("Subject") %>'
NavigateUrl='<%# "../productlist.aspx?SubjectID=" &
Contai... more >>
Why save dialog displaying twise
Posted by Vijay Neelam at 10/30/2003 1:07:39 PM
Hi all,
Dim a As String = Response.ContentType
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/msword"
Response.AddHeader("content-disposition", "attachment;
filename=Document.doc")
Response.Write(strDoc)
Response.ContentType = a
Response.End()
I'm writing thi... more >>
Session End Help...
Posted by Powervision at 10/30/2003 1:01:07 PM
Hi everyoone,
I am just trying to find a way to log the user off ( forms
auth. ) And redirect them to the log in page. This is what
I tried in the session_end event:
FormsAuthentication.SignOut()
Server.Transfer("Logon.aspx")
It seems to fire the sign out but never transfers me. Any
id... more >>
User Controls and Postback
Posted by Cathie at 10/30/2003 12:51:02 PM
Hi All,
I have a few user controls on a page and I need to determine which control
caused the PostBack. Is there anyway to do this?
Thanks in advance,
Cathie
... more >>
ASP.Net Versions and Compatibility
Posted by charles at 10/30/2003 12:47:19 PM
I ship a C# asp.net app in .dll form which is targeted at ASP.Net v1.1.
If a user loads is on a machine with ASP.Net v1.0, it crashes--no reasonable
message--just a null-pointer exception before any of my code is reached..
Is there a standard practice to detect and/or prevent this situation. ... more >>
Problem with solution_name.dll not being created in /bin directory
Posted by Jon Ballinger at 10/30/2003 12:35:05 PM
This is a problem that has recently sprung up. Basically when I build
(or rebuild) my solution, dot.net dev studio will go through the
motions, and appear to create everything, but there will be no
solution_name.dll file created in the /bin directory.
This means that the site does not up da... more >>
Create directory on a web server
Posted by Christian Pické at 10/30/2003 12:12:50 PM
Hi,
I tried following code, but I get an execption "URI formats not supported"
Directory.CreateDirectory(@http://www.test.com/shop/images);
The path is not located on my own computers, but on the computers of an ISP.
Cannot I use Directory.CreateDirectory on a web server or is there some... more >>
Image control does not refresh
Posted by sjoshi NO[at]SPAM ingr.com at 10/30/2003 11:57:41 AM
Hello All
I have an image control in main.aspx in a method
BuildImage()
{
//...code..
imgDisks.ImageUrl = "barChart.aspx";
}
This is called whenever the user Clicks on Submit button:
In barChart.aspx I do:
private void Page_Load(object sender, System.EventArgs e)
{
C... more >>
How to start code when IIS starts - Any expert?
Posted by AW at 10/30/2003 11:54:21 AM
Hello,
I have a method to initialize my application, which reads configuration
settings, establishes connections, and loads a bunch of data. It lasts for
several seconds.
This method is called in the Application_Start event, but this means that
the first person requesting for a page will un... more >>
Basic download question
Posted by Buddy Ackerman at 10/30/2003 11:43:40 AM
This is not an ASP.NET specific question, more of a generic HTML question.
I want to provide users a link (or a button or some control) that they can
click on to download a file. The trick is that if it's a Word or Excel
document ans the user has Word or Excell install then the file just opens
... more >>
asp:repeater not doing a refresh/postback
Posted by Scott Lyon at 10/30/2003 11:31:47 AM
I am having a strange problem. The program is a bit complex, but I'll try to
simplify what I can. I apologize if this is complicated, but I think this
would still be simpler than posting a bunch of source code. If you want me
to post code, though, just say so.
In a nutshell, I've got an ASP.... more >>
PostBack on Posted Page
Posted by markfoong NO[at]SPAM yahoo.com at 10/30/2003 11:30:23 AM
In my code, I used javascript to update the action value in the form
and post it to another aspx page. But the second aspx page is taking
it as a postback event and running the form submittal and validation.
How can I stop the postback!!
Mark... more >>
Transform 24bit BMP to grayscale??
Posted by Harry Simpson at 10/30/2003 11:28:34 AM
I'm having trouble reducing the size of a bitmap programmatically: The file
size of the original is 2400k.
The picture is 816x1056. 16 million colors i think. I only need grayscale
render.
Public Sub ConvertBadBitmap(ByVal FilePath As String)
Dim objPicture As New Bitmap(816, 1056,... more >>
Change Web Setup Project default virtual directory
Posted by gan at 10/30/2003 11:25:54 AM
I created a ASP.NET web setup project with the project name "Setup". I
noticed that this name will be used as the default Virtual Directory name
during deployment.
I'd like to know whether we can change this default value while preserving
the project name?
Thanks in advance
... more >>
LoadControl v calling constructor
Posted by a NO[at]SPAM a.co.uk at 10/30/2003 11:03:39 AM
Hi
Extremely easy question for someone who knows the answer I'm sure
:-) (aren't they all)
What exactly does LoadControl do? Whats the difference between calling
this and just constructing a user control?
Thanks
anon'ish... more >>
App Domains....
Posted by Jim at 10/30/2003 10:54:21 AM
Does the executing thread for an asp.net process in IIS run in it's own
AppDomain?
Cheers
... more >>
how to not send a silentpost in asp.net C#
Posted by khawar at 10/30/2003 10:48:28 AM
the following code seams to be sending a silent post. how
can we not make it send a silent post but regular post
where along with the post the control should also be
transferred over to the other page on the server,(like a
link)
using System.Drawing;
using System.Data;
using System.Da... more >>
ASP.NET control for Password Fields
Posted by A.M at 10/30/2003 10:47:49 AM
Hi,
Is there any ASP.NET control for password text box ? (Shows star intsead of
characters)
Thank
... more >>
Inserting a Record Into SQL
Posted by Justin Musick at 10/30/2003 10:17:09 AM
I'm having some trouble inserting a record into a SQL database from a simple
form. When the "txtName" text box is filled and the button is clicked, I
get no error but no record is added to the database.
My code is:
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
Syste... more >>
CustomValidator in the EditItemTemplate of a DataGrid
Posted by Dave at 10/30/2003 10:14:01 AM
I have added a custom validator to the EditItemTemplate of a DataGrid as
follows:
<EditItemTemplate>
<asp:TextBox id=txtWorkDate CssClass="ResultsDim" runat="server"
Width="100%" Text='<%# DataBinder.Eval(Container,
"DataItem.WorkDate","{0:g}") %>' >
</asp:TextBox>
<asp:requiredfieldvalida... more >>
Typed-DataSet in a WebControl Library
Posted by Rafael Veronezi at 10/30/2003 9:45:47 AM
Hello guys,
I'm currently developing a Web Custom Control project with VS.Net2003.
It's Ok, I've made my WebControl inherited class. Also I created a
typed-DataSet that's intended to be a property of the control, and I must
expose this public to class... But, when I reference the dll of the cont... more >>
unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js'
Posted by Matthew Louden at 10/30/2003 9:42:21 AM
I created an ASP.NET web application. I added a TextBox and a
RequiredFieldValidator control, and set the ControlToValidate property of
RequiredFieldValidator control to be TextBox1. After I built and run the
application, it pops up an error dialog as follows:
unable to find script library
'/... more >>
inheriting from a class that inherits from the UserControl class
Posted by Joel Barsotti at 10/30/2003 9:37:50 AM
On certain pages I want to have a user control that is derived not directly
from the usercontrol class, but from a class that extends the UserControl
class so my objects will have a some guaranteed functionality.
But my problem is that when I do this, the ascx file won't go into design
view.
... more >>
Office Web Components
Posted by Julian Sanz at 10/30/2003 9:36:11 AM
Hi!!,
I have tried to generate Excell grafics using OWC10 dll. In my asp.net page,
i have a dropdownlist where i can select the type of the grafic, a
linkbutton where i can clik to generate the grafic, and a Image WebControl
where i show the grafic, but i have a problem. The first time i click... more >>
copying a datatable content from an untyped dataset into a table which is inside a typed dataset
Posted by Nedu N at 10/30/2003 9:13:21 AM
Hi Techies,
I am facing problem in copying content of table from a untyped dataset into
to a table inside the typed dataset. I wanted to copy the data into typed
dataset in order to ease the further processing using typed references.
DataSet ds = getDataFromDB(); - i am getting the datase... more >>
Datagrid info to labels in table
Posted by Sue at 10/30/2003 8:56:52 AM
Working om web app using VS2003 - I have a datagrid that
displays 5 of 17 fields in a datarow. I have a table
below the datagrid that has 17 labels - one for each
field in the datarow. When the user clicks on a row in
the datagrid, I'm looking for a way to populate the 17
labels in the tab... more >>
Specified cast is not valid - please help
Posted by loc_drby NO[at]SPAM yahoo.com at 10/30/2003 8:41:14 AM
Can someone shed some light on my error here? Thanks!
Specified cast is not valid.
Exception Details: System.InvalidCastException: Specified cast is not
valid.
Source Error:
Stack Trace:
[InvalidCastException: Specified cast is not valid.]
milo.data.Storer.GetString(SqlDataRea... more >>
IIS 6.0 Window2003 ASP.NET Session problem
Posted by Didier Jeanson at 10/30/2003 8:16:52 AM
Hi,
The session does not work in ASP.NET under Windows 2003 and IIS6.
The page is very simple.
- When I try to access the Session object in .NET I receive the following
error:
Session state can only be used when enableSessionState is set to true,
either in a configuration file or in the ... more >>
page break
Posted by bob at 10/30/2003 7:58:56 AM
is there a way to force a page break if a person prints a
web page. I've tried putting in some text that just
contains chr(13) chr(10), but doesn't work. any
suggestions on how to do this?... more >>
asp.net file access
Posted by Buz Waitz at 10/30/2003 7:58:11 AM
I have a site running fine on my development machine running XP, but when I
ported the site to run on my win srv 2003 I get access errors. Specifically,
the system is not allowing asp.net write access to
c:\windows\microsoft.net\framework\v1.1.4322\tempoary asp.net files
identity impersonate... more >>
User Accounts difference
Posted by GSK at 10/30/2003 7:57:51 AM
can any on explain me the difference between
these accounts.
My machine name is M001
IUSR_M001
Internet Guest Account
ASPNET
ASP.NET Machine Account
Can i disable IUSR_M001 for security purposes.
Thanks
... more >>
How to create menus?
Posted by yma at 10/30/2003 7:46:48 AM
Hi,
I'd like to create menus for aspx pages using vb.net similar to the main
menus and context (popup) menus in stand alone applications. How can I do
this? Thank you.
Chris Ma
... more >>
My page crashes Internet Explorer on Macs
Posted by M K at 10/30/2003 7:14:00 AM
I have a page that crashes Internet Explorer on Macs. Has
anybody else experienced this problem? And if so what can
I do to resolve it?... more >>
SMTP Mail as HTML
Posted by C at 10/30/2003 7:01:16 AM
Hi,
I currently build up a tab delimited string and send a
mail using SMTP.
The format is not very clean.
Can I build up a string of html and send it ?
The reason I am asking is that I can align my text/figures
in html.
Thanks,
C.... more >>
Deleting file
Posted by Mark at 10/30/2003 6:02:11 AM
Hi,
In my web application I have to let users to download
files from web server.
How can track or find out that a file was downloaded so I
can delete it from web server?
I'm coping file to a web server from shared drive and I
have several web servers behind load balancer so if user
... more >>
Memory leak?
Posted by danjbart NO[at]SPAM yahoo.com at 10/30/2003 5:50:12 AM
I have an asp.net application installed on a windows 2000 server. I
have noticed that the memory usage for aspnet_wp increases by about
5MB per day. The current memory being consumed is around 100 MBytes
while the peak memory usage is 115 MBytes.
Is that memory range normal? How do I go about ... more >>
Cookie not created! Help please.
Posted by Clint at 10/30/2003 5:11:34 AM
I am using the following C# code in a function called by a
button click:
HttpCookie cookie = new HttpCookie("UserName");
cookie.Value = tbUserName.Text;
Response.Cookies.Add(cookie);
When I go to look for this cookie on my system, I cannot
find it anywhere. If I close my browser, then op... more >>
.NET Framework and Server side include
Posted by Tom at 10/30/2003 2:27:45 AM
Hi,
I installed .NET Framework Version 1.1 Redistributable
Package and installed on Windows 2000 server.
I created a aspx page which has some server control like
asp:label, asp:textbox, asp:button,
asp:requiredfieldvalidator.
I put this aspx page to IIS. But, only the label displayed... more >>
Opening a web project from web
Posted by sumit at 10/30/2003 1:57:03 AM
Hi,
We mapped our local drive say F with
\\serverip\sharedfolder. When we try to open the web
project from F drive thru "project from web" option in
VS.Net, It says "A connection with the server could not be
established".
Please suggest the possible solution.
Thanks
Sumit... more >>
Debugging Errors
Posted by Soni at 10/30/2003 12:52:58 AM
Error while trying to run the project unable to start
debugging on web server. you do not have permissions to
debug the server. How do I solve the error ? I have
checked that I belong to VS Debugger... more >>
Visual Studio change my code
Posted by Ola Johansson at 10/30/2003 12:21:27 AM
I have made a custom "Pagebase" class that i inherits from all my web
form pages.
In my InitializeComponent method on each page i have added a "AddHandler
Me.Load, AddressOf Page_Load".
The problem is that each time i view my page in the designer VS.net
removes my "AddHandler Me.Load, Addre... more >>
|