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 > may 2006 > threads for monday may 15

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

Create a HTML file programatically
Posted by Niron kag at 5/15/2006 11:37:02 PM
Hello ! With c# , I want to create a HTML file programatically . How can I do it ? Thank U !...more >>


barcode
Posted by Friedrich at 5/15/2006 9:37:16 PM
Hi, I am trying to develop a online library management application using asp.net. I am planning to use barcode for check in and check out of books. Can you please guide me how i can implement barcoding in asp.net (not commercial components). Also can you suggest me any books which can help ...more >>

Binding sqldatacontrol to gridview
Posted by Chris at 5/15/2006 9:27:50 PM
I have two SQLDataControls on a page. The first pulls all the data from a table and is then bound to a gridview. The second uses the selected value in the gridview which is in turn bound to a formview. When I run the page no binding takes place, I assume that's because I haven't selected the ...more >>

CustomValidator doesn;t work
Posted by Jason Chan at 5/15/2006 9:16:01 PM
wroten following aspx in VWD 2005 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xh...more >>

configuration settings
Posted by rjl at 5/15/2006 8:55:26 PM
I have the following in code: ConfigurationManager.AppSettings["u"] how come I need to compile for this data to get set? how come it doesnt read the file at run time? How can I? ...more >>

SplitterBar
Posted by Evan Camilleri at 5/15/2006 8:42:20 PM
Is there somewhere documented how to do a SplitterBar just like in MSDN websites? Evan ...more >>

State
Posted by rrgouvea NO[at]SPAM gmail.com at 5/15/2006 8:30:20 PM
Hi *.* ! I would like to transfer some values (state) from one page to another, but I have a problem... My pages are called after clicking the dynamic menu item from the page, so I don't know the page to call using "Server.Transfer" method. Is there any way ...more >>

Bug in .NET Framework compiling C# scripts?
Posted by Richard at 5/15/2006 7:28:58 PM
Hi All, The ASPX file below runs fine in ASP .NET WebMatrix 0.6 under WinXP/SP2 with IIS 5.1 and .NET Framework 1.0, 1.1 and 2.0. But if the last scriptString line is eliminated after appending the closing ">" to the preceding line, the compiler flags that last line in the browser (Firefox ...more >>



asp.net - beginner - why can't my class create controls on my page?
Posted by Ranginald at 5/15/2006 5:39:30 PM
Hi, My goal is to have a class named class1 that will render a label control on whatever page needs it. I want to instantiate class1 from whatever page, and then call the createLabel() method defined in class1. My ultimate goal is to use this structure as a template for adding dropdownlist...more >>

Page not updating after Login control authenticates
Posted by Bruce at 5/15/2006 5:04:58 PM
I just started the design of an ASP.NET application which accesses one of our custom web services to provide user authentication, among other purposes. I created a log-in page (code below), using the WebControls.Login control. I put a simple label on the page, to display text showing whet...more >>

Assign Javascript Function in C#
Posted by Carl Maloney at 5/15/2006 5:01:21 PM
I have a checkbox that is being created dynamically in C# when I load the page. When it is checked, I want it to run a javascript function. How do assign a checkbox to launch a javascript function in C#? Thanks for your help! Carl -- Sent via .NET Newsgroups http://www.dotnetnewsgroups....more >>

Impersonating doesn't work on Win2003
Posted by fab at 5/15/2006 4:57:36 PM
Hello, i'm trying to browse a UNC share through an ASP.NET application and i've got a problem : i've tried some examples from MSDN or other web sites (using LogonUser from Win32 API) and it works perfectly from my computer (windows XP) but it doesn't work from a windows2003 server : i've g...more >>

Lost the topic on routing folder to file (filemapping i guess)
Posted by Edwin Knoppert at 5/15/2006 4:56:48 PM
For redir purposes i wanted to prepare me a link like: http://www.mysite.com/redir So the user could have a link: http://www.mysite.com/redir?site=1 The idea is that i substitute /redir for redir.aspx or whatever.aspx but frankly, i rather would not let the user see this actually pagenam...more >>

Error on old code converted to VS 2005
Posted by Blasting Cap at 5/15/2006 4:35:43 PM
I had some old code set to throw an email to me when a user hit an exception. VS 2003 worked fine with the code, VS 2005 when I run it in debug mode pauses over the code each time, and gives me the message: "HTTPException was unhandled by user code. Request Not Available in this context...more >>

CSS Editor in visual studio 2005
Posted by Maxwell2006 at 5/15/2006 4:27:34 PM
Hi, I know that visual studio 2005 has built-in CSS editor. I have the following code in my aspx file at the <head> section: <style type="text/css" > <!-- BODY { background: url(foo.gif) red; color: black } .note { margin-left: 5em; margin-right: 5em } --> </style...more >>

where did all the files go
Posted by AAJ at 5/15/2006 4:13:04 PM
Hi all I have a few questions about file locations with VS2005, localhost WidowsXP and remotehost Server2003, and I wonder if anyone can help me get started 1) If I build a web site on my local server i.e. Creat WebSite from the opening menu, I can select my local webserver. Most of the f...more >>

