all groups > asp.net > february 2005 > threads for friday february 11
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
how to copy a project to another PC?
Posted by Carlos at 2/11/2005 10:07:35 PM
Hi all,
I have an ASP .Net project that I need to copy to
another PC. When I tried it, it did not work
by just creating the virtual directory, and copying the source files there.
Is there anything else that needs to be done ?
Thanks,
Carlos
... more >>
not getting Response.Redirect() working
Posted by joseph pattom at 2/11/2005 9:07:35 PM
Hi all
i am using
<customErrors mode="On" defaultRedirect="ErrorDisplay.aspx"/> in my
web.config file and getting redirected to "ErrorDisplay.aspx" in almost
all the unhandled exceptions but in case of certain errors its not
getting redirected (especialy Acces Violations(object refrence to... more >>
aspx pages load twice
Posted by surveyor04 at 2/11/2005 8:54:08 PM
Can someone help me try to figure out why my pages load twice? While
debugging other issues, I notice that a great many of my pages run
through the onload method twice, and sometimes they run through the
onclick method of buttons two times as well. As far as onlick is
concerned, I checked th... more >>
VS .NET 2003 and .NET framework 2.0
Posted by Fabio at 2/11/2005 8:30:32 PM
Hi all,
Does anyone have experience of using VS .NET 2003 and .NET framework 2.0? If so,
could you tell me what's required to get them to work together? Am I going to
meet any particular problems?
TIA
--
Fabio Marini
To reply: news [at] mamakin1976 [dot] plus [dot] com... more >>
how to call server-side methods from client side
Posted by Dinçer at 2/11/2005 7:58:40 PM
I have three TextBoxes. Say, txtValue1, txtValue2 and txtValue3...
After the user enters something into the txtValue1 and tabs; I want to go to
the serverside, call a method(which will take txtValue1's value as argument)
and fill in the values of txtValue2 and txtValue3.
To do this, I need t... more >>
Could not load type 'psyche.admin.justdoit'.
Posted by Andy Sutorius at 2/11/2005 6:52:59 PM
Hi group,
I am getting the "could not load type" error and I'm not sure how to debug.
Obviously it's a namespace error but I don't see it. Below are code
snippets. Yes, the files sit in a subdirectory called "admin". The webpages
in the root directory, "psyche" do not have any errors. So it's ... more >>
First time is slow
Posted by Ming Zhang at 2/11/2005 5:38:20 PM
Hi all,
Our application has 300+ dlls, which causes ASP.NET very slow (2-3 minutes)
the first time load it. This is acceptable for production but it's really
annoying for developers. When debuging an application, developers need to
frequently compile and start an ASP.NET application. Althoug... more >>
dataset question, might be obvious
Posted by Chris at 2/11/2005 5:25:02 PM
Two parter:
1.) Which is better to fill a listbox or dropdownlist, a dataset or
datareader? Both use a connection, but dataset uses memory. And if you're
only fill a dropdownlist or listbox does it matter? Maybe if you need the
same data for another control?
2.) If the dataset (datatable... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Session Variables disappear
Posted by Frank Schumacher at 2/11/2005 4:12:49 PM
Hi NG,
I have a weird problem, that's starting to get my sanity.
My webapplication stores several values in Session["xxx"]. After a
server roundtrip, no Session variables exist anymore (Session.Count is 0)
I have logged the Session.SessionID, it is the same as before.
I have logged the... more >>
ASP.NET SQL Server Session not timing out
Posted by Tejaswi at 2/11/2005 3:43:08 PM
Hello!
I have set the Session Timeout to 5 minutes. I login to the Web Page and
then wait for 6 minutes. Then I again try to get the page and the Session
does not expire.
I checked the Expires field in the ASPStateTempSessions Table and it shows
the correct value.
What I expect is that wh... more >>
asp.net: What's wwwroot$/sitename?
Posted by Tom wilson at 2/11/2005 3:18:57 PM
My asp.net seems to want to connect to a UNC share by default. It can
never find the share:
\\myserver\wwwroot$\mysite
What is this? I know what a standard UNC share looks like and this
aint it. ("wwwroot$"?) What creates it? Why doesn't it exist on my
W2003 server?
Thanks!
... more >>
Text Image Component
Posted by Win, Pats at 2/11/2005 3:15:24 PM
Just wondering if anyone has ever seen a 3rd party component that
facilitates the creation of text images. I know I can "roll my own" but was
not wanting to reinvent the wheel. I searched www.asp.net and google, but
didn't find anything other than how-to articles.
Thanks!
... more >>
ASP.NET with HTML+TIME
Posted by Troy Jerkins at 2/11/2005 2:48:47 PM
Can I use html+time DHTML in an ASPX page?
Writing in VB.NET
Following some examples I have the following code in HTML view:
<STYLE>
.time { behavior: url(#default#time2) }
.looks {border: 4px solid black; width:250px;height:250px;
filter:progid:DXImageTransform.Microsoft.Gradient(); ... more >>
TextBox Question
Posted by hecsan07 at 2/11/2005 2:29:03 PM
What shall I do to clear the default text of a textbox when this is selected?
Hector... more >>
TetxBox Question...
Posted by hecsan07 at 2/11/2005 2:27:02 PM
What shall I do to have a textbox that clears its default text when it is
selected?
Hector... more >>
Integrate Address Book
Posted by Jael at 2/11/2005 2:21:07 PM
Hi everyone,
I am working on a web app that I would like to integrate an address book
import function into (similar to the one available on our Share Point Team
site). I have been searching for awhile now with no luck into how SharePoint
calls the Address Book and then Imports selected con... more >>
Why is there no runtime tag in the web.config
Posted by inetmug at 2/11/2005 2:05:03 PM
Why is there no runtime tag in the web.config like there is in the
app.config, or am I wrong??? I want to have the asp.net apps pick up the DLL
references at run time.
--
Patrick... more >>
Why is there no "runtime" allowed in the ASP.NET web.config
Posted by inetmug at 2/11/2005 2:03:01 PM
I would like my ASP.NET apps to pick up there associated assembly references
at runtime but I do not see a runtime tag in the web.config schema, or am I
wrong?
--
Patrick... more >>
Exception Handling in Global.asax
Posted by JP at 2/11/2005 1:58:05 PM
I'm wondering if it's a good idea (or not) to include try-catch blocks in
the Global.asax handlers (specifically, Application_Start and
Session_Start).
So, does anyone know if I should include try-catch blocks in my Global.asax
handlers?
And, if so, what should I do with the caught exception ... more >>
easy way to dynamically load dropdown boxes
Posted by () at 2/11/2005 1:54:36 PM
im dynamically loading dropdown boxes on page.load
like this :
cbo1.Items.Add("")
cbo1.Items.Add("OT")
cbo1.Items.Add("ST")
cbo1.Items.Add("Ho")
cbo1.Items.Add("FMLSK")
cbo1.Items.Add("FMLOI")
cbo1.Items.Add("FMLPE")
cbo1.Items.Add("... more >>
Postback not working, pages not maintaining state - I entirely don't get it.
Posted by Tom wilson at 2/11/2005 1:38:49 PM
This is a huge problem. I'm going insane. I've tried to solve this
elsewhere and no one can suggest how to make this work. To me, this
should be a very basic thing to do.
I have an asp.net application that is a survey acceptor. The site is
to display a page of survey questions and accept t... more >>
datagrid hidden field not keeping state after postback
Posted by Rodusa at 2/11/2005 1:35:05 PM
I have a hidden field inside one datagrid which I can't get to make it
keep its state after a postback event.
Look field:
<input type="hidden" id="TxtHiddenItem_id" name="TxtHiddenItem_id"
runat="server" value='<%# DataBinder.Eval(Container,
"DataItem.item_id").ToString() %>'>
I can get ... more >>
Move From Include Files to User Control
Posted by Wayne Wengert at 2/11/2005 1:31:18 PM
I am rewriting some ASP pages to move them to ASP.NET (VB). The old pages
had some include files such as one that had the subroutine to create a
connection as well as the code that invoked that sub.
My understanding (never tried a user control before so I may well have this
screwed up) is that... more >>
Merits and demerits of asp.net web site
Posted by Joe at 2/11/2005 1:29:13 PM
Hi all,
We have a website which has some html(static), asp(pages with forms) and
some .aspx (pages with forms) pages. Can someone tell me the advantages of
having the entire website in .aspx vs having static pages as html, and pages
with forms in either asp/asp.net. One idea behind converti... more >>
Controls - this page (MSDN)
Posted by Sandy at 2/11/2005 1:19:04 PM
Anybody know what control Microsoft used for the expanding nodes part of this
page? It looks like a variation of a DataGrid to me, but the only DataGrid I
can find info on that has these capabilities is in Windows Forms.
--
Sandy... more >>
Date Formats
Posted by Nick at 2/11/2005 1:17:20 PM
Hi,
I'm entering a date into an SQL server using an Infragistics control. The
control picks the date format up from the system setting (UK). When the date
is entered into the database, it thinks its in US format and switches the
month & day.
In the stored procedure thats storing the data... more >>
Site search questions, please help...
Posted by Jim at 2/11/2005 12:57:04 PM
My client wants to be able to search the content of his site that is built
using ASP.net user controls that dynamically load into a single aspx page.
The content is not dynamic, however. How would I go about sending this up,
because I am not even sure where to start. As you can probably tel... more >>
Forms Authentication for multiple applications
Posted by cab0san at 2/11/2005 12:54:27 PM
I have several applications all on the same server. I would like them
to all use the same login page.
Example:
http://server1/customers/app1.aspx
http://server1/suppliers/byregion/app2.aspx
I have a login page located in the root of the same server:
http://server1/login.aspx
None of the... more >>
Preferred Method To Assign Session Variable Values
Posted by Matt at 2/11/2005 12:42:24 PM
All -
Is there a preferred method to assign session variables in ASP.NET /
VB.NET?
It looks like you can do any of the following to assign values:
Session.Item("Foo") = "Bar"
Session("Foo") = "Bar"
Sesssion.Add("Foo", "Bar")
It looks like you can do either of the following to get valu... more >>
aspnet_wp will not release file handle
Posted by fernandez.dan NO[at]SPAM gmail.com at 2/11/2005 12:31:09 PM
I have a umangaged dll ( I have the source code) which I use in my web
app using pinvoke. The dll creates a file, writes to it, and then
closes it. It works the first time through but the second time through
it can't open file so my dll fails and returns an error number.
I then try to delete t... more >>
web.config does not allow section names with dots
Posted by Vagif Abilov at 2/11/2005 12:27:32 PM
Our .NET applications and Web sites use configuration files with custom
sections. It's no problem to read a section with dots in its name from a
Windows .NET application, e.g. "MyCompany.Product.Feature". However an
attempt to read such section from Web site's web.config file raises
exceptio... more >>
Decompiler .Net - how to avoid?
Posted by Pietro at 2/11/2005 12:12:52 PM
I find a lot of .Net decompilers that brings me the full source code,
there is a way to avoid this ?
Pietro... more >>
Help with setting row backcolor
Posted by Chris at 2/11/2005 12:02:17 PM
Hi,
I am trying to set a row backcolor based on the value of a cell in my
datagrid but it's not working
This is what I have
Private Sub grdProcessingTitles_ItemDataBound(ByVal sender As Object, ByVal
e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
grdPro.ItemDataBound
... more >>
HTTP Module - Global Error Handler
Posted by Win, Pats at 2/11/2005 11:48:16 AM
Sorry if this is OT, I'm not sure where else to research this...
I recently added a "global error handler" via an HTTP Module so I could log
all otherwise unhandled exceptions.
Every day I get a number of exceptions in one of my sites (published on the
Internet) that are as follows:
Messa... more >>
ASP.net skipping the special characters from the URL?
Posted by Rahul Agarwal at 2/11/2005 11:46:32 AM
Hi All
We found that ASP.net is skipping the special characters passed in a URL
?context.Request.RawUrl
RawUrl:
"/iPower/GUI/DSHContactSearch.dset?@pvcClientName=&@pvcSurname=Røssland&@pvcFirstName=&@pvcErrMsg="
?context.Request.Item("@pvcSurname")
"Rssland"
The character 'ø' is miss... more >>
How to configure my application to recognize the bin directory?
Posted by peelman at 2/11/2005 11:31:08 AM
Hi,
I have a web server (IIS 6 on Windows 2003) and just ported over my web
app from IIS 5. Everything used to work on IIS 5 but now on IIS 6 my
scripts cannot find the namespace compipiled in the dll in my bin
directory. It crashes at:
MyNameSpace.MyClass var = new MyNameSpace.MyClass();... more >>
problem when adding new datagrid item
Posted by Tomek R. at 2/11/2005 11:27:41 AM
Hello !
I've got weird problem when adding new datagrid item. Here is the situation:
my grid dgDeps is binded to DepartmentList arraylist, stored in Session
between round-trips..
To add new item I press buttton with ibNewDep_Click event.
After that the grid is in edit state and I can modify n... more >>
What does sender.Parent.Parent.Cells() reference? Frustrating...
Posted by Roy at 2/11/2005 11:24:18 AM
Ok, this is incredibly annoying. Below I have an ImageButton and it's
ImageButton_Click sub. See the 6 response.writes? The output for them
is displayed below in asterisks. Question: What part of the
TemplateColumn below does sender.parent.parent.Cells(9) reference???
IOW, what tag does it refer... more >>
resx files
Posted by Servé La at 2/11/2005 11:11:30 AM
We have an aspnet project where 2 people are working on and we have put the
source files into subversion.
Thinking that they were not crucial for a project, we did not put in the
resx files. But after we both ran into strange problems and we added the
resx files to the project it all seemed to w... more >>
Detecting if Browser Accepts Cookies & JavaScript
Posted by SHarris at 2/11/2005 10:56:14 AM
Hello,
In our new intranet ASP.NET project, two requirements are that the browser
accept cookies AND JavaScript. We are requiring the use of Internet
Explorer 6+.
1. Using C# in an ASP.NET application, how can we code the project to check
to make sure the browser accepts cookies?
2. Where... more >>
RadioButtonList and SelectedItem when control is disabled
Posted by Amil at 2/11/2005 10:48:11 AM
I have a RadioButtonList that can be disabled on the form via a higher up
checkbox. Even if the checkbox disables the radio buttons, I do want to
save to a DB the currently selected radio button...so I can restore the
user's last choice.
Seems like if the RadioButtonList is disabled (via clie... more >>
vs.net 2005 beta
Posted by mike parr at 2/11/2005 10:42:59 AM
I installed vs.net 2005 on a machine that also has vs.net 2003 on it.
Since all of the 2003 projects then got converted to 2005 projects, I
decided to uninstall 2005 so that I could do some work on the 2003
projects. This worked OK, but now I want to re-install 2005 and it will
not reinstall .n... more >>
Cache items missing
Posted by MattC at 2/11/2005 10:42:52 AM
Hi,
I am persisting the viewstate for each page into the Cache object, below is
shown my methods for saving and loading:
I am able to save the viewstate to the cache and most times I can load it
ok, however it seems that every now and again it fails to Deserialize the
viewstate.
My Ap... more >>
Problem with w3wp.exe when recycling
Posted by jeff29_b NO[at]SPAM yahoo.com at 2/11/2005 10:26:05 AM
I have an asp.net application that stores two worker threads in the
application object like so
Application["ThreadName"] = thread;
These objects are persistent and continuously do polling and other
work. Unfortunately, when iis recycles a process the old process hangs
around even though it... more >>
The website ASP.NET
Posted by Arjen at 2/11/2005 10:06:22 AM
Does ASP.NET (this website) runs on XML files?
Thanks!
... more >>
Worker Process recycling
Posted by cmay at 2/11/2005 9:42:04 AM
There are lots of reasons that the WPs can be recycled or killed.
When a WP is recycled, all the InProc sesssion data is lost correct?
Is there any way to a) find out WHY the recycle happened e.g. failed
requests, memory leak, scheduled recycle, lack of requests etc b)
programmatically get a ... more >>
AppPools
Posted by cmay at 2/11/2005 9:39:19 AM
I read that you can assign multiple ASP.NET applications to run in the
same AppPool, in which case they share resources.
If you do this, can the 2 applications that share an AppPool share
InProc session data?
... more >>
Webgarden setting and session data
Posted by cmay at 2/11/2005 9:37:42 AM
If you enable the webgarden setting on a server that has multiple
processors, IIS will create multiple worker processes correct?
Is it correct that when this happens, these processes can not share
inproc session data?
... more >>
transport error when
Posted by cs_hart NO[at]SPAM yahoo.com at 2/11/2005 9:16:08 AM
I am trying to send an email using our mailserver but keep getting an
error. Here is the code:
SmtpMail.SmtpServer = "MAILSERV.meas-inc.com"
SmtpMail.Send(me@myserv.com", "someuser@mail.com", "Sub Text", "Msg
Text")
Exception = Could not access 'CDO.Message' object.
Base Exception = The mess... more >>
using classic asp include files in an asp.net app
Posted by chriso at 2/11/2005 9:06:51 AM
I have a classic asp app which is reaching the end of it's lifetime in so
far as being able to maintain it and I want to re-write it in asp.net.
A complete re-write, although desireable, is out of the question for various
reasons. My desire is to convert bits of the classic asp as I go therefor... more >>
Creating an SQLDB search using a stored procedure
Posted by mattcur NO[at]SPAM gmail.com at 2/11/2005 7:58:45 AM
I am trying to create a search page for a database that will display
in a repeater, using a stored procedure. The page_load is fine, and
calls/displays all rows from the db just fine. When I input something
in the search field to display more specific results, the repeater
displays blank. Here a... more >>
Class question
Posted by Anonymous at 2/11/2005 7:55:49 AM
Hey,
in my init I created some code to create a tabbed
interface. The code worked very well. It simply adds a
table with the required cells/rows to a placeholder, which
is located on the page. Now I tried to implement this in a
seperate class. I created a new namespace which has a
cla... more >>
Inherit a class which is in a separate file ?
Posted by mister.mwa NO[at]SPAM laposte.net at 2/11/2005 7:12:58 AM
Hello,
I have the following problem:
I have a class Foo, and a class Bar.
I want Foo to inherit from Bar, but i want to put them in separate
files Foo.vb and Bar.vb. Then i will use the Foo Class in a code behind
separate file called CodeBehind.vb
Then i will use this CodeBehind normally... more >>
ViewStates, postBacks and form data
Posted by Jason at 2/11/2005 7:00:07 AM
I am pretty new to .NET and I need a little guidance...
I have a generic "add user" form. When the user fills out the form, I
check to see if the username is unique in the datasource. If it's not,
I want to postBack to the original form, populating all of the data
except for the username so ... more >>
__doPostBack Error -- Javascript
Posted by Murray Patrick via DotNetMonster.com at 2/11/2005 6:55:29 AM
I am only just begun using .net etc. I create a program (etc), it compiled
and ran on the local machine. The program was then uploaded on a remote
server. I have found in testing it that the buttons no longer work -- when
they are clicked I am taken to a error webpage that is titled Invalid
synt... more >>
Rewriting, relative paths and themes
Posted by Graham at 2/11/2005 6:53:04 AM
I have a problem that I can see the reason for but cannot figure out a
solution.
I am using a simple URL rewriter to map www.me.com/1/2/3/4/product.aspx to
www.me.com/product?filter=1/2/3/4 to make my site Google-friendly. The site
dynamically adopts the correct master pages and themes acc... more >>
OnButtonClick make an individual cell visible/invisible?
Posted by Roy at 2/11/2005 6:34:18 AM
What is the best way to approach this problem? I have a datagrid with
an imagebutton. When one clicks the imagebutton it triggers an onClick
sub which makes column 9 (a user control) visible or invisible. Only
problem is when one clicks the imagebutton on a specific row, I want
*only* that row's... more >>
Find controls
Posted by Anonymous at 2/11/2005 6:26:07 AM
Hello,
in my init I am adding some controls into a
placeholder. The complete procedure looks like this:
Dim iLoop As Integer = 0
Dim table As New Table
table.BackColor = System.Drawing.Color.Gainsboro
table.CellPadding = 2
table.CellSpacing = 0
... more >>
URL Params
Posted by Coneection OLAP at 2/11/2005 6:23:02 AM
Hi:
Me question is the next:
I would like know how, I can do it to pass params, from a control of a page
ASPX to other page ASPX, but I don't want that this params can see in the
URL, besides I want use this params in the page, how I can do it to request
this params...??
I am using... more >>
Running code when viewing aspx code
Posted by Matthias H. at 2/11/2005 4:05:03 AM
Hi guys,
Our team has a very strange problem. I hope anybody can help.
We have a class called webpage and all our aspx-pages bases on it. Then we
have a SYS.IO.File Class which have a function. This function checks the hash
value of some ini-files. If the hash value is not valid then the f... more >>
3rd party link button won't retain visited color
Posted by dotnw NO[at]SPAM hotmail.com at 2/11/2005 4:03:08 AM
I have a 3rd party link button control that when clicked does not
retain it's visited color status on postback. (Actually, the first
control on the form does, but all others do not.)
When I hover the mouse over the link button control, I can see the
custom javascript in the browser's status b... more >>
User Controls
Posted by Wayne Wengert at 2/11/2005 4:01:24 AM
This is my first attempt to use a User Control and I am totally confused.
Basically, I am rewriting a set of ASP pages in ASP.NET (VB). The old ASP
files used Include files for common sub routines like connection, managing
background color on objects with focus, etc.. In looking through my asp.ne... more >>
Debug Vs Release
Posted by Srinivasa Rao at 2/11/2005 3:21:03 AM
I have read in one article that when we compile the application in release
mode, all the debug classes and properties will be automatically removed from
the code. I tried to implement this thing by using the following code in
Page_Load event handler.
Private Sub Page_Load(ByVal sender A... more >>
HTML tags in Textbox
Posted by deepsmehta NO[at]SPAM gmail.com at 2/11/2005 3:09:45 AM
I hv to store data with HTML tags in database. user will input data
with html tags for e.g.<strong> Name <strong>. And when i will read
data in webpage then "Name" should eb bold. but i m getting problem in
storing data in database.
When i input text with html tags in textbox and click on
submi... more >>
Viweing my web-application Online
Posted by Irfan Akram at 2/11/2005 2:15:01 AM
Hi guys,
I have a presenation to make to my supervisor, presenting my
web-application. I want the web-application in asp.net that I am developing
on my pc here can presented over the internet. When I run it on localhost or
on my own IP Address e.g. 192.33.33.33/NameOfMyProject then it works... more >>
How can I encrypt the password stored in a database table ?
Posted by Alex Nitulescu at 2/11/2005 1:58:14 AM
Hi. I am writing an app which stores usernames/passwords and email addresses
in a database table.
The question is how can I encrypt the password provided by the user ?
FormsAuthentication.Encrypt produces an encrypted string, but it is for use
in a ticket.
On the other hand, FormsAuthen... more >>
Authentication as signature
Posted by yzarcman NO[at]SPAM gmail.com at 2/11/2005 1:38:38 AM
I am working on an intranet and have a web app that I need to use
authentication for signing a document.
As an organization we have decided that a username and date/time stamp
would be sufficient to be considered a signature.
On some pages data is submitted and I'm just concerned about captu... more >>
Convert chinese text to GIF
Posted by Marshall at 2/11/2005 1:17:02 AM
Our company is writing a forum software that can handle English and Chinese
posts. So that those without Chinese fonts etc can avoid trouble viewing our
site, we'd like to on the fly change any post made in Chinese into a GIF file
of the text.
There is a piece of Java software available to... more >>
Refresh Page with Code
Posted by Microsoft at 2/11/2005 12:17:46 AM
How do I refresh the page using code in the same way a user would hit F5.
TIA,
Steve
... more >>
|