Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > september 2006 > threads for thursday september 21

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

method or property is not available because a document window is not active.
Posted by ianyian NO[at]SPAM gmail.com at 9/21/2006 11:21:57 PM
hi experts, im doing some staff bween th the aspx + MS Word.chellcheck, and and which running on my ypc is no problem ( windows xp , activation by ASPNET ), buts someshow when i try to deploy to server ( windows 2003 ) + IIS 6.0 , hen which giee the error = Object reference not set to...more >>


problem with my user control with javascript
Posted by ThunderMusic at 9/21/2006 10:26:15 PM
Hi, Maybe I'm not in the good forum, but I try anyway. I have the following code: <script language="javascript"> function setRating(ImagePrefixId, Rating, divID) { for (var cpt=10; cpt>0; cpt--) { var img = document.getElementById(ImagePrefixId+cpt); if (img) { ...more >>

forum page
Posted by arnabit NO[at]SPAM gmail.com at 9/21/2006 10:00:31 PM
i am building a forumpage.my problem is that I am not able to send an id through hyperlink. i am writing the specic asp.net code for convinience- <asp:GridView ID="grdForums" runat="server" Width="100%" > <Columns> <asp:BoundField DataField="ForumId" HeaderText="ForumId" /...more >>

Nested Looping with DataReader
Posted by dejavue82 NO[at]SPAM yahoo.com at 9/21/2006 9:40:23 PM
I am trying to use a DataReader to read a table (that was attained from JOINing two other tables) with the following format: questions answers 1 1 1 2 1 3 1 4 2 1 2 ...more >>

the column size of gridview
Posted by Nick at 9/21/2006 7:43:01 PM
hi all: the one of the column of gridview got multiple line data to be shown , so how do i deal with it? what i am thinking about is using template field instead of the boundfield. is that other solution out there? Cheers Nick...more >>

