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


all groups > asp.net > january 2008

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

code behind issue
Posted by solutionsdxb@gmail.com at 1/31/2008 10:54:20 PM
Hi , I am using a code behind for asp.net page , <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> and file default.aspx.vb contains all the code including Sub Page_Load() If Request.QueryString("check") = "p" Then '1. Creat...more >>

ContentPlaceHolder Control Names
Posted by Scott M. at 1/31/2008 9:57:43 PM
I'm noticing that what using a MasterPage with a ContentPlaceHolder that the content page's controls don't render with the exact same name/id as I'm giving them at design time. This is causing problems with client-side scripts that I wish to write. What can I do to ensure that the name I g...more >>

Cache
Posted by Rodrigo Ferreira at 1/31/2008 9:28:16 PM
Hi, how do I configure a cache for all my pages with a few code lines? Thanks ...more >>

how to show profile properties for all users?
Posted by Bart at 1/31/2008 8:58:10 PM
Hallo, i defined some profile properties (category and department), for our membership users.. I also made a list of all the membership users in a gridview. This list shows only the username and emailaddress. My problem is that i also want to show their profile properties in the gridview....more >>

MasterPages with Ajax
Posted by Rodrigo Ferreira at 1/31/2008 8:44:16 PM
Hi, I´m trying to create a master-content page that does not refresh all the page when a link is click, I mean that only the content page should be refreshed. How to do this? Thanks ...more >>

UpdatePanel
Posted by Rodrigo Ferreira at 1/31/2008 7:22:17 PM
How do i load a page inside a UpdatePanel? Thanks! ...more >>

Application Setting
Posted by Scott M. at 1/31/2008 5:50:59 PM
In an ASP .NET 2.0 Web Application Project using C#, how do I retrieve an application setting I've created in the Project Properties designer that is written into the <applicationSettings> section of web.config. Please note: I'm asking about <applicationSettings>, not <appSettings> and I'm...more >>

Invalid postback or callback argument - Very Strange Error
Posted by shapper at 1/31/2008 4:31:00 PM
Hello, I have an Asp.Net 3.5 ListView. I added a TextBox and 2 buttons in Edit Item Template. The TextBox displays the value of the field has expected. Buttons are defined as follows: Dim cancel As New Button cancel.CommandName = "Cancel" cancel.Text = "Cancel" ...more >>



DropDownList & Viewstate
Posted by jwnews1231@gmail.com at 1/31/2008 2:56:53 PM
Hi, I've been working on minimizing the use of the ViewState in my asp.net applications because of its overhead. The problem I am having is that I keep losing SelectedIndex in the DropDownLists. I don't lose the SelectedIndex when the ViewState is enabled, only when it is off. I have a dr...more >>

Way to stream TIFF files
Posted by David C at 1/31/2008 2:01:11 PM
Is there a way in ASP.Net 2.0 to stream individual TIFF image files into one TIFF file? If so, can you point me to any details? Thank you. David ...more >>

Raise Event
Posted by shapper at 1/31/2008 1:45:20 PM
Hello, How to manually raise an event of a control? For example the Update event of a GridView ... Thanks, Miguel...more >>

Basic AJAX Question
Posted by Jonathan Wood at 1/31/2008 10:58:21 AM
Greetings, I'd like to implement some AJAX features on an existing ASP.NET site. I have one example of doing this but, otherwise, don't know much about it. I have one question, though, about getting started: I notice that there are project templates for creating AJAX this and AJAX that. I'...more >>

Response.Clear() doesn't clear
Posted by David at 1/31/2008 9:58:03 AM
When I use Response.Clear() it doesn't seem to have an effect. The original aspx page code remains. I have tried creating test projects in both VS 2005 & 2008, where I just add a new aspx page and place in the Page_Load() event Response.Clear(), but nothing is cleared out. I have tried various...more >>

Installed Linq CTP for VS 2005, but
Posted by gnewsgroup at 1/31/2008 9:21:45 AM
I just downloaded and installed the 2006 Linq CTP for VS2005. After I restarted VS2005, I had an additional website template called "LINQ ASP.Net Website Template", which I selected and a Linq web site was created for me. But, I cannot find the LINQ to SQL designer like the one available in ...more >>

