all groups > asp.net > may 2004 > threads for friday may 7
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
User controls are invisible
Posted by Venkatesh at 5/7/2004 11:06:04 PM
Hi
I have installed IIS on Windows Xp Professional .I have created a simple Login Asp.net page.When I execute ,only the labels are visible,Textboxes,comboboxes,and buttons are invisible
Can anyone let me know where I am going wrong
Thanks
... more >>
Renamed namespace and got parser error
Posted by Ian at 5/7/2004 10:51:57 PM
Hi there,
I have a small app and i just went into the code behind and renamed the name
space.,.. from myapp to mycompleteapp and now its giving me parser errors
about
Could not load type mycompleteapp.login
login is my webform ... i looked in all the hidden places and everything
seems to... more >>
Versoin 1.0 or not
Posted by Roy Chastain at 5/7/2004 10:18:19 PM
I created a web page or two with VS .net 2003 on an XP box. I used a 2003 server as the location of the web site. Both the boxes had
version 1.1 of .net only installed.
I installed 1.0 of the .net framework on both boxes. The 2003 server will not serve any aspx pages at this time.
I instal... more >>
Db Connection Failure
Posted by GD at 5/7/2004 10:10:57 PM
I've downloaded the ASP.Net Commerce Starter kit (Sample ASP .Net
application) from the Microsoft website and have set it up to run using a
SQL Server on a remote machine.
My problem is that the app can't find the database. Using debug mode I've
checked that the correct connection string is ... more >>
State Persisted Without Session or Application -- Why ?
Posted by Anthony P. Mancini at 5/7/2004 9:00:46 PM
I'm working on a proof of concept that will ultimately be deployed on a load
balancer.
For the sake of a preliminary demonstration I created a C# object and marked
it's attributes
as Public Shared Static. I also set the EnableSessions and EnableViewState
Page directives
to false. Here's the ... more >>
Class Libraries
Posted by Jim Heavey at 5/7/2004 8:36:59 PM
I have a web application which accesses Class Libraries in another project.
Can I add an "App.config" file to my Class Libraries project and be able to
use that configuration information from my web application which has a
reference to the Class Libraries project?
My issue is the connect... more >>
Debugging Class Library
Posted by Tom_B at 5/7/2004 7:21:02 PM
Created an ASP.NET Http handler using VB.NET per the example (#307997) -- Works fine running on a server. Now trying to debug the class. Followed MSDN's Debugging Preparation: Class Library, Invoke the Calling Application at a URL, to debug the class in the project folder. When I hit F5 (Debug St... more >>
Handling Radiobuttonlist event inside Repeater Control
Posted by rsubra2 NO[at]SPAM hotmail.com at 5/7/2004 7:05:46 PM
Hi,
I have a radio button list and a dropdownlist inside a repeater
control.
Want to hide or display the dropdownlist based on selection in
radiobuttonlist.
I can add the selectedindexchanged eventhandler for radiobuttonlist in
itemdatabound,but cannot figure out which items dropdownlist... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Access denied on 'c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\....
Posted by Bob at 5/7/2004 6:48:44 PM
I'm all of a sudden getting an access denied error on my web server when I
access it from a browser:
CS0016: Could not write to output file
'c:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\projmgmt\ede965f0\db1b3c5e\thwdzsif.dll' -- 'Access is denied. '
I understand that ... more >>
DataList woes
Posted by Lerp at 5/7/2004 6:25:58 PM
I have a dataset that is made up of info from 2 tables. I have created a
relationship between these 2 and have added it to the dataset.
My datalist is working perfectly minus one little problem, the very last
field in my itemtemplate is an ID field from the child table. I would like
to display... more >>
Javascript Validation for controls within Multipage.
Posted by sukanya s via .NET 247 at 5/7/2004 6:18:00 PM
(Type your message here)
--------------------------------
From: sukanya s
I have controls within a Multipage Web Control. I want to validate the Conrols within the Multipage control using Javascript validation. How do i accomplish this. Please help me.
Also please let me know how do I p... more >>
How to get the instance of a Website
Posted by Mark at 5/7/2004 6:07:32 PM
I am running IIS6 on a Windows 2000 system. How can I access the =
properties of an instance of a website such as default documents etc. =
from an ASP .Net page?
Any help will be much appreciated.... more >>
2 simple questions
Posted by Joe Van Meer at 5/7/2004 4:41:07 PM
Hi,
1. Is it possible to display columns from 2 different tables in a datalist
without nesting the datalists?
2. How would I reference the data in the second table within my ItemTemplate
of my datalist?
Thx, JK
... more >>
dynamic width of dropdown ?
Posted by dinesh at 5/7/2004 4:21:04 PM
Can some one help me out
I want to create a DropDownList, but the width of the drop down should vary as per maximum characters of listitem in it
And this should work for IE and Netscape
Any help would be appreciated
dinesh... more >>
Javascript in Customvalidator wont run on production web server
Posted by rdodworth NO[at]SPAM hotmail.com at 5/7/2004 4:15:14 PM
Hi there
I'm having a little bit of a problem with my customvalidator control.
The problem is the javascript runs fine on my local webserver IIS but
not when I post it to the web hosting server. As it is client side
scripting I'm suprised that this is the case as I'm using the same
browser IE... more >>
All of a sudden can't load into web forms designer
Posted by Schoo at 5/7/2004 3:22:49 PM
I was working in VS creating web pages and testing them in debug for our
intranet site, when suddenly I went to run the app and got the error message
that there were build errors. To my suprise there were suddenly build
errors for all the pages in the project! Following the errors, I find that
... more >>
Textbox Control
Posted by Scott M. at 5/7/2004 3:18:37 PM
I need to be able to have a web form that users can enter (either by typing
or pasting from a rich text format) text into. The entered text will then
be saved as a new web page (.htm).
The web forms Textbox control does not preserve any rich text formatting.
I've tried adding a RichTextBox Co... more >>
How to delete a XML element in vb.net code
Posted by GhislainTanguay at 5/7/2004 2:40:38 PM
How can io delete this element in my AdRotator.xml file with VB.NET
I try a lot of things but I don'T have a good result.. Please help me
<Advertisements>
<Ad>
<ImageUrl>http://localhost/UQCN/Images/sample-ad.gif</ImageUrl>
<NavigateUrl>/UQCN/WebModules/AdsManager/PassThrough.... more >>
ADODB.connection safety settings error
Posted by Steven Baeten at 5/7/2004 2:05:28 PM
Hi All,
I'm running a webpage-application where, in a aspx-page,a udl is called in
vbscript
in an xsl-stylesheet to access a database. When I want to execute this, I
receive
following error
ADODB.Connection Safety settings on this computer prohibit accessing a data
source on
another do... more >>
sharing class code
Posted by TJS at 5/7/2004 1:28:15 PM
I have a class and method (class b method b) that I want to share with all
other classes, so I don't have to keep putting th same code in every class.
How is this done?
... more >>
FormsAuthentication
Posted by Baohua Li at 5/7/2004 1:15:27 PM
In my login.aspx, I tried both FormsAuthentication.RedirectFromLoginPage and
FormsAuthentication.GetRedirectUrl to redirect to the original page and both
didn't work. It always went to Default.aspx. Any idea?
TIA
Baohua Li
... more >>
MathML
Posted by Jeremy at 5/7/2004 12:46:08 PM
Has anyone been successful in integrating MathML markup inside of an ASP.NET Web Form
I have changed the DOCTYPE appropriately, added the XML processing tags, attempted to change the mime-type using a meta tag. Mozilla and Mathplayer+IE do not render the MathML still
However, if I change the ex... more >>
Trying to Insert a Record
Posted by Curt Emich at 5/7/2004 12:28:00 PM
I'm trying to insert a new record into an MS Access table. The code below
compiles and runs, but it doesn't write a record into the table. Can
someone tell me why?
Dim thisSelectCommand As New OleDb.OleDbCommand("SELECT * FROM Sessions",
Me.OleDbConnection1)
Dim thisDataAdapter As New Ol... more >>
Sql Server messages
Posted by robert.bull NO[at]SPAM wbp.org at 5/7/2004 12:26:26 PM
I have a stored procedure that I run from an asp.net application that
simply backs up a very small Sql Server database. If I run the stored
procedure in Query Analyzer, there is a server message returned
letting me know that the database was backed up successfully. I want
to be able to return th... more >>
getting 'Object reference not set to an instance' some times
Posted by Binoy at 5/7/2004 12:23:59 PM
Hello,
I am getting this error once in a while from my web
sites. When I will refresh web browser, it goes off and
sites are working fine.
Directory structures and file names are as below-
C:\WWW - corporate site, C:\WWW\default.aspx is the
default page and this site works fine.
C:\C... more >>
Single Validator for 3 field Phone Number
Posted by Sharon Traineanu via .NET 247 at 5/7/2004 12:16:26 PM
I'm using C#.net.
I have a phone number in three asp textboxes. I'd like to make the phone number required, and validate to make sure only numbers have been entered.
My main problem is I can't find a way to have all three textboxes use the same validator and not display 3 error messages.
-... more >>
Combine regular expression validator with javascript function?
Posted by dotnw NO[at]SPAM hotmail.com at 5/7/2004 11:33:27 AM
Hello.
Say I have a .net textbox that uses a .net regularexpressionvalidator.
If the regular expression fails, is it possible to launch a small
client side javascript function to do something, such as change the
border color of the textbox to red? That would look quite nice: if
the expressi... more >>
Error opening web project on pc with multiple sites
Posted by Brad at 5/7/2004 11:25:52 AM
I'm running 2003 server std, have multiple web sites and use host headers
to differentiate the web sites (I'm on a domain using DHCP so can't use
static IP's). I'm using VS2003 to create and maintain my web projects. With
that said, on some projects I open an existing or create a web project,
... more >>
Output Cache Per User?
Posted by Mark at 5/7/2004 11:13:11 AM
Output caching is a wonderful thing - but it apparently makes no
distinctions among users. What would be good way to output cache a page per
user? In my ASP.NET Web application authenticated users see things
differently than unauthenticated users. I'd like to be able to cache the
pages so that t... more >>
Showing Hourglass on Client's Browser
Posted by vbGansta at 5/7/2004 11:07:06 AM
Hi Folks,
I want to know how to show an hourglass on the client's browser when a
certain subroutine runs in the codebehind page on my server. I am sure I
have to use some java script, but I am new to this and not sure how to
implement it. Can someone point me in the right direction?
Joe
... more >>
Persisting DataSet through DataGrid
Posted by Daz at 5/7/2004 11:05:49 AM
I want to make changes to a dataset that is bound to a datagrid.
Rather than store the dataset in session between page calls I've found
that I can cast the DataSource of the grid back to a DataSet and pass
this to the Update on the DataAdapter...
I've got this working OK with paging so it seem... more >>
Time Function --- Help.
Posted by le9569 at 5/7/2004 10:57:05 AM
Hello all,
I have a dropdownlist with more than 40 items inside. I am trying to write a
function that if the user change more than 20 items in the dropdownlist
within 4 seconds then I redirect to another page.
This action will be using in the SelectedIndexChanged.
The problem is how do I ... more >>
Export to Word
Posted by John Smith at 5/7/2004 10:56:00 AM
Does anybody have some sample code to Export a string to a Word Document? I
want to have a form that a user populates data with. Then the user clicks a
"Submit" button. The data populates a string variable which is formatted
for a word (.doc) file then a open/save dialog box appears for the us... more >>
Multiple controls with the same ID...
Posted by Steve_Black NO[at]SPAM EagleCCI.com at 5/7/2004 10:50:03 AM
Hello,
I am dynamically creating a System.Web.UI.WebControls.Table on my web
form, and within my table I put various radiobuttons, textboxes and
dropdownlists. When my table is created the first time, everything
works fine. However, when I post back and the table is re-created, I
am getting... more >>
Application creates IWAM_<machinename> user profile?
Posted by \ at 5/7/2004 10:28:55 AM
Why does my ASPNET application create a IWAM_<machinename> user profile?
Obviously it runs under the security context of this account but I'm not
sure why it creates this profile.
I am on a test Win2000 AD domain controller with IIS5. I have disabled the
ASPNET user account. The ASPNET proce... more >>
Virtual directories
Posted by Mark at 5/7/2004 10:04:02 AM
Aside from a virtual directory sharing memory with other sites, are there
security issues caused by using virtual directories? I have a collegue that
claims that a hacker could screw around with your code by executing code for
one project (virtual directory 2) from a different virtual directory ... more >>
Using GUID as primary key in DB
Posted by Grey at 5/7/2004 9:11:50 AM
I used .NET to generate a GUID for creating a new record in Access DB as =
primary key. Is it guaratee to be unique in the DB as the GUID is not =
generate in DB?? If so, is that mean GUID is generated based on machine =
instead of application, right??
Million Thanks... more >>
Error In VS 2003
Posted by hemal desai at 5/7/2004 8:47:27 AM
Hi
Recently I started Getting an Error on my Machine when i
open a asp.net project.
Error. "Visual Studio .net Has Detected the specified Web
Server is not Running ASP.net Version 1.1. You will be
unable to run ASP.net Web Applications or Services."
Can some one help me resolve th... more >>
Calling Javascript from a vb.net Method - Confirm()
Posted by sahoo NO[at]SPAM mississippi.org at 5/7/2004 8:23:08 AM
I have an asp button on my form. If user clicks the button then my
Javascript code Confirm pops up with "Ok" & "Cancel" button. If the
user clicks "Ok" from my pop-up then I do my vbMethod doApproveIt().
This works great if the Javascript returns true and I show the message
that the record is ap... more >>
Image question
Posted by Woody Splawn at 5/7/2004 7:55:30 AM
I have a small appliaction where I have placed an image control on an aspx
web page. In the ImageURL property of the Image control I point to where a
..jpg file resides. This is all done on localhost. I copy the project to
the web. However, when web page is viewed using the web no picture is s... more >>
Remove HttpModule for a subfolder
Posted by Dominik Amon at 5/7/2004 7:50:44 AM
Hi,
I'm using HttpModules in my ASP.NET Application (Note, i'm not using
HttpHandlers!). Well, it works correctly for the hole application, but i
wan't to remove the httpModule for a special subfolder (a WebService
Folder).
I defined the Module as followed:
<configuration>
....
<system.w... more >>
Error running project with subfolder web.config
Posted by John Spiegel at 5/7/2004 7:29:05 AM
Hi all,
I'm working through examples on configuring ASP.NET (all on local machine).
The first exercise deals with the customErrors in the config files. The
machine.config file has a customErrors mode set to RemoteOnly and the
application's web.config has it set to On with a redirect for a 404... more >>
What is considered orthodox?
Posted by Woody Splawn at 5/7/2004 7:05:24 AM
I am abvioulsy new to this and I need to ask a basic question.
What is the orthodox way or the normal or expected way that a web app is
written? Do you usually write it using localhost and the copy the
application to the web, or is it considered normal practice to write
directly to the web ( ... more >>
Using Data Application block
Posted by Philip Townsend at 5/7/2004 6:47:19 AM
I am in the process of converting some web apps to implement the ADO
application block. I have a copy the the applications on a local
development server, in which I have successfully installed and
referenced the application block classes. From this point the app goes
to a staging server, in whic... more >>
static constructor
Posted by Marek at 5/7/2004 6:15:23 AM
Hi,
I am analyzing Duwamish7 source code boundled with Visual Studio .NET 2003.
Could anoybody explain why the Monitor.Enter and Monitor.Exit block is used
inside a static constructor? The code can be found in Project
SystemFramework within module ApplicationLog.cs. Here comes the sample.
n... more >>
In session state, my object references are out of line. Why?
Posted by chriscauchi NO[at]SPAM hotmail.com at 5/7/2004 5:47:17 AM
In my Global.asax Session_Start function I have the following:
TCustomer oCustomer = new TCustomer();
Session["FCurrentCustomer"] = oCustomer;
TCart oCart = new TCart();
oCart.Customer = oCustomer;
Session["FCurrentCart"] = oCart;
After the login page retrieves the customer info and... more >>
Using FindControl() in global code base
Posted by D Sheldon at 5/7/2004 5:26:06 AM
I have created a method that accepts a string value (representing the name of a textbox) and then returns the value. Because the name of the textbox can change, I first build a string with the textbox name and then pass it to the FindControl() method to return the value. This works great when I use ... more >>
Insert null from TextBox to integer Field
Posted by Fraggle_Rock_1 NO[at]SPAM yahoo.com at 5/7/2004 5:07:40 AM
I have an asp.net page, I have a text box where people can enter an
integer (age). I wish to store this in a SQLServer Database. If the
person enters no age then I would store a NULL.
However if the textbox is left blank, I get an error
"[InvalidCastException: Cast from string "" to type 'Inte... more >>
Enable HTTP Keep Alives
Posted by Jim Heavey at 5/7/2004 5:05:39 AM
I am having problems running the VS.Net debugger and one of the possible
reason apparently is the HTTP Keep Alives setting. Where can I find that
on my Windows 2000 pro machine?
Thanks in advance for your assistance!!!!!!!!!!... more >>
Sending generated Office documents without saving them to disk
Posted by Mladen Jablanovic via .NET 247 at 5/7/2004 4:48:24 AM
I am creating dynamically some Office documents in my ASP.NET application. When I want to send the resulting document to the client, I am currently saving it to the local disk and then redirecting user's browser to it.
Is there any way to skip this saving phase, i.e. to send the document directly ... more >>
Help with Input string was not in a correct format
Posted by Darren Clark at 5/7/2004 2:56:18 AM
I thin i have found the most frustrating error EVER
"Input string was not in a correct format."
We are using Custom Datasets,,, so when it comes to running a stored proc
you set all the values and check they are OK>.
then when you actually run
myCommand.ExecuteNonQuery();
It throws tha... more >>
DataGrid: Server-side event for row click?
Posted by PontiMax at 5/7/2004 1:31:04 AM
Hi
is it possible to get a server-side event when the user clicks on a datagrid row? The user shouldn't be forced to click on a certain column entry; instead the event should be raised wherever on the row area the click happens..
Since this is quite urgent I would appreciate any help
Thanks in... more >>
SqlClient remote connection problems
Posted by Tony Zoccolillo at 5/7/2004 12:03:52 AM
I have a SQL Server database on a Windows 2000 Server. I have IIS running
on a 2nd 2000 Server with no SQL Server on it.. Neither are the PDC. Both
servers have the most recent .NET framework installed.
When I try to connect from my aspx page using SqlClient I get an error right
away. My ... more >>
Reset errormessage on CustomValidator
Posted by Dorte at 5/7/2004 12:01:06 AM
Hi
I am using a customvalidator to perform server validation of user input in webform1. When the user input has been validated, webform1 (which has the customvalidator and the user input) opens a new window (by adding a script to the web page that opens a new window by using response.write), redir... more >>
|