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 > august 2006 > threads for wednesday august 16

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

odbc with vfp
Posted by Agnes at 8/16/2006 11:14:06 PM
I am new bie in asp.net and start my first asp.net. my database is vfp , i need to create the ODBC connection and got two questions (1)I cannot go to my client server to setup ODBC since the security level , they disallow me to touch the server. can I create an odbc connection programmically ...more >>


so what's the trick to making 'defaultfocus' work?
Posted by Chris Marsh at 8/16/2006 9:08:19 PM
I am expecting it to automatically put the cursor in the field I am entering but it doesn't I still have to tab to get to that field. I was hoping that I could set the focus, buttons and tab orders just like a regular Windows form in my web page. Thank you in advance! ...more >>

only numbers
Posted by Chris at 8/16/2006 8:05:01 PM
Hi, How can I only accept numbers in a textbox? Thanks...more >>

Problem retreiving value in javascript
Posted by James Pemberton at 8/16/2006 7:40:44 PM
I have recently created a ASP site utilizing Master Pages and all works fine until I want to proces my javascripts. Just to let you know, most of cliewnt side scripting is new to me. But anyway, I can retrieve and updat ethe value a textbox on the page by using the document.getElementB...more >>

Calling Class from App_Code using vb
Posted by sck10 at 8/16/2006 6:28:47 PM
Hello, I am converting a class in the App_Code folder from c# to vb and am having problems calling the sub procedure. I have created a Sub called HidePanels in the class "General". When I try to declare a new object of this type in my codebehind, I get the error: "Type 'HidePanels' is not...more >>

DataGrid / GridView Difference
Posted by Tina at 8/16/2006 5:51:30 PM
In the ItemDataBound event of the DataGrid "Item" is a property so I can say e.item.... But in the GridView ItemDataBound event there is no "Item" What goes? How can I get anything done without Item? Thanks, T ...more >>

Grid View
Posted by Seema Multani at 8/16/2006 5:31:24 PM
I have a Grid view. It is invisible to my form. It has 2 columns. I want to grab the values of Filename column where Item(column) = 10000. e.g it should return me an array of filename column values for 10000. Item Filename 10000 Tif file 10000 ...more >>

Permissions Error .. ?
Posted by Jim in Arizona at 8/16/2006 3:36:54 PM
Normally, the data that I work with is on an SQL Server, which is installed on the web server itself or another local server on the LAN. I tried connecting to an access database on another server, which I could fine when designing the page. But, when I ran the page on the web server, I got t...more >>



Condition Formatting on GridView
Posted by Jim in Arizona at 8/16/2006 3:32:57 PM
Using a GridView or other data reading control (gridview, datagrid, datalist), how can I do conditional formatting on the results pulled from an access database? As an exampe, use a sql statement to bind to the datagrid, and one of the columns has numerical data. How would I, say, make any d...more >>

SiteMapPath Question
Posted by sean.marchetti NO[at]SPAM gmail.com at 8/16/2006 2:22:05 PM
Hello, I am having a little difficulty coming up with a solution for the following requirement and I was hoping somebody might be able to offer some help. I need to create a SiteMapPath for a category system that supports any number of nested categories. Here's what I mean: Category A ...more >>

Post and redirect
Posted by Laith Zraikat at 8/16/2006 2:11:59 PM
I am trying to invoke a post request from code behind of an asp.net page using "WebClient" object, and I want the user to be redirected to the action url as well. So far Ive been able to send the post and get the response. using this code: Dim PostData as string Dim ActionURL as string D...more >>

NO DATA RETURNED IN GRIDVIEW
Posted by joshd NO[at]SPAM norrisinc.com at 8/16/2006 1:56:05 PM
HELP! I HAVE A GRIDVIEW ON A ASP PAGE BOUND TO A STORED PROCEDURE, THE STORED PROCEDURE WORKS FINE ON THE SQL SERVER, AND WHEN I TEST THE DATA SOURCE ON THE ASP PAGE IN VISUAL STUDIO IT RETURNS THE CORRECT DATA. BUT WHEN I RUN THE WEB PAGE, NO DATA IS RETURNED INTO THE GRIDVIEW! HERE IS TH...more >>

