all groups > asp.net > october 2004 > threads for thursday october 14
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
Please Wait
Posted by mw at 10/14/2004 10:58:42 PM
I'm writing an application that's going to do alot of processing while the
user is waiting, (imagine sitting and waiting while the server/background
processing is occurring). What's the best way to entertain the user (e.g.
show them something's happening - e.g. animated gif progress bar or
some... more >>
Creating a user prompt
Posted by ree32 NO[at]SPAM hotmail.com at 10/14/2004 10:55:28 PM
I am creating a page with the usual feature to access a DB and edit.
I have the common delete command in the datalist. But I need to create
a prompt to display and ask the user again if they really want to
delete this record.
But I am a bit puzzled as to how to go about this when you are dea... more >>
Server Time
Posted by lhak at 10/14/2004 9:57:17 PM
Hi,
Can anyone please tell me how I can get the date and time of the Server (eg
Server where SQL Database resides) to display on the ASP.NET page?.
Thanks
LH
... more >>
copying data from aspx to aspx.vb
Posted by chris.baruffi NO[at]SPAM gmail.com at 10/14/2004 9:28:58 PM
I have an object tag, I am not able to register a component because it
is an ocx (I didn't write it and don't have time to fix it). The
object tag captures data from the client when the html code executes.
I am able to populate a textbox from the hmtl by setting it eqaul to
textbox.value. It ... more >>
Trailing empty space added when using Repeater and DataReader
Posted by Andrei Pociu at 10/14/2004 7:52:20 PM
I use a Repeater which displays values from a DataReader (which gets them
from a SQL DB).
Everytime I'm using:
<%#DataBinder.Eval(Container.DataItem, "ColumnName")%>
....in the HTML code to output the values I get a trailing space after the
result, for example if I use the following:
B... more >>
Client-Side Button
Posted by Guadala Harry at 10/14/2004 7:35:07 PM
All of my ASP.NET programming to date involving buttons required server-side
processing. But now I need for a button to simply open another window and I
don't want to use a server control for this simple task. This is what I came
up with. Is this a standard way to accomplish the objective? Is the... more >>
misterious problem ..
Posted by Nikolay Anestev at 10/14/2004 6:49:13 PM
Hi all. I have one quite bizzare problem ..
In a ASP.NET (C#) application, I have an input field in a form which value
is set by a client-side script.
I trace the field content with the "alert()" function before the postback
action and it looks fine, but then, in the code behind, this field is e... more >>
Get Column of DataGrid Web Control
Posted by Laurence at 10/14/2004 6:30:44 PM
I want to get the column name of a datagrid control. But DataGrid.Columns
always return a collection of count 0.
Thanks for your help in advance.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Generate events...VS.NET 2005 beta1
Posted by Oscar Thornell at 10/14/2004 6:24:56 PM
Hi,
Can someone tell me how one should work with methods/events like Page_Load
in ASP.NET 2.0...
I can´t find a way in VS.NET to insert the methods for me...I just need to
know that there is suppose to be a method like that in ASP.NET if I need to
use it....and type it in myself...
So... more >>
Detecting if browser runs on the server
Posted by Kenneth at 10/14/2004 6:23:04 PM
Hi,
I've been written an asp.net Intranet application and since it will run on
an intranet it would be good to be able to detect whether the app runs on the
same computer that acts as a server or if it's possible to stop him from
doing so.
Normally you just enter the ip numbers to the se... more >>
getting computer name from asp-dot-net
Posted by z. f. at 10/14/2004 6:00:18 PM
i need to get the computer name from an aspx page.
i use System.Windows.Forms.SystemInformation.ComputerName()
and it's working fine,
but in second thought, it might not be recomended to use the
system.windows.forms.dll
inside an asp-dot-net code.
any information here will help.
TIA, z.
... more >>
Dynamic buttons and PostBack
Posted by andrei at 10/14/2004 5:01:21 PM
Hi Group,
I have an aspx form with a variable number of buttons added dynamically,
with id's like b01, b02, b03...
Whenever I click one of these buttons, the form is posted back.
I need to find out which of the buttons triggered the postback *in the
Page_Load* - here I have some code that ... more >>
how to check/Uncheck a checkbox dynamically in a datagrid in asp.n
Posted by Sileesh at 10/14/2004 4:45:02 PM
Hi
I have datagrid with 8 items. Out of which 2 items are checkboxes. Data is
binded dynamically to the datagrid
Based on some values from the database I have to check or uncheck the
checkbox in the datatgrid.
Does any one know how to do this?
Thx
Sileesh... more >>
ASP IDE
Posted by Gordon at 10/14/2004 4:23:04 PM
Microsoft has a great IDE for Visual Basic. What IDE is good to use for
developing in .ASP?
Thanks,
Gordon
... more >>
How to open a .txt file from ASP.NET
Posted by Juan Manuel AlegrÃa B. at 10/14/2004 4:10:51 PM
Hi group!!! I am new in the ASP.NET programming. I am trying to open a
..txt file but I can't do it.
I am using: but i don't know if its the right way. Thanks for help me.
Dim proc As New System.Diagnostics.Process
proc.Start(file:///C:/bitacora.txt)
... more >>
simple web fails with C:\Temp problem
Posted by Robm at 10/14/2004 4:08:28 PM
I have a super simple asp.net web (hello world plus the current time) which
works fine on my development system. When copied to the target server an
error is reported in that a file cannot be created in the C:\Temp folder.
The person responsible fo rthe server has tried to play with permission... more >>
strange problem since migrating to server 2003
Posted by David C at 10/14/2004 4:06:47 PM
Some screens of the web application simply do not respond to events period.
Once you get to the screen, none of the buttons work. Does not respond to
events period.
After the first time it happened, I simply recompiled and everything was
back to normal. Now that I have deployed a new version... more >>
2 tier to 3 tier?
Posted by NOSPAM at 10/14/2004 3:52:29 PM
I have a web application in C#, there are .aspx pages and business objects
are compiled as DLL in /bin folder (the objects run queries on the database,
..aspx pages never have direct connection to database).. The performance is
pretty good now, but it still looks 2-tier to me cos dll is runnin... more >>
Simple math is giving me trouble
Posted by Justin at 10/14/2004 3:41:13 PM
I am trying to add dollar amounts together and add sales tax but everthing
after the decimal point is being cut off in the dollar amounts. Here is my
code:
if (Adults != "")
{
AdultTotal = int.Parse(Adults) * Convert.ToInt32(myReader["RateAdult"]);
ttlAdults.Text = Adults;
}
if ... more >>
Session Variable Values Across HTTP/HTTPS
Posted by MisterKen at 10/14/2004 3:31:04 PM
It appears that I'm losing values for session variables when I move from a
page like http://www.my_site.com/catalog.aspx to
https://www50.ssldomain.com/my_site/login.aspx and vice versa.
Are session variables suppose to lose values across different domain names?
The www50.ssldomain.com is ... more >>
Access denied error while uploading a file to a web server.
Posted by HNguyen at 10/14/2004 3:14:34 PM
Access denied error while uploading a file to a web server.
I am getting the following error while trying to upload a file to our web
server: Error: Access to the path "e:\web\...\DBConnection.txt" is denied.
We are working with IIS 6.0 on Windows 2003 Server running .NET Framework
1.1. To p... more >>
creating files and asp.net
Posted by Matt Tapia at 10/14/2004 3:02:47 PM
I want to create several files that will be accessible through the asp.net
interface. I can call a stored procedure to create the file on the SQL
server, however the asp.net user does not have permission to access the
file. What is the best way?
... more >>
adding javascript to html control button
Posted by Matt Tapia at 10/14/2004 3:01:43 PM
I have a user control that I have placed an html control button. I want to
dynamically create a javascript window.open action with certain query string
properties (why it needs to be dynamic) to the onClick event. How can I best
do this? Note: I am using code-behind pages.
... more >>
Updating a DB
Posted by alnur.ismail NO[at]SPAM scotiabank-dot-com.no-spam.invalid at 10/14/2004 2:57:41 PM
hey all,
I've just spent the day creating a page that displays records from a
DB in a table. Each record has its own table and when u click the
"edit" button the fields become enabled and what I would like is that
when u click the "save" button the DB gets updated.
Since tables dont have vi... more >>
"This type of page is not served."
Posted by DotNetJunkies User at 10/14/2004 2:33:24 PM
I am getting the "This type of page is not served." error the first time I access our asp.net site after an application restart. The second and every other time it works fine. This application has been working for months and recently started this behaviour and we can't figure out why. Can onyone ... more >>
Please don't laugh
Posted by gale at 10/14/2004 2:27:53 PM
Want to configure properties of a datagrid in C# during runtime. I want to
run the following simple command:
DataGrid1.AutoGenerateColumns=False;
But I am presented with error that name "False" does not exist in my class
etc....
Do I need to reference some dll or what???... more >>
manually closing DB connections...required?
Posted by darrel at 10/14/2004 2:23:54 PM
We're running into a problem on our new site. Once a week or so, our site
goes down with an 'out of memory error'. Rebooting the web server fixes
things. Googling the error doesn't return many results (one, actually) and
the suggested fix is to make sure you are manually closing all DB
connectio... more >>
Connection Pooling, Dispose/Close/Using
Posted by Pierson C at 10/14/2004 2:17:04 PM
I am developing on a website that is utilizing SQL Server 2000. Shortly
after deploying the site, we began having timeout issues due to the max
connections.
1st instinct was to diligently tidy up our connections. We did so by
encapsulating with the using statement. Ex:
using (Sql... more >>
Using Single Database for state w/ multiple web apps
Posted by jeffpriz NO[at]SPAM yahoo.com at 10/14/2004 1:35:24 PM
We have multiple ASP.Net web apps in development. As a standard we
are looking to go with SQL Server to hold state information.
Can we have the multiple apps all point to a single State DB? Or do we
need to install multiple instances of the State database on to the SQL
Server (one for each We... more >>
Floating Panel in ASP.NET...
Posted by The Eeediot at 10/14/2004 1:18:16 PM
I would like to have a panel (i.e. DIV-layer) appear in the middle of a web
browser as a sort of pop-up window asking the standard "Are you sure?"
question. This panel would promptly become invisable after the response.
Are there any example of floating panels like this?
Is there a way to g... more >>
Session var alternatives / best practices
Posted by Weston Weems at 10/14/2004 12:42:14 PM
Hello...
I've got a asp.net site that involves pulling a few
records out of a database at which point it creates an
object.
I'd like a way to persist this data across pages, but its
a little more than I'd like to stick in my view state.
I was curious if it was advisable to use session... more >>
Set Text Color by Column in a Repeater Control
Posted by ASP Yaboh at 10/14/2004 12:39:03 PM
I have a Repeater control bound to a DataSet that creates a table with 6
columns. The text displayed in one of the columns may need to be set to grey
instead of black.
The DataSet is held and manipulated in a separate class "ResponseData.cs".
This class has a method ".getTextColor(int whic... more >>
Events get reset
Posted by Henke at 10/14/2004 12:38:23 PM
I have a web form with some buttons on.
Sometimes the event handler gets reset by Visual Studio.
Does anybody know why?
Thanks!
/Henke
... more >>
Cache expiration
Posted by Steffen Loringer at 10/14/2004 12:36:27 PM
Hi,
i like to store some data in the Cache on the server. The data should be
removed once a file on the server is changed (I'm using a
Cache.Dependency). Because the data should be reloaded into the Cache
I'm also using a callback method.
But I can't figure out, how to add the data without... more >>
Anyone know of a good web chart control ?
Posted by Steve Caliendo at 10/14/2004 12:32:15 PM
Hi,
I need a candlestick chart control to use in ASP.NET. Anyone know where I
can get one (free would obviously be better!)
Thanks,
Steve
... more >>
Problems with Filling Data Adapter
Posted by crjunk NO[at]SPAM earthlink.net at 10/14/2004 12:21:58 PM
I have a 3 table in my DataSet that I'm filling with data. After I've
filled these 3 tables, I'm then trying to run a query that will fill a
4th table in the DataSet with data from the three tables that are
already pouplated.
When my code tries to fill the 4th table, ReportData, I receive the... more >>
CodeBehind error
Posted by tshad at 10/14/2004 12:04:40 PM
I have a code behind line that is giving me the error:
**********************************************************************
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error det... more >>
Custom DataGrid Controls !
Posted by Ankur Goyal at 10/14/2004 11:19:41 AM
Hi All!
Is it possible to define a DataGrid User control for a ASP application so
that all the changes made to this control could reflect to all the grids
used in applications.
Please refer any links to define Custom Datagrid user control.
Note that all the grids will be binded to diffe... more >>
how to tell if code running in asp.net context?
Posted by Serg at 10/14/2004 11:15:03 AM
I need to do some caching. If my code is running a part of asp.net then I
would use caching, otherwise I'll just store my data in an object.
And my question is now do I determine at run time if the code is running as
part of asp.net?
I know if HttpContext is not available I get an exceptio... more >>
setting page title worked, now doesnt?
Posted by Dan Nash at 10/14/2004 11:03:07 AM
Weird problem...
all my pages use C# codebehind to set the <title> tag of the pages. As
follows...
in hmtl.. <title id="PageTitle"></title>
in code..
protected System.Web.UI.HtmlControls.HtmlGenericControls PageTitle;
and then
PageTitle.InnerHtml = "text";
It works on all page... more >>
Windows authentication not authenticating
Posted by Jason at 10/14/2004 10:37:45 AM
I have an application that has specified Windows authenticaion in the
web.config file... however, the browser is not prompting for the
credentials.
I checked IIS for the app and Integrated authenticaion is selected.
Anyone have an idea on what could be causing this?
... more >>
ASP.NET for ASP Classic Veteran
Posted by GrindKore at 10/14/2004 10:33:44 AM
Hello, I have been coding in VBScript ASP Classic for over 6 years now.
Hundreds of commercially successful intranet portals and applications been
written by me utilizing ASP/COM+/SQL technologies but I still can't get my
mind around ASP.NET.
I have been playing with VS.NET since 20... more >>
Mail
Posted by Jim Heavey at 10/14/2004 10:33:02 AM
Hello, I am wanting to send Email from my server. I did some coding of this
ins school a couple of years ago, so I do not think there is much to the
coding, but was wondering how to go about setting up the server for this.
What exactly needs to be done to configure my server so that I can se... more >>
Browser Close Problem
Posted by Sunil Sabir at 10/14/2004 10:05:01 AM
Dear All,
I have a Main Asp.Net page . In that Page I have a Tab Strip which has
SIX tabs each representing a different web Forms.So that when a user
clicks different tab he can navigate between different forms.In my Main
Page I have written a javascript code
function ConfirmClose()... more >>
Referencing a datagrid control within an HTML table?
Posted by KatB at 10/14/2004 10:00:39 AM
Hi, in order to format my web page, I'm starting to use Flow layout so
using html tables to space out controls, etc. When using grid layout,
the following worked when it was just a datagrid. I know I need to
somehow refer to the datagrid within the html table cell, but can't
figure out how.
... more >>
Record Added to Bound Datagrid on Refresh
Posted by Jim Bayers at 10/14/2004 9:59:31 AM
I have a datagrid on a form that's bound to a datareader. When I click
on my browser's refresh button, it adds a duplicate record to the bottom
of the datagrid. This record appears in the underlying sql table. Why
would it do this? How do you stop it. I just want the datagrid to
display e... more >>
Pager style in data grid
Posted by giridhar.pothula NO[at]SPAM gmail.com at 10/14/2004 9:58:51 AM
Hi,
I have a requirement for which I need to add a text "Page" before the
page numbers of the datagrid. It should look like " Page 1 Page 2 Page
3.......", all these being hyper links. I would like to add the label
"Page" to the datagrid header and footer.
Right now my pager style is set to... more >>
Find the url of the current page from code behind.
Posted by MattC at 10/14/2004 9:51:09 AM
Hi,
Looking for something along the lines of Page.URL or page filename.
TIA
MattC
... more >>
Co-worker can debug on server but I can't
Posted by Steve at 10/14/2004 9:47:12 AM
Error message: "Unable to start debugging on the web server. Unable to map
the debug start page to a machine name."
I can no longer run the debugger from my local PC for a project on our web
server. You know, F5 in Visual Studio. I can run in debug mode for a
project on my local web serv... more >>
ASP.NET Help me in plzz
Posted by patra_robin NO[at]SPAM yahoo.com at 10/14/2004 9:32:43 AM
Hi ,
I am getting the following error when i moved my application from one
machine to other..
Visual Studio .NET cannot create or open the application. The
likeliest problem is that required components are not installed on the
local Web server. Run Visual Studio .NET setup and add the Web
De... more >>
user.Identity.Name alternative?
Posted by Jason Shohet at 10/14/2004 9:26:09 AM
I need to get the logged on user, and I'm using this code:
label1.Text = Page.User.Identity.Name;
Unfortunately there are some people at the organization who I cannot
determine who they are, when they log on to a machine. It must be how they
are set up in active directory I guess. I was ... more >>
Repeater Control Question
Posted by Raed Sawalha at 10/14/2004 9:12:50 AM
Hello:
i have a UserControl i created. for datarow in my dataset i want to display
one of these controls on my page. do i want to use a repeater control to do
this? how do i pass a datarow to each of the user controls created?
Regards
... more >>
Send a Reminder
Posted by Mariame at 10/14/2004 9:12:31 AM
Hi Everyone
I send an email upon the user request to the administrator & i send a
reminder in case of two day pass without any action from the administrator
The problem is that i cant find the event that fire the Reminder action???
Thx in Adv
... more >>
Muiltiple Stored Procedure Within Transaction
Posted by Leon at 10/14/2004 9:09:56 AM
How can I code a stored procedure "within my codebehind page" that execute
two or more stored procedures within a transaction?
if so how would I pass values to each parameter?
i.e.
Begin Tran
exec sp1
exec sp2
Commit Tran
.....of course some error checking.
... more >>
Datagrid validation
Posted by rodchar at 10/14/2004 8:43:03 AM
Hey all,
I'm trying to implement validation in my asp.net datagrid. For example, if a
user enters in a Customer ID I want it to check a different data table to see
if the customer exists.
I'm assuming I'll have to use template columns to add the custom validation
control next to each tex... more >>
Breakpoints in ASP.NEt on Windows 2000
Posted by Marcel Lattmann at 10/14/2004 8:33:26 AM
I develop on a windows 2000 SP3 system. I have 2 problems with breakpoints on
the web server.
1) When the program comes to a breakpoint, the thread is halted. This
happens on certain breakpoints, other work fine.
2) I loose the viewstate when I set a breakpoint in the OnInit() Event. This
be... more >>
boundcolumn headertext set to a code-behind variable?
Posted by John E. at 10/14/2004 8:23:25 AM
I have an ASP.NET datagrid with several bound columns. I need to make the
header of some of these columns display a string that is generated from the
code behind (i.e. a dynamic header). How is this done?
I have tried with both a templatecolumn and boundcolumn. I thought it might
be somethi... more >>
Microsoft SQL database simple questions...
Posted by Miguel Dias Moura at 10/14/2004 8:10:38 AM
Hello,
I am creating my first Microsoft SQL database. I have been using Access
and MySQL in my other projects.
1. How do I set up the primary key?
2. In Access I set the primary key as autonumber. In SQL what should be
the type of the primary key?
3. What is the equivalent in SQL of the ... more >>
directory.exist() fails on shared folders
Posted by Prasanth Raveendran at 10/14/2004 7:55:11 AM
Through an ASP.Net page I want to browse a shared folder. So i used
directory.exist(\\machinename\sharename) but it returns false even if the
directory exist. please help me
--
Prasanth Raveendran... more >>
most seamless way to store a C# enum value in a SQL Server database?
Posted by bennett NO[at]SPAM peacefire.org at 10/14/2004 6:59:00 AM
One of the most convenient features of Visual Studio .Net and ASP.Net
is being able to add rows to a SQL Server database in an
intellisense-safe way, with code like:
newRow.Setparent_post_idNull();
newRow.post_text = this.lblMessageBody.Text;
newRow.post_datetime = System.DateTime.Now;
dsL... more >>
Access Local Folders in ASP.Net Application in Windows Authenticat
Posted by Uday at 10/14/2004 6:29:03 AM
Requirement : We are developing intranet web application in ASP.Net and using
Integrated Windows Authentication to enter into this Web Application. The
requirement is that We need to export some data into excel file and save it
on the server which can be downloaded by users.
Problem: The p... more >>
AdRotator
Posted by Miguel Dias Moura at 10/14/2004 6:05:24 AM
Hello,
In AdRotator I can use only images or can I also use Flash Movies?
Thanks You,
Miguel
... more >>
How to execute a aspx page more than once simultanously?
Posted by Sivaraman.S at 10/14/2004 5:43:04 AM
Hi friends,
How to execute a aspx page more than once simultanously without using
threading?
regards,
Sivaraman.S... more >>
get name of HTML page that places a request
Posted by Priya at 10/14/2004 4:15:11 AM
Hi,
How can I get the name of a html page/form which places a request to aspx
page?
eg: I use a.htm , b.htm and form .action both of both refer to webform.aspx
I want to know from which page the request has come before accessing form
parameters. How can I do that?
Thanks
Priya... more >>
Thread was being aborted thrown for background thread (win2003 ser
Posted by Johanna at 10/14/2004 3:59:04 AM
Hello,
Thread was being aborted exception is thrown by IIS for my asp.net
application on win2003 server. This error has not yet occured with the same
asp.net application on
windows 2000 professional computers that are also lot older and less
effective. And this error does not occure if this... more >>
Deleting user names causes IE to crash
Posted by teddysnips NO[at]SPAM hotmail.com at 10/14/2004 3:06:47 AM
Most of the applications that I build have a login form at the front,
where the user is authenticated via a user name and password.
IE kindly remembers these, but over time the list has grown rather
long and I thought that I would trim it.
TWO QUESTIONS.
1. I can delete these stored name... more >>
State management in user control across the pages
Posted by Praveen at 10/14/2004 2:57:01 AM
In user control I need to store some data. This data should be available
across many pages where control is used. Currently I am using session to
store it.
Can this be done in a better way by any of the new featrues provided in
whidbey.
Regards,
Praveen
... more >>
Disappearing buttons
Posted by No One at 10/14/2004 2:01:37 AM
I have a page that has several controls on it that are enabled or
disabled depending on the page mode. I have a Repeater and two tables
(these tables are outside the Repeater). I can add a button to the Form
in VS .Net and assign an event handler to handle on click. I then move
the button int... more >>
Forms Authentication with IIS Virtual Directories
Posted by JerryMorton233 NO[at]SPAM mail.com at 10/14/2004 1:55:09 AM
Hi,
Is it possible to use ASP.NET Forms Authentication in an IIS "Virtual
Directory"? As long as I don't setup the vdir as an application, it
should behave like a regular sub-folder, right?
My ASP.NET application has a regular subfolder which authenticates OK,
but when I replace it with a vd... more >>
PIE/BAR CHART QUESTIONS?(creating them dynamically)
Posted by Patrick.O.Ige at 10/14/2004 1:35:07 AM
I have a code below and its a PIE & BAR CHART.
The values now are all static but I want to be able to pull the values from
a database.
Can you guys give me some ideas to do this?
Thanks
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load... more >>
(VS2005) Cannot use web user control in the aspx page!
Posted by InHyuk, Song at 10/14/2004 12:33:46 AM
I want to include ascx file, it displays some contents.
therefore I drag the ascx file from the solution explorer into the design
window of the aspx file.
However, in case that ascx file(not ascx.cs) contains select tag (<select>),
UserControl box displays error messages,
"An unhandled except... more >>
Object reference not set to an instance of an object.
Posted by John at 10/14/2004 12:30:25 AM
Hi
I am getting an 'System.NullReferenceException: Object reference not set to
an instance of an object.' error on the following line;
Dim sSQL As String = "INSERT INTO applications ( title, forenames, surname,
occupation) " & _ '<== This line gives the error.
... more >>
Passing parameters to a crystall report.
Posted by sospetermurigi NO[at]SPAM scceramics.com at 10/14/2004 12:25:03 AM
Hi,
I am trying to pass parameters to a crystall report.
I have imported the following namespace CrystalDecisions.CrystalReports.Engine
Despite doing that I cannot declare a parameter field as follows:-
Dim StateParam As New ParameterField.
Anyone know a solution to this.... more >>
|