all groups > asp.net > march 2005 > threads for thursday march 3
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
Changing the style of the button portion of an HtmlInput control
Posted by Mark Rae at 3/3/2005 11:16:13 PM
Hi,
Is there any way to modify the style of the button portion of an HtmlInput
control? I have a CSS class which I use for all of the buttons to try to
make them a little less ugly than the standard grey but, if I apply this to
an HtmlInput control, all that does is change the background an... more >>
aspx file location
Posted by Daves at 3/3/2005 11:14:13 PM
my application directory in short:
Blog (dir)
-blog.aspx
-blog.aspx.cs
default.aspx
login.aspx
All this located in c:\MyWebs\BlogApplication\
from the blog.aspx code I use Response.Redirect(login.aspx) and tries to
find that file within Blog directory. If I add "\login.aspx" it tr... more >>
asp.net problem
Posted by spilo101 at 3/3/2005 8:05:01 PM
I have a weird problem.
Computer Hangs if same page is recompiled. -> Meaning that, say i created a
very simple asp.net file, and called it from the browser. As we all know .NET
will compile it into a reusable class at first run. Then, if i call the page
again, everythign if fine, because n... more >>
Getting the user input in a separate popup browser...
Posted by Ravi J at 3/3/2005 8:01:03 PM
Hello, in an ASP.NET page, when the user selects certain button, I would like
a small browser window to popup and ask user for some input. Once the user
enters the data and submits through a button, I would like that data to be
available to the aspx webpage.
What needs to be done, and is a sm... more >>
Data Grid Performance
Posted by thomson at 3/3/2005 7:56:01 PM
Hi All,
We all know the flexibility given by the datagrid, in asp.net.
But i want to know one thing Is there any performance issues using the
datagrid,
In Asp. we used tables to manipulate a grid like structure, and it was
bit tedious, Datagrid programming was extremely easy when co... more >>
getting specific attribute from xml file
Posted by Passero at 3/3/2005 7:29:16 PM
How can i easly get the value of a specific attribute from an xml file.
It is an attribute that is present with most of the elements but not
all. I never worked with xml in asp.net, i can work wit SAX in java but
my application has to work in asp.net... more >>
Deleting a project
Posted by Sandy at 3/3/2005 7:01:02 PM
Hello -
Visual Studio seems to have taken over my computer. I have found five
places it puts projects in (e.g. Admin/VSProj, Admin/My Doc/VSWebCache, IIS,
Inetpub and My Network Places/localhost.
I have a lot of obsolete projects I want to delete. Is there some way I can
delete them wi... more >>
How do I see Custom Contrrol properties in the designer?
Posted by chambersdon NO[at]SPAM hotmail.com at 3/3/2005 6:45:19 PM
How do I get the public properties of my custom control to show in the
designer. The properties are all Strings but they do not show up in
the designer property window.
My custom control inherits from:
System.Web.UI.UserControl
I have the following property:
Public Property workUnitCode()... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
get datakey from datalist
Posted by Andy Sutorius at 3/3/2005 6:39:55 PM
Hi,
I have a datalist with a asp:button. I have onitemcommand firing when the
button is clicked. I am attempting to get the datakey of the button that was
clicked. I can retrieve a specific datakey with the following: int
intProductID = Convert.ToInt16(dlstProducts.DataKeys[0]) but how do I
r... more >>
datagrid
Posted by Yoshitha at 3/3/2005 6:27:55 PM
Hi
I want to display 2 tables data within a single datagrid.
In table1 i've 4 fields
FirstName
LastName
Emailid primary key
Usertype
In table2 i've 2 fields
Emailid foreignkey
CompanyName
in datagrid i've to display all fields except usertype but i've to retrieve
data based on the ... more >>
play sound file
Posted by Lam at 3/3/2005 6:02:03 PM
how can I play sound file in a .aspx page written in C#?
I try to use the code like the following. But whenI call the play function
play("sound.wav", this.SND_ASYNC)
my computer give out "be" sound instead playing the file
(same code works fine in a windows application written in c# , that me... more >>
Is there a way to reuse dynamic controls with multiple parents?
Posted by Homam at 3/3/2005 5:55:18 PM
So I have a composite paging control that shoulld be positioned on the page
like this:
PagNav
ResultSetDisplay
PagNav
I know that I can't resuse the PagNav more than once in the form, so I
instantiate a couple of instances, PagNavTop and PagNavBottom, and thus I
end up with:
PagNavT... more >>
Web Farm question.
Posted by ashish at 3/3/2005 5:29:09 PM
We are trying to run an application on a web farm, with sql server state
management, the issue is that the application uses a singleton static
class to access configuration information.
The issue is that when the state of the object can be different on
different web servers , is there any m... more >>
Response.Redirect: Need ISO-8859-1 instead of utf-8
Posted by Peter Laan at 3/3/2005 4:56:10 PM
I need to redirect the user to an external page and include some information
in the querystring (is this possible to do as a post instead of get?) I'm
using Response.Redirect. The problem occurs if the information contains
local characters (like åäö.) The external page can only handle ISO-8859... more >>
Memory Leaks in ASP.NET
Posted by Frank1213 at 3/3/2005 4:45:02 PM
In my ASP.NET application, we are noticing appreciable memory leaks and the
main culprit appears to be System.String We use ResourceReader to read in a
resource file and we close and dispose the resourcereader object also. We
profiled the application using .NET Memory profiler and it appears... more >>
Calling to object model of Microsoft Outlook
Posted by Tarllem at 3/3/2005 4:44:04 PM
Hi!
I'm trying to call to the assemblies of Outlook (<%
@Import Namespace="Microsoft.Office.Interop.Outlook"%>) but this line shows
the message: Can`t find Office inside Microsoft name space. The assemblies
are installed from Microsoft Office.
You have any idea? thanks!
... more >>
Create ASP.Net Page Programatically
Posted by Mythran at 3/3/2005 4:42:14 PM
I have 2 projects, a Web project and a Class Library project. In the class
project, I have a class called Class1. Pseudo below:
Class Class1
...
Public Static Sub Generate()
If True
' Create Page and display to user.
End If
End Sub
End Class
... more >>
ASP to ASP.Net
Posted by Tom B at 3/3/2005 4:10:32 PM
I'm sure this has been covered before but I have a bit of a problem.
I've created on my development machine an asp.net site. The pages I want
I've copied to the old asp site, and dumped into the appropriate folder. I
also copied the contents of the bin folder and the web.config file. This
w... more >>
Clickable Datagrid
Posted by chuckdfoster at 3/3/2005 3:59:34 PM
I am needing to creat a Sign In/Out Board ASP.NET page. I was going to use
a datagrid with everyone's name, in/out, location, and time in it. This
data will be stored on a MS SQL Server. I need a person to be able to click
the in/out column and have it sign them out or give them a page that wi... more >>
I need to open a new page
Posted by bill at 3/3/2005 3:43:53 PM
I would like to click a button on my web form and have the response
displayed in a new browser. The initial browser remains open with the
original content.
This is for displaying reports, so the user can modify their parameter
selection in a web form, view the results in a new page, and compa... more >>
file upload in asp.net
Posted by Nicole Legroe at 3/3/2005 3:04:55 PM
I have an asp.NET site running. I want to make it possible in my webpage, to
enter the name of an imagefile on my computer and to upload this file on my
webserver. What is the code to make this upload possible?
Nicole Legroe
nicole.legroe@telenet.be
... more >>
XMP content and POST ?
Posted by WJ at 3/3/2005 2:56:47 PM
1. How can I use POST method to post the following XML statements to an Html
page or Asp page using Asp.net or
2. If the XML below is a file (text), how do I POST it to other web site
programmatically within asp.net form ?
*********
<NameList>
<Names>
<LastName>Hamilton</LastName... more >>
small javascript function problem
Posted by Craig G at 3/3/2005 2:53:25 PM
i have the following jscript function
function OpenLookup(idname, lookupName, postBack)
{
var strReturn;
strReturn=window.showModalDialog('frmLookup.aspx?LOOKUP=' + lookupName +
'&PROFESSION=' + document.getElementById('txtProf').value
,null,'status:no;dialogWidth:520px;dialogHeight:375px;... more >>
SMTP Email
Posted by klynn at 3/3/2005 2:51:02 PM
I cant get an email out using System.Web.Mail.SmtpMail.Send(msg)
If I enter a SmtpMail.SmtpServer, then I get the error, "The server rejected
the sender address. Invalid Address"
If I dont enter one, I don't get a .NET error, but my mail ends up in the
mailroot\Drop folder with a "DNS Failur... more >>
Visual studio remote asp.net projects
Posted by David Royal at 3/3/2005 2:45:33 PM
I'm trying to get VS.NEt 2003 to create a new asp.net project on a
remote machine. I have XP pro with iis 5 installed on a networked
machine. IIS works and I can access web pages over the network. However
VS refuses to create a new project saying variously the UNC path does
not exist or access i... more >>
constants for http status codes
Posted by Andy Fish at 3/3/2005 2:31:29 PM
Hi,
I've RTFM'd in vain for some named constants in the asp.net framework
representing the HTTP error codes - the equivalent of Java's
HttpServletResponse.SC_NOT_FOUND for 404 etc.
All the examples I've seen just use numbers. Anyone seen proper constant
definitions for these?
Andy
... more >>
multiple user authentication on same server?
Posted by Jerome at 3/3/2005 2:26:56 PM
Hi,
I've got a website with several directories, each one representing an
'application' where you have to logon. This user authentication is done
in simple ASP, so each application has its own login page, failure page,
etc.
My question now is: how can I do the same with asp.net?
As far a... more >>
How to get HTML from a relative URL? WebRequest, WebResponse won't work in my case
Posted by John at 3/3/2005 2:00:26 PM
I am in need to find a way to get the HTML from an internal URL.
For example: I have page : default.aspx?page=Test, I need to get HTML of
that page after rendering.
At first thought, I would use WebRequest to make a requestion, then use
WebResponse to get the HTML. However, it won't work in ... more >>
How can I let the user edit multiple rows at a time?
Posted by ad at 3/3/2005 1:54:53 PM
I use DataGrid in my web application for editing data.
But the DataGrid can edit one row at a time.
How can I let the user edit multiple rows at a time?
... more >>
Creating new Thread as another user?
Posted by Lars Netzel at 3/3/2005 1:52:53 PM
Can one create a new thread as another user and then preform commands with
other permissionas or am I stuck with the ASPNET user in the code behind?
/Lars
... more >>
i do not understand this behavior: url tacked onto "localhost"
Posted by Timo at 3/3/2005 1:52:32 PM
I'm trying to use a LinkButton with both an HREF and an OnClick to defeat
the popup blocker because we have a disproportionately high number of users
who won't know they have popups blocked or even know what a popup is. Our
site opens pages from our affiliates in a popup window.
Why do I get ... more >>
Passing connection string to DLL
Posted by Jeff at 3/3/2005 1:50:42 PM
I have a main project which references several DLLs. Each DLL will
access the same database as the main project. I'm storing the
connection string within the main project's "web.config" file, so in
theory the DLLs do not have "visibility" to the connection string.
I considered creating a pub... more >>
DNS Round Robin and ViewState
Posted by Scott at 3/3/2005 1:45:04 PM
Hi All.
I have a web site that is currently using DNS round robin as a poor man's
load balancer. Some users are receiving an 'Unable to Validate Data' error
when posting back to the server. I've been assured by my network guys that
the client will not go to another IP address for the site... more >>
backing up an asp database
Posted by J. Frank Parnell at 3/3/2005 1:41:07 PM
hello, i dont know asp at all, but i have been asked to backup a web site
and database
that is used on a site which uses .aspx.
i dont need to do anything with it, just copy it and send it along to
someone who will.
i have allready got all the files off the site with ftp, is the database in... more >>
what's the difference?
Posted by rodchar at 3/3/2005 1:41:01 PM
hey all,
i have a simple datagrid web app that if i leave up for an unknown specified
amount of time (maybe 30min) and i try to click on it i get an error message
saying "object not set to a reference" error.
But if i'm on msdn's new group site, i can leave that up all day long and it
wil... more >>
{"Parser Error: The Runat attribute must have the value Server." }
Posted by ADavidson at 3/3/2005 1:37:03 PM
I'm getting a {"Parser Error: The Runat attribute must have the value
Server." } error when I try to get the Server.GetlastError() in the
Global.asax codebehind.
Why am I getting this?
I tried to remove the code-behind and add the <script language="C#"
runat="server"> but that fails as ... more >>
C#.NET FTP Integration
Posted by Maziar Aflatoun at 3/3/2005 1:32:28 PM
Hi,
Is it possible to redirect users to an FTP server from your site without
actually displaying the FTP username/password? Are there other alternatives?
Currently, I have it so that once I authenticate the user for a file (name)
in the database I then redirect the user to the file using
... more >>
Help: Problem closing window
Posted by Joe at 3/3/2005 12:31:08 PM
Hi,
I have a form with Submit and cancel button. When Cancel button is clicked I
want to close the browser window. Here is my sample form. To make things
simple I have removed the submit button. When I click on the cancel button,
the window doesn’t close. Can someone tell me what mistak... more >>
What is VBA???
Posted by ACaunter at 3/3/2005 12:13:06 PM
Hi there,
I was wondering what VBA is.. Visual Basic for Applications... I've been
trying to read up on it and can't quite figure it out.. I know it can be used
with word, excel, or ms access... but what it does i don't know...
is it vb6?? or have anything to do with vb.net??? what is it used... more >>
dropdownlist delimma
Posted by Chris at 3/3/2005 12:11:02 PM
I have a form that has several dropdownlists on it, and they have to be
placed in 'If Not IsPostBack Then' becasue in some cases the choice of one
effects the choices in another. The issue is that if IU allow a user to add
(via a pop-up modal form) a new item for that particular dropdwonlist, ... more >>
LDAP-Authentification
Posted by Nico Koenig at 3/3/2005 12:00:10 PM
Hi there,
I try to make an authorisation bind to the LDAP with ASP.NET. I use the
DirectoryServices Namespace and the MSDN documented way to do it, but every
time I get an "COMException: Server is not operational". Can anyone tell me
what I have to do to avoid this???
Thanks,
Nico
... more >>
Web projects do not show when open
Posted by mtv at 3/3/2005 11:55:03 AM
Hi all,
I have asp.net projects (as virtual directories) under my wwwroot path. But
when I try to open it from Visual Studio (Open Project from Web...), none of
the virtual directories show up as I indicated url = http://localhost or
http://mymachinename.
I have set the directory propert... more >>
ControlsCollection
Posted by Nick Stansbury at 3/3/2005 11:43:40 AM
Hi,
I've observed some weirdness with the ControlsCollection - do people
think this behaviour makes sense?
I populate a list, comprised of list-items which are user controls at
run time - because they are not tracked by the viewstate I manually "cache"
the controls collection of th... more >>
Datagrid
Posted by Tanya at 3/3/2005 11:39:33 AM
I want to limit the number of row displayed.
How can you display only the top 5 rows from the datagrid ?
Thanks,
Tanya... more >>
Send PDF File to client
Posted by Olivier Matrot at 3/3/2005 11:30:54 AM
Hello,
I'm successfully sending a PDF file stored in a database to the client.
My problem is that in Acrobat, when you choose to save a copy, the default
file name is the aspx file name.
Note that I'm not using :
Response.AppendHeader("Content-Disposition", "attachment;filename=a.pdf");
Becau... more >>
Call a Web Page from Windows Service
Posted by Meena Desai at 3/3/2005 11:30:16 AM
Hi,
Can I call a web page of my site from my Windows Service? How?
Thanks in advance.
Meena
... more >>
DataSet Merge?
Posted by Joey Lee at 3/3/2005 11:25:59 AM
Hi,
I am confused as what the DataSet Merge() function does.
Currently I have two datatable which was selected from different table in
mssql.
Now with both different datatable. there are unique keys which determine the
the relationship.
Ex
Table 1 Name - Employer
Fields - id, nam... more >>
Page Expiration
Posted by Nitin at 3/3/2005 10:39:40 AM
When the user logs out from my user page I don't want him to be able to come
bak to that page by pressing the 'Back' button of the browser.
i use this code in the page_load event
'
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
'
It doesn't se... more >>
Export Spreadsheet
Posted by chuckdfoster at 3/3/2005 10:29:55 AM
I have an ASP.NET page with a datagrid (dgDepts) on it. This page is on our
intranet. DgDepts gets its data from a view on a MS SQL Server. I need to
export the contents of dgDepts to an MS Excel spreadsheet in a network
folder. Does anyone have any advice on how to do this? I don't even kn... more >>
Datagrid Buttom Column
Posted by Joana at 3/3/2005 10:27:30 AM
How do I make my ButtonColumn(In my DataGrid) to ResponseRedirect to another
aspx.page when the user click on the button. I also want send with a id for
the row.
For eksample:
******************************************************************
Private Sub DataGrid_kurs_SelectedIndexChange... more >>
Width/Height for ImageButton not working
Posted by tshad at 3/3/2005 9:52:01 AM
I have the following:
<asp:ImageButton ID="UpButton" text="Move Up" visible=false
runat="server" ImageUrl="../images/arrowUp.gif" Width="16px" Height="16px"
CommandName="Up" OnClick="moveRowUp" AlternateText="^"/><br>
Which is supposed to be valid.
I am trying to make the bu... more >>
scoll down a page to a certain position when reload the page
Posted by Symphony at 3/3/2005 9:49:01 AM
Hi, all:
I am using ie6 and vb.net developing the web site.
on one .aspx page , we have several radio buttons( we did not use radio
button list), only one of these button can be seleted. so I uesed on button
checked change event to contro all those buttons.( these button have set to
be a... more >>
Modifying a cell on the datagrid control - Please help !!!
Posted by bienwell at 3/3/2005 9:38:24 AM
Hi all,
I have a datagrid control declared as below:
<asp:DataGrid id="DGrid_Carrier" runat="server"
OnItemDataBound="DGrid_ItemDataBound" Width="353px" Font-Size="Smaller"
Font-Names="Arial" CellSpacing="1" CellPadding="3" EnableViewState="False"
AutoGenerateColumns="False">
<Altern... more >>
ASPNET Problem
Posted by Peanut at 3/3/2005 9:37:10 AM
I have used Belarc Advisor to run a PC Audit of my computer. According to
this audit , I have three disabled accounts in ASPNET: Guest, Help Assistant,
SUPPORT-388945a0. Under Users is the notation "never' on all three.
I am at a total loss as to what to do. All my searching on Microsoft has
... more >>
Permission Problem writing to Disk in Asp.NET application
Posted by Lars Netzel at 3/3/2005 9:33:48 AM
Here's what I need to do:
Due to a bug in Crystal Reports ExportToStream() method I can't stream a
Crystal Reports directly to the client as PDF and I must must use the
Export() and put the the PDF on disk first and stream to the client. That's
just how it is.
Question:
So I need to let t... more >>
SMTP throws exception
Posted by Ed Chiu at 3/3/2005 8:49:04 AM
Hello,
I have an ASP page which was working fine and broke all of a sudden. It uses
SMTPMail to send out email, here is some code snippet:
mailObj.From = EmailFrom
mailObj.To = EMailTO
If (Len(Trim(EMailCc)) > 0) Then
mailObj.Cc = EMailC... more >>
The use of threads in a ASP.NET app.
Posted by mareal at 3/3/2005 8:27:04 AM
I am trying to write a basic load balancer (in our web service) solution. The
purpose of this load balancer is to keep an array updated with server status.
We have several servers that can be accessed in order to retrieve information.
From within the “Application_Start†(Global.asax), I c... more >>
ASCX Deployment Question
Posted by ChrisB at 3/3/2005 8:05:52 AM
Hi - I'm just trying to figure out what would be involved with
deploying a simple HTML update to an ASCX file.
Where there were no changes to the code behind (compiled code), to
deploy this to another environment, would we need to do a full
deployment of everything in the web project or can we... more >>
Outlook Web Access- Push Technology
Posted by paul at 3/3/2005 7:39:08 AM
I'd like to replicate the push technology of Microsoft OutLook Web where when
a new email is sent to the logged in user a temporary window pops up with the
text 'You have new mail'. The same text also appears in the bottom left bar
of the application.
I'm more interested in the actual tech... more >>
Web Forum
Posted by Marek Krzeminski at 3/3/2005 7:34:01 AM
I would like to create a web forum for my website, where people can come and
post/read messages.
I'd like to use Asp.NET to do this.
Does anyone know of sample code or a dev. kit that I can look at to start.
Maybe there already exists a free forum that I can modify to suit my needs.
Hel... more >>
Read Request.Form Variables in ASP.NET?
Posted by Brian Ciarcia at 3/3/2005 7:32:31 AM
I have a form that uses panels to show and hide a group of questions.
These questions are plain html radio buttons... I need to be able to
submit the form and get the values.. Everything I try doesn't work..
once I move the radio buttons outside the panels, it works fine. Anyone
have any sugge... more >>
can this be done,
Posted by Mike at 3/3/2005 7:23:07 AM
I have a web app were I'm keeping history on the progress of a request. I
have a list box that is going to allow the developer or manager enter in
comments.
My question is:
1. How can i show data from the database and also allow them to enter data
in the listbox?
2. I have code to get the ... more >>
Custom .NET Control Is Disabled In ToolBox
Posted by Vadim at 3/3/2005 6:42:38 AM
I have downloaded Custom Control (Multi-Column DropDown With
AutoComplete) from the web.
In the sample I downloaded (VB.NET application) it works
perfectly.
I tried to put the same control to the ASP.NET application by adding the
custom control's project into my solution and then added refe... more >>
a twilight zone moment
Posted by jhcorey NO[at]SPAM yahoo.com at 3/3/2005 6:19:51 AM
This morning I opened a project in VS that I hadn't touched for months.
There's many tabs at the top representing open files.
Among them are two that look very similar:
myCtrl.ascx.vb:1
myCtrl.ascx.vb:2
I'd neven seen this situation before. There's only one myCtrl.ascx.vb
file.
When I tr... more >>
Reuse control
Posted by DKode at 3/3/2005 4:57:23 AM
Hello,
I have created a set of classes and controls that I re-use on almost
every project I use for my company.
It performs the following things:
It has 3 web controls for (loginControl, loggedOut, loggedIn)
loginControl is added to a page and then the appropriate loggedOut or
loggedIn i... more >>
Authentication OnClick="Button_Click" Event problem
Posted by I am Sam at 3/3/2005 4:19:03 AM
Please help. I'm dying here and pulling out the last few remaining elements
of my hair over this.
I have built a form that will identify and authenticate users. I keep
getting the following error with the Form:
Compiler Error Message: CS0122:
'Sonar3.Controls.LoginControl.Button_Click(... more >>
ASP.Net / C# / Visual Studio.Net Accessing Code Behind Methods and Properties from the Designer
Posted by luminousc NO[at]SPAM yahoo.com at 3/3/2005 2:58:24 AM
I'm getting my feet wet learning C# and .net from a VBScript
background. I have built a small application that uses custom 'info'
objects, each of which contains a single record from a SQL database. I
have bound an array of these objects to a datagrid and have been
trying to work within the limi... more >>
|