Writing to Favorites (IE) from aspnet
Posted by randy.buchholz at 1/31/2008 8:58:48 AM
I would like to be able to build a set of folders and links in the browser (IE 6+) "favorites" to create semi-static lists of links configured to the users profile and preferences. I haven't worked with controling browsers so I'm looking for a place to start. BTW - I'd like to keep as much s...more >>

forms inside of other forms?
Posted by Andy B at 1/31/2008 8:57:22 AM
I have an html form that is supposed to be inside the main aspx page form. How do I do this so it will work? I have no way of changing the form (nested form) since its written in javascript and is auto generated... ...more >>

Viewstate expires
Posted by Chris Davoli at 1/31/2008 6:54:02 AM
I wqas told to put a machine key into the web config so it would do the encryption the same. I did that and I still get the following error. Any other suggestions? I store some stuff in view state and then if I leave the browser instance alone say for 20 minutes, it gives me this message wh...more >>

How to change iframe src ?
Posted by Atilla at 1/31/2008 6:46:42 AM
<iframe id="fband" name="fband" --> src="band.aspx?S=Other" width="100%" height="300" scrolling="auto" frameborder="0"> </iframe> How to change iframe by using VS 2008 C# ?...more >>

Throw Exception
Posted by shapper at 1/31/2008 6:08:23 AM
Hello, I have a function named Find as follows: Public Function Find() As Control Dim AllControls As Control() = FindAll() End Function FindAll returns can return an array of controls or single control. What I want is to create and exception that I would throw as follows: If AllC...more >>

Master Page Controls & New Session
Posted by Ian Semmel at 1/31/2008 5:38:23 AM
I have a master page with a LoginView control in a left pane. This all works OK. However, when a session expires and a user clicks a link, I go to a 'Session Expired' page and ask them to click a link to go back to my Default.aspx. When this comes up, the page looks OK but the controls in ...more >>

Code for Accessing the controls of masterpage in its content page
Posted by Sonu at 1/31/2008 4:31:16 AM
I have to change the controls (panel)'s top and other properties of master page after accessing it in it's content page....more >>

Using hyperlink as back button
Posted by Mike P at 1/31/2008 3:35:06 AM
I need to use a hyperlink as a back button, using javascript:history.go(-1). But the ASP.NET hyperlink control doesn't have an onClick event, and the HTML anchor tag requires a href. How can I use the javascript to go back a page using a hyperlink? *** Sent via Developersdex http://www....more >>

Oracle connectivity Issue with .Net
Posted by Saquib at 1/31/2008 3:22:26 AM
Hi All, I have built a simple .Net console application. In which i am trying to connect to the oracle database by using Oracle data provider for .Net from ORACLE site and it works fine on my machine. I have installed the same on my main server but when i run this application from Our main ser...more >>

User Control PageLoad even not firing
Posted by Phil Johnson at 1/31/2008 2:43:01 AM
Hello, I have a page that contains a user control that is nested within other user controls... the nesting is quite deep, not sure exactly how ddep but there is a control inside a control inside a ... etc. One of the user controls has a button click that tries to get a reference to the p...more >>

