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 > february 2007 > threads for friday february 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

Getting the Click event of an TemplateField
Posted by Class at 2/23/2007 10:22:19 PM
Hi all, I create a gridview dynamicly because I don't know the columns in advance. I use the Templatefield to create a linkbutton. Everything fine..I have the postbackurl and it works. But now I need to do some extra stuff in the click event of the created linkbutton. I tried to assign a de...more >>


IIS how to get .aspx to execute
Posted by Fick at 2/23/2007 8:57:38 PM
Hi all I've finally figured out how to just get IIS 7 to display the welcome page - had to use the clasic pool option. Now I want to get my ASP.NET to run, no luck so far. I'm unable to even create the app in VS2005 if I select HTTP as my "location". I never seem to have rights and I'm th...more >>

Ebay solution to integrate with custom shopping cart
Posted by vtxr1300 at 2/23/2007 7:01:57 PM
Do any of you know of a module that would allow me to tie in a shopping cart I have built with ebay? We have found a number of 3rd party solutions that provide a cart along with ebay integration, but along with a number of bad reviews we've read of the services, the monthly fees and sales perce...more >>

Expression Web & XAML
Posted by GaryDean at 2/23/2007 6:15:01 PM
I downloaded Expression Web and expected it to have functionality for WPF or at least WPF/e but it is all about HTML. What am I missing? -- Regards, Gary Blakely ...more >>

Accessing HttpContext in ClassLibrary?
Posted by Sami Rehman at 2/23/2007 5:45:05 PM
hi i have a vs solution in which there are 2 projects class library representing Security services and another one is web application project. i need to access http context in a static method in a class of Security Services project. how can this be done. thanks -sami ...more >>

Hidden objects given error
Posted by tshad at 2/23/2007 5:17:13 PM
I have some textboxes that are being hidden using <div runat="server"> which mean they are not on the page But I am also trying to set focus to a Textbox when it is on the screen. When the Textbox is not on the screen I am getting a JavaScript error: document.forms.0.Email is null or not a...more >>

IIS on Vista home premium?
Posted by Steven Spits at 2/23/2007 4:29:01 PM
Hi, Plannig to buy Vista, but not sure what version to get. I do VS.NET development, mostly ASP.NET. Can IIS be installed on Vista home premium? Or do I need business or ultimate? Steven - - - ...more >>

Using Profile variable for query
Posted by DanWeaver at 2/23/2007 4:27:30 PM
I am assigning a profile variable based on the conents of a text box when a button is pressed- this is then used as a search term to populate a list box- all controls are in same ajax update panel- how can I update the profile variable before the listbox gets populated - ie assign the variable p...more >>



how to find the type of an object represented by an interface
Posted by Random at 2/23/2007 3:34:05 PM
How can I use reflection (or some other method) to find the type of an object that has been passed in to my method under an interface definition? I try to use GetType, but that won't work. ...more >>

execute program on web server
Posted by Kevin O'Brien at 2/23/2007 3:31:28 PM
Hey guys, I have a button that when clicked I want it to execute a program on the web server and not on the client machine. Can someone please tell me how this is done? Thank you, Kevin ...more >>

Another GridView Bug -> PagerSettings.Visible
Posted by gerry at 2/23/2007 3:05:14 PM
The PagerSettings.Visible property is not being handled properly by the GridView control. The value assigned to this property is not applied until after a postback. Simplest test : .aspx containing a single gridview - enable paging and give enough data to page. add checkbox with auto...more >>

System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
Posted by Nick nkw at 2/23/2007 2:55:43 PM
I already following the steps in: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskaccessingsqlserverusingwindowsintegratedsecurity.asp But I still get the error. I found it works when using VS.Net internal web server. It use Domain\MachineName$ to connect SQL S...more >>

How do you switch from website to project
Posted by Parrot at 2/23/2007 2:36:05 PM
For some reason my web application changed to a website app rather than a project in VS 2005. I don't know how it happened but now whenever I run under debug I cannot follow the flow of my program especially in any new code that I introduce. What causes this to happen and how can I change my...more >>

