all groups > asp.net > january 2006 > threads for friday january 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
How to show variable on webpage?
Posted by brett at 1/13/2006 10:45:25 PM
I'd like to display a string variable on a webpage depending if the URL
has "localhost" in it or not. The string variable will have line
breaks and this text:
<script type="text/javascript" language="javascript">
How do I go about accomplishing this?
Thanks,
Brett
... more >>
ASP.Net prefers Firefox?
Posted by Jim at 1/13/2006 10:40:29 PM
I had Firefox set as my default browser, but I wanted to change back to IE
when testing my webservices.
Easy enough....(in IE) Tools>Internet Options>Programs then check "Internet
Explorer should check to see whether it is the default browser". I
restarted IE and responded "Yes" to whether... more >>
Session Authentication Authorization
Posted by jack at 1/13/2006 10:34:26 PM
HI i have tried different types of form based authentications but im
not able to get how to make a session level authorization.
im a begginer
and im not able to make that difference off like what is form based
authentication and form based authorization
please help me in undestanding the diffe... more >>
Trap the Maximum request length
Posted by Giuseppe Esposito at 1/13/2006 10:24:24 PM
Ok, don't think to reply me "check the web.config" or something like that.
I know about it.
The case is I wrote an HttpModule that perform the upload by chuncking the
stream and rebuilding the file in the
specified server location. So I can posts file over and over the standard
4096Kb limit... more >>
PLS HELP: Simple adding data to db in ASP.NET 2.0
Posted by VB Programmer at 1/13/2006 8:21:56 PM
Is there any example that shows how to do something like this (the simplest
way) in ASP.NET 2.0...
1. Simple webform (called "AddProduct") with several textboxes
(txtProductName, txtProductPrice, etc...) and 1 save button.
2. Click Save button and the data is inserted into the Addresses tabl... more >>
Images inline with blog contents - HOW??
Posted by Neo Geshel at 1/13/2006 7:31:43 PM
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress=20
2005. Why? Because I can. Because I will gain experience.
The one thing that has me stumped at square one is inline images. That=20
is, images inline with the actual content of the blog itself. Is there=20
an example that I... more >>
question re: date format in RSS news feeds
Posted by Milsnips at 1/13/2006 6:55:20 PM
hi there,
i am trying to get some feeds into my site, but am having problems with the
converting the date format of "pubDate" into a datetime variable:
<pubDate>Wed, 28 Sep 2005 08:00:00 UT</pubDate>
It doesnt seem to like it? Any help appreciated
thanks,
Paul
... more >>
debugging a databind that is actually working?
Posted by darrel at 1/13/2006 6:43:18 PM
I am getting this error:
System.ArgumentOutOfRangeException: Specified argument was out of the range
of valid values. Parameter name: value
specifically on the line where I am databinding data to a DDL.
The odd thing is that the data *is* being binded. If I run the page, my DDL
is being... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
403 (Forbidden) Error
Posted by David Veeneman at 1/13/2006 6:33:42 PM
This page is for the google crawler and requires no response.
I had a problem accessing web sites in ASP.NET using VS 2005. When I
launched an ASP.NET web site, from Visual Studio or from my browser, I got a
403 (Forbidden) Error.
SOLUTION: The problem stems from the fact that IIS 5.1 does... more >>
Maintaining ASP.NET Sites
Posted by Raymond at 1/13/2006 6:28:15 PM
They say it's easier, but has anyone tried
maintaining an ASP.NET site without the
source code of the dlls? This was not a problem
with classic ASP, all the code was almost always
just in text files, easily viewable and most importantly
readily AVAILABLE on the site, to anyone access to
the si... more >>
Compiler Error: [No relevant source lines]
Posted by clintonG at 1/13/2006 6:17:34 PM
Compiler Error Message: CS0006: Metadata file
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\MyProjectName\331c872a\fd27ed37\App_Code.wg0_ken7.dll' could not be
found
[No relevant source lines]
That's the only error I get when VS2005 goes boom. This is really bugg... more >>
VWD 2005 Express: "copy web site" creates multiple publishform (2.0)
Posted by sck10 at 1/13/2006 4:40:25 PM
Hello
I am using Visual Web Developer 2005 Express. Whenever I use the "copy web
site" function, it creates a "publishform" button on my task bar that
doesn't go away. So if I publish 3 different times, it creates 3
"publishform" buttons. Do I need to re-install the application?
--
Tha... more >>
High memory in a ASP.NET application - how to monitor, what can cause?
Posted by Ravi Ambros Wallau at 1/13/2006 4:22:38 PM
Hi:
We have an ASP.NET application that has a memory consumption issue -
it's go up to 150 MB in a few time (some hours).
The application uses two Microsoft Application Blocks, the User
Interface and the Data Access. The User Interface block was highly modified
to support our needs. ... more >>
output cache question
Posted by merrittr NO[at]SPAM gmail.com at 1/13/2006 3:20:08 PM
This might not be the forum for this but oh well...
I have a web app that writes fields into a PDF document, it then
displays a link to this document via an anchor tag. Here is where I
get confused:
even though in the file system the PDF document gets overwritten each
time the page is trave... more >>
ASP 1.1 and SQL 2005
Posted by JohnZing at 1/13/2006 3:14:22 PM
Hi,
I have a server with some ASP 1.1 Applications and MSDE 2000
I need to install an ASP 2.0 application and i want to install also SQL
2005 Express
Question:
It's ok to remove MSDE 2000 and install SQL 2005 Express
Old ASP.net 1.1 can connect to SQL 2005 (without connection string
chang... more >>
Basic question about database connection in ASP.NET
Posted by Lau Lei Cheong at 1/13/2006 3:07:08 PM
Hello,
Actually I think I should have had asked it long before, but somehow
I haven't.
Here's the scenerio: Say we have a few pages in an ASP.NET project,
each of them needs to connect to the database(Does not really matter but,
in case you need to know, either MSSQL or ... more >>
Is this static method threadsafe?
Posted by Diffident at 1/13/2006 2:51:02 PM
Hello All,
Following is a static method. Can you please tell me if this is
threadsafe...why? If it is not threadsafe...why?
Thank you.
public static string GetCachedApplicationWideObject(string HashtableKey)
{
//Cache["DefaultSampleQPage"] holds the hashtable
if(Cache["DefaultS... more >>
Newbie-Q: 403 Error
Posted by David Veeneman at 1/13/2006 2:30:16 PM
I'm just getting started with ASP.NET. I got a 403 error the first time I
tried to run a web site in VS 2005, so I did two things:
1) I confirmed that the IIS default web site was configured for anonymous
access in the MMC Authentication Methods dialog.
2) I gave the Internet Guest account... more >>
C++ 6.0 dll work with asp.net
Posted by Andy Sutorius via DotNetMonster.com at 1/13/2006 2:21:45 PM
I have asp.net 2.0 What steps do I need to take to get a c++ 6.0 dll to work
within the project? I assume regsvr32 and drop it in the bin folder? Those
are assumptions. Details please. Thanks!
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200601... more >>
CompareValidator for dates > than today
Posted by tshad at 1/13/2006 2:07:58 PM
I am trying to check the date of my field to check if it is greater that
today, but I am getting an error.
I am using :
<asp:CompareValidator runat="server"
ControlToCompare="RequestedStartDate"
Operator="GreaterThan"
Display="Dynamic"
ValueToCo... more >>
checkbox problem
Posted by PJ6 at 1/13/2006 2:04:31 PM
OnPreRender if I add this...
Me.Attributes.Add("onmousedown", "alert(this.checked)")
I get 'undefined', at least in IE. Everywhere I look "checked" is supposed
to be the property to retreive the value of a checkbox... obviously I've
missed something. Someone want to give me a clue?
Than... more >>
Advantages of Static Vs Instance methods?
Posted by Diffident at 1/13/2006 2:01:02 PM
Hello All,
Can anyone please list me the advantages or disadvantages of instance and
static methods in terms of performance be it either memory consumption or CPU
utilization or any other parameters.
Thank you.... more >>
Use validationSummary to display error message in user control
Posted by c676228 at 1/13/2006 1:49:02 PM
Hi,
I have several user controls like email, phone,ssn etc. each has it's own
validation message in its user control already.
When I bring all those user controls in an aspx page, I would like to
display a summary error messages using validation summary in an aspx page,
how to do that?
Than... more >>
DataGrid, Edit and the Enter Key
Posted by Newbie at 1/13/2006 1:32:02 PM
Hi Everyone,
ASP.NET 1.x
I have a problemette !
I have a datagrid on my web form. When the user hits the enter key whilst
any editable field on the form including those in the datagrid itself, it
triggers a submit back to the server.
A the least, I want to disable this and at best, ... more >>
What is better for a web page????
Posted by NATE at 1/13/2006 1:11:24 PM
I'm designing a web application but I don't know what component are
better to access the data from Internet..
I think the unbound components give me more performance, but what about
the bound components...
... more >>
session values
Posted by George at 1/13/2006 1:11:04 PM
I'm having a problem with sessions. Basically, my site has a place where a
user logs in, and they're taken to a page with the order details and items
from their shopping cart. This order detail page checks a session variable to
check that the customer is logged in. The problem is that some us... more >>
How use newest userid in auto INSERT (2.0)
Posted by VB Programmer at 1/13/2006 12:55:35 PM
I have a table called 'MyUsers'. Some fields are as follows:
UserId (p key to tie it to aspnet_Users), MyAddress, MyCity, MyState, etc...
After I do a Membership.CreateUser to add the new member to aspnet_Users I
want to run the Insert command from my SqlDataSource, using the new UserId.
(I... more >>
this should be easy...
Posted by purdy_ra NO[at]SPAM yahoo.com at 1/13/2006 12:41:41 PM
really simple.
the DBA gives you a field called txtEntry.
it's an integer field in sql 2000.
make a form that has the txtEntry field and validate that only integers
are passed thru on that
form when you save it.
well, i tried this.
i used the CompareValidator control.
make it to DataType... more >>
Architectural assistance needed!
Posted by news.microsoft.com at 1/13/2006 12:39:41 PM
Hello,
I need to build statistics for a small asp.net web site. People basically
come to search in a book database through the site.
The statistics should reveal how often unique users search the site.
Are there tools that can be used for these task. Which ones?
Otherwise how can this be... more >>
Download multiplefiles
Posted by Jatin at 1/13/2006 12:31:03 PM
Hey guys
Can anyone help me.
i am streaming a file from the server to the client. I using the
response.outputstream, it works like a charm.
I want the user to be able to download multiple files. i.e. the user chooses
some files and then downloads all of them at the same time. How can that be... more >>
v2.0 Form POST - The state information is invalid
Posted by Chris at 1/13/2006 12:26:12 PM
This scenario used to work with v1.1
Take a simple html form from www.Website1.com and post to
www.Website2.com/Index.aspx with a few form fields. On submittal, you will
get an error.
[error only occurs when posting is cross-domain]
If you were to use a querystring to access the Index.asp... more >>
Very Strange Problem! (Derived Controls) - Help!
Posted by Sosh at 1/13/2006 12:16:19 PM
Hi,
I'm pulling my hair out trying to work this out. Pehaps I am
missunderstanding something - hopefully someone can shed some light on this:
1) I have a class library that contains a bunch of custom web controls. Two
of these controls are derived from the TextBox control, and overide th... more >>
maxRequestLength and Action cancelled
Posted by Jorge at 1/13/2006 11:42:23 AM
Hello!
I'm using asp.net 1.1.
When i post a file larger than the value specified by maxRequestLength,
i get an "action cancelled" error page in internet explorer.
How can i gracefully handle the error? I don't want to to enlarge the
size of the key value.
Thanks in advance
... more >>
delegation question
Posted by russell.lane at 1/13/2006 11:08:44 AM
I'm building out a pretty standard n-tier ASP.Net web application. The
stack
includes application/presentation, biz logic, and data access layers on top
of an SQL server back end.
We want to use impersonation and delegation to forward the user's Windows
login through all layers in the stack... more >>
Modify ASP.NET 2.0 client validation
Posted by lambertb NO[at]SPAM gmail.com at 1/13/2006 11:07:34 AM
Hi everybody,
I was wondering how I could change the behavior of client-side
validation with ASP.NET 2.0. What I would like to do was done by
someone else, but with ASP.NET 1.x
here is what I would like to achieve :
http://aspadvice.com/blogs/kumarr/archive/2005/09/27/12901.aspx
Basicall... more >>
Common functionality across pages, what's the best solution?
Posted by Allan Ebdrup at 1/13/2006 11:03:18 AM
Hi
I've created a asp.net 2.0 page with an Page_Init eventhandler that I want
to share among multiple pages, what's the best approach for this? Should I
inherit from the page, or is it better to create a library with the
eventhandler code and insert a call to the library on Page_Init on all p... more >>
mail merge?
Posted by phil2phil at 1/13/2006 10:58:51 AM
hi,
i wanted to know if it's possible to build an asp.net mail to automate
mail merge with ms word documents. i already have the ms word document
created with the merge fields, currently we go through the mail merge
wizard to select a datasource to merge it with, but i wanted to create
a page ... more >>
Creating new directory on the server
Posted by rsimlote NO[at]SPAM gmail.com at 1/13/2006 10:57:32 AM
Hi
I am developing a site, where the users upload images to the user's
(/images/<username>) directory on the server. I am able to upload the
file only if the directory already exist on the server, but for that I
am manually craeting these directories on the server. How can I create
a director... more >>
datagrid error
Posted by rogo at 1/13/2006 10:47:04 AM
I'm having a problem getting the dataset to fill the datagrid. Below
is the error page.
Thanks for any help.
--------------------------------------------------------------------------------
ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1:
Incorrect syntax near '.'.
D... more >>
Block tooltips in Treeview's checkboxes
Posted by Mark at 1/13/2006 10:47:02 AM
Hello,
I am using the new TreeView in ASP.Net 2.0. I am using its PopulateOnDemand
feature.
The problem is that the treeviews +/- images, and any checkboxes, have the
tooltip set. If the node contains HTML, then the tooltip shows the raw HTML,
which is unacceptable to users.
Is there an... more >>
Creating CSV
Posted by P K at 1/13/2006 10:35:02 AM
I create a CSV file after looping through a datatable.
All is fine except in the first two lines of the CSV I get this-
<!--METADATA TYPE="ASP_DEBUG_INFO"
-->
How could this be avoided?... more >>
How to gather the caller page information?
Posted by ABC at 1/13/2006 10:23:09 AM
How to gather the caller page information? I want to check the enter from
when entering the onload event of the page. Which properties or functions
have that information?
... more >>
reference to a "global" variable from within an aspx page
Posted by Pierre at 1/13/2006 10:20:32 AM
Hello,
In an aspx page (mypage.aspx) from a web projet,
I would like to get the value of a variable of the projet that is declared
as public in a module.
The variable can be called from anywhere in the code behind page and in the
class files, but when I try to call it from an aspx page, it ... more >>
Class based on singleton pattern and instance methods in that clas
Posted by Diffident at 1/13/2006 10:05:04 AM
Hello All,
I am designing a class based on singleton pattern. Inside this class I have
multiple instance methods. My question is since there will be only one
instance of this class at any instance of time in the whole application there
is no use in having these methods as instance methods I... more >>
RollOver and onMouseOver?
Posted by Rob R. Ainscough at 1/13/2006 9:59:22 AM
I'm using .NET v1.1 with ASPX web page.
I'm trying to have a RollOver hyperlink that will change images on an image
control and update the text in a Label control. I've got the image swapping
working, however I don't know how to get my Label control text to change
with the onMouseOver even... more >>
global functions?
Posted by Chattanooga at 1/13/2006 9:36:00 AM
hi all
just a quick one, where can i put functions that all asp.net pages
within an application can call? i tried globla.asax.vb, but that did
not work.
TIA!!!
Chris... more >>
Form Submission ,NET 2.0
Posted by Thom Little at 1/13/2006 9:30:37 AM
I have a NET 2.0 windows application that needs to send a "post" <form> to a
website. That website opens a new browser window when it receives the
command and establishes a dialog in that window.
The website requires "post" and not "get" so I can apparently not use a
query string.
Is th... more >>
Strong typing for user controls
Posted by Ryan at 1/13/2006 9:09:03 AM
I'm a lot confused when using user controls in ASP.NET 2.0. How do I cast a
varaible to the type of a user control... for example:
Me.PlaceHolder1.Controls.Add(Page.LoadControl("~/App_Controls/ctlApplicationHome.ascx"))
' now, this doesn't work... why?
Dim apl As App_Controls_ctlApplication... more >>
HELP - Listing Shared Folders
Posted by nuggies at 1/13/2006 9:00:07 AM
I'm developing an ASP.NET 2.0 (C#) application in which I need to display
the available shared folders on the server. The shared folder paths need to
be in UNC format (i.e., \\servername\share) and need to be clickable links.
Upon clicking the link a textbox needs to be populated with the full U... more >>
Only allow enter key in MultiLine textbox
Posted by ian at 1/13/2006 8:35:32 AM
Hi,
I am currently using a Javascript function to dissallow the enter key
on my ASP.NET (2.0) web page, as follows:
function fnTrapKP(){
if (document.all)
{
if (event.keyCode == 13)
{
event.returnValue=false;
event.cancelBubble = true;
}
}
}
I call this from the bod... more >>
MSWord
Posted by Peter at 1/13/2006 8:25:25 AM
I have to write a ASP.NET application that creates MSWord document from =
a template and populated with data from the webpage.
(Templates can reside on the server or client's hard drive.)
What is the best way to do this?=20
Is it good idea to have MSWord installed on the server? If it's not a ... more >>
Can't open asp xml page
Posted by Eddie at 1/13/2006 8:00:27 AM
Hello, there.
I'm just a newbie for ASP.
I made a webpage with VS2005. The page contains nothing. It's a default page
when I created webpage in the VS2005.
IE shows me error message that he can't open xml page.
I don't know what is the problem.
I hope you guys help a newbie.
Thanks ... more >>
sending email
Posted by VJ at 1/13/2006 7:49:17 AM
I'm trying to send e-mail to two accounts...
and didn't know if this portion of the syntax was correct?
emailMsg.From = "vj@aol.com;" + Session["Email"];
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com... more >>
Newbie... Unable to create a new Web Application Project
Posted by Billallan_98272 at 1/13/2006 7:46:04 AM
XP Pro w/ Service pack 2
VB.net 2003
INstalled prerequisites, VB.net, MSDN library.
Tried to create a new Web Application.
I get an error message that states A connection with the server could not be
established. I've clicked on Help and none of the paths has corrected my
problem.
Ra... more >>
ASP.NET Embedded Resources
Posted by Grant Harmeyer at 1/13/2006 7:42:41 AM
I have a project where I am required to embed a few images and CSS files in
the assembly (v1.1) and read them out at runtime. I know that this can be
done using an HttpHandler/.axd file (like the one used for FreeTextBox
http://www.freetextbox.com), but I've never tried this before. Does anyon... more >>
Deriving from MembershipUser and ASPNET Config Tool
Posted by Mark Olbert at 1/13/2006 7:12:46 AM
I'm reposting this in case it got lost...
The ASPNET Configuration tool does not appear to be able to handle derived MembershipUser classes.
Even the simplest possible derived class (one which merely wraps MembershipUser itself, duplicates its public constructor but adds
no additional method... more >>
ASP.net and thread safety
Posted by Simo at 1/13/2006 7:02:03 AM
hello, can anyone please tell me if the following structure is thread safe
visit.cs
class Visit : System.Web.UI.Page
{
//Variables
IVisitProtocol m_oVisitProtocol
public void Configure(IVisiteProtocol oVisiteProtocol)
{
this.m_oVisitProtocol = oVisitProtocol;
if... more >>
Dot Net or Javascript problem???
Posted by B. Chernick at 1/13/2006 6:52:03 AM
I have a problem and I'm not sure whether it's Dot Net or Javascript so I'm
posting here.
I have a web page with a text field and a custom validator. The validator
points to a javascript function. The idea is to prevent saving of entries
that are less than 6 characters. The function work... more >>
CallBack and Form Problem...
Posted by Rothariger at 1/13/2006 4:57:03 AM
Hello, im testing to make a webapplication, that has 2 buttons and with this
buttons you could change the databinding of a webgrid... i have a problem,
that the first time it renders 100% ok, but at the second time it throws an
error of object not initialized. here is my code... i need to make... more >>
Help on LinkButton vs PushButton ??
Posted by serge calderara at 1/13/2006 4:05:02 AM
Dear all,
If I used the following code on a datagrid object
<Columns>
<asp:ButtonColumn Text="Events" ButtonType=LinkButton
CommandName="ShowEvent">
</asp:ButtonColumn>
</Columns>
then the datagrid_ItemCommand event is fired but when I replace the Button
type to be PushButt... more >>
Asp.net 2.0 caching and images
Posted by Alex Greenberg at 1/13/2006 3:53:15 AM
Hi,
I'm having a strange problem:
I have a product.aspx page where the admin can change product
properties, including the JPEG. The JPEG will always have the same
name: eg. 120.jpg and in the same location.
1) Admin visits page and browses to images/myimage.jpg
2) Application takes myim... more >>
populate a dg column based upon the value populated to another row in the datagrid
Posted by Mike P at 1/13/2006 2:23:16 AM
Is it possible when populating a datagrid to populate a dropdownlist
column based upon the value populated to another row in the datagrid?
(i.e. I have a drop down which I want to populate differently for each
row with user names based upon a UserRegionID which is also a column in
the row).
S... more >>
cross page postback problem
Posted by Lloyd Dupont at 1/13/2006 1:14:01 AM
I would like to write a link which:
- trigger an action & post to an other page
the problem I have, while experimenting with asp Button and cross page
button the method is not called in case of crosse page posting.
Is it possible to do that?
basically on my main page I have a blog entry ... more >>
Why so much trouble with ellipses?
Posted by Nathan Sokalski at 1/13/2006 12:22:37 AM
In a recent post of mine I mentioned the inaccurate shapes drawn by
FillEllipse. In the response that I recieved I was told that DrawArc had
less problems, which I found to be true (I have been using DrawEllipse, but
they seem to have the same results when drawing a complete 360). However,
e... more >>
|