all groups > asp.net > january 2005 > threads for friday january 21
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
Global constructor called twice
Posted by Manuel Vázquez Acosta at 1/21/2005 11:40:42 PM
I found out that the constructor for the Global (Global.asax) component is
called twice. The first time the Application_Start is called, while the
second is not.
Is this documented somewhere out there?
So, any instance variable iniatilizated in the Application.Start, will be
discarded the ... more >>
How to stop HTML View from messing up HTML code
Posted by Anders K. Jacobsen [DK] at 1/21/2005 11:22:00 PM
I simple can't get visual studio 2003 to stop messing with my HTML code. I
have unchecked all formating options under Tools / Options / Text editor /
HTML/XML / Format
I have even tried to uncheck every assitence i could see remotly related to
this.
But it just keeps messing it up.
eg... more >>
URL checking
Posted by EMW at 1/21/2005 10:43:02 PM
Hi,
My ASPX (vb.NET) page needs to check an URL.
if it exists then it shows the picture (url is to that picture)
if is doesn't exist, it must show another picture.
but the question is how do I know wheater the URL is valid?
I use a Image webcontrol and that doesn't let me know the picture... more >>
Request Processing Page? Like an "in-between" page...
Posted by Roy at 1/21/2005 10:06:18 PM
Anyone have any links and/or code samples demonstrating how this can be
done? Current procedure is that john doe clicks an item on a datagrid
and after however long, gets the info he wants.
What I want to do is have a page that pops up "in-between" the two
pages. Something that says "Processin... more >>
dotnet installed twice
Posted by Debra Holloway at 1/21/2005 8:50:27 PM
I have some how ended up with 2 installations of the dotnet framework (1.1
and 1.03). Now it keeps telling me I need an update, but the update never
completes. I was going to remove the 1.03 version, but I can't seem to do
that either.
Help.
... more >>
HTML 4.0 Problems using Netscape as Browser
Posted by Greg Cyrus at 1/21/2005 8:37:14 PM
Hi, I make my first steps in programming ASP.NET-Apps.
While writing, testing and excuting the Application I always use the
built-in IE6.0 - everthing ok - no probs - no error.
Then I tested my Web-Application with Netscape and got display-problems:
"HTML frameset displays multiple Web page... more >>
Set filename in IE Save As dialog for download file?
Posted by tiendq NO[at]SPAM gmail.com at 1/21/2005 8:36:17 PM
Hi,
I store attachment file in SQL Server database and user can download it
later by using a download page e.g. Download.aspx?FileID=1234, the problem
is Internet Explorer always show default filename is "Download.aspx" in it's
"Save As" dialog box, how can I force it to display original uploa... more >>
HTML Controls vs. Web Controls
Posted by brian at 1/21/2005 7:01:01 PM
What are the advantages and disadvantages of using HTML Server Controls over
Web Server Controls and vice versa? Is there a clear cut consensus among
ASP.NET developers over which controls to use?
Thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.NET Label Events Help
Posted by Jim at 1/21/2005 6:37:51 PM
Can anyone help me, I'm trying to catch the OnFocus and OnBlur events
for an asp.net label. I want to change the forecolor of the label text
when it is moused over, and then revert it back when the focus is taken
away. Thanks in advance for any help.
... more >>
Renaming a project with another project as the starting point? In another solution
Posted by Maziar Aflatoun at 1/21/2005 6:32:29 PM
Hi everyone,
I have a C#. NET web project called MySite and I like to start working on a
new project called MySite2 (Future release of my site) with MySite files as
the starting point. What is the easiest way to create MySite2 containing
the same files as MySite?
Thank you
Maziar A.
... more >>
New Compnay
Posted by Wizard at 1/21/2005 5:43:22 PM
Hi,
I im looking for a Good free webbased helpdesk, and a good web free web
portal. Im not after anything for Free and I WILL donate if I find them
useful and use them.
Its for a friend who is just opening a company and as you can imagine does
not want to spend hundreds or thousands of p... more >>
calendar view control?
Posted by David C at 1/21/2005 5:14:02 PM
I am looking for some kind of calendar view control that I can show
hyperlinks to records in day cells. This is to be used for showing
scheduled events and people can see events in a calendar view and click on
links to view details of events.
Is there one out there? Thanks.
... more >>
System.Web.Mail question...
Posted by Fabricio Sperandio at 1/21/2005 5:03:32 PM
Hi everyone,
I am using the Mail Class to send an E-mail. It works very well but I would
like show my name instead of the E-mail on the mail client, when the user
receives the E-mail.
Now I am just setting the "to" property to my E-mail address on the Mail
object. What should I do to sho... more >>
multiple sites
Posted by Zeng at 1/21/2005 5:02:33 PM
Hello,
If I have 20 websites hosted on the same machine and all point to the same
application code, how many instances of my app will be running? 1 or 20?
This is a very common case where private labeling is implemented, hope
someone would know. Thanks!
-zeng
... more >>
customerrors tag in web.config
Posted by Chumley Walrus at 1/21/2005 4:52:05 PM
I'm having trouble seeing my page when I publish it on my live server.
I created a project in VS.net (with MMIT integrated), created a simple
index.aspx mobilewebform page , I can see it in my Mobile Explorer
emulator , but get the following error when trying to look at it from
my remote server,... more >>
how to move a project?
Posted by darrel at 1/21/2005 4:03:48 PM
I had to rename a project folder on my local machine. Now I can't open my
project because it gives me an error saying my project doesn't map to the
old URL I had set up. Where is this setting? Can I change this?
-Darrel
... more >>
Unable to upload images larger than 131 071 bytes
Posted by Shawn at 1/21/2005 3:51:37 PM
Hi. I'm letting the users upload images into a sybase 12.5 database. The
problem is that when ContentLength exceeds 131 071 an exception occur. The
e.Message property is empty so it doesn't tell me much. I know that images
much larger than this exist in the database. Any help is appreciated! Here... more >>
Session state management simple problem
Posted by pmud at 1/21/2005 3:07:03 PM
Hi,
In my ASP.NET application, the user has to enter a large amount of data so
that with submit button click all this information can go to SQL database.Wen
the user clicks submit, he is redirected to the Confirmation page.
For a certain number of records, data in half of the text boxes( ... more >>
A simple System Info application
Posted by Abel Chan at 1/21/2005 2:47:03 PM
Hi there,
I just got an assignment to work on server maintenance. It is a weekly task
and we have about 7 production servers running Win2K server.
The tasks include but not limited to
1) Find out drive free space for each server’s disk drives (C:, D:, E:, and
etc)
2) Report critical... more >>
where does the datagrid output go?
Posted by dwight0 at 1/21/2005 2:37:12 PM
I have various ASP.net forms and on most forms, on IE I can go to
"view source" and I can see the output of the data grid. However I
have a few different pages where I have a large amount of output and I
don't see any output in the view source. At first I thought it was
being truncated because i... more >>
refreshing a web page...
Posted by Ollie Riches at 1/21/2005 2:30:48 PM
I have a process that completes asnychronously and whilst this is happening
the aspx page shows an animated gif and sets the header to refresh every 2
seconds to check whether the asynchronous process has completed.
It all works perfectly fine but what I want to know is it possible to do
this ... more >>
Transfer large Files to server
Posted by Weston Weems at 1/21/2005 2:28:20 PM
I've got the simple problem where I'd like to transfer
somewhat large files to my webserver via
http/webservice/something like that.
My question is what kinda limits have people been able to
hit? Is 500mb unreasonable or not. Client doesnt have to
be a typical webbrowser, so I could theor... more >>
DataGrid? Sum Calculate?
Posted by Sam at 1/21/2005 2:26:27 PM
I successfully created DataGrid with connected environment but how do I
perform sum of TotalRBAmount in DataGrid?
Coding of ASP.Net 1.1
------------------------
<form runat="server">
<wmx:SqlDataSourceControl id="SqlDataSourceControl1" runat="server"
UpdateCommand="" SelectCommand="SEL... more >>
How to add a background image to TreeView ?
Posted by Rogers at 1/21/2005 2:21:44 PM
Hi,everyone:
I want to add a background image to treeview control on my asp.net
page,or if I can make it to be transparent,that would be okay to.if there
and way to implement it?
Thank you!
Rogers.
... more >>
Sizing start page based on client display setting
Posted by Paul at 1/21/2005 2:07:04 PM
Hi just wondering if there is a way to automatically set the start page to
fit the display on the client machine? This seems to be dependent on what
pixel settings the client has for its display.
Thanks.
--
Paul G
Software engineer.... more >>
IEwebcontrols
Posted by Shahriar at 1/21/2005 1:38:18 PM
I am using the treeview control from the IEwebcontrols in my studio 2003. I
create a simple web page with couple of nodes, etc... when I display the
result in my IE browser, I have a blank page;however, when I use the
FireFox, I am able to see the treeview. I restored to the default settings... more >>
Temporarily Make Web Site Completely Inaccessible
Posted by Jeremy S. at 1/21/2005 1:34:40 PM
Sorry if this is too far OT - I posted this in the IIS group and got no
response - so here goes:
What would be a good or recommended way to make a Web site in IIS6
inaccessible to users on the Internet. My situation is that I will
periodically update a ASP.NET Web application. While I am maki... more >>
can this be done? use a webcontrol from a webservice?
Posted by blarfoc NO[at]SPAM yahoo.com at 1/21/2005 1:34:29 PM
our web application is 3 tiers, database, web services, and web
interface.
on the web interface we have a web custom control that wraps up our
tree view. it is special for us and has much code, javascript,
postbacks, and events, it makes sense to wrap it into a web custom
control because we ... more >>
Change Width of WinForms user control on Web page
Posted by Joe at 1/21/2005 1:18:49 PM
I have a WinForms user control and I want to change the width using a client
script on a when page. Can this be done?
I was thinking something along the lines of:
function resize()
{
var o = document.myobject;
o.Width = 800;
}
... more >>
Error while trying to debug
Posted by jayaraman ramamoorthy via DotNetMonster.com at 1/21/2005 12:55:41 PM
Error while trying to run project Unable to start debugging on the web server. You do not have permissions to debug the server. Verify that you are a member of the 'Debugger Users' group on the server.
--
Message posted via http://www.dotnetmonster.com... more >>
Front Page Extensions
Posted by Tampa .NET Koder at 1/21/2005 12:41:03 PM
Is Front Page Extensions a requirement in order to create ASP.NET Web App
using VS.NET? I have always used it, but I am now wondering if its required
or not. I know you can also use a UNC share; but does anyone use that method?... more >>
variable scope and persistence
Posted by Cole Trickle at 1/21/2005 12:18:20 PM
Hello...
I assign a variable from the querystring to a class level private variable
as follows
public class CrsInstnc : System.Web.UI.Page {
private string tcoRef = "";
private void Page_Load(object sender, System.EventArgs e) {
if(!IsPostBack){
if(Request.Q... more >>
q: code fails
Posted by JIM.H. at 1/21/2005 12:01:04 PM
Hello,
The following code fails at Response.Write(result.Properties("mail")(0)) if
myUser does not have anything in the e-mail filed of active directory. The
message I am getting is “Object reference not set to an instance of an
objectâ€. How can I prevent from that?
Private Sub ... more >>
Reading content of http page
Posted by Neven Klofutar at 1/21/2005 11:53:32 AM
Hi,
Is there a way I can read content of http page ?
This won't work:
****************************
string strStranica = @"http://www.hnb.hr/tecajn/hvazeca.htm";
StreamReader sr = new StreamReader(strStranica, Encoding.ASCII);
while ( (strLinija = sr.ReadLine()) != null ) {
....
I get a... more >>
c# Excel Export
Posted by rkbnair at 1/21/2005 11:45:03 AM
I'm trying to export some data onto excel from my aspx page using c# code.
However, when I say xlApp = new Excel.Application,
the .Application is not listed from my intellisense popup.
Any idea why?
However I could do all these sucessfully:
Excel._Application xlApp
Excel._Workbook xl... more >>
Embedding PPT slidehow in IE
Posted by b_naick NO[at]SPAM yahoo.ca at 1/21/2005 11:44:25 AM
Is there a way to embed a powerpoint slideshow in a webpage? I have an
application which requires a slideshow in one of the frames of the
application.
One option would be to get the users to save the PPT as HTML, grab the
images files and upload them to my app. Then use Javascript to do the
s... more >>
Setting "debug=false" causes error
Posted by Whiplash at 1/21/2005 11:36:58 AM
I've got a web app that has the debug parameter in the web.config file
set to true. Everything works great. However, I want to set debug to
false before putting the app into production. When I do so, I get an
error that states; "Object reference not set to an instance of an
object". It also does... more >>
streams and querystrings
Posted by John Hopper at 1/21/2005 11:31:02 AM
I need to provide data to a cgi script on a remote site from my asp.net web
form. The script expects a querystring containing the data. I want to keep
the user at my site, and submit the data programmatically and transparently.
Can I use something similar to:
Dim objHTTP As Net.WebRequest =... more >>
How to catch HttpRequestValidationException
Posted by hn at 1/21/2005 11:21:01 AM
When a user enters a html tag <BR> in one of my textboxes, asp.net by default
gives the error:
"A potentially dangerous Request.Form value was detected from the client
....".
I understand that I can turn this error off by setting validateRequest=false
in the Page directive. However, I wa... more >>
Read Filenames from C:\Folder
Posted by (rbutch NO[at]SPAM coair.com) at 1/21/2005 11:07:20 AM
guys, i need a little help with this.
this is working (well sort of)
i get the info, but it's not moving to a new line as it iterates thru the array
and all of the fields are like ONE HUGE LONG string
'declare an array
Dim filenames() As String
filenames = Directory.GetFiles("C:\Re_C... more >>
Trying to pass a variable back from a user control
Posted by Phil Certain at 1/21/2005 10:57:57 AM
Hi,
I'm trying to do something very simple...or at least it should be. I
have created a host page (gen.aspx) and a very simple user control
(us.ascx). The corresponding code-behind files are gen.aspx.vb and
uc.ascx.vb. With simple html or self contained vb in the user control,
everything is f... more >>
How to don't display value?
Posted by Leszek at 1/21/2005 10:41:24 AM
I wrote an aspx page.
It shows datagrid with values:
server | parameter
---------------------
server1 | parameter1
server1 | parameter2
server1 | parameter3
server1 | parameter4
server1 | parameter5
server2 | parameter1
server2 | parameter2
server2 | parameter6
server3 | parameter3
... more >>
Problem with Internet Information Services
Posted by Charles Tam at 1/21/2005 10:27:03 AM
I've running IIS and .NET 1.1 on XP Pro. I've also installed "Internet
Information Services Snap-In" but it does not appear in the Adminstrative
Tools.
Anyway, when I try to execute the "inetmgr.exe", a dialog box appears with
"Snap-in failed to initialize. Name: <unknown> CLSID:
{A848B6... more >>
Updating files/projects
Posted by Tom wilson at 1/21/2005 10:09:13 AM
I'm just not getting this. I need to create a new asp.net
application. I have a 2003 web server with administrative privs. So
what I do is create a new website on the server, add FP extensions for
good measure and define it as an application.
I bring up vs.net. Start a new web project. ... more >>
Directory security problem
Posted by Jon at 1/21/2005 10:08:54 AM
I made a subdirectory in our root web folder and placed a web.config file
with the following in it:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</configuration>
Yet, I am still able to view text fi... more >>
What's "wwwroot$"?
Posted by Tom wilson at 1/21/2005 10:03:42 AM
I'm trying to connect to an asp.net project and VS.Net keeps telling
me it can't find this share:
\\www.mysite.com\wwwroot$\MyWebsite
What's wwwroot$? I mean, it's supposedly a UNC share but what creates
it? "wwwroot$" isn't a standard share, nor is the above UNC path a
standard path ei... more >>
Fire a server function from javascript?
Posted by Luis Esteban Valencia at 1/21/2005 9:59:23 AM
Is that possible? I mean on a onrowclick for example fire a code behind
function?
--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
... more >>
Server-Side Control - Embedded Server-Side Code - Inline
Posted by Mythran at 1/21/2005 9:37:02 AM
<asp:hyperlink ... navigateurl="<%=MyClass.MySharedMethod%>" ...
Anyone know how to do something similar to the above?
Thanks,
Mythran
... more >>
Looking for some books
Posted by MSDN at 1/21/2005 9:13:41 AM
I'm looking for some good books to increase our knowledge in ASP.NET
We have several books here already: ASP.NET unleashed, XML for ASP.NET
Developers, ASP.NET (Wrox), and ADO.NET development.
What we're looking for are books that deal with topics like:
Reflection, State Management, Interfac... more >>
Pie Chart - Labelling
Posted by rkbnair at 1/21/2005 9:07:03 AM
I created a pie chart in an aspx. However, how can I display the data in the
piechart itself in the right location? The code is as follows:
(Please see the definition of float x and float y)
private void CreatePieChart_a(string pStr_SQL, string
dataColumnName,string labelColumnName,strin... more >>
Multiple file download
Posted by RJN at 1/21/2005 8:48:26 AM
Hi
Sorry for posting this again. Requirement is to allow the user to
download multiple files at once from browser. User will be displayed a
grid on the browser which will list the various files available on the
web server for download and a check box beside each for selecting the
file.
... more >>
Access public property from my ascx control !
Posted by Mick at 1/21/2005 8:20:51 AM
Hi,
Dragging & Dropping my ascx control in my aspx page, I just wanna know how I
can access its properties when validating the form ?
The control is composed of 4 controls (2 txtbox and 2 dropdown : Address,
ZipCode, Country & City).
In fact, when, in my code, I try "this.MyControlId".... it ... more >>
Create PDF file from SQL Server data
Posted by otto at 1/21/2005 8:13:04 AM
Hi, all:
I want to create a pdf file with data retrieved from a SQL Server database.
How can I do this? Is there any Acrobat Reader api for doing this? Can I
export data in an Excel workbook to a pdf file? Any help would be apreciated.
Thanks a lot for your help.... more >>
Unable to open vc2002 ASP.NET web project with vc2003 HELP
Posted by alan_coffman2004 NO[at]SPAM yahoo.com at 1/21/2005 8:03:13 AM
Opening an ASP.NET VS2002 project in VS2003, am getting this error:
"Unable to open Web project 'MyProject'. The file
path 'c:\inetpub\wwwroot\MyProject' does not correspond to
the URL 'http://Localhost:/MyProject'. The two need to map
to the same server location. HTTP Error 404: Not Found."
... more >>
Control Collection in a page
Posted by sri_san NO[at]SPAM mailcity.com at 1/21/2005 8:00:33 AM
Hello,
I am trying to get reference to all the button controls present in
a webpage/usercontrol. I need to set a property common to all the
buttons at runtime. Not sure how to go about it.
Any help would be great!
Thanks,
Sam.
... more >>
ASP.NET 2.0 Dvelopment
Posted by Ryan at 1/21/2005 5:53:04 AM
What tools currently exist for creating ASP.NET 2.0 pages?
Will the Web Matrix support 2.0 or will it be phased out by Express Editions?
Thanks!... more >>
Custom Validator
Posted by Jim Heavey at 1/21/2005 5:29:02 AM
Can I create a generic Javascrip custom validator in which I can pass
multiple parameters? Looking at examples, it does not appear that I can. I
want to create a custom validator which will look at the value of two
controls and depending on those values either set the "style" of another
co... more >>
Using a c# assembly client side
Posted by Gravy at 1/21/2005 4:45:02 AM
Hi
I want to use one of my c# assemblies on the client browser (IE), say using
javascript to call it.
I have seen loads of people asking how they can host a WinForms control in
IE but all I want to do is call a few methods in my assembly which do not
have or need a UI.
The <object> ta... more >>
UserControl Problem
Posted by Tim::.. at 1/21/2005 4:35:03 AM
Can some one please tell me why I keep getting an error saying user has not
been declared when I add the following to a class usercontrol.
User.Identity.Name
If it is the page class then there is no problem!!!
EG:
Inherits System.Web.UI.Page = OK
Inherits System.Web.UI.UserControl = D... more >>
Memory and performance
Posted by dmertens NO[at]SPAM home.nl at 1/21/2005 3:30:54 AM
I am trying to find an answer on some questions i have.
My first question is:
1) If you built a website with classes. Does this improve the
performance?
2) Can there become a memory problem -> when you save the classes
into server variables?... more >>
Retrieve htmlbutton ID from placeholder
Posted by John Mason at 1/21/2005 2:53:14 AM
Hi!
I hope someone can assist... this has been driving me crazy!!
I have dynamically added several htmlbuttons to a placeholder control
using...
AddHandler btnReports.ServerClick, AddressOf Get_Date_Range
In the Get_Date_Range sub, I am trying to find out which button was
clicked. Each b... more >>
Hiding a variable in a querystring
Posted by Craig HB at 1/21/2005 2:27:01 AM
I need to pass a variable in a querystring that I want to hide from the user.
eg www.abc.com?UserID=555 and the UserID must be hidden.
I was thinking of encrypting the ID, using a UserGUID that would change
every night, or passing and an array and index and getting the correct UserID
from t... more >>
Persistent connections possible in ASP.Net?
Posted by Jim Hubbard at 1/21/2005 2:03:14 AM
Is it possible to have persistent connections in ASP.Net?
... more >>
A class visible through out the site?
Posted by Mustafa Rabie at 1/21/2005 1:38:34 AM
I have a registeration which is divided on 3 pages, i want to have a class
that i can create on the 1st page, collect the data from page 1 and add the
values to vars in the class, then page 2 and add to vars then page 3 and add
vars then i call a web service @ page 3 and send all the data i co... more >>
How to create my own header controls?
Posted by Axel Dahmen at 1/21/2005 12:18:11 AM
Hi,
a few weeks ago I had started a thread "Can't dynamically add controls
because of <%...%> code blocks". The error mentioned keeps me from inserting
an automatically generated navigation menu at the top of some pages. My
pages contain some <%= %> sections as well as sometimes <%# %> section... more >>
|