Hi,
I have the following code where there is some client side VBScript that
does something and needs to pass a variable back to the ASP.NET page.
When the page is updated through a postback, the information is lost.
What am I doing wrong?
After obtaining the variable, I assign it back ...
more >>
Alignment of Controls(Header & Footer) on Web Form
Posted by Saket Mundra at 4/15/2005 12:42:05 PM
I have a webform in which i have used Image Control for displaying Header &
footer. I have noticed that when i open the same webform in differnet IE
windows having different settings for toolbars, status bar and Text, the
alignment of pictures and text in my page differs. I want that Whatever ...
more >>
Problem exporting datagrid with numeric values to Excel
Posted by NancyA at 4/15/2005 12:23:03 PM
I am using the following code to write data from a datagrid to an Excel file:
Dim tw As New System.IO.StringWriter
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
dg.RenderControl(hw)
Response.ContentType = "application/vnd.ms-excel"
Response.C...
more >>
asp.net
Posted by dave at 4/15/2005 12:00:03 PM
I am just learning to create web apps with asp.net. However, when I go to
create a new asp app, it says that it can't find the URL/server at the given
address. It then goes on to say that I need IIS (Internet Information
Services) installed on my machine. How do I go about getting IIS?
I...
more >>
Resource protected by Form based aythetication
Posted by david at 4/15/2005 11:59:02 AM
I can not figure out what is the problem that I can protect ASP.NEt form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in a
subfolder of Demo, named images. I implement Role based form authentication.
When I ac...
more >>
Mail Attachments
Posted by Andrew Robinson at 4/15/2005 11:52:51 AM
Using SmtpMail and MailMessage, is it possible to create an attachment
without writing out a physical file?
The data that I need to attach is pure text, but I would like to generate my
email and attachment dynamically all in memory.
Thanks,
-Andrew
...
more >>
Fullscreen Mode
Posted by John Bankhead at 4/15/2005 11:47:30 AM
Is there a way to detect if the browser is in full screen mode? I see
several posts about how to set fullscreen mode and how it cant be done, but
nothing about how to detect it.
--
John Bankhead...
more >>
using RegularExpressionValidator and RequiredFieldValidator together????
Posted by Brian at 4/15/2005 11:35:42 AM
I need to use both of these to validate a field on a form. I have both
of them side by side (RFV then REV). When the first one gets
triggered, it looks fine, but when the 2nd one gets triggered, there is
a huge space. Basically, it looks like even though the first validator
isnt being trigger...
more >>
ASP.NET & XML
Posted by Scott Schluer at 4/15/2005 11:31:00 AM
Hello,
Assuming I generate an XML string using ASP.NET, how do I push that XML to a
remote site (i.e. http://www.somesite.com/register_user.php)?
Scott
...
more >>
How to get path of root web site when app is two levels deep?
Posted by John Dalberg at 4/15/2005 11:18:13 AM
I have an asp.net app that is in a folder which is two levels under the
website root folder. The website has a login.aspx which is in the root
folder.
How do I get the relative path to the web site root folder (not the curent
app folder)? A generic one that works no matter how deep the folde...
more >>
from bitmap to stream?
Posted by creepwood NO[at]SPAM gmail.com at 4/15/2005 11:02:06 AM
I'm trying to load and image into a DB and alongside the image also a
thumbnailed version of the image, but somewhere in my code, the stream
doesn't take the thumbnail data. When I just change toe bitmap.save()
to a file instead of a stream it works just fine.
Dim bm As Bitmap = Syst...
more >>
set selectedvalue on dropdown in datagrid
Posted by Kurt Schroeder at 4/15/2005 11:00:03 AM
I have a datagrid that includes a dropdown in an edit template. It creates
ok, but i'm not sure how to set the selectedvalue based on the table in the
dataset.
given that the dataset DsSubTypes1 what is the best way to get the current
value. If it can be taken from the datagrid i'd like to k...
more >>
image as form background
Posted by Carlos at 4/15/2005 10:09:37 AM
Hi all,
just wanted to know if an image can be used as the background
for a form, and what is the technique to do it.
Thanks,
Carlos
...
more >>
protected and private
Posted by yurps at 4/15/2005 9:46:55 AM
what is the difference between class members which are marked with
these....?
I wonder because I have a namespace with a few different classes...
I want to use a method from another class...currently it only works
with public...but that means anybody can use this method and I don't
want that....
more >>
Start a Program from an ASP Page?
Posted by Charles A. Lackman at 4/15/2005 9:32:19 AM
Hello,
Is there a way to start a program on the client computer from an asp page?
I.E. The user clicks a button, and word starts up. (of course if they have
word on their comp.)
Thanks,
Chuck
...
more >>
APS.NET, IIS cannot connect to SQL Server box
Posted by Chris Lane at 4/15/2005 9:27:02 AM
Hi,
I am using the following connection string format in an ASP.NET 1.1
application to attempt to connect to a SQL Server on another machine.
Data Source=ServerName;Initial Catalog=DBName;User
ID=username;password=pwd;persist security info=True;
I am testing this asp.net app. from my lo...
more >>
Classic ASP Problem in VS.Net 2005
Posted by Corey Gaspard at 4/15/2005 7:52:09 AM
I'm working with a web site that has both ASP and ASP.Net.
When I open the web site with 2005 and try to edit classic ASP files, I'm
having problems getting VS to recognize the classic ASP is really vbscript
and now C#.
Here is an example of the problem.
File1.asp includes File2.asp usi...
more >>
role based security and
Posted by david at 4/15/2005 7:45:02 AM
I have the following questions to ask.
For example, there are two roles, A and B to grant to users UA and UB
respectively.
UB in not in role A and UA is not in role B.
A can access to Apage and B to Bpage by typing their passwords, resp..
However, when A has accessed Apage and know the URL o...
more >>
HTTP Post Authentication
Posted by Chris Fink at 4/15/2005 7:40:02 AM
Looking for some general design recommendations on an authentication scheme
for B2B transactions inbound via an HTTP Post Listener ASPX page that reads
the binary stream from the request body. I would like to add an
authentication process that validates the incoming transaction prior to
pro...
more >>
Export datagrid to excel sheets
Posted by VK at 4/15/2005 7:17:17 AM
Hey,
I have some nested datagrids, which I would like to
export to a excel. Exporting is not a problem - however I
would like to export the nested data into different sheets
on the same excel page. Is that possible. Basically I just
need to know how to create new sheets in excel.
T...
more >>
I need some help here
Posted by Chris at 4/15/2005 5:35:02 AM
Hi,
I am storing dates in sql server in this format
2005-04-13 22:22:16.353
My asp.net app is passing the date as string like this 4/13/2005
to the foll sp
create proc test(
@date varchar(11))
as
begin
select name from table
where
LEFT( CONVERT(varchar, DateEnt, 120), 1...
more >>
Setting Focus to a Control - Web
Posted by Glenn T. Kitchen at 4/15/2005 5:21:00 AM
Hello All,
Does anyone know how to set the focus to a textbox control on Page_Load?
Thank you,
Glenn
...
more >>
Dataset - determine if no records are returned
Posted by Sandy at 4/15/2005 5:10:01 AM
Hello -
I have a button that when clicked displays a dataset in a datagrid. I need
code to simply display a label instead of the datagrid if no rows are
returned.
Is there a simple way to put this in an If statement or do I have to
establish another connection and use Count to be able t...
more >>
Newbie question: migrating "global variables" from ASP to ASP.NET
Posted by Andreas Hofmann at 4/15/2005 4:38:02 AM
Background:
We've been using ASP to power our companys intranet ever since around 1998,
and over time we've developed quite a lot of separate web-applications for
different problems. Lately our IT has migrated to Windows 2003 Server and IIS
6.0, and all we've done so far is copy our old ASP f...
more >>
Style Sheet Asp.Net
Posted by csgraham74 NO[at]SPAM hotmail.com at 4/15/2005 1:14:18 AM
I there i was wondering if someone could help me.
i have created a style sheet in asp.net and dragged it onto my screen
thus creating my lines of code in the html. I do not however seem to
have my style available in my style drop down list.
what is the issue ??
thanks in advance...
more >>
Change mouse pointer
Posted by oscar.redondo NO[at]SPAM gmail.com at 4/15/2005 12:53:11 AM
Hello!!!!
Does anyone know how to change the mouse cursor (from "auto" to "wait"
for exemple) in the server-side of our ASP.NET page?
Thanks!!!!...
more >>
Random "The IListSource does not contain any datasources" and more (Crashing a live site at random, twice a week or so)
Posted by Lars-Erik Aabech at 4/15/2005 12:00:00 AM
Hi!
We've got an ASP.NET application that runs swell on development PC's and one
live production server. Another prod. server though crashes a couple of
times a week. Either something that should be bound reports that column X
isn't found, or that the IListSource does not contain any dataso...
more >>
ArrayList of my objects
Posted by Neven Klofutar at 4/15/2005 12:00:00 AM
Hi,
I'm trying to use Contains method, but I have some problems ...
// create SqlDataReader
SqlDataReader dr = ....
// create collection of myObjects
MyCollection myObjectsColl = new MyCollection();
while (dr.Read()) {
// Creating myObject
// Sometimes I create myObject u...
more >>
Performance
Posted by simon at 4/15/2005 12:00:00 AM
I have asp.net 1.0 application. It runs on powerfull server but it's still
very slow.
It uses also sql server in background.
I would like to set computer and windows 2003 server that my application has
all resources and is high priority aplication.
Any idea? What setting can speed up my app...
more >>
PHP question
Posted by Arsalan at 4/15/2005 12:00:00 AM
I'm sorry, i know this is not the right place to post it, but as an ASP.NET
guy, i have no clue how to run PHP under windows XP ?
What web server do i need, how do i configure IIS to run it.
Any link should be helpful
Thanks
...
more >>
Need help with a regular expression!
Posted by David Hearn at 4/15/2005 12:00:00 AM
I am trying to use RegEx.Match to locate some text in an HTML file. I am
trying to find everything between <map> files so that I can grab the
coordinates. The map files looks like this:
<map name="Map4">
<area shape="rect" coords="160,158,443,163" href="#">
<area shape="rect" coords="16...
more >>
CGI Error w/No Touch Deployment Application
Posted by Anil Kripalani at 4/15/2005 12:00:00 AM
I have a .NET Windows Forms application that I launch from a web browser.
The user clicks an HTTP link from an ASP.NET page that launches a .NET exe
(All .NET 1.1). The application runs fine so long as I change the IIS
virtual root "Execute Permissions" to "Scripts and Executables". Under
...
more >>
cdosys
Posted by Nitin at 4/15/2005 12:00:00 AM
how can I send email using cdosys in asp.net
Regards
Nitin
...
more >>
Are satellite assemblies only for ressource ?
Posted by Olivier Matrot at 4/15/2005 12:00:00 AM
I would like to broke up an ASP.NET project in several assemblies. The goal
is to link aspx files with a specific assembly. This way you could put
functionnality in various DLL and choose to distribute or not the peaces of
a web site.
TIA.
...
more >>
H1 and Asp:Textbox
Posted by Gonçalo Boléo at 4/15/2005 12:00:00 AM
I have a textbox control inside an H1 tag.
It's possible to make the textbox as its text like H1?
thanks,
Goncalo Boleo
...
more >>
Access files via a file share
Posted by Roger Twomey at 4/15/2005 12:00:00 AM
I have two servers;
Windows 2000 IIS=20
Windows NT 4 [Interactive Voice Response... Telephone system]
I have a web application which needs to be able to access the voice =
files on the IVR system. Here is what I have tried:
Create an account on both machines called NB3. Passwords are the ...
more >>
How to get info about the site visited before my site?
Posted by jensen bredal at 4/15/2005 12:00:00 AM
Hello,
I think i have once seen how to do this, but now when i need it, i do not
remenber how to get this info.
I beleived it was a property of HttpContext but not so sure anymore.
Many thanks in advance
JB
...
more >>
Response.Redirect after Response.Flush
Posted by Glen Wilkin via DotNetMonster.com at 4/15/2005 12:00:00 AM
Is there a way I can call Response.Redirect after I've done a
Response.Flush?
I send some html to load an animated gif that plays whilst my page loads,
it has some extensive database calls to process. However, when I try to
redirect to my error handling page, if there is an error, I get a 'Canno...
more >>
quickstarts with Visual Studio 2005 February CTP -- Professional Edition (English) ?
Posted by jmd at 4/15/2005 12:00:00 AM
Hello.
I have downloaded and installed Visual Studio 2005 February CTP -- =
Professional Edition (English) from msdn.
All works fine (with a few bugs) except the Quickstarts.
The Quickstarts install without problems.
I have 2 questions :
1. When I launch the Quickstarts, I only see :
...
more >>
Typed dataset
Posted by Trond at 4/15/2005 12:00:00 AM
I have a class MessageController that has a method GetMessagesDataset that
connects to a database SPROC. When done it returns a dataset.
Then in my ASP.NET for i do this:
msgController = new MessagesController();
DataSet dsMessages = new Dataset();
dsMessages = msgController.GetMessages...
more >>
GridView Rows collection Refresh within an event
Posted by Shafia at 4/15/2005 12:00:00 AM
Hi,
I need to refresh the Rows collection of my GridView within a tree event
OnCheckChanged. I call the following for that
void OnCheckChanged(....)
{
...................
ObjectDataSource1.Select();
GridView1.DataSourceID = "ObjectDataSource1";
...................
more >>
SQLHelper & sorting
Posted by Goober at 4/15/2005 12:00:00 AM
I have an application that I need to sort the results of a datagrid,
when a user clicks on a particular column.
The application uses SQLHelper in it. Is there a way to call the stored
procedure and sort the results on it, using SQL Helper? I can do this
by putting the code in the app, and...
more >>
How to kill all sessions when working with ASP.NET Session State Service?
Posted by Andreas Klemt at 4/15/2005 12:00:00 AM
Hello,
how can I kill all running sessions when working
with ASP.NET Session State Service?
Is there any VB.NET code for that?
Thanks for any help in advance!
Andreas
...
more >>
Smtp Fields
Posted by Nitin at 4/15/2005 12:00:00 AM
How can I specify the SMTP server, username and password in a mailmessage
in asp.net
regards,
nitin
...
more >>
file permission assignment
Posted by William Cheung at 4/15/2005 12:00:00 AM
Hi,
my web page is design for manage some file these on such WebServer, what
permission should i assig for these file?
thx.
William
...
more >>