Running a referance
Posted by Zulander at 8/16/2006 1:36:50 PM
Hi, i have a DLL that i have made, I need the page to keep it running until the sesssion has ended. When the users logs in using webcontrol login, i create the object when the user has loged in but for some reason the object closes and does not keep running, i know it starts up but it stop's fo...more >>

Is it possible to open a new browser not using javascript
Posted by frank at 8/16/2006 1:26:03 PM
There are some methods for redirect to another aspx page. response.redirect() server.transfer() Is it possible to open a new browser window which is not using javascript. Thanks!...more >>

My first asp2 code
Posted by יוני גולדברג at 8/16/2006 1:20:02 PM
Hi, I've developed few asp 1.1 application, now I'm about to develop my first asp2.0 appliation. I'm afraid to use old techniques so I want to focus and learn the best Asp2.0 techniques. How do u implement your 3tier flow from user to db? 1. Which control to u use to present report data? Do u...more >>

Sum a Datagrid row?
Posted by ClevelandSteve at 8/16/2006 1:18:39 PM
Hello all, I have a datagrid that returns sales of items by month from an Oracle table using a datareader like so: Item |Jan |Feb | ... |Dec itm1 |10 |5 | ... |6 itm2 |7 |2 | ... |8 I want to add a column to the end of the datagrid that would sum the row: Item |Jan |Feb | ....more >>

global.aspx and session_end event
Posted by Roger at 8/16/2006 1:06:02 PM
When I call the session.abandon() method, it calls the session_end event. When a user closes the browser or clicks the log off button, I can dispose of objects and abandon the session cleaning. But, when a user either navigates away from the web app and when the session timesout, the session...more >>

Wanted: Help setting session timeout
Posted by Siegfried Heintze at 8/16/2006 12:55:32 PM
I have edited my web.config file in an attempt to prolong the amount of time my browser can site idle: <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="2000" /> T...more >>

binding template items together
Posted by bmayer NO[at]SPAM mnepilepsy.net at 8/16/2006 12:44:10 PM
I am using a detail view and binding it to a sql data source (at some point in the future it will be an object data source). I have seen the article "Working with Data is ASP.NET 2.0 :: Customizing the Data Modification Interface", and its description of how to turn one of the fields into a te...more >>

Countdown control...with asp.net!
Posted by tranky at 8/16/2006 12:19:39 PM
Hi programmers, i'm italian, and i need your help. Is it possible? There's a way to create a countdown control in asp.net? The control must shows in a label the countdown text. At the end of the countdown, the page must redirect to another. I don't want to use javascript. Is it possible? ...more >>

Keep the format of MultiLine TextBox.Text
Posted by frank at 8/16/2006 12:18:02 PM
please help! How to keep the format of the content of a MultiLine TextBox. For example, 'new line' I try the code: ------------------------------ TextBox.Text = "TERANET / MPAC - KEY TERMS OF USE \n" & _ "3.1 \n" & _ ....... ------------------------------...more >>

Programmatic MasterPage access
Posted by cevans NO[at]SPAM scev.net at 8/16/2006 12:16:52 PM
Is there a way to load a MasterPage programmatically? Not switch a page's masterpage but to create a MasterPage object that holds a given masterpage. So I know I can do: MasterPage master = new MasterPage(); But there is no way to do something like: MasterPage master = new MasterPage("~...more >>

