all groups > asp.net > april 2004 > threads for thursday april 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
A problem with DataList???Help!!!
Posted by Àä×ÔȪ at 4/1/2004 11:57:18 PM
I insert a DataList and a Datagrid in a page:
<asp:DataGrid id="DataGrid1" style="Z-INDEX: 103; LEFT: 456px; POSITION:
absolute; TOP: 56px"runat="server"></asp:DataGrid>
<asp:DataList id="DataList2" style="Z-INDEX: 104; LEFT: 280px; POSITION:
absolute; TOP: 88px"runat="server">
<ItemTemplat... more >>
Weird web.config issue
Posted by CW at 4/1/2004 11:25:37 PM
I have run into a really strange problem.
My objective is that I only want user who have authenticated themselves to
be able to access the website (and authentication is performed by form
authentication). Only a registration web page is allowed anonymous access.
I have the following contents... more >>
Web Setup Package : How to include aspx in msi?
Posted by Tom at 4/1/2004 10:26:03 PM
Hi
I developed a web application and want to create the setup package msi file
I created a a project and chose "Installer Web Project"
I set the URL to be http://localhost:808
I chose all needed output project dll files.
I built it in release mode
There are setup.msi and setup.exe files ... more >>
Request.QueryString() and/or Request.Form()
Posted by George at 4/1/2004 10:22:40 PM
VS.NET 2002/VB
Is it possible to retrieve HTML form variables that are hidden input types using
Request.QueryString() and/or Request.Form()?
I have tried various ways of using those, but to no avail. My HTML form method is set to POST, and I
thought I had read somewhere that this could be do... more >>
Empty DataTable?
Posted by William Ortenberg at 4/1/2004 9:39:38 PM
I call a function that returns a datatable. What property of the datatable
will tell me if there are no rows?
Thanks in advance.
... more >>
<img> access from server
Posted by anony at 4/1/2004 9:12:09 PM
Is it possible to put runat=server in an <img> tag and set its visible
property via a server call? If so, how do I find/cast the <img>? Using
vb.net.
Thanks for any help,
Brian
... more >>
Problem with Window.open Javascript.
Posted by shamin_a NO[at]SPAM hotmail.com at 4/1/2004 9:11:40 PM
Hi,
Thanks in advance for answering to my Question. I'm stuck with this
problem and would really appreciate any help.
I have 2 aspx files (Main.aspx and ReportViewer.aspx). Main.aspx has a
datagrid which is populated with list of report names. When the user
click on the name of a report, I ... more >>
Counting items and returning values
Posted by Andrew Banks at 4/1/2004 9:03:12 PM
I have a table of product orders. It contains a row for "platform" and I
need to return how many times each platform is listed in the DB
Example data for platform could be:
XBOX
XBOX
XBOX
PLAYSTATION
PLAYSTATION
GAMECUBE
PLAYSTATION
I'd like the data to be returned as
XBOX - 3
PLAY... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Confusion about the HttpContext
Posted by coollzh at 4/1/2004 8:32:07 PM
who can tell the detailed difference of:
HttpRuntime, Context, HttpContext.Current
sometimes, we can use Context Object instead of HttpContext.Current;
sometimes, we can user HttpRuntime Directly.....
... more >>
NET 2003
Posted by Mike at 4/1/2004 7:14:09 PM
I installed .NET 2003 on XP Pro and I'm trying to create a asp.net app and i
get an error message.
VS.NET has detected that the specified web server is not running ASP.NET 1.1
You will be unable to run asp.net web app or services.
Now i have .NET Framework 1.1 installed. so what i'm i missin... more >>
Pass a Session Variable from ASP.NET to ASP
Posted by Wayne Wengert at 4/1/2004 6:42:05 PM
I have an application where a session variable is set in an ASPX page, The
process calls an ASP page and when in that page the session variable appears
to be null. How can I pass a session variable to an ASP page?
Wayne
... more >>
Uploading files-- max limit
Posted by Do at 4/1/2004 5:07:46 PM
Hi...
I'm using the default namespace in .NET to do file upload with ASP.NET.
I have a file that's 4MB and I can't upload it. What's the default max and
what's the property
I'm looking for?
Thanks,
Do
... more >>
advantages of moving to asp.net
Posted by John South at 4/1/2004 5:03:37 PM
Hi
I've developed a web service that allows people to easily set-up their own
websites, and keep them up-to-date themseves. It's all done in standard ASP
and SQL 2000.
You can see it here: www.up-to-the-minute.com
It's still early days but if I'm going to convert to asp.net I guess I
sho... more >>
Read/Write controls on aspx page from class code (vb.net)
Posted by JohnSmith NO[at]SPAM newsgroups.nospam at 4/1/2004 4:41:03 PM
I suspect this is easy, but I have been stumped for a day trying to solve this..
I want to be able to have an unlimited number of aspx pages that all use the code in one class file. I want code in that class file to be able to read and write the controls on the aspx pages. For example, on all t... more >>
Session State
Posted by Timothy Elvidge at 4/1/2004 4:26:03 PM
I have a new Windows 2003 Web server freshly installed that is to be the production web server. In the application startup it sets up a session log. The application then refers to this session variable after a forms login on its default page. This works fine on the demo system but fails on the produ... more >>
EventLog Access using impersonation in Windows Server 2003
Posted by cjk at 4/1/2004 3:51:04 PM
Issue
Our web application requires access to write to a custom event log, yet access is denied. This access is denied because we are using impersonation, and our end-users do not (should not) have permissions to write to a custom event log. We would like to know if someone out there has resolved ... more >>
Config question
Posted by Morgan E. Dunn at 4/1/2004 3:31:04 PM
Forgive me. This may be a dumb question but I haven't found the answer yet.
What configuration setting do you change/set to determine where .Net looks for files when no specific path is specified. Specifically I mean files and not assemblies. For example my application may open a .xml file or a .xs... more >>
Declare Custom DLL Control in Code-Behind to set properties
Posted by Technical Support at 4/1/2004 3:26:22 PM
Good afternoon,
I created a custom control, compiled it into a DLL, and added it to the BIN
directory. I placed an instance of the control in a webForm and am trying to
programatically change its properties via the Page_Load subroutine in a
code-behind file. Can someone please tell me the proper... more >>
CurrentPageIndex invalid after a row deleted from datagrid
Posted by CW at 4/1/2004 3:22:09 PM
Is this by design or is it a bug?
If you have a pageable datagrid. After you delete a row from the grid (which
results in a reduction in the number of pages of the datagrid), asp.net
throws an error because CurrentPageIndex is set to -1.
The error is thrown when you call the databind method ... more >>
launching a socket server from asp.net
Posted by j NO[at]SPAM mesbridger.com at 4/1/2004 2:52:40 PM
Hi all,
We are currently putting together a web based application which needs
real time communication with the server. In order to achieve this we
are writing an application which will run as a socket server to
process and send out data, we have been planning to run this as a
service. Unfortua... more >>
simple ascx page_load firing twice
Posted by dx at 4/1/2004 2:29:49 PM
I have a simple user control (.ascx) that is dynamically instantiated in the
calling aspx page and added to the control tree (within the page_load.)
I have checked and the calling page only executes it's page_load once. Why
is the page_load of the ascx fired twice?
Thanks in advance,
stan
... more >>
Validating XML file against an XSD schema in an ASP.NET page
Posted by simon ames at 4/1/2004 2:25:22 PM
I have an XML file i'd like to validate against an XSD schema.
I'm creating the XML on the fly in an ASP.NET page and need to validate it
aginst the schema to ensure its well formed.
How do i do this?
Thanks in advance...
Simon Ames
... more >>
Whidbey(v2.0.31113) OracleClient/SqlDataSource parameter binding
Posted by Andrew at 4/1/2004 2:21:57 PM
I've :
<asp:sqldatasource runat="server"
id="sql"
providername="System.Data.OracleClient"
datasourcemode="DataReader"
connectionstring="..."
selectcommand="..."
deletecommand="delete from tbl where id=:id"/>
<asp:gridview runat="server"
datasourceid="sql"
datakeynames="i... more >>
adding datarows to tables and datatables to datasets
Posted by psb at 4/1/2004 2:18:34 PM
I thought this was weird?? is this a bug in framework 1.0??? (1.0 is the
version I am running against)
---------------------------
dim dtAll as new datatable
dim dtTmp as datatable
dtTmp = LoadDataTable("select top 100 from table...")
for i=0 to dtTmp.rows.count -1
''''ERROR ON THIS LI... more >>
asp.net web user controls
Posted by robert.bull NO[at]SPAM wbp.org at 4/1/2004 1:42:52 PM
I have created a web user control that consists of a text box with a
button beside it. When the user clicks the button, the calendar
control drops down from the text box for a date selection. I have a
situation where I want the user to select 2 different date parameters,
so I have created one us... more >>
How to put JS on TextBox...correctly?
Posted by Amil at 4/1/2004 1:01:13 PM
I have code that adds Javascript to a textbox:
txtbox.Attributes.Add("onKeyDown", "myJScode");
When I look at the actual source, the JS code is placed inside of a <span>
tag directly before the actual <input> tag. How can I make sure the JS is
applied/added to the <input> tag?? The <span> ... more >>
using flash (.sfw) file in C#
Posted by Swayze at 4/1/2004 12:59:35 PM
Hi,
I'm trying to figure out how to use a .sfw file in an aspx page, without the
use of third-party controls. Can anyone point me in the right direction?
Thanks in advance and best regards,
Swayze
... more >>
ASP.NET Access denied to resources in other machines
Posted by Fabricio Sperandio at 4/1/2004 12:51:35 PM
Hi everyone,
I have an ASP.NET application that access resources (files) in an other
servers (machines) rather than the localhost.
I am using Windows Authentication and impersonating the user.
It works fine when I run local but when I am accessing this application from
a third computer th... more >>
moving controls at runtime
Posted by xs at 4/1/2004 12:26:38 PM
I have a datagrid and a button. The contents of datagrid is dynamic. My
button is placed below the datagrid. If there are too many items in Datagrid
the button and datagrid will be overlapped. Is there any way to move the
button at runtime?
... more >>
Using label in javascript
Posted by Vik at 4/1/2004 12:04:29 PM
The following code returns an error message (null object):
document.forms[0]['Label1'].value='';
Is it possible to use an ASP or HTML label in JavaScript?
Thank you.
... more >>
Context.Items lost using Server.Transfer
Posted by ljubomir_jurkovic NO[at]SPAM yahoo.com at 4/1/2004 11:46:34 AM
Has anybody encountered a situation like this: Inside Page1.aspx I'm
using Server.Transfer("Page2.aspx") to get to Page2.aspx. I save few
values in Context.Items which I try to restore in Page2. Most of the
time everything works fine, but from time to time the Context items
are completely lost b... more >>
How do you alternate images in a data bound column of a data grid control?
Posted by C Newby at 4/1/2004 11:29:33 AM
I have a data grid control taht contains a data bound coulmn called "Type".
Depending on the value of "Type" I want to display a corresponding image in
the rendered table cell. So, if the value of type is 1, I want to show
image1.gif. If the value is 2, I want to show image2.gif. Is there an easy... more >>
.NET Version 1.1 - Data Adapters
Posted by Morys Kenworthy at 4/1/2004 11:27:24 AM
If I drag and drop a SQL table to a web form I get a connection and adapter
created. Nice!
If I drag a Visual Foxpro table to a web form or a table from the IBM AS/400
I get an error message: "The wizard detected the following problems when
configuring the data adapter for "mytable". Details: ... more >>
How to: Multiple File Download(Upload)
Posted by Ivo Tcholakov at 4/1/2004 11:05:42 AM
Hello,
I created an application where the users need to download files. I have the
list of the files stored in a database and I present the list to download in
a Datagrid. Here comes my question.
How can I make it possible that the user selects multiple files and
downloads them at once instead ... more >>
Paging of a data grid
Posted by Andrew Banks at 4/1/2004 10:12:24 AM
I've added a data grid to my page but the automatic paging feature doesn't
seem to be working.
The code I have on page load is as follows. Can anyone suggest why this
isn't working?
SqlDataAdapter adSales;
SqlConnection con = new
SqlConnection(System.Configuration.ConfigurationSettin... more >>
Autocomplete cuasing problems with client side validation controls
Posted by moondaddy at 4/1/2004 10:07:15 AM
I have a form for entering a user's address and all fields have a required
validating control associated with them and the error msg for each field
displays right next to it. The normal behavior is that the error msg
doesn't show unit the use hits the submit button or the user enters data and
m... more >>
Large Font Issue in asp.net application
Posted by news.Microsoft.com at 4/1/2004 8:56:36 AM
I've created an asp.net app and it appears fine when I view it with normal
font sizes but when some laptop users view it (They use large fonts setting)
all labels appear gigantic on the aspx page, they do not fit on the page
properly, and are partically covered by other controls, etc.
Has anyo... more >>
COM objects
Posted by Philip Townsend at 4/1/2004 8:53:40 AM
I have a large "legacy" web application written in asp.old that relied
on some COM objects. While I am aware that it is possible to use legacy
COM objects within an asp.net application, is it possible to do the
reverse? In other words, would it be possible to rewrite some of the
legacy COM objec... more >>
Problem in Fetching Session Variable
Posted by Phanidhar at 4/1/2004 8:51:13 AM
Hi
We are developing an ASP.NET application is being accessed by multiple users simultaneously. We are facing a problem in retrieving the ASP.NET session of the logged on users correctly. Let me explain u using a code snippe
string strUsername = Session["User"]
Session objSession = GetSe... more >>
Forceing a client side REFRESH
Posted by Bryan G at 4/1/2004 8:37:22 AM
I need to force the client side to refresh the page. What function do I use
todo this in C# with a ASPX page?
... more >>
Reading registry key throws "Requested registry access is not allowed."
Posted by jugnu_007 NO[at]SPAM yahoo.com at 4/1/2004 8:11:02 AM
I am exceuting the following command in C#
using Microsoft.Win32;
RegistryKey key = Registry.LocalMachine.OpenSubKey(KeyName);
I keep getting the exception "Requested registry access is not
allowed."
If i give EVERYONE full access to the key , then i am able open the
key but i do not w... more >>
Compiler Error Message: CS0007
Posted by Robert at 4/1/2004 6:21:14 AM
Every time I navigate to any .aspx file on my computer, I get the error below. According to MSDN this indicates that my CLR is corrupt, but I've re-installed the .NET framework with no help. Also reinstalled VS.NET; still nothing. Any ideas?
Error
Description: An error occurred during the comp... more >>
Reusing DataSet/DataTable
Posted by anon at 4/1/2004 6:08:14 AM
Hello All,
I have a Datagrid that gets populated using a different query ,
depending on some user selections....when i do paging for the grid, i
will have to chk for those selection again n pass the query to the
function that populates the grid....i was thinking of a workaround or
something l... more >>
How do I set the new thread principal?
Posted by Stan at 4/1/2004 6:06:17 AM
I start a new thread to run a long database query and show the progress bar
Thread DbThread = new Thread(new ThreadStart(dr.GetDataFromDb));
DbThread.Start()
Response.Redirect ("WaitPage.aspx")
Problem is that the new thread ignores the identity of asp_netwp.exe worker process.
There is <id... more >>
Deploying ASP . Net Apps
Posted by Kenny at 4/1/2004 6:06:09 AM
hi Group
I have an ASP.NET App. I need to deploy on the web server
What issues can come while deploying .Net Applications to the web serve
... more >>
How to get viewstate from codebehind?
Posted by xlvlo NO[at]SPAM poczta.onet.pl at 4/1/2004 3:37:15 AM
I have class file. How can I get viewstate from it? for session or
request I use for ex. HttpContext.Current.Session. How can I do it for
viewstate in c#?
Sebastian... more >>
Page Refresh
Posted by pavanp at 4/1/2004 3:04:30 AM
Hi All,
I am having a aspx page developed in C# it contains a marquee with some text
scrolling.
After looping this text for ten time say I am refreshing the page for
updating the scrolling text .
The problem is that when the page refresh happens the page will be left
blank.
My requirement i... more >>
Static data access method vs non-static method
Posted by CW at 4/1/2004 3:00:40 AM
When I use a centralized data access component, I often find myself creating
an instance of the data access component and calling its method in a webform
(or from its code behind).
Is there any reason why I shouldn't mark those data access methods static
(or shared in vb.net parlance) and thus... more >>
Send form values using AspNetEmail. Can you help me out? Thank You.
Posted by Miguel Dias Moura at 4/1/2004 2:46:47 AM
Hello,
Can you help me out in making this work? What I want is as simple as sending
form values to an email.
The code I am using is the following:
<Script runat="server">
Private Sub Page_Load()
Dim msg As EmailMessage = New EmailMessage("localhost")
... more >>
Stored Procedure as datasource for crystal reports
Posted by versteijn NO[at]SPAM 538mail.nl at 4/1/2004 2:33:40 AM
Hello all
I want to define a crystal report and assign the stored procedure
GetOpenQuestions() as it's datasource and provide a set of parameters.
How does this work? My target situation is that I provide a server
name, stored procedure name and it's parameters, and make crystal
connect to ... more >>
date variable problems
Posted by jonathan_carson NO[at]SPAM hotmail.com at 4/1/2004 1:29:57 AM
Hi All,
when using the following select statement
Dim d1 As date = datetime.now
Dim CommandText1 As String = "select count(callid) as [Number of new
Calls] from calls where datetimecalllogged >="
CommandText1 = CommandText1 + d1
the record set seems to be filtered on the time only, 00:... more >>
Why does the datagrid's textbox contain the original value when in edit mode
Posted by CW at 4/1/2004 1:27:21 AM
I am taking the Commerce Starter Kit sample from asp.net and trying to add a
page that allows user to edit product categories.
I am doing so via the use of a datagrid. html portion related to the data
grid is as per follows:
<asp:datagrid id=dgProductCategories runat="server"
AutoGenerateCo... more >>
|