Invalid cast?
Posted by tshad at 9/21/2006 6:03:22 PM
I have an ItemDataBound event for my delete button and am getting an error: System.InvalidCastException: Specified cast is not valid. The event code: ******************************************************** public void articleList_ItemDataBound(Object sender, DataGridItemEventArgs e) { ...more >>

Image Button
Posted by shapper at 9/21/2006 5:43:22 PM
Hello, I added an ImageButton to my Asp.Net page but I don't know how to make it load the page collection.aspx when it is pressed. Could someone tell me how is this done? Thanks, Miguel ...more >>

ViewState Question
Posted by Samuel Shulman at 9/21/2006 5:38:19 PM
I assign the ViewState with some values that disappear when the page is loaded again what can I do to preserve the values? Thank you, Samuel ...more >>



VS 2005 and VB.net WIndow Services
Posted by Pierre at 9/21/2006 5:28:35 PM
Hello All, Is it possible to create a window service in VB.net 2005? ...more >>

File list to DataGrid
Posted by tshad at 9/21/2006 5:13:09 PM
I am getting a list of files from a folder in my website and it displays fine. But it is not putting the actual path into the file column. My code is: DirectoryInfo dirInfo = new DirectoryInfo(Server.MapPath("/integration/ImportFile/")); articleList.DataSource = dirInfo.GetFiles("*.txt...more >>

binding multi-table datareader
Posted by js at 9/21/2006 4:15:54 PM
I am using executeReader to get a SqlDataReader as in my code below. The SqlDataReader contains two tables. I am trying to bind each table to its respective dropdown list control. Thanks. //************* My code ************* System.Data.SqlClient.SqlDataReader dr = null; string strSQL = ...more >>

Hide asp.net fields AND table
Posted by Heinz K at 9/21/2006 3:53:30 PM
Hi all, using asp.net 2.0 I have some fields which should only be displayed under some circumstances, otherwise I hide them. This works fine. But the data is displayed in a table with 5 rows, and all fields within these rows are hidden. Is it now also possible to hide the complete table s...more >>

ASP.NET Threading, IIS pipeline and HTTP
Posted by Rod at 9/21/2006 3:38:02 PM
Hi, I have a frameset with two frames. The .aspx page for each frame contains a button with a server click event handler assigned. The server code for one button runs a time consuming process, the code for the second button updates a text field on the same page. The way I understand it the...more >>

HyperLink from GridView
Posted by David at 9/21/2006 3:32:38 PM
Using ASP.Net 2.0 and VS 2005. I have a search page that has server controls, (textboxes, dropdownlists, etc.) that are used for searching and returning data in a GridView. One of the GridView columns is a bound HyperLink that sends me to a new aspx page. However, when I try to use Request.F...more >>

Binding Custom Collections to Datagrid
Posted by Suresh at 9/21/2006 3:19:02 PM
Using ASP.NET 1.1 ---------------------- I have a custom collection of object that I'm binding to a datagrid. Each of these objects have another collection inside them. I have a user control that renders the nested collection into html table. See sample code below. Now this binds fine ...more >>

form question
Posted by Jon Paal at 9/21/2006 2:03:33 PM
is it possible to submit a conventional html upload form to an ASPx file for processing ? ...more >>

Javascript and Postback
Posted by eesp.test NO[at]SPAM gmail.com at 9/21/2006 2:03:26 PM
Hi everyone, Is there an easy way to reset a javascript timer whenever there is a postback? Right now I have it set up to reset during the onload event but I would also like it to reset during a post back. The purpose is to send a message to the user after 30minutes of inactivity saying that ...more >>

Create CSS StyleSheet at runtime
Posted by shapper at 9/21/2006 1:47:14 PM
Hello, How to create a CSS StyleSheet at runtime and added it an Asp:Label? I am using Asp.Net 2.0. Thanks, Miguel ...more >>

specified cast is not valid
Posted by planet at 9/21/2006 1:26:59 PM
Hi, I wish I can solve this problem not having recode the sub. Here is goes: I got this error' specified cast is not valid' at the second line. from the code Sub ChkDelete_OnCheckedChanged(ByVal sender As Object, ByVal e As EventArgs) DataGrid1_DeleteCommand(sender, e) What ...more >>

conditional javascript in asp.net
Posted by Zdenko Rupcic at 9/21/2006 1:15:59 PM
I want to add a javascript which would execute only if certain requirements are met. Example: If user isn't logged in, a message box would pop up, telling the user he has to log in, but if the user is already logged in, there would be no message. In classical asp, I would do it like this:...more >>

Accessing the HTTP Request sent to legacy ASP page in .Net C# COM
Posted by omantawy NO[at]SPAM gmail.com at 9/21/2006 12:18:31 PM
Hi, I have some legacy ASP web applications that use an unmanaged COM component to connect to a third party application. The third part application has moved to the managed code in the current release with backward compatibility with the unmanaged code. In the future releases, the vendor is g...more >>

Change Onclick event dynamically for an ImageButton control
Posted by fabrice at 9/21/2006 12:02:21 PM
Hello, I d like to modify the Onclik Event of an ImageButton control in code behind. But when i do it , i get an error. This is ma code : The control is the pasx page : <asp:ImageButton id="id1" Visible="false" runat="server" EnableViewState="false" CausesValidation="false" ImageAli...more >>

Application_BeginRequest upload fichier trop gros
Posted by sabrina.tremblay NO[at]SPAM gmail.com at 9/21/2006 11:25:45 AM
Bonjour =E0 tous, voici mon probl=E8me : J'utilise asp.net 2.0, je me suis fix=E9e un <httpRuntime executionTimeout=3D"3000" maxRequestLength=3D"11264"/> dans mon web.config pour pouvoir uploader des fichier de maximum 10mg avec l'objet asp:fileupload. J'aimerais pouvoir dire =E0 mes utilisateur...more >>

Parser Error Message: The entry 'ConnString1' has already been add
Posted by ChrisFrohlich at 9/21/2006 10:50:02 AM
I am trying to deploy two copies of an application to a single website using two virtual directories: "2007" (Production) and "Demo". Each of these applications should point at a different DB, so my thought was to leave everything the same, make two copies of the application files, and just e...more >>

Convert from Web Site to ASP.NET Web Application in VS2005
Posted by David Lozzi at 9/21/2006 10:43:08 AM
Howdy, I've created an entire ecommerce site as a Web Site project (WSP) in VS2005. Now that i'm trying to publish it I'm finding that I should've used the ASP.Net Web Application (ANWA) project instead. I created a new ANWA and imported all of the pages from my WSP and I received a ton of ...more >>

Publish not showing Line Number in production
Posted by Chris Davoli at 9/21/2006 10:43:03 AM
When I get an error on my local machine (not try catch), I get the line # and module it bombed in. This is what I need. After I publish and move to the test server, it only gives me the error in hexadecimal format with no line number or module that it bombed in. I'm moving the PDB file to the ...more >>

Cache object problem.
Posted by Aryan at 9/21/2006 10:38:28 AM
Hi, I have problem related to Caching of data. I am reading large xml file and putting this xml in dataset, since this dataset will contain many datatable's inside. And each datatable might be big in data. Each user will contain its seperate xml file, so when I create xml file for each user, ...more >>

Problems with div and Panel with VS
Posted by tshad at 9/21/2006 10:04:15 AM
I am trying to hide and show certain parts of my code (which I have no problem doing with DW). In VS 2003, it won't let you use <div runat="server"> to section of parts of my code in a table. This is during compilation (build). My code is: <TABLE id="Table1" style="WIDTH: 864px; HEIGHT...more >>

Cannot get Request.Form values
Posted by David at 9/21/2006 9:49:26 AM
I have a ASP.Net 2.0 page with a Gridview that contains a hyperlink column that takes me to a new page and puts value of ID into a querystring and it works fine. However, when I try to use Request.Form("control name") on the new page to refer to contents of previous page, I get nothing. If I...more >>

CSS and Asp.Net 2.0 master pages
Posted by shapper at 9/21/2006 9:44:41 AM
Hello, When I use a master page all ID's are renamed to ct100_MyControl. Consider I have a control which ID is not change on the client. Consider that control would generate <a> tags on the client inside a div where ID = "MyControl" and Class="MyCSS". Well, I could redifine the <a> tags...more >>

URLEncode thinks space should be +? what the?
Posted by chandy NO[at]SPAM totalise.co.uk at 9/21/2006 9:06:16 AM
I've been working with web technologies for ten years and in all that time a safe urlencoding for a space has always been %20 on every platform I have ever used. Now I am using asp.net and it's encoding a space as a +. What on earth is this? Since when was a plus considered a safe alternative...more >>

web site and active directory
Posted by igotyourdotnet at 9/21/2006 9:00:02 AM
I'm creating a new intranet web site in VS 05 .NET 2.0 and I don't want my users to log into the site at all. How can get thier username and show their full name on my web page and how can I give the users "roles"? meaning, if the AA hits the site I dont want her seeing IT menu picks or menu o...more >>

ASP.NET 2.0 Strongly Typed TableAdapters question with dropdownlist box
Posted by Ted Ngo at 9/21/2006 8:47:29 AM
I create a northwind Strongly Typed TableAdapters dataset, the create a query like "select a, b, c, d from employeetable" then bind it into the gridview dim t as new northwindTableAdapters gridview1.datasource = t.getdata() gridview1.databind() Now I create new query in the TableAdapters...more >>

Default value for input type file in HTML?
Posted by ramkum NO[at]SPAM gmail.com at 9/21/2006 8:44:10 AM
Hi, I'm building a system where a presenter uploads a PPT to my server and then I show it to all the participants. The problem is that most of the media in the PPT is usually linked, so I'll need to upload all that too. Assuming I can parse the PPT and figure the exact name and location of ...more >>

How to change a controls SkinID at runtime (asp.net 2.0)
Posted by stephen.mcallister NO[at]SPAM gmail.com at 9/21/2006 8:32:47 AM
I am toying around with Personalization in asp.net 2.0 and would like my users to be able to choose a SkinID at runtime. I have a theme with a default gridview skin and a custom skin. There are 2 buttons on a Control that I was hoping I could use to switch the SkinID, but it appears it's not tha...more >>

VS2005/IIS and Debugging a Web Application
Posted by Karch at 9/21/2006 8:23:09 AM
I am trying to configure a web application named "mytestweb.com" and get the error: "Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside the debugger may provide further information." ...more >>

Customizing layout of Wizard Control
Posted by Charlie NO[at]SPAM CBFC at 9/21/2006 8:03:53 AM
Hi: I'm having problems customizing layout of Wizard control. Doesn't seems to allow you to change locations of buttons and side bars. Any ideas? Thanks, Charlie ...more >>

Embedding a SWF file??
Posted by Buggyman at 9/21/2006 7:50:01 AM
Hi, I have been given a swf file to embed as a banner on our site... Does anyone have any tips on how I do this?? -- *Many* thanks. :)...more >>

HttpHandler detect which postback event occured
Posted by deborder at 9/21/2006 7:32:01 AM
hi all, im building an httphandler and need to identify which event occured in the page is there a way to do so (beside context.Request.Form.Keys[3] which catch the postback action) Thanks in advanced...more >>

UserControl Required Property
Posted by Billy at 9/21/2006 7:00:02 AM
Hopefully a simple one, what is the syntax to force a property to be required in a user control? I thought it would below, but it's not: Public Required Property propName() As String ...more >>

Referencing external DLL? VS2005 copies to bin directory
Posted by Chris Ashley at 9/21/2006 6:55:12 AM
I've written a C++ Wrapper DLL which I need to add a reference to in my ASP.Net project. This in turn is dependent on the DLL it wraps which is in turn dependent on some other DLLs. When I reference the wrapper DLL VS2005 copies it to the 'bin' directory and I am unable to compile with the error...more >>

DataReader and DB Connection Closing
Posted by rockdale at 9/21/2006 6:24:51 AM
I am using Microsoft.Practices.Enterprise.Library When I use IDataReader I saw this line "It is the responsibility of the caller to close the connection and reader when finished." I was wondering if I close the DataReader do I automatic ally close the Connection? If not , how can I close th...more >>

Convert String to Date
Posted by l7alabeh at 9/21/2006 6:04:44 AM
Hey, I have a String and I want to convert it to a date in Visual Basic (ASP.NET 2.0) How can I do so?? ...more >>

ASP.net RequiredValidator is not working in FireFox
Posted by Niraj Sikotara at 9/21/2006 4:33:37 AM
hello, i'm using ASP.NET 2.0, and have placed validators on a page that are not working correctly in FireFox (1.5.0.7) the page can be downloaded from http://ez-files.net/download.php?file=e0d71170 i've googled groups but not found any proper answer, thanks, Niraj Sikotara. ...more >>

Asyncronous/AJAX Suggestions Please!
Posted by OJ at 9/21/2006 4:23:56 AM
Hi, I have written a small C# 2.0 DLL which acts as a client to a Socket based server over the internet. I have written both synchronous and asynchronous methods to connect, send, and receive data from the server. Each request/response can take upto 180 seconds. I am trying to use the asyncrono...more >>

CreateUserWizard validation
Posted by jumblesale at 9/21/2006 3:09:53 AM
Hello, I am using a CreateUserWizard sign up control and wish to use server-side validation on the CreateUserWizardStep - my question is, which event do I need to wire my validation up to so that if the validation returns false, the user account isn't created? Cheers in advance, max ...more >>

UK ADSL with ASP.NET Web Hosting
Posted by Billy at 9/21/2006 1:32:01 AM
Hi, I am in the UK and about to change ADSL provider. I know a lot of ISP's offer ADSL with free webspace, but it generally tends to be PHP & Linux based, does anyone know of a UK ADSL provider who's free web hosting space supports ASP.NET? Thanks...more >>

Thread was being aborted.
Posted by GTi at 9/21/2006 1:07:02 AM
I have a aspx page and a code behind source. I want to discard the aspx web form and create a new page from the code behind source. So I do: string buf=null; buf += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; buf += "<data>\n"; buf += "<action type='update' sid='1'/>\n"; buf += "</da...more >>

Server Error in '/' Application.
Posted by Sanju at 9/21/2006 12:12:23 AM
Hi all, I have developed one project in asp.net on client machine and now i want to upload it in server. My problem is, when i upload a project on server it gives me error as "Server Error in '/' Application." I have modified me web.config accordingly but it didnt help. Can anybody t...more >>

Newbie: How to use ASP.NET 2.0 profiles with users authenticated via custom means
Posted by Navin Mishra at 9/21/2006 12:04:08 AM
Hi, I've an ASP.NET 2.0 web service which authenticates users using another 3rd party web service. In my web service I want to associate profile objects with those users but I don't want to use forms authentication as my web service has no GUI. Could it be done ? If yes, how ? I've been...more >>

How to determine if I am in a web or a windows application
Posted by Jean Paul Mertens at 9/21/2006 12:00:00 AM
Hello to all, I use a lib class to handle all my exeption errors ocured in my objects. Since my objects are used in windows applications as well as in web applications, I would like to determine in my lib class if she is serving a web or a windows application. Is there a neat way to detect ...more >>

asp.net can't run in window 2003 - 64bit
Posted by Agnes at 9/21/2006 12:00:00 AM
help ~~~~ my deadline is coming, I don't know how to activate the asp.net I try the following command c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiis -iru Please help ...more >>

Newbie - how to publish project
Posted by AAJ at 9/21/2006 12:00:00 AM
Hi all I knows there are tutorials out there, but I'm wondering how you guys manage the publishing/updating of websites in the real world. It seems I have 2 options, Publish and copy. As far as I can tell If I choose publish, my Web site is compiled and then copied to the web server wit...more >>

newbie: Need help with this bug/exception
Posted by Jeff at 9/21/2006 12:00:00 AM
Hey ASP.NET 2.0 this code "private MembershipUserCollection allUsers = Membership.GetAllUsers();" crashes my web portal. Below you see the inner exception Innet Exception: System.Configuration.ConfigurationErrorsException was unhandled by user code Message="Could not load file ...more >>

Help with user authentication
Posted by Tarun Mistry at 9/21/2006 12:00:00 AM
Hi all, I am using the ASP.NET 2.0 security model to impliment user access control on my site. I have a few questions hopefully someone can answer: 1) From the encrypted ticket stored in the cookie (available in User.Identity) how can I access the users userId value? 2) If a user is logged i...more >>


DevelopmentNow Blog