HttpModule runs for every extension?
Posted by Faraz at 5/15/2006 3:42:01 PM
Hi everyone, I am running into a slight problem. My understanding is that a custom HttpModule will run for every request made to the server, regardless of the extension. I do not experience this behavior. My module only runs for the extensions handled by the aspnet_isapi.dll. Here are my...more >>

GridView returning null datasource in sort event
Posted by Thirsty Traveler at 5/15/2006 3:27:01 PM
I have a gridview where the datasource is bound after a selection. The result of doing this is that sorting and paging do not work. I was given a sample of how to resolve this, however my attempt to explicity enable sorting failes because, unlike the sample, my sort event has a null in the d...more >>

GridView with multiple selects
Posted by Bruno Alexandre at 5/15/2006 3:20:24 PM
Hi guys, I hope you can pointing me some tutorials or examples to: in a Gid View I want to have: first Row: [Serial Number] next rows |---> 4 columns that I get from a select with the serial number above next row: [Serial Number] next rows |--->...more >>

Web Frontend development ASp.NEt
Posted by Triv at 5/15/2006 2:55:30 PM
Hi, Has anybody come seen the MSCRM3.0 frontend. The application is totally web based but at a first glance it gets difficult to tell if it is a web based application or a desktop application. The menus etc.. blend so nicely with Internet explorer window that it gives a feeling one is using a...more >>