Any quick solution to display performance diagnostics on every pag
Posted by Phil Johnson at 1/31/2008 1:13:00 AM
Hi, I am working on a large asp.net 1.1 application. An older ASP version of the same application has code in every page and includes to enable it to display some performance diagnostics on every page (things like what percentage of the time to return the page was spent in each includes ...more >>

Will .NET 2.0 Windows Services run under Windows 2000?
Posted by Jeff Dege at 1/31/2008 12:07:18 AM
I posted, a week or so ago, about problems I was having with a Windows Service, written in C# and .NET 2.0, that would install and run fine, on some machines, and would install, but would hang on startup, on other machines. On exploring it further, it seems that the machines that this servi...more >>

Permission Issues?
Posted by Claus Fuss at 1/30/2008 11:24:56 PM
To make it simple, I'm doing this Dim Location As String =3D AppDomain.CurrentDomain.BaseDirectory & = "reports\baseReport1.xls" System.IO.File.Copy(AppDomain.CurrentDomain.BaseDirectory & = "reports\baseReport.xls", Location) Response.Redirect("~/reports/baseReport1.xls") Works ...more >>

HttpModule or HttpHandler?
Posted by Guzeppi at 1/30/2008 8:43:16 PM
if i want to create a redirection service, i.e. requests on a certain url are redirected to other urls depending on the querystring parameters in the request, what is best to use in this case httpmodule or httphandler? which gets executed first in the asp.net pipeline? ...more >>

convert asp to .NET format question
Posted by Mike at 1/30/2008 8:26:05 PM
I'm converting an existing asp application, within the asp app its using 12 SQL queries but showing the results in one table (html). Is there a way to use these same 12 queries and show the results in one gridview? Each query is one row of data in the table (current version) So the app is s...more >>

error when creating profile with modified provider
Posted by Mich at 1/30/2008 8:17:07 PM
Hi, I changed the default provider for usernames like this in web.config: </connectionStrings> <clear/> <add name="myprovider" connectionString="Data Source=.\sqlexpress;Initial Catalog=mydb;Integrated Security=True" providerName="System.Data.SqlClient"/> </connectionStrings> <members...more >>

Getting an URL from an Access db and turning into <a href> link
Posted by JEFF at 1/30/2008 5:42:29 PM
Hello, I am trying to get a URL out of an Access database and make it a link on an aspx web page. For some reason it looks like this on the page: #http://mydomain.org# I have the following AccessDataSource <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile=...more >>

Internet Explorer 7 Does Not Redirect When Page With PostData Refreshed
Posted by patogenic@gmail.com at 1/30/2008 4:11:05 PM
Internet Explorer 7 (not tested IE6) does not redirect if the page *refreshed* when there is postdata(after posting data to server by postback, form submit) and draws a blank page. There is no problem with Opera 9.2 and Firefox 2.0. I have tried the following suggestions to resolve the probl...more >>

function not available
Posted by shapper at 1/30/2008 3:52:18 PM
Hello, I am working on a library which namespace is Parent. Then I have 2 classes inside the following namespaces: Class A > Namespace Parent.Base.Common Class B > Namespace Parent.Web.UI.WebControls I have a function inside class A as follows: Public Function FindAll ... From c...more >>

Find similar items
Posted by Tem at 1/30/2008 3:24:56 PM
I have a single table that contains information of photos ie. ID PhotoName PhotoTags 23 my cat cat animal pet 24 cell phone electronic communication 25 tiger animal zoo What would be a possible way to write a query that returns similar items - share similar tags, si...more >>

GridView
Posted by rosoft at 1/30/2008 1:28:02 PM
Hi I'm using a GridView to list data from a table in my database. On of the fields is a URL and when I click a row in the GridView I want the page to automaticly open that link. How do I write code to an event i the GridView so that when I click a row the page opens up the new link in anoth...more >>

Read SMTP email using ASP.NET and IIS
Posted by peter smith at 1/30/2008 12:52:12 PM
Hi all. We already use the SMTP features in .NET for sending SMTP email, but how can you receive SMTP email using the .NET framework. Basically we need to catch email from a given address and then invoke our business processes. Any help or a direction to the right article would be great. We...more >>

Selecting Multiple Selection Listbox in a TemplateField?
Posted by Lance Wynn at 1/30/2008 12:47:17 PM
Hi all, I have been working on this seeming simple problem the better part of the morning, and can't seem to figure it out. I have a listbox as a template: <asp:TemplateField HeaderText="Roles" SortExpression="Roles"> <EditItemTemplate> <asp:ListBox ID="ListBox1" runat="server" AppendData...more >>

Crystal Rpt in application
Posted by gsauns at 1/30/2008 12:16:01 PM
I have an application developed with ASP.NET 2.0. I am using Crystal Reports 10 on another server and I've created a report to test out. I don't have Crystal for Visual Studio or anything like that, like I've been seeing in my search for knowledge. I added references in my project to: Crysta...more >>

DAL Question: SqlConnection vs SqlDataSource
Posted by John Kotuby at 1/30/2008 11:51:41 AM
Hi all, I was reading a post regarding questions about how to properly separate the Presentation layer from the BLL and the DAL (I don't know the acronym for the presentation layer). Quite an interesting discussion it was. I started to set up my ASP.NET 2.0 VB Web Application that way and the...more >>

Using @@Identity or Scope_Identity in Access
Posted by James at 1/30/2008 11:48:01 AM
Hello Can this be done? If so how? I have seen some articles saying it can but they are from 1999 and the code no longer works. Or is there another way of getting the primary key for the record just inserted? Thanks James...more >>

Data Dictionary App - Yikes!
Posted by Rbrt at 1/30/2008 9:31:03 AM
I am writing an application that is data dictionary driven - users will have the ability to create tables and add fields to those tables, and other users will be able to do data entry into these tables, view them, etc... The problem is in writing the code for data entry and display. I have tr...more >>

how to install .NET 3.5 onto 2003 web server?
Posted by Jurjen de Groot at 1/30/2008 8:45:28 AM
hello, I've developped an application using .NET 3.5. I have asked my hosting provider to install the .NET 3.5 Framework redistributable, and they say they did, but I keep running into problems when starting a 3.5 web-application. The .NET version number at the bottom of the error screen (...more >>

What makes database connection expensive?
Posted by gnewsgroup at 1/30/2008 8:36:40 AM
We all seem to know that database connections are expensive and we try to reduce the number of database trips as much as possible. This may sound like a stupid question: What makes a database connection expensive? Is it memory intensive? CPU-intensive? Or does it use a lot of bandwidth? Or no...more >>

Page_Load executes before aspx is rendered?
Posted by gnewsgroup at 1/30/2008 7:48:15 AM
This might have been discussed before, but I haven't been able to dig it out. I ask because I notice something interesting. Suppose, I have the following controls in a web form. <asp:DropDownList ID="DropDownList1" runat="server" > </ asp:DropDownList> <asp:Label ID="Label1" runat="serve...more >>

Open another .aspx page
Posted by id10t error at 1/30/2008 7:13:06 AM
Hello, I have a login that will be the first page the user sees. Once the user type in the username and password and click on the login button I want to close the login.aspx page and goto the Menu.aspx page. How do i do this. I am using vb.net. Thank you in advance for your help....more >>

Disabling validation in an user control.
Posted by msch.prv@gmail.com at 1/30/2008 5:52:56 AM
Is there a specific method to disable field validators in a user control.from within a parent page or does it require an ad hoc approach? The page attribute ValidateRequest does not seem to be available in user controls. TIA for any inputs....more >>

In spite of using iFrame the whole page reloads in IE?!?
Posted by MaigoSchaeffer@googlemail.com at 1/30/2008 2:12:42 AM
Hello together, I have the following problem: I use a iFrame in a aspx-site whose contents should be reloaded all three seconds, because it concerns a running curve. This also functions admirably with Firefox, but NOT with IE 5/6 or 7... Any ideas? Here is the code of my iFrame: <ifra...more >>

Trotz_iFrame_läd_sich_im_IE_die_ganze_Seite_neu??!?
Posted by MaigoSchaeffer@googlemail.com at 1/30/2008 2:07:28 AM
Hallo zusammen, habe folgendes Problem: ich benutze in einer Seite einen iFrame, dessen Inhalt alle drei Sekunden neu geladen werden soll, da es sich um eine laufende Kurve handelt. Das funktioniert auch pr=E4chtig mit Firefox, aber NICHT mit IE 5/6 oder 7... Hat jemand eine Idee was ich da...more >>

Accessing a Hidden HTML field in the OnInit() method
Posted by alun65@gmail.com at 1/29/2008 10:45:31 PM
I need to access a hidden HTML field on post back from the OnInit method. This hidden field value has been set previously in the Page_load event. simplified example is as follows: IN THE CODE BEHIND protected override void OnInit(EventArgs e) { Label1.Text = myHiddenFeild.Va...more >>

Could not load type 'System.Web.UI.IScriptManager'
Posted by Jurjen de Groot at 1/29/2008 8:10:26 PM
Hi, I have developped an application in VS2008, using .NET 3.5 I'm using some Devexpress and Ms-AJAX controls and all works fine on the DEV-machine (as it always does ;-) ) Now that it's deployed on the webserver I get the error as pasted in below: I've asked the web-hosting company to ins...more >>


DevelopmentNow Blog