all groups > asp.net > january 2004 > threads for thursday january 15
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
Excel 2000 with OWC11
Posted by Stefan Hirtbach at 1/15/2004 11:43:21 PM
Hi,
I wrote a small program in C#, using OWC11, that fills data in an excelsheet
and save it to disk as xls-file (using the Export-function).
It works well with Office 2003 but i've got problems using the file in
Office 2002 and 2000. It seems that the exported file is in an XML-file and
not an... more >>
xpath problems
Posted by Marri Suliez at 1/15/2004 11:06:02 PM
I am trying to run the asp xpath examples from the QuickStarts samples, but
I am not having any luck. When I run the code in a console app it works
fine. When I run the same exact code in an aspx page it doesn't work.
Here's a condensed example of what I am talking about. If I run this cod... more >>
Use of CSS for controls (label, textbox, etc.)
Posted by Jurjen de Groot at 1/15/2004 10:55:10 PM
I'm experimenting with StyleSheets in ASP.NET.
If I put a label on my webform and <LINK> the CSS file with the following
entries to the webform it doesn't work. It only works if I fill the property
'cssClass' of the label with the value 'label'.
..label
{
background-color: Red;
fo... more >>
Sharing an asp.net/c# counter with a peer review request.
Posted by Rick at 1/15/2004 10:26:35 PM
Hello,
I'm six months into asp.net/c# and enjoying it. I needed to code a "simple"
high performance counter... a couple weeks later and a lot of learning I
think I did it.
Many lesson lessons learned including: static objects vs. cached objects,
performance of asp.net, strong typing collect... more >>
dropdown puzzler
Posted by Jim Corey at 1/15/2004 10:02:13 PM
I'm thinking this problem is not specific to ASP.NET but anyway:
I have a dropdown that I populate when the page loads, and I have values
that are different from the
text that displays, so the resulting html looks like:
<option value="BUF">120 </option>
<option value="ALB">126 ... more >>
Validation Control
Posted by A.M at 1/15/2004 8:43:03 PM
Hi,
I have a validation control in my page that upon any invalid data, it
disables all buttons in the page. basicly i don't have any postback in the
page if the validator finds any error.
How can have the validator just disable certain control's postback and other
part of page continue thei... more >>
Intercepting the rendered output before it goes to the client
Posted by Nick at 1/15/2004 8:41:52 PM
Hi,
Is it possible to pass execution to a view (aspx file), let it do its job,
and then capture the output? I want to achieve something like this during a
HttpRequest:
1. Invoke the controller to process the request
2. Start building the page by doing the following:
A: Read a template ... more >>
need help to resolve concatenation error
Posted by TJS at 1/15/2004 8:02:31 PM
getting this error when retrieving selected items from a listbox:
----------------------------------------------------------------------------
---
BC30452: Operator '&' is not defined for types 'String' and
'System.Web.UI.WebControls.ListItem'.
for this code:
----------------------
Dim item... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Small Web app. in .NET
Posted by Mark Goldin at 1/15/2004 6:46:29 PM
Can someone point me to a small (but complete) .NET Web application?
I am a beginner in .NET but not in Web development.
Specifically I need Browser UI based on some navigation control (TreeView is
good) that will be populated from a database on the server.
Unfortunately I have a very limited ti... more >>
How to keep Label text right align?
Posted by kai at 1/15/2004 6:21:06 PM
Hi, All
When I place a label on a Web form, label text is always left align, I
cannot find the property to set right align. Any way to set align property
for the label text to right align?
Thanks
Kai
... more >>
scroll bar in datagrid control
Posted by Grey at 1/15/2004 6:06:10 PM
Is it possible to set vertical and horizontal scroll bar in datagrid =
control... more >>
Bug
Posted by Jay at 1/15/2004 4:35:30 PM
I have a very unusual bug. When I use the HTML below in a web form my =
TextBox is yellow. I cannot set the background color to anything else. =
In run mode it is always yellow. The key is using Name. If I change =
Name to anything else no problem. I know this sounds bizare but I have =
re... more >>
"Automation server can't create object" when creating new page in W2003
Posted by Ueslei R. Valentini at 1/15/2004 4:18:32 PM
Hi!
Does anyone figured out this error when trying to create a new page in a web
project under Windows2003, using Visual Studio .Net 2003?
"Automation server can't create object "
HSH
Ueslei
... more >>
static rows in datagrid, datalist or repeater
Posted by Reddy at 1/15/2004 4:18:21 PM
Hi,
I have a html table in which the first two rows would be static data header.
The remainder of rows get populated from the database. I want to implement
this using a datagrid, datalist or repeater to which I can bind a dataset.
The problem which I am facing here is the first two static rows... more >>
Impersonate and IIS6 driving me nuts
Posted by Bjoern Wolfgardt at 1/15/2004 4:18:20 PM
Hi NG,
I have written some Apps in ASP.NET that access a SQL Server on another
machine. I never had a problem doing this in IIS5(.1).
Most Apps are Intranet Application where I use the integrated windows
authentication. So my webconfig uses <identity impersonate="true"/>. My
Problem is that I... more >>
Change "Access is Denied" default page in web application
Posted by Ueslei R. Valentini at 1/15/2004 4:14:55 PM
Hi!
I'm using Windows Authentication in my application, restricting permissions
with authorization for specific users. But when someone try to access and
don't have permissions, the default page "Access is Denied" appears...
Can I figure out this and show my own page?
HSH
Ueslei
... more >>
passing variables between two different windows
Posted by Les Peabody at 1/15/2004 4:10:04 PM
Hello. I'm a rookie ASP VBScripter and am having a difficult time scripting
the following scenario:
I have an index.asp file that has a multi-line text box and a button of type
button. When the button is clicked a window is spawned with change.asp as
its source. There is a form with a few t... more >>
How to keep cookies after authentication redirect??
Posted by Peter Row at 1/15/2004 3:53:19 PM
Hi,
I better get the background stuff out the way first, so here goes:
- Porting a VB6 webclass app to VB.NET using HttpHandlers and
FormsAuthentication
- When someone visits my site unbeknown to them they are automatically
logged in as a guest
via the .NET forms authentication.
PROBLE... more >>
Need hosting advice!
Posted by David Hearn at 1/15/2004 3:45:53 PM
Does anyone know of a hosting company, that is reasonably priced and
has the Infragistics controls installed? I am developing a web site
that uses the latest Infragistics controls so I need them installed
wherever I decide to do this.
Thanks in advance!... more >>
can asp.net get the computername?
Posted by Jason Shohet at 1/15/2004 3:24:47 PM
i'm using C#, would like to get the computerName of the machine on a
windows2000 network. TY
Jason Shohet
... more >>
Datetime field in SQLserver database empty?
Posted by Thierry at 1/15/2004 3:01:43 PM
Hi,
I've got the next problem: I have a datetime field in my database
(sql-server) and I want the option in it that this field can be empty. But
if I leave that datetime field empty I get the error:
"The value you entered is not consistent with the data type or length of the
column."
... more >>
Combo Box
Posted by v at 1/15/2004 2:56:05 PM
Is it possible to create a combo box with the same functionality as the VB combo box? The drop down list works fine, but I would like to have a combo box that shows more than one column when the user clicks on the list and only shows the first column when the list is not selected. Just like a comb... more >>
Accessing Custom Attributes in an HttpModule
Posted by Michael Iantosca at 1/15/2004 2:51:05 PM
I have a custom attribute that I attach to certain pages in my application and I want to inspect each page request as it is made to see if the custom attribute is attached to the underlying page class. If is attached I want to perform some action.
How can I access custom attributes from an HttpMo... more >>
Why can't I see old posts
Posted by John at 1/15/2004 2:46:22 PM
Hi, Sometime today the newsgroup got a new look and feel but it doesn't seem to work. I try the right arrow to go to the next page and I get a generic MS page saying It can't find my page. I try typing a question in the question box and get the same generic page. I hope this can get fixed soon
T... more >>
Filesystem path
Posted by A.M at 1/15/2004 2:44:53 PM
Hi,
I need to log my asp.net application operations in a text file located in
root of web site.
Is there any methos that shows me the file system path of current page ?
Thanks,
Ali
... more >>
ASP.NET Files necessary on production system
Posted by Steffen Loringer at 1/15/2004 2:43:14 PM
Hi all,
which of the asp.net files on my development system must be transfered
to the "final" server system to make the application working?
And which of the "Directory" option in IIS need to be activated?
Thanks for help!
Steffen
... more >>
How to prevent Postback URL's from being added to browser history
Posted by Rob at 1/15/2004 2:31:45 PM
Each time a webform is posted back (submitted), another URL is added to the browser's history list. My web application allows a back button to return to previously visited pages, but I do not wish to return to each Postback URL, but rather only the initial page URL. Is there a way to prevent Pos... more >>
Populate .net dropdown
Posted by Poppy at 1/15/2004 2:28:36 PM
I have 2 tables. One is country and holds a list of countries and the other
is region which holds a list of states/provinces/countys relating to that
country.
How do I populate a combo so that it is indented.
e.g
USA
-Florida
-California
-Utah
Canada
-Ontario
-Quebec
Engl... more >>
about escaped Query string
Posted by Anders Both at 1/15/2004 1:49:21 PM
If I receive a query string on the server that contains escaped char´s like
this:
text=%20asadfdsf%20%C6%D8%C5%20%E6%F8%E5%20AAA
How can I then get the NameValueCollection where the escaped value´s are not
exchanged (unescaped).
If i do like this Request.QueryString["text"] I dont get the... more >>
How to create and use configuration settings in asp.net?
Posted by feng at 1/15/2004 1:38:48 PM
In my .Net Windows application, I can create my own
customized "appSettings" in my .config file. Then in the
app, I can simply call the
ConfigurationSettings.AppSettings to get any value I set.
Now I need the same functionality in my ASP.Net app. But
how do I do this? Do I use Web.config?... more >>
Reusable functions
Posted by Danny at 1/15/2004 1:37:27 PM
In classic ASP, if I have a function that will be used many times, I just
put it in include file, and add, for example <!-- #include
file='myfunction.inc' --> in the file where I want to use that function.
How do I do this in ASP.Net? Got bit confused, especially because HTML and
the VB.Net co... more >>
JavaScript Add.Addtribute to an ASP.NET Button
Posted by IntraRELY at 1/15/2004 1:27:24 PM
I need to attach the following 2 little scripts to an ASP.NET Button. I am
having an issue with running both of the Attributes.Add. I can only get on
to work at once. I have also tried to put them both/either in the page_load,
but cannot get it to work.
TIA,
Steve Wofford
www.IntraRELY.com... more >>
How do I download filefrom database
Posted by Ather Ali Shaikh at 1/15/2004 1:26:10 PM
Hi All
I have a database field of type Image.
I uplaod the file by using simpl asp.net
now I want to download that file directly to to the client side. with
download it on the server side.
I also saved the FileName, ContentType and FileExtenion in the database.
How do I do that . Please ... more >>
How can I change the calendar culture programmatically
Posted by gh0st54 NO[at]SPAM hotmail.com at 1/15/2004 1:25:10 PM
Hi
I have created a custom web control wich uses a couple of labels,
txtbox and calendars
I can change the culture of the txt and lbl no problem , how can I do
the same for the calendars ?
It has to be possible
thanks... more >>
BC30002 problem
Posted by Jason Callas at 1/15/2004 1:04:54 PM
I have a simple class written in vb.net:
'SongsDb.vb
Imports System.Configuration
Imports System.Data
Imports Microsoft.Data.Odbc
Namespace AquehongaPortal
Public Class SongsDb
Public Function GetSongs() As DataSet
Dim sql As String
=20
' build sql st... more >>
datagrid question???
Posted by Douglas Gage at 1/15/2004 12:51:19 PM
I want to know my headers of datagrid will not be known in advance, the
headers will be parsed at the run time by an array list. How would I be able
to solve the problem:
Before:
datagrid
After: collecting Arraylist which stores header datagrid then it should
print out (I'm binding it ... more >>
Do not update Session timeout
Posted by Jon Booth at 1/15/2004 12:40:41 PM
I want to write an apsx page that when loaded does not refresh
Session.Timeout.
It is going to be running in an iframe and refreshing every couple of
minutes.
example. User has 15 minutes left until session expires. iframe.aspx loads
and session still has 15 minutes left.
Is this possible?... more >>
Data Bind and View State
Posted by Eran Amitai at 1/15/2004 12:25:30 PM
I have the simplest web page (using code-behind):
<body>
<%# MyText %>
two buttons - button1 and button2
</body>
My code-behind web page is very simple too:
public class WebForm3 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button Button2;
protected System.We... more >>
Disable back button
Posted by Shalva at 1/15/2004 12:17:14 PM
Hi,
Can I disable looking SSL pages using forward and backward buttons, after
user's clicking "Logout" and canceling session ?
Thanks,
Shalva
... more >>
Removing Source Control.
Posted by Frank Rizzo at 1/15/2004 11:46:44 AM
I do not have any source control on my pc. However, when I get
projects/solutions from other people that have used source control,
vs.net tries hard to find the source control server. Is there a way to
disable this in vs.net. I don't want it to look for source control
server - I just want... more >>
XML Serialization of ListArray
Posted by George Ter-Saakov at 1/15/2004 11:32:23 AM
I have 2 classes one is document and another is collection of documents.
When i am trying to use XmlSerializer to serialize class which has
clsDcoumentIds member variable i am getting an exception
"System.InvalidOperationException: The type clsDocumentId was not expected."
public class clsDo... more >>
Patterns in writing Login Page
Posted by Sridhar panatula at 1/15/2004 11:11:35 AM
Hello All,
I would like to learn the well accepted patterns in developing the Login
page.
Could you please let me know what your experience are in this area.
The ones I have seen.
1) Usernames and Passwords are brought into in-memory-cache at application
startup and being maintained in the... more >>
UpdateCommand
Posted by André Almeida Maldonado at 1/15/2004 11:05:09 AM
Hy all...
I'm trying to get the selectedvalue of a dropdownlist that is in a datagrid
edititem...
But, in this line:
Dim drpPediGrPr As System.Web.UI.webcontrols.DropDownList =
CType(e.Item.Cells(1).Controls(0), System.Web.UI.webcontrols.DropDownList)
I receive this error:
Specified c... more >>
DataList
Posted by Mark at 1/15/2004 10:54:43 AM
I have a datalist (see code below). Assume that the datalist is populated
with 10 records of data. How do I programatically grab all the data in ALL
the columns of the selected record? I've been trying to use the FindControl
method inside the ItemCommand event of the DataList to get the content... more >>
How do I insert text at runtime (but not in codebehind)
Posted by Alan Pretre at 1/15/2004 10:52:13 AM
I need to place a piece of text into a page but the specific text is not
known at the time of the build. How can the webmaster define a string that
gets inserted into the page ** without modifying the aspx page **. I'm
thinking along the lines of a .txt file or something that can be
"#include... more >>
FindControl Question
Posted by Andrea Williams at 1/15/2004 10:37:47 AM
Ok, thanks to a kind person yesterday, I've started using the FindControl()
method. Although I able to get this to work for Web Controls, I'm unable to
find the HTML Controls? Am I missing something still? Do I really have to
use the Web controls in order to be able to change properties on the... more >>
Javascript in ASP.net page
Posted by Poppy at 1/15/2004 10:33:52 AM
I have 2 .net radio buttons on my page.
When the user clicks a button I want to change the contents/source of a drop
down box on my page without doing the round trip to the server.
E.g.
If radio button 1 clicked then
call poDropDown1()
else
call dropdown2()
End if
Can anyone poi... more >>
DF Converter question
Posted by BVM at 1/15/2004 10:30:33 AM
Hi, All:
I want to convert MS Office documents to PDF on the fly (it happens on =
the server side). Can someone recommend some suitable .NET components =
that are good, fast, easy to use?
Thanks,
Dennis... more >>
How to apply a stylesheet to new pages.
Posted by Frank Rizzo at 1/15/2004 9:53:39 AM
I've added a .css stylesheet to my asp.net project. How can I make
vs.net apply the stylesheet to all new pages (or even current) that I
create?
Thanks... more >>
Problem with white space on page
Posted by Amar at 1/15/2004 9:50:40 AM
I have a web form with several fields. Depending on user
selection in one combo box, i populate a text box and a
check box in one line. For example if the user selects 2
years, then i show the user two lines with each line
containing 1 text box and 1 check box. I have already put
in 10 lin... more >>
Escape Function in ASP.NET?
Posted by Danny at 1/15/2004 9:42:11 AM
In the classic asp, I can use escape built-in function (server side
function) like this:
<script language=javascript>
var myContent = unescape(<%=escape(strContent)%>)
</script>
How do I do that in asp.net? Seems like escape server side function is no
longer provided in asp.net, or... more >>
Cannot debug ASP.NET apps
Posted by Scott Adams at 1/15/2004 9:39:50 AM
Does anyone know of some good resources to use when troubleshooting why one
cannot debug ASP.NET apps? I am using Win2K pro SP4 (IIS 5) on a brand new
machine and I cannot debug even the most simple ASP.NET app on my localhost.
I have read through all kinds of MS KB articles on this issue and che... more >>
user control in frame
Posted by Gibs at 1/15/2004 9:35:00 AM
Can i put a user control in frame? when i tried to do it was giving an error
message
Server Error in '/MyTestApp' Application.
----------------------------------------------------------------------------
----
This type of page is not served.
Description: The type of page you have reque... more >>
XHTML & ASp.Net
Posted by Bob H at 1/15/2004 9:32:30 AM
Hi,
I'm a newbie in .Net and we have a basic site in XHTML that we need to
develop with ASP.Net. I've read that ASP.Net doesn't output correct XHTML.
Can anyone advise as to how we can maintain the xhtml standard whilst
developing the asp.net site? Are there any sites that can show pointers or... more >>
Please help: Creating a table in a sql server database
Posted by paulsmith5 NO[at]SPAM hotmail.com at 1/15/2004 9:27:41 AM
Hi,
I wish to be able to add tables to a sql server database at runtime
from my asp.net application. As well as creating fields I also wish to
be able to create indexes on selected fields and to assign user
permissions. (I need to assign permissions to the table object as I
will be using sp_e... more >>
.net ver 1.1
Posted by John at 1/15/2004 9:17:04 AM
Hi,
I have a large project written using vb.net in Visual
studio which runs under asp.net. I'm still on the version
1.0. Everything seems to work well.
I have the latest versions with my MSDN subscription but
I've been reluctant to upgrade. Is there a doc somewhere
that explains t... more >>
Losing Style Sheet
Posted by blue at 1/15/2004 9:13:03 AM
My app draws a bunch of tables on the page and has a form for the user to
enter data and submit. The form is contained within a User Control called
DecisionCtl. When they submit the form, a bunch of db updates are performed
and then page needs to be redrawn with the new table that is generated ... more >>
Datasets
Posted by brian at 1/15/2004 9:08:26 AM
I need help creating a dataset with a SQL string and help
iterating through it or querying the dataset.
I am really getting confused with the datatable. When
creating a dataset are you filling a datatable?
For example: Fill the dataset with employee names and
position. With that I wan... more >>
Dynamic Dropdown in DataGrid
Posted by arun_elluru NO[at]SPAM yahoo.com at 1/15/2004 8:52:47 AM
Hi,
I have to create a DataGrid which has 5 columns (only for display not
for Edit). Problem is with one column, which displays the database
value if present else it has to display DropDownlist in that column.
How can we do this?
If DropDownList is displayed then, a button has to be displayed... more >>
Page_Load stopped happening???
Posted by John Spiegel at 1/15/2004 8:50:25 AM
Hi All,
I've got a small VS solution where the Page_Load appears to have just
stopped occurring. It was running earlier, I made a few changes to the
..aspx page and at some point, the Page_Load code ceased to show any evidence
of executing. The code from the same codebehind file is still wor... more >>
First Web app. in .NET
Posted by Mark Goldin at 1/15/2004 7:10:51 AM
I need to start to work on my first Web apps. in .NET.
It will have classic 3-tier architecture.
1. Back-end - SQL Server
2. Middle tier - ??
3. Browser based interface.
Regular static html pages that will have controls (listboxes,
treeview..) created by client site XSLT.
These pages... more >>
IFRAME running .aspx page problems with postback
Posted by richard NO[at]SPAM itverket.no at 1/15/2004 6:54:27 AM
Hi!
We are experiencing a problem with running an .aspx page inside an
iframe. The .aspx page is loading perfectly the first time (on load),
but when we try to interact/navigate within the .aspx page (press a
button/calendar control e.g.) the response is loaded in a new separate
browser windo... more >>
Page one click behind
Posted by Edward at 1/15/2004 5:54:39 AM
I have an aspx page with 2 web usercontrols (ascx). The
first user control (example a.ascx) has two buttons.
Clicking the first button sets a Session variable "myVar"
to "but1", the second sets the same variable to "but2".
The other ascx-module uses the session variable "myVar" to
determin... more >>
Internet Explorer Interface
Posted by BG at 1/15/2004 5:04:41 AM
There is any way that can i control the IE interface from
a ASPX page?
For example i would like to open the IE in specific
location on the sceen and with specific size, also i don't
wan't to have any border (like the FormBorderStyle=none in
windows forms).
And last one can i make the IE wi... more >>
MailMessage proof of delivery
Posted by mg at 1/15/2004 4:43:46 AM
Is there any code that will create a return message that
verifies that a MailMessage has been received (or read) to
be sent?... more >>
Show the progress of an asp.net page while loading..
Posted by jcfilth NO[at]SPAM navegalia-dot-com.no-spam.invalid at 1/15/2004 4:18:05 AM
Hello,
I have created an asp.net web page with 3 datagrids. Every datagrid
binds to a diferent sql query, against a sql server. I first bind
one, then the other and then the last, all using code on Page_Load
event.
When I load this page, the navigator doesn't show anything until the
page l... more >>
Heres one for you...
Posted by cory at 1/15/2004 3:52:03 AM
I am looking at expanding a web/database app. The scenario is users go
online to fill out forms which are reports and the info of course goes into
the database. The issue here is that while this reporting by the user
should happen daily, because of the industry I am in, a user cant always do
t... more >>
SmtpMail problem
Posted by jasonjbwalton NO[at]SPAM hotmail.com at 1/15/2004 2:55:08 AM
Hi
I am having a bit of a problem with SmtpMail. I have a bit of code
that should send an email but when it is executed no email turns up.
MailMessage mmNotify = new MailMessage();
mmNotify.From = [from email address];
mmNotify.To = [recipient email address];
mmNotify.BodyFormat = MailFo... more >>
Click not responding
Posted by Jon at 1/15/2004 2:36:19 AM
Hello all.
I have a real problem at the mo with an ASP.net page. I
have a link button that has a click event. It is wired up
in the InitializeComponent() method etc and when you
double click on the button in the form view, it takes you
to the code, however, when I set a breakpoint on the ... more >>
Object Moved to Here
Posted by Imran Shabbir at 1/15/2004 2:19:29 AM
Hi all
I have developed a web application in ASP.net which is in
production and working fine but some time while
redirecting from one page to another i get this message
on a blank page "Object Moved to Here".
For further information my application is running on
windows 2000 advance ser... more >>
Viewstate Error
Posted by martin at 1/15/2004 1:34:40 AM
I have a problem with .net
it keps giving me the
ViewState is Corrupt or Invalid for this page error
Ihave set the EnableViewstaMAC=false on all pages but I
still get it n occassions.
Does naybody know why and how to stop it or how to trap it
and redirect it.
... more >>
|