all groups > asp.net > july 2003 > threads for wednesday july 23
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
Visual Studio deleting my delegates!
Posted by Gandalf at 7/23/2003 11:08:54 PM
I use VS.NET 2003 and C# to write ASP.NET pages. VS keeps deleting the
delegates I manually code into the InitializeComponent() method. Ones that
it adds are ok. Thing is, in some cases there's no way around coding your
own, such as when a webcontrol is inside another webcontrol and you can't
ac... more >>
Proxy Generator not listing?!? (in Dreamweaver MX)
Posted by prince -=nore=- at 7/23/2003 11:08:01 PM
I'm creating an ASP.NET web service in Dreamweaver MX.
I'm trying to use the Web Services option under the Components tab in the
Application window.
When I click on "Add Using WSDL" the proxy generator is listed as
"-------------". C# and VB.NET aren't options.
I have IIS and the latest .NET... more >>
Multiple grids - how to update layout position
Posted by James G. Beldock at 7/23/2003 10:31:06 PM
I must be missing something simple: I've got several grids on a single
page. Those grids can have a variable numbers of lines. But if they expand
or contract, I can't figure out how to move the other grids so they don't
either overlap (when the grid above has too many lines) or leave big blank... more >>
Programmatically Selecting Item in Radio Button List
Posted by John.Criswell NO[at]SPAM jdccons.com at 7/23/2003 10:23:30 PM
I have created a radio button list programmatically.
C#
SqlConnection conn = new SqlConnection("data source=localhost;
integrated security=true; initial catalog=pubs");
SqlCommand cmdAuthors = new SqlCommand("select * from Authors", conn);
SqlDataReader dr;
dr = cmdAuthors.ExecuteReader();
... more >>
Please tell me I'm crazy!!! - Reload page does not update textbox values.
Posted by mszanto NO[at]SPAM hotmail.com at 7/23/2003 9:50:14 PM
Scenario:
1. I dynamically generate a form (using server-side code) with
numerous text boxes that are populated with values from a database.
2. A user enters text all in lower case then clicks save which submits
the page to the server.
3. In the server-side code, I convert the text to all... more >>
Abstract Base Page / UserControl
Posted by Murray Gill at 7/23/2003 9:11:03 PM
Our current solution has a number of ASP.NET pages with very similar =
functionality. We would like to move the common functions into a base =
class that inherits from System.Web.UI.Page, and then force the child =
classes to override certain functions of that class.
The best way to do this i... more >>
Put data to DataGrid in memory
Posted by Sara T. at 7/23/2003 8:52:25 PM
Can I add some data to data grid control on the fly by not connecting to
database ?
I mean I need to put data to data grid control on the memory, I need to use
it ro manage page such as next and previous.
Any part of some code will be appreicated.
... more >>
Creating Form Controls at Run-Time
Posted by Tarang Deshpande at 7/23/2003 8:35:08 PM
I would like to be able to create controls at run-time
rather than at design time. Is there a function that I
can override so that I can output the appropriate html
code between when the <body> and </body> tags are outputed.
I don't have to have web form controls but could just be
plain ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Saving a file over a network
Posted by Von Shean at 7/23/2003 6:02:41 PM
In a aspx page i want to save a file on other system. I have no idea how to
do it.
I tried to map drive but access was denied.
Can i provide security details when i open a file???
Or can i allow a user on my machine to be allowed on another machine??
... more >>
All pages in ASP.NET application load twice
Posted by Krzysztof Rozmus at 7/23/2003 5:58:18 PM
Hi,
suddenly all pages in my ASP.NET application started to load twice,
any idea what's going on ?
Chris
PS: I have AutoEventWireup="false" on all pages
... more >>
Client-Side Validation of asp:TextBox with Javascript
Posted by Matthew Wieder at 7/23/2003 5:38:50 PM
Hi - I'm trying to do client-side validation of the text in a Asp.Net
textbox control using javascript. My page has the following:
<form id="Form1" method="post" runat="server" onsubmit="return
validateName(this);">
and
<script language="JavaScript"><!--
function validateName(theForm... more >>
Strange behavior with server web controls
Posted by news.public.microsoft.com at 7/23/2003 5:38:29 PM
Hi,
I don't know if anybody else experienced this, but sometimes, I can't set
breakpoints the event code of a button on a form for some reason. The code
still executes, but I can't stop the execution with a breakpoint. While
compiling, a question mark appears in the red dot on the left side ... more >>
Do I need to Convert with Convert.ToInt32(session("myNumber")) ?
Posted by Andreas Klemt at 7/23/2003 4:52:05 PM
Hello,
I have this
session("myNumber") = 888
Dim intNumber As Integer
a) intNumber = session("myNumber")
b) intNumber = Convert.ToInt32(session("myNumber"))
What has better performance and what should I do?
Thanks,
Andreas
... more >>
Display text in text box - should be simple, doesn't work
Posted by Jim Owen at 7/23/2003 4:14:54 PM
This is probably dumb, but why doesn't this work? The control doesn't get
filled with the text, though I debug and vControl.Text does indeed show as
having the right text in it. It's being called from a SelectionChanged event
in a calendar.
System.Web.UI.WebControls.TextBox vControl =
(System... more >>
encrypting query string
Posted by Onur Bozkurt at 7/23/2003 4:05:15 PM
I'am sending some data by the querystring. But I don't want it to be
seen exactly because of security reasons. Is there a way to encrypt it
and later decrypt when reading the querystring...?
I would be very happy with some sample code.
... more >>
Cache with Callback problems... threading?
Posted by Brian Vallelunga at 7/23/2003 3:30:51 PM
I'm having a problem using the Cache object with asp.net. Here is what I
have:
1) I put something in cache and set its callback method.
2) The object times out after X minutes and calls the callback method
specified.
3) The callback method gets the newest version of the item from the db and
th... more >>
Trying to hide a datatable column from my datagrid... please help
Posted by jonnylbluejeans at 7/23/2003 2:58:26 PM
I've read everywhere to use the following:
objDS.Tables("Results").Columns(0).ColumnMapping = MappingType.Hidden
objDS.AcceptChanges()
dgNotes.DataSource = objDS.Tables("Results")
dgNotes.DataBind()
But, the column still shows? Can anyone shed some light on this?
... more >>
Throwing Exception in a composite control
Posted by klj_mcsd NO[at]SPAM hotmail.com at 7/23/2003 2:43:45 PM
This is kind of hard to explain but I have a [composite control] The
controls are created with CreateChildControls(). Now let say I click a
button and an error occurs in the control. If I throw it up it goes
back to the web form. where do I catch the exception at?
Example
Webfor... more >>
Tab to Enter
Posted by Ruby at 7/23/2003 2:30:05 PM
Hi All,
I want to change default tab key with return (enter) key when move from one
text box into another text box,
is this possible in web form, and how?
Thank All
Ruby
... more >>
Creating a "translate" function in ASP.NET, streaming in HTML from the web?
Posted by kennethfine at 7/23/2003 2:29:23 PM
I'm transitioning from ASP development, please excuse
these basic questions. One thing I did often in ASP was
create a "translate" function to render one string to
another, strip out excess carriage returns, etc.
I want to do the same thing in ASP.NET. I have a mail
component that will a... more >>
Tags Ok In Text of Validator Control?
Posted by John Saunders at 7/23/2003 2:13:27 PM
Is this ok? I haven't seen any examples of it, but it looks like it should
work:
<asp:requiredfieldvalidator id="valreqUserName" runat="server"
controltovalidate="txtUserName"
errormessage="Please enter the user name">
<span title="Please enter the user name">
<img ... more >>
Print rendered .aspx page to server's printer
Posted by robin NO[at]SPAM robindindayal.com at 7/23/2003 2:07:48 PM
Does anyone know how I can print a fully rendered .aspx to the
server's printer? I know that, if I wanted to print to the client's
printer it would be easy (ie. use javascript's window.print()).
However, I need to print to the server's printer. I need to print the
fully rendered .aspx page f... more >>
Locking File
Posted by Ron Vecchi at 7/23/2003 1:59:17 PM
Hello,
I am opening a file like below:
FileStream fs =
File.Open(Server.MapPath("../Data/REFCOD.txt"),FileMode.Open,FileAccess.Writ
e,FileShare.None);
---------------------------------------------------------
I do not want anyone to access the file while it is opened.
--------------------... more >>
Stop Debugging doesn't stop in ASP.NET
Posted by Matt Theule at 7/23/2003 1:58:32 PM
While stepping through an ASP.NET project, I found that data was being
inserted into my database even though I was not stepping through the
code that inserted the data.
I have a single page with inline code. The page has a Datagrid, a
textbox and a button. When the button is clicked, the val... more >>
html image percentage issue
Posted by chrisp NO[at]SPAM webpositive.com at 7/23/2003 1:29:33 PM
I am unable display an image by percent. No matter what method I try,
I receive the following error.
Input string was not in the correct format.
No matter what method I use, I cannot get this to show up in a percent
format. What am I missing here.
currentStatusImage.Src = "../builds/ima... more >>
IE 5.0 make me crazy...
Posted by Herve MAILLARD at 7/23/2003 1:18:28 PM
Hi,
I have an aspx page with a Graph (teechart) and a button (export).
The page is automatically updated by <META HTTP-EQUIV="Refresh"
content='20;url='>
When I click on the Export button, I execute the following code :
this.WebChart1.Chart.Export.Data.Excel.Save(@"c:\Inetpub\ftproot\... more >>
Adding to a Bound DataGrid: What the @#$!% am I doing wrong!
Posted by Aaron Ackerman at 7/23/2003 12:40:21 PM
I cannot a row to this bound DataGrid to SAVE MY LIFE! I have tried
everything and I am at a loss. The using goes into add mode with the add
button adds his data then updates with the update button, seems simple.
I am using ALL visual controls (supposedly to simplify things. If I was not
using t... more >>
SelectSingeNode("xpath")...how to test if null?
Posted by Kathy Burke at 7/23/2003 12:18:43 PM
Hi, I'm using
Dim xDoc as XmlDocument
Dim xElem As xmlElement = xDoc("xpath")
I then assign a variable to a value from the result node:
Dim r As String = xElem.Attributes.GetNamedItem("name").Value
This works fine unless there is no node returned, then I get an "object
reference not s... more >>
Deployment Issues .. Runtime Error
Posted by Sean at 7/23/2003 12:03:04 PM
Hi,=20
I have my application running off my localhost and just transfered it to =
the production server. And when i ran my application, it came up with a =
Runtime Error.=20
The server is an IIS and has SDK already installed.
what are the issues that i have to deal with here
Any inputs... more >>
System.Runtime.InteropServices.COMException - Catastrophic Exception
Posted by ritu_68 NO[at]SPAM yahoo.com at 7/23/2003 12:02:35 PM
I'm trying to generate excel sheet using SpeedGen COM object.
I'm getting 'Catastrophic exception,Error code : 2147418113' when i
try to access methods and properties of XLSpeedGen class in
C#.Possible reasons as told on the forums are memory leaks and open
resources.I've closed all the database... more >>
Documentation of Objects
Posted by Mike Morse at 7/23/2003 11:51:57 AM
Dies anyone know of a good way to document your classes.
I currently use the VB commenter for VS.net 2003 but that
does not provide any intellisence functionality for my
objects like description and such. Also when you select
tools > build comment web pages... I find these web pages
to b... more >>
Advise (Best Practice) for a multi-part web form
Posted by Mako at 7/23/2003 11:22:05 AM
Hi,
I am looking for some advice on how to split up (multi-part) web forms. The
first part of the form would be consistent for all users but depending on
what selection they choose from a dropdown (around 6 selections or so) will
determine what the next part of the form will be. I was think... more >>
Session information swapping between sessions
Posted by Dan at 7/23/2003 11:09:37 AM
I have a weird problem that's putting both my job and my company in
jeopardy, and I hope you folks can help.
We have an application that we're slowly porting from classic asp to
asp.net -- portions are currently in both techs. Unfortunately, each
application uses session variables pretty frequ... more >>
problem with button ASPX (running javascript) since I have added a control validator.
Posted by Herve MAILLARD at 7/23/2003 11:03:44 AM
Hi,
J'ai un bouton ASPX qui doit déclencher un script java.
I have an ASPX button running a javascript.
To do this, I have added in the codebehind :
this.Btn_Debut.Attributes.Add("onclick","javascript:DatePicker('Selection_Ar
chives','Date_Debut')");
So far, no problem with this...
Th... more >>
Baby JavaScript question
Posted by Jim Owen at 7/23/2003 10:46:51 AM
I never ever need to use Javascript, but in this case I think I do. All I
want is for a Calendar control to appear when the user clicks a button.
Being as this isn't worth a trip to the server, I want to add some JS to
make this happen. What is the script for that? I tried:
MyButton.Attributes... more >>
IE WebControls
Posted by Riken at 7/23/2003 10:43:41 AM
Hi,
Downloaded IEWebControls.exe application & run on local =
machine
O/S: Win Advance Server 2000
Framework: 1.1
Notes:
* During installation its Creating folder on C: i.e C:\Program Files\IE =
Web Controls
* I search My Computer for 'Microsoft.Web.UI.WebControls' assembly b... more >>
<ASP:IMAGE>
Posted by Chris Fink at 7/23/2003 10:33:59 AM
Hello,
Does anyone know of a way to handle broken href image tags either by using
the html img tag or the asp:image server control? For example, if my src
attribute is broken, I would like to display an alternate image, ie one that
blends in with the background instead of the standard eye sor... more >>
FTP in VB.Net
Posted by Paul at 7/23/2003 10:21:22 AM
Hi,
I need to download, upload delete etc files on a server
using FTP in VB.Net.
I also need a timer that will run this every hour.
Does anyone know of any example Source Code that shows
this?
Thanks,
Paul.... more >>
Asp version 1.1 and VS.net 2003
Posted by ian at 7/23/2003 9:37:22 AM
Hi,
I've seen similar posts to this question but cannot find a solution for my
Server.
I'm trying to open a new web project in VS.NET 2003 but I get the error
"Visual Studio .Net has detected that the specified Web Server is not
running ASP.NET version 1.1. You will be unable to run ASP.NET... more >>
Calling a C program from Vb.Net
Posted by Grace McMahon at 7/23/2003 9:34:33 AM
Hi,
I need to call a C procedure from my aspx.vb class. Can someone please help
me how to do this. The C program sits on a unix machine....please help or
point me in the right direction.
Any help would be greatly appreciated.
Cheers
... more >>
dynamically add controls and validators - always false
Posted by Christian H at 7/23/2003 9:30:38 AM
Based on the content in my database, I need to populate different form
controls and validators, such as textbox, dropdownlist,
requiredfieldvalidators , etc.
Then I need to check if the form has been filled out correctly. If so, I
need to update a database, and do other things.
In order to ... more >>
Session Cookie and HttpWebResponse
Posted by Karsten Grombach at 7/23/2003 9:23:58 AM
Hi,
I'm trying the following:
- Imitate a Logon using a Post with HttpWebRequest on remote Webserver (asp
3.0 page using https)
- On success redirect to the page (encapsuled in an iframe) supplied by the
remote Webserver
I can successfuly logon but when I redirect to the supplied url, the
... more >>
Question about Security
Posted by Jeff Cope at 7/23/2003 8:35:10 AM
I'm going to be writing an asp.net application that certain users have
access to specific pages and others don't. User authorization will be
handled within the application via a login page. My question is, what is a
good approach to use to prevent certain users from accessing a page while
allo... more >>
Move around a picture file dynamically in an asp page.
Posted by eddie wang at 7/23/2003 8:09:10 AM
How to move around a picture file dynamically in an asp page? Any link
to sample code will be great.
Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
CDONTS object missing
Posted by eddie wang at 7/23/2003 8:09:09 AM
The server missing CDONTS object. Where to download?
Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Flash Component
Posted by Ryan Moore at 7/23/2003 8:06:44 AM
Is there a Macromedia Flash toolbaox component avaialable for Visual Studio
..NET?
thnx
... more >>
Updating parent window from popup
Posted by turb0dog NO[at]SPAM hotmail.com at 7/23/2003 7:39:17 AM
Im relatively new, so please be patient with me...
I need to update a parent .aspx screen from a popup and close the
popup. Normally I would use
'window.opener.location.reload(true);self.close();' but i need the
parent window not to reload or else data that the user has already
entered will ... more >>
How to open a batch file (didn't now work)
Posted by Mike John at 7/23/2003 7:15:56 AM
I trying to open a batch file.
I tried the following syntax:
System.Diagnostics.Process.start("c:\mybatchfile.bat")
but ,nothing happen
any reason why
Sincerely yours
Mike John... more >>
PostRequestHandlerExecute event in global.asa
Posted by dglfgauthier NO[at]SPAM yahoo.com at 7/23/2003 6:23:26 AM
I am trying to add some tracking to all of the pages on our site. I
need to be able to access the session object and I want the tracking
to occur after the page has been processed. It looks like the
PostRequestHandlerExecute method is the proper one to use, but it
seems to run twice for each p... more >>
How to run a batch file.
Posted by Mike John at 7/23/2003 5:41:28 AM
I want to run a batch file located on my c drive
file: C:\mybatchfile.bat
sincerely yours
Mike John... more >>
COM+ objet call hangs
Posted by Von Shean at 7/23/2003 5:10:02 AM
I have already posted my problem. but now after some diagnosis i have a
clear question! I use a dll which is in com+. so when i call any function of
that dll from asp.net the call hangs or a deadlock occurs.
Kindly help!
Regards,
... more >>
Forcing image update
Posted by Big Homer at 7/23/2003 4:58:12 AM
I have a page that allows the user to manipulate various data fields, which
in turn cause the server to modify an image that is displayed on the page.
Right now, the server just overwrites the old image with the new one, but
this new image doesn't actually get displayed until I click the "Refresh... more >>
Internet Explorer Vs Netscape
Posted by C at 7/23/2003 4:49:08 AM
Hi,
I am starting to write a web application that will be
viewed in both IE and Netscape.
Does anyone know of any issues I should be aware of from
the start before I start coding?
Thanks,
C ... more >>
Child & Parent forms
Posted by Roland Wolters at 7/23/2003 3:04:00 AM
Hi,
I have parent-form that displays a list of product-details. When the user
clicks on a line a child form opens that displays further details. The user
then can alter these details. On the child-form is a button that the user
uses to update the data in the database. At the click of this... more >>
FTP in .Net?
Posted by C at 7/23/2003 2:32:58 AM
Hi,
Does anyone know what class library I need to use for
FTP'ing files from within ASP.Net
I need to FTP a file to a server and take the file back
down after a period of time.
This whole process will be run every hour so I will need
some timer also.
Maybe someone else has done thi... more >>
Which is faster? Dim dv As New DataView(session("myDataTable")) or CType(session("myDataTable"))
Posted by Andreas Klemt at 7/23/2003 1:59:10 AM
Hello,
let's say my session("myDataTable") is type of DataTable
Now what is faster?
a) Dim dv As New DataView(session("myDataTable"))
b) Dim dv As New DataView(CType(session("myDataTable"), DataTable))
Which should I use and which is better?
Thanks in advance,
Andreas
... more >>
basic question
Posted by Mark Fox at 7/23/2003 12:07:18 AM
Hello,
I've noticed in some sample code that sometimes
people use the @ before a string when concatenating
them. Example:
string filePath = Appl.Request.PhysicalApplicationPath +
@"bin\" + asmname + ".dll";
Why is this done? What is the difference between using
the @ before t... more >>
|