Static vs Application in Global.aspx.cs
Posted by rwoo_98 NO[at]SPAM yahoo.com at 8/16/2006 11:38:12 AM
Does anyone know the difference between defining a static variable inside Global vs using an Application variable? For example Using a static int variable. public class Global : System.Web.HttpApplication { public static int MaxValue protected void Application_Start(Object sender, E...more >>

Mass mail - newsletter, NOT SPAMMING
Posted by Greg9Strat at 8/16/2006 11:30:31 AM
I'm trying to figure out the best strategy for sending out an email to roughly 2,000 contacts. I have an html file that will be the body of the email and a SQL database containing the contact list of emails. These emails are our newsletters that get sent out each time there is something notewor...more >>

ASP.NET 1.1
Posted by Robert E. Flaherty at 8/16/2006 11:06:54 AM
On a PostBack, how can I assure the that the button initialiating the postback will have its click event execute. I have an ASP page in which at least one of the page's button's click event is not executing on a postback. ...more >>

Swapping programmatically created user controls?
Posted by Ramesh at 8/16/2006 10:38:42 AM
Hello all, I have a form in which I'm trying to load a user control depending on some user choice, and my control's events are not firing properly. Here's a completely stripped down repro of the problem: The form itself is empty: <body> <form id="form1" runat="server" /> </body> and ...more >>

All requests to a directory go to an IHttpHandler
Posted by David Thielen at 8/16/2006 10:33:03 AM
Hi; When I display reports, if it's a text file I need to have a .txt extension. This got me thinking, what would seem most natural to users is if the url ended up being something like: http://www.domain.com/asp_name/create-report/ReportTitle.pdf So anything under http://www.domain.com/as...more >>

DataGrid - Checking one checkbox when the other is clicked
Posted by arun.hallan NO[at]SPAM gmail.com at 8/16/2006 10:13:14 AM
Hi, I have two columns in a datagrid that are filled with checkboxes. I want one checkbox in a row to be checked when the corresponding checkbox is checked. I've added an OnCheckedChanged event to the checkbox and implemented the method with the following code: for (int i = 0; i<this....more >>

Printing ASP.NET 2.0 Page Leaves Blank Areas
Posted by EagleRed NO[at]SPAM HighFlyingBirds.com at 8/16/2006 10:07:03 AM
I have an ASP.NET 2.0 application with a page that contains a lone dynamically generated table (an asp:table). It displays fine in the browser (IE 6) but when printing (and in the print preview function) pages 2-n do not print all the content. Parts of the table do not show at all. The test...more >>

Cookie not found after redirect from asp to asp.net 2.0
Posted by teelinmaloney NO[at]SPAM gmail.com at 8/16/2006 9:56:59 AM
Hello, We are currently migrating our system from asp to asp.net. Our main page is still using classic asp. When a user logs in to the system, a cookie is created with the user info. The user then clicks a link; which is a seperate application written in asp.net 2.0. ie. http://my.applicati...more >>

Is ViwState Page-Specific or UserControl-Specific
Posted by Jav at 8/16/2006 9:51:02 AM
ASP.Net 2.0 - using ObjectDataSources (Csla) I sometimes have multiple Views (or Wizards) on a Page. Some of these may have UserControls with Addresses or Phones in GridViews belonging to different entities on the Page. My "entities" are stored in the Session state. I save the Entity_id(...more >>

I need an idea
Posted by Mr Seth T at 8/16/2006 9:36:31 AM
I am supposed to implement a web app in C#/.NET and it needs to be installed on the customer's server and ran from anywhere. The problem is this software needs to be licensed by user (i.e. they buy 2 licenses, only 2 sessions should be open at a time). I can currently see how many sessions are...more >>

Page.FindControl non-Shared member
Posted by tshad at 8/16/2006 9:00:46 AM
I have a .ascx file that I converted to a class. But I am getting the following error: error BC30469: Reference to a non-shared member requires an object reference. The error is for the Page.FindControl in the following code: ****************************************** Imports System I...more >>

SQL UPDATE for date data-type
Posted by glenn at 8/16/2006 8:21:02 AM
Hi folks, I have 2 code snippets. One works and one does not. This first hard-coded snippet works Dim queryString As String = "UPDATE [rfi] SET [dateresolved] = '8/16/2006' WHERE ([rfi].[id] = @id)" This second snippet does not work Dim dtNow As DateTime = DateTime.Now d...more >>

How to make visible an image (gif anim.) while wait for a task to finish
Posted by pamelafluente NO[at]SPAM libero.it at 8/16/2006 8:01:08 AM
I am reposting hoping better luck :) I can't achieve this simple thing: I have an animated gif in an image control (ImageProgress1). The image visibility is set to false. I want that when the User click on a given button (ButtonSomeLongTask) to execute a long task Me.ImageProgress1 become visi...more >>

design question
Posted by CSharpguy at 8/16/2006 6:24:01 AM
I've been reading some articles on 'application architecture' and some have say use Typed DataSets in .NET 05 and some use a datalayer class and a business layer class. Currently I have a class library in 05 were I'm not using typed datasets, I have a business layer class and my datalayer clas...more >>

DataRelation- Setting up relation for table
Posted by Aryan at 8/16/2006 5:47:32 AM
Hi, I want to use DataRelation object for setting up relationship between two different datatable, but i want to use multiple columns to set up relation between two tables. For example. DataRelation dRelationOrgInd = new DataRelation("OrgInd", ds.Tables["OrgList"].Columns["iIDOrganization,...more >>

.NET programming advice to new programmers
Posted by master_programmer NO[at]SPAM outgun.com at 8/16/2006 3:35:14 AM
Advice to new programmers considering ASP.NET...... Dont do it !! I was forced to use the Visual Studio to make ASP.NET applications. It is very very slow. You are better off forgetting the idea and use a different programming language instead of IIS. I recommend trying a more powerful s...more >>

iisreset question
Posted by shai kedem at 8/16/2006 3:11:17 AM
hello, this post is related to iisreset slowness issue I am experiancing. I mean by slowness that IIS reset takes some time to terminate the asp.net working processes and after that starts up new IIS processes. I have a situation where sometimes IIS reset (which normally takes around 20-30 ...more >>

Session state doesn't work
Posted by cashdeskmac at 8/16/2006 2:53:01 AM
I have put a string into Session and tried to retrieve it on the next page I visit but the Session appears empty. I have exactly the same spelling for both adding and retrieving the value: Session["name"] = "john"; On the next page: txtName.Text = Session["name"]; I tried it with .T...more >>

Why no UserID property in the Membership class?
Posted by ILaughLouder NO[at]SPAM gmail.com at 8/16/2006 1:06:43 AM
Hi all. Does anyone know why there is no UserID in the Membership class? I think it's because the ASP.NET team wants developers to use their own User class in conjunction with the Membership and Profile classes. But it's doesn't make any sense, when you already got the user name, email addre...more >>

DotNetNuke question about deploying
Posted by Jeff at 8/16/2006 12:54:11 AM
Hey I've installed DotNetNuke Starter Kit (4.3.4) together with visual web developer 2005 express on my development computer So now I'm able to create DotNetNuke portals using vwd. But this is as I mention on my development computer with vwd. But what if I have a client which have asked...more >>

using Console.Writeln(...) in WebServices or ASP.NET application
Posted by tony at 8/16/2006 12:00:00 AM
Hello! When you have windows forms you have the same possibility as when you have a Console application to use Console.Writeln to write whatever on the screen. Now to my question: Is it possible to use Console.Writeln when you have a Webservice. I don't think it's possible but just to be ...more >>

SQL Data Source
Posted by Gunawan at 8/16/2006 12:00:00 AM
Hi All, I have change select command of a sql data source when user clicking a button sds1.SelectCommand = "Select DivisionCode, Description FROM DivisionMst WHERE Description LIKE @Description"; sds1.SelectParameters.Clear(); sds1.SelectParameters.Add("Description",TypeCode.String, ...more >>


DevelopmentNow Blog