Changing Page_ValidationActive server-side??
Posted by VMI at 2/23/2007 2:10:13 PM
I have several RequiredFieldValidator in my page, but I need to do postback, so I have to disable them temporarily. I do this with Page_ValidationActive on client-side ("onClick="Page_ValidationActive=false;"). How can I change this property back to true in my server-side code? I need to do ...more >>

Find Controls in Code
Posted by Paul Cheetham at 2/23/2007 12:20:57 PM
Hi, I have a project where I need to find a control on a page in code. I read a control ID name from a database, and then need to find it on the page so that I can change some properties. (I'm doing it in Page_Load or Page_LoadComplete) I have used Controls.GetEnumerator, and enumerated t...more >>

Breakpoints not Firing // VS2005
Posted by sloan at 2/23/2007 11:39:39 AM
Wow. This happened to me about 4 months ago. I found a forum post about it, but didn't book mark it. It had something to do with "always write pdb" files or something like that. ( memory = bad ) Anyway. I'm running an app (2005 asp.net app) .. and my breakpoints are being picked u...more >>

Transfering viewstate from one page to another?
Posted by Rob Meade at 2/23/2007 10:37:43 AM
Hi all, I have an application which enables a user to register and select a series of resources to go with their profile. At the moment I have an issue on the section where they will select the resources, this is done by launching a popup window, displaying the list of available resource...more >>

continuous parser error
Posted by Ace at 2/23/2007 10:31:15 AM
hello, i just converted old .net project (it was a solution with web project and class project) built in .net 1.0 and 1.1 framework to .net 2.0. as i expected, when i clicked on the solution file from vs 2005, it went through a conversion process and all seemed to go ok. when i attempt to run...more >>

web deployment project AfterBuild
Posted by Chuck P at 2/23/2007 10:21:43 AM
In a web deployment project I want to encrypt the connection strings. I use to do this with a batch file with something like this. aspnet_regiis.exe -pef "connectionStrings" ..\ -prov "HrCustomProvider" I know I need to use <Exec Command='aspnet_regiis.exe -pef "connectionStrings" ..\ -pro...more >>

problems with vs.net 2003 on windows vista
Posted by Sridhar at 2/23/2007 9:42:08 AM
Hi, I am having problems to run asp.net 1.1 on windows vista business operating system. When I try to create a new web application or try accessing an existing web application it is giving the error "Visual Studio.net has detected that the web server is running asp.net version 1.0. The we...more >>

Authentication ... going crazy here.
Posted by shapper at 2/23/2007 9:31:35 AM
Hello, I added a user using Membership and in my SQL 2005 database I see the user data. I set PasswordFormat to Clear in my Web.Config so I can see the password. I went to my SQL 2005 database and the username is: "miguel" and the password is "mypass". Then I did the following: lRe...more >>

Format DataGrid/View
Posted by Joel at 2/23/2007 9:27:03 AM
I'm trying to format the data from our database query that is being binded to a DataGrid. Basically an easy example to understand the problem is a field in the database uses 1's and 0's to show true or false but our user doesn't need to see this nor do they understand it so if it equals 1 then ...more >>

Keeping iFrame Events In One Browser Window?
Posted by pbd22 at 2/23/2007 8:58:46 AM
hi. does anybody know how to control the target=some.aspx attribute in an iframe so a new page doesnt open? I am trying to upload files via hidden iframe. if i use the target=some.aspx attribute the files make it to the server no problem, but a new page opens up (i want all this to happen in ...more >>

Get String
Posted by shapper at 2/23/2007 8:58:30 AM
Hello, I am defining the following: Dim Names As String() Consider the following: A = {a, T} B = {b, T} C = {c} Every time I create Names string() I will define it as a value and T or just a value. Basically, I need to get the value a, b or c to a string Name. For example...more >>

Ajax - Master Pages - ScriptManager - Web User Controls
Posted by Larry Epn at 2/23/2007 8:49:00 AM
I have an app using Ajax. The scriptmanager is within the form that is within the master page. I also have web user controls that are doing partial rendering and are "borrowing" or "inheriting" the scriptmanager from the master page. Heck, when they're rendered, the scriptmanager is on all ...more >>

SQLDatasource not using SelectCommand from _Selecting Event.
Posted by John Kotuby at 2/23/2007 8:10:35 AM
Hello again... I have tried using the SQLDatsource control as part of a user control that just conatins a Repeater and the SQLDatasource control which is designated as the Datsource for the Repeater. I set it up just like in the documentation. --------------------------- code -----------...more >>

ASP.NET 2.0 Using MOSS 2007 functionality
Posted by AGH at 2/23/2007 8:05:47 AM
I have an Intranet based on ASP.NET 2.0 using Webparts to give a similar experience to Sharepoint. This development was made as Sharepoint 2003 did not suit our needs and Sharepoint 2007 was not ready. Now that Sharepoint 2007 is ready (and being demo'd) I am getting questions regarding featu...more >>

Clear all tables (Membership, Profile, Users, ...) in SQL 2005
Posted by shapper at 2/23/2007 7:26:44 AM
Hello, Can someone tell me a secure way to clean all records from ASP.NET 2.0 SQL 2005 tables (Membership, Profile, Users, ...) ? Thanks, Miguel ...more >>

DateTime
Posted by shapper at 2/23/2007 6:49:03 AM
Hello, I defined a DateTime variable: Dim dt As New DateTime How can I check if it is empty? Basically I want to check if it was given to it a DateTime value or not. Thanks, Miguel ...more >>

DropDownList
Posted by shapper at 2/23/2007 6:34:32 AM
Hello, I created a DropDownList as follows: With ddlRole.Items .Add("---") .Add(New ListItem("Administrator", "Admin") .Add(New ListItem("Collaborator", "Coll") .Add(New ListItem("User", "Us") End With I need to defined the current Selected i...more >>

Read protect excel using aspnet
Posted by sweetpotatop NO[at]SPAM yahoo.com at 2/23/2007 5:35:14 AM
Hi, I wonder if it is possible to read the content of an excel spreadsheet through aspnet. The spreadsheet (workbook) is protected and it resides in a network drive. Please provide sample code if possible. Thanks in advance. Your help is greatly appreciated. ...more >>

2 gridview questions regarding manually populate
Posted by Patrick F at 2/23/2007 5:24:17 AM
I have a gridview on the page that i want to dynamically populate with radiobuttons, so i went out on the net and found something that works perfectly, it created radionuttons and the postback with the works. My problem is that i want to send 2 columns to the gridview instead of 1, but i can...more >>

Dinamic control validation
Posted by Pieter at 2/23/2007 5:12:33 AM
I have to make a survey and I have te following problem. For each question in a subject (our survey had multiple subjects) I add a radiobuttonlist and a requerdvieldvalidator to te control collection. After the page is posted back the result is saved and the control collection is cleard an...more >>

Two masterpages in one application problem
Posted by Stephen Hatfield at 2/23/2007 4:52:38 AM
I have two masterpages in a web application. One is used for the login and logout pages. The other is used for all other pages in the application. The difference between the two masterpages is that on the main one I have a user control in the left side that has the site navigation menu while ...more >>

GridView column update
Posted by drasko at 2/23/2007 3:23:19 AM
Let's say I have a gridview that shows list of users with their attributes first name, last name, ... and some boolean attributes, like shouldBeNotified, isForeigner, or something like that. When I want to update some fields I must click Edit to do so. Is there a way to update a column isForeign...more >>

Adding ASP.NET AJAX to an existing project
Posted by trullock NO[at]SPAM hotmail.com at 2/23/2007 2:39:15 AM
Hi, Ive installed the ASP.NET AJAX extensions and ive set up a simple example, however its not doing anything asynchronously, its always posting back... Could this be something to do with the fact ive added it to an existing project not an "asp.net ajax enabled project"? If so, whats the...more >>

Good current ASP.NET book?
Posted by schneider at 2/23/2007 12:17:56 AM
Good current ASP.NET book? Something for a beginner to advanced, with good code/design practice. Prefer VB.NET. seems most of them are out dated? Thanks, Schneider ...more >>

Giving Windows XP look and feel to ASP.NET AJAX Website
Posted by Manish Bafna at 2/23/2007 12:14:00 AM
Hi, I am using ASP.NET 2.0.So is it possible to give windows XP Look and Feel to my ASP.NET AJAX Website irrespective of operating system in which browser of end users are running.I want to do this without using third-party component. I have searched high and low on the internet but i am not a...more >>

'System.Web.Caching.Cache' is a 'type', which is not valid in the given context ??
Posted by Harry Haller at 2/23/2007 12:00:00 AM
What's wrong with this: Error 3 'System.Web.Caching.Cache' is a 'type', which is not valid in the given context public List<AssetSummary> GetAssetSummary() { return (List<AssetSummary>)System.Web.Caching.Cache("assetSummary"); } Is it telling me that I can't get a generic l...more >>

newbie question on data in code
Posted by Neil at 2/23/2007 12:00:00 AM
Hi, I need to access some data in my normal code. I assume that i need to create a datasource as per this example: <asp:sqldatasource id="SqlDataSource3" runat="server" connectionstring="<%$ ConnectionStrings:interarcConnectionString %>" selectcommand="SELECT [ID], [CategoryID] F...more >>


DevelopmentNow Blog