all groups > asp.net > november 2003 > threads for tuesday november 25
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
VB.net GC.Collect(); equivalent
Posted by Do at 11/25/2003 10:38:13 PM
Hi,
GC.Collect(); is for C#. What's the equivalent for VB.net?
Thanks,
Do
... more >>
Session Sharing : ASP and ASP.NET
Posted by Amit S. Jamgade at 11/25/2003 10:07:16 PM
Hi All,
I am trying to share the session between classic ASP and
ASP.Net application. For session sharing I used the
method available on this link:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnaspp/html/ConvertToASPNET.asp
I would like to know if this method works in... more >>
OFF TOPIC: Desarrollador 5 estrellas (4 y 5 estrella)
Posted by Eugenio Serrano at 11/25/2003 9:49:12 PM
Gente: En estos dias se va a comenzar a discutir lo que sera la 4 y 5
estrella y los beneficios para los estrellados, asi como lo que se piensa
hacer para las universidades. Estan todos invitados a participar !!!
http://weblogs.golemproject.com/msdn
--
Saludos,
Eugenio Serrano
NDSoft Consu... more >>
Session_End
Posted by Joseph D. DeJohn at 11/25/2003 9:06:01 PM
I'd like to write to a database at the end of a user's session, but for
some reason the Session_End does not seem to fire. Any ideas?
--
Sincerely,
Joseph D. DeJohn
http://www.geocities.com/cujdd5/
... more >>
Can I use VS.net to debug code in JavaScript (.js) file?
Posted by yma at 11/25/2003 8:47:17 PM
Hi,
Can I use VS.net to debug the code in the JavaScript (.js) file? Thank you.
Chris
... more >>
Security exception problem
Posted by Bruce W...1 at 11/25/2003 7:26:38 PM
I created an RSS aggregating website based on this article:
http://msdn.microsoft.com/asp.net/using/understanding/XML/default.aspx?pull=/library/en-us/dnaspp/html/aspnet-createrssw-aspnet.asp
The website is located here:
http://rss.didah.com/NewsAggregator.htm
Basically, there's a framese... more >>
How to bind a db image column (byte array) to a datagrid column?
Posted by Jim Hammond at 11/25/2003 7:04:41 PM
How can one bind a database image column (the byte array - not the path) to
a datagrid column?
The closest thing I have found so far is this January 2002 statement by Dino
Esposito:
"Likewise, an image column could be adapted to load the bits, and not the
path, of the image directly from a bl... more >>
Opening MS Word from a VB.NET ASP application
Posted by Yohancef Chin at 11/25/2003 6:58:58 PM
Hi,
Being fairly new to .NET I am looking for a way to call MS
Word from an event on a webform, and after the user is
finished save that created document to an SQL Server
database. Has anyone done this? Does it seem possible? I
followed the instructions from a sample on the Microsoft
k... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Dynamically generated page
Posted by Matjaz Zalar at 11/25/2003 6:21:06 PM
Hi,
I have following problem:
1. template content is stored in database string field, for example:
"<HTML><HEAD></HEAD><BODY ID="BODYTAG"></BODY></HTML>
2. page content is also stored in database:
"<div>Hello Problem!!</div>"
3. page.aspx must first load template value ... more >>
Wrong page is debugged
Posted by Daniel at 11/25/2003 6:10:35 PM
Just some really strange and very frustrating things are happening when I
try to debug in ASP.Net. I'll make changes to a aspx.vb page, save it, then
build the ASP.Net project. Then when I attempt to debug it the debugger
shows and tries to step through the old code. If I put a break point in ... more >>
Can't bind image column in datagrid
Posted by Jim Hammond at 11/25/2003 5:58:13 PM
The code below implements two datagrid columns that display images. The
first column is just a test that always displays the same image directly
from a file. The second column pulls the image from the dataset. The
datagrid contains several additional columns that are not seen here because
they a... more >>
web.config protect directory
Posted by Ryan Moore at 11/25/2003 5:56:10 PM
is it possible to protect a single directory within a virtual directory
using that directory's web.config file (for example, the "admin" folder
within a web directory)? If so, how is it done?
thnx
... more >>
disable requiredfieldvalidator when clicking on submit button
Posted by James Brett at 11/25/2003 5:39:31 PM
I have one form on the page but have multiple submit buttons for different
elements. When clicking on a button not associated with the required
elements the validator popup still comes up.
How can I disable requiredfieldvalidator fields when I click on non
associated button?
Cheers
James
... more >>
DataGrid data retreival
Posted by Prigozhin Roman at 11/25/2003 5:34:41 PM
I'm trying to retreive data from DataGrid on my form and update dataset.
Problem is that it returns data without my changes.
((TextBox)e.Item.Cells[0].Controls[0]).Text; returns
unchanged values. Strange..
Here is where I'm calling it from :
private void DataGrid1_UpdateCommand(object source... more >>
Session Question
Posted by Henry Chen at 11/25/2003 5:28:10 PM
Hi,
I have asp.net application that works fine with "InProc". When I change the
web.config to ""SQLServer", some of the pages with the sessions hang. I
think the seesion part in those web pages need change accordingly. But I
don't know how. Can you guys help me on this?
Thanks,
Henry
... more >>
Refresh "other" frame via ASP?
Posted by Bill Cohagan at 11/25/2003 5:03:48 PM
I'm trying out ASP.Net and am currently trying to figure out how to refresh
the contents of one frame based on a button click in another frame. The
button in question is actually a server side control whose associated action
is to add a record to a database table. The "other" frame is displaying ... more >>
Retain position after postback
Posted by simon at 11/25/2003 5:02:58 PM
I have repeater control with id="repeater1"
So I write befor the repeater control anhor tag:
<a name="repeater1"></a>
and this script at the end of the page:
<script runat="server">
location.href="#<%=request.form[_EVENTTARGET]%>";"
</script>
This should retain the position after p... more >>
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection
Posted by Frederik at 11/25/2003 4:28:15 PM
Hi,
First sorry for my english I'm french.
I developped a web app that work good under XPDEVSERVER machine (iis5) =
and SqlServerDevelopper Edition.
I get problem when I moved this app to an other web server (IIS5.0) =
win2000. Actualy, I only have problem to connect with the Database tha... more >>
Calendar popup
Posted by Thierry at 11/25/2003 4:11:28 PM
Hi,
I want to make a calendar popup in ASP.net, but how can I get a selected
date from my popup to the textbox on my webform? I use a Calendar component
in my popup and I can't get the selected date in the textbox on my (main)
webform.
Thanks,
Thierry
... more >>
ASP.NET Virtual Directories (xsl:import)(appSettings) - Help?
Posted by Keith Chadwick at 11/25/2003 3:52:26 PM
I have 3 individual ASP.NET applications that make up the overall web
application. Each of these websites share some common styles, scripts and
xslt files. These are all placed in a single directory structure then in
IIS each .NET application has the virtual directory called shared created.
... more >>
Getting the data from the database
Posted by simon at 11/25/2003 3:28:37 PM
I have for example sql="SELECT articleText FROM articles where articleID=1"
I used to get the text very simple, like this:
articleText=connection.execute(SQL).Fields.Item(0).Value
How can I do the same in asp.net?
Or if I need also the name of article: sql="SELECT articleText,articleName
... more >>
Response filter not writing header information
Posted by Jiho Han at 11/25/2003 3:19:33 PM
I created a module that filters the response stream so that it writes out to
a file as well.
The only problem is that I would also like to capture the header information
but I don't see a way to do this. I only see AddHeader but nothing like
Headers collection or GetHeader or a some kind of swi... more >>
DropDownList SelectedItem Problem
Posted by Ivan at 11/25/2003 3:11:49 PM
Hi,
I have a problem with a page which has about 50 web controls , 12 of the are
DropDownList.
Also, I have a "Continue" button, and on the server code an event sub
btnContinue_Click, where I process the input data.
There is a code like :
Dim MyVariable As Integer
Dim AnOtherVariable As Int... more >>
Do I need to Install ASP.NET 1.1 ??
Posted by Mike at 11/25/2003 2:51:44 PM
I posted this to a general asp newsgroup and was
referred here.....
I have a win2K server that runs my web sites. I need
to use ASP.net on one of my sites. I am just learning
about ASP.net and found that I cannot run ASP.net
formated pages on my server the way that it is.
If I am not mista... more >>
Unable to start debugging on the web server???
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/25/2003 2:42:58 PM
Hi,
I'm using VS .NET 2003 edition and I had built a web
project and I had been using it. But I changed a few
settings(why did I ever do that...:( )
Now I'm unable to run my Web application from VS .NET.
I get the error:
Error while trying to run project. Unable to start
debugging on t... more >>
DataList and attributes
Posted by Steve Klett at 11/25/2003 2:21:33 PM
Hi-
Is there anyone that knows or maybe even a MS person that would like to
discuss workarounds for the DataList not respecting Attributes.Add()
I need to get onMouseOver and onMouseLeave into a DataList, but it is
broken, doesn't work, no supported, etc, etc.
is it possible to derive my ... more >>
Panels -- look icky -- am I missing something?
Posted by Kathy Burke at 11/25/2003 2:21:24 PM
Hi, I've been trying out using panels for groups of visible/invisible
controls, but the controls all squish together on the panel. I haven't
found a way to place the controls where I want them on the panel.
I must be missing something! Please clue me in.
Thanks,
Kathy
*** Sent via Deve... more >>
Web Application Ports
Posted by Jorge Sanchez at 11/25/2003 2:06:25 PM
Hi all
I need help with this, I have my web development server in
DMZ and my workstations are in Corporative Network.
I have to create an develop the web application from my
workstation with Visual Studio .NET 2002.
Could anybody tell me what ports do I need to open?
Best regards.
... more >>
Formatting a label control - still learning.....
Posted by D. Shane Fowlkes at 11/25/2003 1:58:47 PM
I'm trying to use some basic logic (in a goof off test page) so when a
form's data is evaluted, the color of a label **might** be red. The error I
keep getting is:
Compiler Error Message: BC30311: Value of type 'String' cannot be converted
to 'System.Drawing.Color'.
Line 15: MyMessage.Fore... more >>
Question: Copy Project
Posted by VB Programmer at 11/25/2003 1:41:19 PM
I've been using Copy Project to upload only the "necessary" files to the
server.
Question: If I've made just a minor code change and have rebuilt the
project is it really necessary to upload EVERYTHING via Copy Project? There
are so many files.
Thanks.
... more >>
Referencing listbox value error
Posted by ahorwitz NO[at]SPAM colburn.com at 11/25/2003 1:35:42 PM
When I try to reference the lstproducts.selecteditem.value using
autopostback from the lstproducts listbox I get an error? How can I
fix my code to get the selected value from the lstproducts listbox?
Any help will be appreciated.
Sincerely,
Allan
error code:
=========================... more >>
Page Expire
Posted by brian at 11/25/2003 1:35:38 PM
I have a aspx page that takes a number as an input
paramater and searches a directory. The page list the
files found in a directory. I recently added a data
adapter to search our database to display other
information in a datagrid. Now if a hypertext file link
is clicked it will still t... more >>
Triggering both client and server side scripts
Posted by Karim at 11/25/2003 1:34:21 PM
I have a button that opens a new Window using client side Javascript. The
button also has server side script (.._click) that saves some session
variables to be used in the new Window.
The problem is that the server side function does not fire.
Karim... more >>
Counting items in an array?
Posted by Rob Meade at 11/25/2003 12:15:42 PM
Hi all,
Ok - I appreciated I could probably just do this :
For Each item IN array
intCount = intCount + 1
Next
I figured there might be a better way in .net...
I stumbled across this :
array.GetLength(intCount)
etc
I have tried using it but it returns as zero each time - i... more >>
Repeater control
Posted by simon at 11/25/2003 11:49:30 AM
I have a dataRepeater control on a page, which lists me the headers of a
news.
When I click on a header I would like to show the news for this header.
Which is the best practice?
Have an anhor tag and redirects to the new page or show the text of a
selected news on the same page - I think the... more >>
ENTER key to submit forms
Posted by Sandra Castellanos at 11/25/2003 11:43:13 AM
Hello,
I want to know what I have to do to make the enter key to submit forms. I
read in another newsgroup that inserting an html hidden text box made the
trick, and it actually does, but in my page I have more than one web control
that have their independient "forms" (in the .NET environment... more >>
Dynamically add the stylesheet(.CSS file)
Posted by VSK at 11/25/2003 11:23:25 AM
Hi,
Iam looking for a way to dynamically add the stylesheet.
I have all the .aspx pages extend from a CommonPage.cs which extend from
System.Web.UI.Page.
Now i want a way to detect the browser(netsacpe/ie) and load the curr .css
file in CommonPage so that it applies to all the pages which... more >>
Blogging Components: Trackback and Pingback Protocols
Posted by Mark Olbert at 11/25/2003 10:54:57 AM
I'm looking to create a blogging component (or find one) that would basically be a "drop in" on an
ASP.NET page (i.e., I don't want full blown blog theme management and page configuration
capabilities).
I've looked into BlogX and dasBlog, which both seem to be good, but full blown, packages. Do... more >>
Truncated namespace in a class library
Posted by Paul at 11/25/2003 10:42:09 AM
Hi,
I have a class library that I added to my web app root and when I try to
use the .current portion of the System.Web.UI.HttpContext namespace, it
does not exist and I get the error that it's not defined if I try to
reference it in code.
I did attach a reference to System.DLL. I have tri... more >>
How to convert a datareader to a dataview
Posted by Peter Yin at 11/25/2003 10:34:59 AM
Hi All,
Which way is the best way to convert a datareader to a
dataview?
Thanks,
Peter... more >>
Testing existance of a control on the page
Posted by Iain Porter at 11/25/2003 10:27:12 AM
Hi all,
I have a usercontrol (a textbox with dropdown calendar that fills the
textbox with the selected date) that I implement in a datagrid in a webform.
On first loading the page, the datagrid's visibility is set to 'false', and
so the UC depCal is not rendered on the page. Hence the followin... more >>
how to know the number of records in a table?
Posted by Matthew Louden at 11/25/2003 10:16:35 AM
I want to count the number of records in a table, and insert a new record
with ID increment the count by 1.
Heres the code:
sqlStmt = "SELECT COUNT(*) As numRecords FROM TimeSlot;"
cmd = New SqlCommand(sqlStmt, conn)
dr = cmd.ExecuteReader
But how to get the value of numRecords? since numR... more >>
Post Back and HTML Controls
Posted by Chris at 11/25/2003 10:11:09 AM
Hello.
I had a question that I was hoping someone might be able
to answer.
I have an ASP .NET Web Form with a custom control that
generates HTML based on certain criteria.
This control is on the web form. For example the control
will generate a question with an HTML input text box.
... more >>
3 basic questions on asp.net
Posted by Wiktor Zychla at 11/25/2003 9:59:06 AM
Hello,
I am an experienced Win.Forms developer and now I am learning ASP.NET
(no ASP background). there are some basic issues I do not understand and
cannot find any satisfable answers.
1. my application is configured to use Welcome.aspx as the default page.
after the succesful login vi... more >>
Search functionality on the home page
Posted by Brian at 11/25/2003 9:46:32 AM
Hello
I am trying to implement 'Search' (Basic Keyword search) functonality on a site. Home page has a search text box and a 'GO' button. When users will type in a keyword and presses 'GO', URL has to be refreshed with the 'Search Page' URL [So I am eliminating Server.Transfer] and results must be... more >>
Reload the page in the same window
Posted by simon at 11/25/2003 9:39:16 AM
When I press shortcut key F5 (Debug.startWithoutDebugging) I always get a
page on a new instance of Internet explorer.
So then happens that I have 10 or more opened windows.
Is it possible to reload the page with changes when I press F5 in the opened
window?
If I go to the page (when I change... more >>
Menus
Posted by microsoft at 11/25/2003 9:27:43 AM
In asp I always use the div tags and dhtml for creating menus.
Here is the simple code (I have more complicated menus):
<table bgcolor='black' cellpadding="1" cellspacing="0" width='100%'>
<tr>
<td>
<table bgcolor="white" width="100%">
<tr>
<td>
<span class="linkSpan" ... more >>
YES/NO confirmation + Validation control
Posted by Nedu N at 11/25/2003 9:19:56 AM
Hi,
I want to have confirmation(Yes/No) on a button of the webform in which
there are many validation controls. I want all the validation controls to be
triggered first and then Yes/No confirmation message. By adding just an
confirm attribute for 'onclick' event of the button doesn't work with... more >>
object shared
Posted by Eduardo Azevedo at 11/25/2003 9:11:58 AM
If I have a class with method Shared, when this objects are destroies what's
happend with the objects Shared?
How long is the lifetime of a function shared in the Class ?
there are no instantiate
thks
Eduardo R Azevedo
... more >>
aspx error
Posted by Carlos_Beltrán at 11/25/2003 9:07:27 AM
Hi,
I get this error when I ran my aspx application
No se puede ejecutar el programa. El comando que se estaba
ejecutando era "c:\winnt\microsoft.net\framework\v1.1.4322
\vbc.exe" @"C:\WINNT\Microsoft.NET\Framework\v1.1.4322
\Temporary ASP.NET
Files\webrecursos_humanos\ffc1b6be\697fa0e1
... more >>
pager in datagrid
Posted by kgs at 11/25/2003 8:53:46 AM
I have a pager at datagrid top and bottom. Is it possible
to determine in itemcreated event whether its the top or
the bottom pager which was created. I check the itemindex
its -1 for both.
appreciate any help
thanks
... more >>
RFC: Building a Web Mail Application with Attachment Capability
Posted by macspert NO[at]SPAM webnautica.net at 11/25/2003 8:39:40 AM
I'm developing a very small Web-based mail application as part of a
larger Online Contact System for a client. I was struggling for a few
hours with how to handle e-mail attachments and I thought I'd post my
solution to see if there are any better solutions out there.
My thoughts are that I wo... more >>
Datagrid to Excel Question
Posted by Bart Lynn at 11/25/2003 8:35:42 AM
I have it working by the following code:
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
EnableViewState = False
Dim oStringWriter As System.IO.StringWriter
oStringWriter = New System.IO.StringWriter
Dim oHtmlTex... more >>
Add QueryString to Every Page?
Posted by bradwiseathome NO[at]SPAM hotmail.com at 11/25/2003 8:10:40 AM
I generate a querystring on page #1 and want that querystring to stay
on every other page the user chooses, regardless of session or
postback issues. What is a good way to handle that?
Thanks.... more >>
Altering page content prior to rendering page on browser
Posted by Rob Heckart at 11/25/2003 7:54:45 AM
Hi,
I'm using the Portal ASP.NET starter kit for a project. It uses one aspx
page, DesktopDefault.aspx to render content by loading different user
controls depending on what's clicked. One of my mandates is to have any
hyperlink on the page that points to a URL outside of our site pull up an
... more >>
application cache
Posted by kaanoezturk NO[at]SPAM yahoo.com at 11/25/2003 7:25:03 AM
hi,
in an asp.net application, i can not access the server-side
application data using,
cachedata = Application["data"];
when it is not a page behind class. can i use the cache in another
class of the application for example in myutils.cs which is not a page
behind class?... more >>
Panel problem
Posted by acko bogicevic at 11/25/2003 7:21:18 AM
Hi
I have three panels on page and every panel contains a few controls.
How can i move panels through code on the other position on page.
I want to click a button and one panel to be visible and the other not.
There is a property Visible and it is easy but how can i change
something like Top, l... more >>
message boxes
Posted by Mike P at 11/25/2003 6:11:40 AM
I'm trying to write some code in my Page_Load where the user can click
OK or Cancel in a message box to decide whether they want to be
redirected or not. If the user clicks OK, then they will be redirected,
if they click Cancel, then they will be sent back to the previous page.
The error that... more >>
search engine
Posted by Mark Finkel at 11/25/2003 4:42:35 AM
In the old asp, Visual Studio generated a search.htm page
which worked with the Indexing Service to produce a search
engine capability.
Is there anything like this in asp.NET?... more >>
XSLT created UserControl gives 'not well formed' error
Posted by wtsnet at 11/25/2003 4:02:43 AM
I've got a usercontrol created on the fly using XSLT:
<%@ Control Language='vb' AutoEventWireup='false'
Codebehind='DynamicContent.ascx.vb'
Inherits='System.Web.UI.UserControl'
TargetSchema='http://schemas.microsoft.com/intellisense/ie
5' %>
<asp:Panel id="Panel_welcome" runat="server"
... more >>
advancing with the asp:datagrid
Posted by timasmith NO[at]SPAM hotmail.com at 11/25/2003 3:44:02 AM
In my .cs code I populate set the DataSource appropriately and I can
get my DataGrid to appear, though sorting throws an error
'dgDataGrid1__ctl1__ctl0' of type 'DataGridLinkButton' must be placed
inside a form tag
But ignoring that, with my asp:DataGrid how can I have a column of
values each... more >>
Removing duplicate records from dataTable
Posted by sumit at 11/25/2003 2:31:34 AM
Hi,
During some processing, Records get inserted into
dataTable,,now i want to remove duplicate records from the
dataTable,,,
how can it be achieved?? there is no primary key defined
for dataTable,,
Pls Suggest ASAP!!... more >>
aspnet_wp.exe takes 100 % of the resources
Posted by Cynthia at 11/25/2003 1:45:41 AM
Hi,
I have a two Load Balanced servers running MS Content
Mangement Server 2002.
Both servers runs asp.net applications.
On one of the nodes, aspnet_wp.exe process behaves as
following:
- From time to time the process takes 50 % of the CPU and
never Goes below (unless we kill it) thus ... more >>
REPOST: Forms authentication in multiple folders
Posted by Harley at 11/25/2003 1:34:46 AM
i have an application that uses forms security to restrict access to a
specific folder. now i need to secure another folder, in the same root, but
redirect those users to another login. imagine, one folder for managers,
another for assistants. no shared options between them, so dont try to
sugge... more >>
maintaining session
Posted by Sergey Poberezovskiy at 11/25/2003 1:30:43 AM
Hi,
I have an ASP.Net application running on a web farm. I
use SessionState = "StateServer" and cookieless mode and
session Timeout = 20 mins.
This is a testing application where a user will be
sitting a number of tests for about one to two hours.
the problem is that every now and then ... more >>
Saving resized Images
Posted by toma at 11/25/2003 1:14:47 AM
Hi!
I found out how to manipulate (read,resize, etc..) images using
System.Drawin namespace from this site:
http://authors.aspalliance.com/chrisg/default.asp?category=9
But i don't know how to save resize image on hard disc. So i hope someon
could help me.
The biggest problem is that i run win... more >>
asp.net cannot write files under windows 2003
Posted by yilin at 11/25/2003 12:21:08 AM
I use windows 2003 and .net 2003 to write a ASP .NET web application. the function is user can upload files to the server and the sever will save the files in the virtual directory(for example, \wwwroot\myWebApplication\incoming).But it failed to save the uploaded file within the Web application. th... more >>
dataset usage
Posted by david at 11/25/2003 12:02:37 AM
i am tring to generate a single dataset which contains
all records from a table and then create subsets of this
dataset which can fill certail controls and i am not sure
of the best method eg. dataview, select etc.
can someone help..... more >>
|