all groups > asp.net > september 2005 > threads for thursday september 1
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
Emulating variables static to the page
Posted by Mike Orb at 9/1/2005 11:18:29 PM
This is a Framework 1.x question.
I'm creating a class that generates HTML element IDs (<foo id='id1'>
for example) and need the element IDs to be unique across the page. The
reusable class can't access ViewState since it is protected. Note there
can be multiple instances of the class rendered... more >>
Problem with connection pool
Posted by DaM at 9/1/2005 10:27:44 PM
Hi guys,
I'm having this problem with my ASP.Net application:
I was testing the whole site, and it seem to work fine. Fast and
stable, but suddenly it stopped working and this error occurred:
"Timeout expired. The timeout period elapsed prior to obtaining a
connection from the pool. This ... more >>
Slow Response for ASP.NET page
Posted by Ramkumar T via DotNetMonster.com at 9/1/2005 9:29:46 PM
Hi
I am experiencing performance issues with my simple web application. (which
contains pretty simple and straight forward web pages).The app's home page
takes well over 15 seconds to run under ASP.NET for the first time. Well I
agree that the initial page load takes a while becos of the JIT c... more >>
hm.... y did "they" deleted my post "data binding"
Posted by Coldman at 9/1/2005 8:22:19 PM
which was saying this:
"i have an asp:repeater - its values r initialezed w/ a .DataBind() call
does it mean any changes user makes on the page will automaticly go to the
database?
quite unlikely
how do u actually send the values to the db - any repeater specific article
is more than welco... more >>
IIS Basic Authentication/FormsAuthentication - HELP PLS!?
Posted by Chad Beckner at 9/1/2005 8:15:15 PM
Hi everyone,
I am developing a site in which the root will be set with Anonymous &
Basic permissions. Past that I will have an application (directory) in
which I will be developing applications. In the past, I have been able to
use a ISAPI Filter to add the response headers dynamically,... more >>
Performance issues with ASP.NET web application - Slow response
Posted by Ram at 9/1/2005 8:07:57 PM
Hi
After deploying a simple web application to the production environment, I see that hwne I launch my app's url it takes a while to load the home page.(it doesnt do anything complex. A pretty simple adn straightforward page with just a few text boxes and a button). After that the app's response ti... more >>
Need to pull out referance details
Posted by Sachi at 9/1/2005 7:33:03 PM
Hi,
I need to pull out all those dll's details which are referenced by asp.net
application. Also need to get their version details and namespace details.
Any clue how to go with?
Thanks in advance,
Sachi... more >>
data binding
Posted by Coldman at 9/1/2005 7:11:17 PM
i have an asp:repeater - its values r initialezed w/ a .DataBind() call
does it mean any changes user makes on the page will automaticly go to the
database?
quite unlikely
how do u actually send the values to the db - any repeater specific article
is more than welcome
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem of Cast/Datagrid - Code Behind Bis (felix)
Posted by Fabrice at 9/1/2005 6:37:38 PM
Hello,
First, thanks to felix for his answer.
But :-( , I'm feeling newbie :! I' don't understand all the situation.
The trouble :
Always in the road whith my Datagrid and my ItemTemplate with a Control
HyperLink.
I would like to fix many properties of this Control Hyperlink in the Cod... more >>
Problem with Hyperlink control
Posted by AtlasApollo at 9/1/2005 5:57:56 PM
Hi Folks,
Can someone please share insight into why this problem is occuring? I've
placed a Hyperlink control onto a webform, and when it compiles and runs,
there is no HREF generated, and the link is in effect unusable.
ASP.Net source:
<asp:HyperLink id="Print" runat="server" NavigateUR... more >>
Transfer-endoding appears on ASP.NET Page
Posted by buzz at 9/1/2005 5:30:45 PM
How do I eliminate the following text from appearing on my asp.net page...
Transfer-encoding: chunked289 3a0 , or some other value
Thanks in Advance.......
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for ... more >>
Compiler disallows for loop in ASPX ... what's up?
Posted by Richard Lionheart at 9/1/2005 5:25:44 PM
Hi All,
[See below for history of posting this question]
In effort to write a loop in ASPX to generate a set of labels, I tried this:
<form id="Form2" method="post" runat="server">
<script language="C#" runat="server">
int nCols = 8;
... more >>
Asp.net and Encryption: Where to store the keys?
Posted by David at 9/1/2005 5:03:33 PM
One thing that's always puzzled me about implementing encryption on
remote asp.net apps is where to store the keys. The demo code indicate
that you include them in a configuration file, but this would seem to
defeat the purpose. If someone obtained the configuration file and
they knew the encry... more >>
Problem with running a DTS Package from an ASP.NET page
Posted by Leo at 9/1/2005 4:48:45 PM
Hello all,
I am having a problem which I cannot seem to find a solution for. In SQL
Server 2000 I have created a DTS package which imports a Text file into a
table. When I run the DTS package from the SQL sever itself it executes
without any isses. However it is failing without any error codes... more >>
Authentication help
Posted by Bruce Groen at 9/1/2005 3:36:35 PM
I am having some authentication issues. I download a sample app to test the
forms based authentication process of asp.net and it works on one of my
servers but not the other one. The one that it is not working on is my
production server and has OWA, CRM, Sharepoint, etc. Most everything is
co... more >>
Access network shares with filesystemobject
Posted by Josh Rolfe at 9/1/2005 2:27:16 PM
I have a page in classic asp that accces a network drive, The code is as
follows:
<%
dim fso
dim objFolder
set fso=server.createObject("Scripting.FileSystemObject")
set objFolder=fso.GetFolder("f:\")
for each objFile in objFolder.files
response.write objFile.name & "<br>"
next
%>
(f... more >>
String Concatenation & Removing Space
Posted by Sparky Arbuckle at 9/1/2005 2:09:00 PM
I am able to build a string for a product revision and was curious
about removing the space. The only way that I have successfully built
the string was to use:
a = integer
strRevision = string
ds.Tables("DataTable").Rows(i)("RevisionString") += strRevision & a &
","
so if product A had ... more >>
404 Problems in ASP.NET 2.0
Posted by Joel D. Kraft at 9/1/2005 1:03:39 PM
I've been very happy with the performance and new features of my site
since we converted to ASP.NET 2.0 beta 2.
I have noticed a couple of interesting problems, though, which I am
trying to figure out. I can't confirm that they didn't exist under
1.1, but I didn't notice them at that time.
... more >>
Problem running aspnet application. Can't see web controls!!!
Posted by VMI at 9/1/2005 12:48:41 PM
When I try to connect to the PC that has the web application, for some
reason, I can't see any of the controls in the application. I only see one
of the descriptions from one of the textboxes (and in regular font). But I
don't get any errors; I just can't see the page. What could be wrong?
I ... more >>
Concurrency Control idea for discussion
Posted by John Rivers at 9/1/2005 11:51:37 AM
Hello,
The common approaches to concurrency control in web apps:
optimistic:
- row version (timestamp, guid, datetime, digest) etc.
- value checking
pessimistic:
- locking fields / locking tables (not discussing here)
I have come up with a slight variation on optimistic value checki... more >>
concat a space on an HTML controls innerText property
Posted by Angel at 9/1/2005 10:56:09 AM
I want to concat a space in an HTML Control's innerText property. here is a
sample code
Dim celCreate As New HtmlControls.HtmlTableCell()
celCreate.innerText = " TEST"
When the page is displayed the spaces are not there! What can I do?
Thanks in advance... more >>
getting error while running in other system
Posted by Yoshitha at 9/1/2005 10:32:31 AM
Hi
when i run my asp.net application in another system i'm getting the
following error
An error occurred while try to load the string resources (GetModuleHandle
failed with error -2147023888).
can anybody tell me how to solve this problem
Its very urgent
Thanx in advance
Yoshitha
... more >>
Datagrids vs. Table Controls
Posted by dan.benge NO[at]SPAM gmail.com at 9/1/2005 10:15:34 AM
Hi there,
I have to build an ASP report that has a one-to-many relationship in
it. For each row of data, there will be a comment column that can have
many comments.
I will only display about the first 50 characters of the comments.
Each comment should be a hypertext time stamp which will ta... more >>
Repeater, running tally
Posted by Rose at 9/1/2005 10:10:03 AM
A newbie question:
I would like my repeater to look like the following where in the Balance
column, I want to keep a running balance, like so
Description Amount Balance
Item 1 $10 $10
Item 2 $15 $25
Item 3 $5 $30
Essentially, Balance ... more >>
Timer Control
Posted by Jay at 9/1/2005 10:04:27 AM
Anyone know where I might find a decent asp.net timer control? teletik has
a nice callback control, hoever, it is way too expensive. Thanks a lot.
... more >>
Can I do Multipl File Uploads?
Posted by Paul D. Fox at 9/1/2005 9:56:08 AM
The user would like a form with a Browse button to select "Multiple" Files
(e.g. Ctrl-click) and then upload all of these files to a web server. I've
only seen this with Multiple Textbox/Browse buttons. Can this be done with
only one browse button?
Paul
... more >>
Web Services error
Posted by tshad at 9/1/2005 9:24:36 AM
I have a Web Service that works fine on my local machine, but when I move
the folder to my live site, I get the error:
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual d... more >>
Are Application_Error and Page_Error triggered by the same event?
Posted by Matt at 9/1/2005 9:14:22 AM
As the subject says... are Application_Error and Page_Error triggered by the
same event? In other words, is there any error that could slip by
Application_Error but be caught by Page_Error, or vise-versa? Or is it just
a matter of handling the same exact thing in different scopes?
... more >>
security warning with https
Posted by Hatim Ali at 9/1/2005 9:03:02 AM
Hello folks,
I've integrated my ASP.NET website with a portal on web. My website opens in
a frame provided by the web portal. The portal uses https protocol. Now when
i open my website IE displays a security warning saying "This page contains
both secure and un-secure items. Do you want to ... more >>
Releasing updates to virtual directory
Posted by McGeeky at 9/1/2005 8:55:28 AM
Are there any best practices on releasing updates of an ASP.Net application
to a virtual directory in a production environment? E.g. is it okay to
simply copy over changes to ASP.Net pages in to the virtual directory whilst
IIS is still running or should IIS be stopped first?
--
McGeeky
... more >>
Easy Question
Posted by Ryan Smith at 9/1/2005 8:49:57 AM
I have a template for a datagrid that I need to contain a hyperlink and
populate the url string with data from a DB. I have the following code below
which seems to be fine but can't open the design tool from html view because
of a message stating i need to have '' around the data item.
Cod... more >>
Wiring up an Event To Dynamically Added Control
Posted by Jordan at 9/1/2005 8:45:36 AM
I need to dynamically add an ImageButton control to a user control and and
do some server-side processing when the user clicks it. While I the
ImageButton is added to the user control at runtime, as needed, I'm having
trouble wiring up its click event procedure. The problem is that when I go
... more >>
Databinding
Posted by Wayne at 9/1/2005 8:24:27 AM
I am trying to bind a List<T> to a dropdownlist and have the dropdownlist
display a property of the class that the list contains.
I have the following
public class Test
{
private int number;
public string Number
{
get { return number; }
set { number = Valu... more >>
Security Problem
Posted by Aurelio at 9/1/2005 8:21:35 AM
Hello.
I use a web service that I created through a custom control on a windows
form and it works fine.
However, if usethis control through a webform , i get an security error
when i call the web service
aying:
"The application attempted to perform an operation not
allowed by the secu... more >>
XML file displaying error
Posted by asad at 9/1/2005 8:21:03 AM
hello how ru all,
i have some problem in displaying xml file in asp.net, i successfully create
an xml file but when want to display it through ASP.NET code it throwing
following error.
[B]Unexpected XML declaration. The XML declaration must be the first node in
the document, and no white... more >>
Read Authentication Type From Web.Config
Posted by hilary321 NO[at]SPAM yahoo.com at 9/1/2005 7:24:46 AM
Hi-
I am using ASP.NET 2.0. I would like to have a generic function in my
application that will determine what type of authentication to use and
then proceed with authentication, either Windows or Forms.
How do I read the authentication type from Web.Config?
Thanks in advance,
Renae
... more >>
Custom WebControl, values list
Posted by Curt_C [MVP] at 9/1/2005 7:22:06 AM
working on a Custom WebControl. I want to add a property, lets call it FOO
and I want a custom list of possible values for the designer and for usage
"BAR,BANG,GU" (you get the idea).
I know how to add the property, and how to get it into the designer, but I
dont know how to have it display... more >>
copy a template column
Posted by louise raisbeck at 9/1/2005 7:19:10 AM
This sounds complicated but bear with me. I have a datagrid. It is dynamic in
that, i dont know how many columns i will have until the dataset is back so i
have to build the datagrid dynamically. I know there will be at least one
column required however, so I have put into my aspx a template c... more >>
Submit_click event fires only the first time the button is clicked
Posted by Obi Oberoi at 9/1/2005 7:16:14 AM
I have an ASP.NET application with half a dozen pages most of which have user
controls on them (some UC's are loaded dynamically, others are simply dragged
and dropped onto the web page)
Now, here's the problem. I have a feedback page with half a dozen text
fields. There is also a Submit ... more >>
radio button postback
Posted by MER78 at 9/1/2005 7:07:03 AM
I have two radio buttons (RB1 + RB2).
The page starts with RB2 selected. Both are enabled.
Action 1 - I press RB1 a postback event happens... but the event handler for
RB1 (CheckedChanged) isn't called.
Action 2 - I press RB2 a postback even happens... everything works good.
A... more >>
Command button inside data list item template
Posted by Shahid Saleem at 9/1/2005 6:58:23 AM
Dear Members
I am using a data list , in the item template i have used a data grid
with template column (CheckBox) and a button named sumbit.
I want to get the data grid selected rows(Makred checked) upon click of
sumbit button.
I am looking where to write code for sumbission button when ... more >>
Search & Paging using Repeater control.
Posted by ratnakarp NO[at]SPAM gmail.com at 9/1/2005 6:56:33 AM
Hi,
I have a search text box. The user enters the value in the text box and
click on enter button. In code behind on button click i'm writing the
code to get the values from the database and binding it to a repeater
control. This repeater control has multiple text boxes and buttons. Can
you p... more >>
Object reference not set to an instance of an oject
Posted by Adam at 9/1/2005 6:56:03 AM
We have a web site that uses .vb for the web pages and .cs for a class
module. We are getting the error in .NET 2.0 and VS 2005 beta 2. It does
work with .NET 1.1.
When trying to access a page that needs the class module I get an error on
web site:
Object reference not set to an instan... more >>
Debug.WriteLine and Trace.WriteLine from class.
Posted by xxx NO[at]SPAM hotmail.com at 9/1/2005 6:24:50 AM
Hi,
I have written a class, which I instanciate from the code-behind of an
aspx page. I want to output some items to the debugger from within the
class, but Debug.WriteLine and Trace.WriteLine don't seem to do
anything. Where am I going wrong?
Thanks
... more >>
Using a Web form While Offline
Posted by Salomi at 9/1/2005 5:21:10 AM
I have a requirement of having the capability of offline form filling
for my website.So users can some way download the form and can fill out
in offline mode. Any standard way to do this. I am not interested to
write a webservices or complex Smart client for this. Any simple way
like manipulatin... more >>
forum component or control
Posted by WebBuilder451 at 9/1/2005 5:07:03 AM
I need a forum for a site i'm working on.
It needs to integrate with the existing site, not be a new application.
does any one know of a good solution out there?
thanks
kes
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes... more >>
Purpose of "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"?
Posted by Steve at 9/1/2005 4:41:21 AM
When using Visual Web Developer 2005 the following is appended to the
top of each new page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
1. Can someone please explain to me the purpose of i... more >>
Problems generating valid XHTML
Posted by Lee Chapman at 9/1/2005 4:38:16 AM
Hi,
I am having difficulty getting the ASP.NET framework to generate valid
XHTML. My immediate problem surrounds user input in, for example, textbox
controls.
I consider characters such as less-than and ampersand perfectly valid in
user input. So I've disabled request validation by add... more >>
Problems ASP.NET and Index Catalog
Posted by Josef Zelinka at 9/1/2005 3:41:15 AM
Hi everybody,
I would like to query the Index Catalog.
But i'm having an error, I don't know what to do.
Please help me.
Thanx in advanced.
Josef
Here is the error.
No error information available: REGDB_E_CLASSNOTREG(0x80040154).
Description: An unhandled exception occurred during the... more >>
Multiple repeaters and viewstate
Posted by garethdjames NO[at]SPAM gmail.com at 9/1/2005 3:20:32 AM
Please can some on offer some practicle advice,
I am designing a page that displays details about a product, the page
will be navigated from a datagrid (this bit no problem),
The details page will show details about the product (I'm going to
databind a usercontrol),
The page also has four... more >>
Page.DataBind()
Posted by lbolognini NO[at]SPAM gmail.com at 9/1/2005 2:41:39 AM
Hi all,
I've chosen to render localized messages in my web app with using
databind. Every string has something like this:
<label id="foo" text='<%# getText(LangID, MessageCode) %>'></label>
getText is just a static method we use to retrieve the strings from the
db by populating a DataRead... more >>
encrypt password
Posted by Daniel at 9/1/2005 2:08:01 AM
Hi All,
Does anyone know how to encrypt the password before store in the sql database?
In addition, decrypt the password from database before comparison.
The purpose to do it because to hide the human readable password although
the user open the sqlserver database.
Any ideas? Any better su... more >>
Scheduling of web app or web service reporting
Posted by Neal at 9/1/2005 1:37:02 AM
Hi All
I need direction iro,
I need to write a scheduler which will run a ASP.NEt Web based report .
Has anybidy an idea of how I would go about doing this ..?
? A std scheduler app ?, but how then the use of the Internet / HTTP protocols
as per Server side code in an aspx file.
Currentl... more >>
count down
Posted by Andrew at 9/1/2005 12:59:05 AM
Hi all,
I need som advice. I want to display a textbox that displays a countdown
from say 90 minutes is hh:mm:ss format. I also want it to be displayed
consistently on every page of my system as long as the user is in a session
(ie. user session is 90 mins). The problem I think is that the ... more >>
providerUserKey ASP.NET Membershipp
Posted by Davie at 9/1/2005 12:00:00 AM
I am implementing a Custom Provider for ASP.NET 2.0 membership. When I come
to write the
public override MembershipUser CreateUser(string username, string password,
string email, string passwordQuestion, string passwordAnswer, bool
isApproved, object providerUserKey, out MembershipCreateStat... more >>
having safe QueryStrings hyperlinks
Posted by Pat at 9/1/2005 12:00:00 AM
I have a link i.e http://puppy/ShowBlank.aspx?b_id=34
When a user click on the link above and gets to it its fine..
But i want to prevent the user from copying the link and pasting the link to
a new browser window
If they do that i want to return an error for example "you can't come to
this pag... more >>
HyperLink Column - Data Binding?
Posted by Adam at 9/1/2005 12:00:00 AM
Hi,
I am trying to add a querystring to a hyperlink column.
The following attempt generates an error.
Any thoughts on how i do this?
Will i have to use a template column?
<asp:HyperLinkColumn Runat="server" ItemStyle-HorizontalAlign="center"
NavigateUrl='<%#"members.aspx?mgid=" &
Co... more >>
The ASP.NET FAQ is now online...
Posted by Juan T. Llibre at 9/1/2005 12:00:00 AM
Read it at : http://asp.net.do/faq/
You will want to bookmark it.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
... more >>
newbie question
Posted by Coldman at 9/1/2005 12:00:00 AM
tryed a few web searches, VS help, VS debugger ...
what is the starting number for DropDown.SelectedIndex - is it 0 or 1
... more >>
How to used AddParameter method to add parameter?
Posted by Benny Ng at 9/1/2005 12:00:00 AM
Now I'm used MS Enterprise Library to insert data into DataGrid.
But an statement error in AddParameter in the following:
Database db = DatabaseFactory.CreateDatabase("Database Instance NorthWind");
string sqlCommand = "Select CustomerID, CompanyName, ContactName From
Customers";
DBCommand... more >>
DataSet Iteration?
Posted by Adam at 9/1/2005 12:00:00 AM
Hi All,
What is the most acceptable way of iterating through a DataSet Tables Row
Collections Manually?
As in:
'fill data adapter object with dataset info
Da = New SqlDataAdapter(Cmd)
Da.Fill(Ds)
'iterate through Area Grouops
Do While() ????
'create new drop down list item
... more >>
Inline Evaluation of a DataBound Value within a Repeater Item Template
Posted by Michael Wendel at 9/1/2005 12:00:00 AM
Ok. I have been banging my head against the wall trying to figure out
how this piece of display logic can be implemented:
<% if (DataBinder.Eval(Container.DataItem, "SomeItem") != "SomeValue")
{ %>
HTML DISPLAY BLOCK
<% } %>
The reason I would prefer to do it this way is:
(1) Easier man... more >>
Can I save dataset object to an application variable?
Posted by Lawrence Chang at 9/1/2005 12:00:00 AM
Hi My friends,
Can I save dataset object to an application variable? I want all the
customer use this dataset. and diffrent customer create diffrent dataview
object from this dataset, so it don't need to connect to database everytime
.. I know I can use cache object , but cache object can ... more >>
Change Hyperlink style dynamically
Posted by Imran Aziz at 9/1/2005 12:00:00 AM
Hello All,
I want to change the size of my hyper lnks in a repeater control dynamially
using the onItemBound event, as under, but cannot seem to understand how to
alter the properties to do that.
<asp:HiddenField ID="maxFrequency" runat="server" />
<ASP:Repeater id="repTags" runat="... more >>
How to get physical path of file? MapPath() - Scheduler - Thread
Posted by Sakharam at 9/1/2005 12:00:00 AM
Hi All,
I am developing a scheduler object for my web application. I am starting new
thread on Application_Start event.
Everything works fine except following issue.
I am using following statement in it to get physical path of file.
strTemplateFile =
System.Web.HttpContext.Current.Serv... more >>
How to block network traffic ?
Posted by Omega at 9/1/2005 12:00:00 AM
Hi
In serveral firewall software you can block all network traffic with
one click, can I do the same in c# ?
Thanks... more >>
ASP.NET 2.0 Membership
Posted by Davie at 9/1/2005 12:00:00 AM
Futher to my recent post, I would like to ask a general question.
Has anyone managed to implement a custom membership provider for ASP.NET in
C# ? If so, would it be possible for you to provide some code?
I've seen the example on 15seconds and all the other half baked solutions
people see... more >>
|