Page_Error
Posted by APA at 5/15/2006 2:44:05 PM
I have the following error handler on my page: public void Page_Error(object sender,EventArgs e) { System.Exception appException = Server.GetLastError(); HttpException checkException = (HttpException)appException; if ((checkException.ErrorCode == -2147467259)) { Http...more >>

.Net 2.0, UserControl in a subfolder won't compile
Posted by instruo at 5/15/2006 2:44:01 PM
Hi all, Have an issue in VS 2005 that I can't seem to sort out. I have a couple of UserContols that I would like to have in a Controls subfolder off my application root. The problem is that when the files are in that folder, I get several build errors, all along the lines of "The type or ...more >>

GridView header wrap
Posted by Mark Rae at 5/15/2006 2:20:56 PM
Hi, Is there a bug in the GridView control specifically related to wrapping of header text...? E.g. the following tag <asp:GridView HeaderStyle-Wrap="false" ID=gvListUsers runat=server ... etc .... > does not prevent the header text from wrapping. Even if I add the following: <Head...more >>

Arggg SqlDataSource timing out??
Posted by cider123 NO[at]SPAM hotmail.com at 5/15/2006 2:11:37 PM
In Design mode I open up the SqlDataSource (Configure Data Source) I go all the way through until the last page where you "Test Query" and it takes about 2 seconds to return a response. My workstation is in California The ASP Server is in California The Database I'm tapping into is in Chica...more >>

formatting Gridview
Posted by CSharpguy at 5/15/2006 1:53:03 PM
I'm trying to format the GridView on my web form and its not working. for money I have {0:C} and for date fields, I have {0:d} and the format isn't changing, what else do I need to do to get the formatting working in the gridView? ...more >>

dynamic DetailsView
Posted by Jason at 5/15/2006 1:35:12 PM
Does anyone know if there is a way, natively, to create a dynamic number of DetailsView controls on a page based on a selection from a GridView? Basically, I have one-to-many relationship between two tables and I want to show all of the entires from the second table based on the selection from ...more >>

Batch Print
Posted by Gave at 5/15/2006 1:31:05 PM
Hello Everyone! I have a web application with a datagrid, so the user can check on a check box to send the printer an png file that correspond with each datagrid row. I need to print the images all at once in client printer rather than display the image in the browser. I need something like a ...more >>

Login control: remember me next time
Posted by Ben R. at 5/15/2006 1:28:02 PM
what exactly does this do? does it control whether cookies are persisted between sessions? I aske because the duration a cookie is stored seems to be set in web.config: <authentication mode="Forms"> <forms timeout="10368000"/> </authentication> Does this value get used? Is ...more >>

login control: remember me next time
Posted by Ben R. at 5/15/2006 1:28:01 PM
what exactly does this do? does it control whether cookies are persisted between sessions? I aske because the duration a cookie is stored seems to be set in web.config: <authentication mode="Forms"> <forms timeout="10368000"/> </authentication> Does this value get used? Is ...more >>

login control: remember me next time
Posted by Ben R. at 5/15/2006 1:26:02 PM
what exactly does this do? does it control whether cookies are persisted between sessions? I aske because the duration a cookie is stored seems to be set in web.config: <authentication mode="Forms"> <forms timeout="10368000"/> </authentication> Does this value get used? Is ...more >>

how can I eliminate spesific rows of gridwiev
Posted by yasin at 5/15/2006 1:08:47 PM
For instance there is a column which grabs city names from Sql Database, I want only see the rows whose city is new york. ...more >>

Master Page In Class Library
Posted by Kevin at 5/15/2006 12:59:01 PM
We currently have a 1.1 class library which houses the look and feel of our website by creating the html form dynamically in a base class. We then distribute our assembly to other application development teams to use so they have the standard enterprise wide look and feel and only have to wor...more >>

Adding a Incrementing Column to a Grid View
Posted by Glenn at 5/15/2006 12:58:40 PM
I have a grid view which takes its data from an SQL query. The query returns a league Table of results. I would like to a add a column which show the poistion of result (i.e 1,2,3,4) how can i get add a column which simply showns an incremented number for each row. ...more >>

Question about application restart in debug mode
Posted by newjazzharmony NO[at]SPAM hotmail.com at 5/15/2006 12:34:24 PM
When I run an ASP dot net application in debug mode and put a breakpoint inside the Application_Start event (in global.asax.cs), sometimes it stops there and sometimes it doesn't. I was under the impression that clicking the "stop" button, and then the "play" button in the visual studio GUI wa...more >>

Access to the path .... is denied
Posted by j_stus NO[at]SPAM hotmail.com at 5/15/2006 12:01:46 PM
Here is my problem. I reported this before, I got some tips and resolved some of the problems, but still not the way it would satisfy me and my needs... I try to execute this code. Dim myFolder As String = Server.MapPath("..\..\..\sDirectory\") Dim FileName As String For Each FileName In...more >>

Atlas Or Not ..
Posted by hangar18 at 5/15/2006 11:55:28 AM
Hi, We have a web page with a javascript menu on the left hand side. On click of the javascript menu, we want some content to be displayed but without the whole page getting refreshed. We are using master pages with the menu in the master page. Using frames is one alternative but we are not gam...more >>

dump dataset into table
Posted by JIM.H. at 5/15/2006 11:42:01 AM
Hello, I am quite new in asp.net, here is the code I retrieve data from a web service SVP.ThisWebService.loadMethod lm = new SVP.ThisWebService.loadMethod(); System.IO.StringReader sr = new System.IO.StringReader(lm.loadXlm()); DataSet ds = new DataSet(); ds.ReadXlm(new System.Xlm.XlmTextRe...more >>

how to execute an 'Alert'-windows within vb?
Posted by Ben at 5/15/2006 11:36:23 AM
Hi, When a user wants to start the application, aspnet checks a boolean value in a field of the database. If that value is 'false', then i want to execute a ALERT in javascript telling the applicatin is closed. This is a part of the .aspx.vb file: Protected Sub Page_Load(ByVal sender As Obje...more >>

How to redirect from a classic asp page to an asp.net page
Posted by David Hearn at 5/15/2006 10:56:37 AM
I have a classic asp page that has a submit button on it. There are other buttons on the page that are still connected to functions within the asp page and the forms action method is attached to make those work. I just need to redirect to a new asp.net webform that I am creating when the user ...more >>

transfer html to aspx page and back again
Posted by rjl at 5/15/2006 9:58:50 AM
I have a simple static HTML page on another webserver. I want to grab some request info using asp.net on another server. What is the best way to transfer the request to my aspx page, grab the request data (I know how to do this), then send it back to the requested HTML page without user action?...more >>

IIS and .NET framework for Window XP
Posted by Peter at 5/15/2006 9:51:01 AM
I installed the softwares in the following order. 1. Window XP, version 5.1 2. .Net Framework and SDK 2.0 3. IIS V5.1 Then I tested one aspx page. The result page is unexpected blank. Apparently, there is some configuration problems, please advise. Thanks. Peter...more >>

Intellisense not working as expected with PreviousPage and Page Class
Posted by PeterKellner at 5/15/2006 9:39:09 AM
Is there something extra I need to do to make intellisense work when referencing a page class? Here is my working Page_Load from a aspx page. sourcePage does not get it's members listed with intellisense. It acts like it is not a class but compiles fine. Thanks, protected void Page_Loa...more >>

Word wrap in textbox of DetailsView
Posted by Jason at 5/15/2006 9:24:20 AM
Anyone know how to make the text wrap in a text box of a DetailsView? ...more >>

Log into 3rd party website automatically.
Posted by bnlockwood NO[at]SPAM gmail.com at 5/15/2006 9:19:06 AM
I'm researching ways in which I can create an ASPX page that will log into some of the major realtor websites with usernames and passwords and submit new listings rather then logging into each one manually... Does anyone have any experience with logging into another website within your own? Any...more >>

What happens to ApplicationState if IIS decides to spawn another app domain for an ASP dot net application?
Posted by newjazzharmony NO[at]SPAM hotmail.com at 5/15/2006 8:25:52 AM
I have heard that IIS may decide to spawn one or more additional app domains for a single ASP dot net application. Is this true? Is there a difference in how this works in IIS 5 and IIS 6? Is it configurable? Finally, if a new app domain is spawned for a single application, does this equate ...more >>

Need to share one instance of an object across an ASP dot net application.
Posted by newjazzharmony NO[at]SPAM hotmail.com at 5/15/2006 7:38:30 AM
I want to share one instance of an object across an ASP dot net application, and I'm trying to weigh the pros and cons of the following two approaches: a) Storing the object in ApplicationState b) Storing the object in a static member variable (utilizing a singleton design pattern) A...more >>

Can I put target in Response.Redirect?
Posted by Luke Xu at 5/15/2006 7:31:17 AM
In Heyperlink, you can specify the target of URL, such as _blank. But how can I specify the target in Response.Redirect? Thanks Luke ...more >>

Missing ASP.Net tab in IIS
Posted by Mike Lowery at 5/15/2006 7:16:01 AM
I'm running Win2003 Standard Edition and have installed both IIS and Framework 2.0. For some reason I do not have an ASP.Net tab when configuring websites. I've tried running aspnet_regiis -i and even reinstalling Framework 2.0 to no avail. I've seen posts talking about this being a problem ...more >>

How to create a form rapidly? (VWD 2005 Express)
Posted by kpuchala at 5/15/2006 6:47:15 AM
Hello I'm beginnig to create my first application in Visual Web Debeloper 2005 Express. I need to create a web site (simple application), which will allow to list objects (records) stored in databese. This is the simple part and I managed to do this. Further I want to bind the list to a for...more >>

Post errors
Posted by neoret NO[at]SPAM gmail.com at 5/15/2006 5:56:30 AM
I don't get any further on this - pleas help me :) In c# I'm using the httpWebRequest object to post a word-document along with some parameters to a server. My challenges are: 1. When creating the requestStream object and write to it the message is posted without the credentials. I get a...more >>

How to apply implicit localization on custom user controls?
Posted by Dushyant at 5/15/2006 5:36:02 AM
Hi everyone, Actually I have recently started working with ASP.NET 2.0 and I have been working on the globalization aspect of my company's web project. At this moment, I am struck with localization of .ascx file ie custom user controls. Can't we do it implicitly as we do for .aspx files or ...more >>

High CPU Usage
Posted by Damien at 5/15/2006 5:28:01 AM
Hi guys, I'm looking for ideas for troubleshooting the following. We've tried some random things to try to treat the symptoms, but none seem robust enough to use when we go live, and we'd rather discover the root cause: We've got an ASP.NET application, running on framework 1.1 on Windows 2...more >>

HTTPS : Secured and non secured item with absolute path
Posted by trihanhcie NO[at]SPAM gmail.com at 5/15/2006 5:02:39 AM
Hi, I have a <img src = "http:// ..."> which needs to be put in a secured page. For example on amazon when the confirmation page is displayed... The problem is that it's a secured page (https) and my tag is an absolute path... It looks like it's the problem because the tag is not secured. Wha...more >>

Applying CSS Styles to Dropdownlist
Posted by Neil Steventon at 5/15/2006 4:53:02 AM
Is there a problem with asp.net 2 when setting the Csstyle. I have a CSS stylesheet and can format different elements, but having trouble formatting the asp.net controls , such as dropdownlist. Thanks Neil...more >>

Registering javascript via the Page object, why?
Posted by CharlesA at 5/15/2006 4:01:01 AM
This is not really a problem I'm having it's more of a general question if you had an html page with embedded javascript script and you sent it to the browser if the script wasn't buggy, it would instantly work because javascript is interpreted I have created buttons on the fly (say in t...more >>

asp:menu graphical bug in IE
Posted by seo NO[at]SPAM connexion.at at 5/15/2006 2:42:38 AM
Hi everyone, I'm getting an graphical error when using the asp:menu control. Check out this screenshot: http://www.connexion.at/downloads/asp-menu.gif The page uses doctype xhtml 1.0 transitional. IE produces some white space to the right of the drop down menus. Firefox doesn't. How can ...more >>

print a user-friendly page?
Posted by Axford at 5/15/2006 12:28:01 AM
Hello, does anybody have an example on how to add a hidden frame to an aspx page and then to use thtat hidden frame to print a user friendly version of the web page? The web page does print very bad, because of background pictures and logo's, list's etc....more >>

showModalDialog and master page
Posted by Axford at 5/15/2006 12:22:02 AM
Hello, when I use the IE javascript 'showModalDialog' function to display a calendar I encouter the following problem: My aspx page uses a master page (asp.net 2.0). My 'showModalDialog' opens a page without master page, but this gives an error message, because it appears that the 'showM...more >>

Substring
Posted by Jim McGivney at 5/15/2006 12:18:23 AM
In an aspx (asp2.0) page in C# I have a string array. The array contains letters separated into two groups by a dash (-). I want to obtain the letters before the dash. I use the following code. Strangely, when the array has a value of "MOD-AS" Label3 displays "3" while Label4 displays -1. W...more >>

Static class members disappearing (GC collected?!)
Posted by Vladislav Kosev at 5/15/2006 12:09:01 AM
I have this strange problem now twice: I am writing this relatevely large web site on 2.0 and I made a static class, which I use for url encoding and deconding (for remapping purposes). This static class needs the session context to encode a url (because I stored the current language there), s...more >>

Disappearing Sessions
Posted by Mark Rae at 5/15/2006 12:00:00 AM
Hi, I'm presently converting a v1.1 ASP.NET app to v2, and am encountering a strange problem. When running in Debug mode (i.e. hitting F5), all is well. However, when running without debugging (i.e. hitting Ctrl-F5), every so often (it seems to be totally random) the entire Session seem...more >>

HttpModule only in Subdirectories
Posted by Dominik Amon at 5/15/2006 12:00:00 AM
Hi! I'd like to use an http-module only in the subdirectory called "administration" My first try was something like this: <configuration> ..... <location path="Administration"> <system.web> <httpModules> <add type="WsfRs.Extensions.Client.WebAuthModule, WSF_RS_ConsumerL...more >>


DevelopmentNow Blog