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 2005 > threads for tuesday september 6

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

Dot net debugging (ASP .net)
Posted by newbie at 9/6/2005 10:17:02 PM
Hi is there any way I can type in to view contents of a variable in the immidiate window? ex: debug.print or something thanks newbie ...more >>


A way to kill Session user(only one session), solutions...
Posted by Fabrice at 9/6/2005 8:59:07 PM
Hello, I 'would like to build a system (based on database, not SqlServer but MySQL) to permit only one session per user. I'm using a form athentication. My Solution : --------------- When a connection is established by a user, I realize an insert in a Table, named tbLogin with many inf...more >>

Formated DropDown List
Posted by James Doughty at 9/6/2005 8:40:42 PM
Does anyone know of a way to DropDown list display 2 columns and make the columns widths match up i.e. James Doughty Matt Ellison Phillip White I would appreciate any ideas. Thanks, James Doughty...more >>

Refresh button.
Posted by John Blair at 9/6/2005 8:33:46 PM
Hi, During a postback is there anyway of knowing for sure if it was due to the user hitting the Refresh button? Thanks. ...more >>

Embedding another page into my page
Posted by J-T at 9/6/2005 8:22:45 PM
Hi All, There is a picture on the following URL which I want to have it in one of my asp.net pages .I mean I want to embed the content of this page in my own page and get its image.Is there a control or tecnique which I can accomplish this? http://www.tehrantraffic.com/gif.asp?g=cam3_tt...more >>

Problem with FormsAuthentication
Posted by David at 9/6/2005 8:14:26 PM
Hi all, I am having a slight issue with FormsAuthentication. I need to authenticate a user and while the page is still being processed, need to work with that authenticated user. I have set up a test page as follows... private void Page_Load(object sender, System.EventArgs e) { ...more >>

Downloading files
Posted by Shawn at 9/6/2005 7:06:38 PM
Hi. How can I download a file and store it on the web server. I have a complete URL to the file, but I never know what kind of file it is. It can be pdf, jpg, tif, doc, xls etc. Thanks, Shawn ...more >>

Code render blocks: When rendered in asp.net page life cycle
Posted by ingo.beyer*nospam NO[at]SPAM pc-*nospam-*ware.de at 9/6/2005 7:06:13 PM
Hi all, when are code render blocks rendered in asp.net page life cycle? what method does the code render block rendering? thanks! ingo ...more >>



August CTP DataFormatString in Gridview not working
Posted by Gerhard Pretorius at 9/6/2005 7:03:16 PM
Since installing the VS.NET August CTP the DataFormatString of the BoundField in the Gridview does not work. Runtime v2.0.50727. <asp:BoundField DataField="Event_Date" DataFormatString="{0:yyyy/MM/dd}" It still shows the date as "2005/05/03 12:45 AM" It worked in beta 2, don't knwo about ...more >>

Absolute Beginner
Posted by japin0 NO[at]SPAM yahoo.com at 9/6/2005 6:44:30 PM
Hi, I am a absolute beginner in ASP ..I do have a bit of exposure to .VBS and other scripting languages. I need your guidance, where do I start? I had been to MS website Quick start guide but it says we need a basic web building experience to undrestand.. Can you please refer to a guide or a w...more >>

Setting control values in DetailsView
Posted by sck10 at 9/6/2005 5:36:15 PM
Hello, I have a GridView that list all the employees in our group. My select button (link) when clicked will open a DetailsView control of the employee selected. I have one BoundField in the form that I want to fill in programatically ("UpdatedBy"). So when the user selects the "edit" link,...more >>

display: block style issue in IE (and not on other browsers)
Posted by dee at 9/6/2005 5:31:17 PM
Here is a a list of my hyperlinks in my home page: <A class="theclass" href="Default.aspx">Home</A> <A class="theclass" href="Search.aspx">Search</A> <A class="theclass" href="Help.aspx">Help</A> And these are defined in Styles.css file: a.theclass:link, a.theclass:visited { dis...more >>

Using a datagrid to update values in sql server (best practice)
Posted by Mok at 9/6/2005 5:27:32 PM
Hello, I want to pull information from a table in sql server, bind it to a grid and update those values. I would like to know the best way to do it. I used the configure data adapter wizard and it came up with a crazy stored proc. As in this example I would only update [start date] and [descrip...more >>

Image Buttons not working after clicking one button once
Posted by pmud at 9/6/2005 5:23:30 PM
Hi, I have created a very simple ASP.NET application which has a couple of ImageButtons which go to different SQL reports on clicking them. I have used Response.Redirect to send the user to the SQL reports. Now after viewing the report when I hit the Baxk Button on my browser. and then I c...more >>

One code behind file and multiple ASPX pages?
Posted by Me at 9/6/2005 5:21:49 PM
Hi, I inherited a web application that has several very similar forms for gathering user data. User's must choose the form that best fits their needs and fill it out. Each form has about 15 questions that are the same and a few that are different. The problem is that each form contains...more >>

Stream SpreadsheetML (XML for Excel) file
Posted by DevonS at 9/6/2005 5:17:46 PM
Ok, I'm stumped on something that really shouldn't be this hard. I've created some cool code to transform a dataset via XSLT into SpreadsheetML (XML for Excel) and I'm storing the physical file on a file server. Now... I currently provide a hyperlink to view/save the file, but this won't wor...more >>

Client code for accessing file in an HttpResponse stream?
Posted by Daniel Corbett at 9/6/2005 5:12:31 PM
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet explorer would do in this case. The headers I am getting are: Headers {Content-Disposition: attac...more >>

Get IFrame Reference
Posted by Angel at 9/6/2005 5:06:07 PM
How do I get the reference of the IFrame from the asp.net webpage that is being displayed within that IFrame? In other words I have an IFrame in my page. Within that IFrame Set the source to a different asp.net page. I want on that page that is within the IFrame to be able to access the IFrame...more >>

Set default framework version for a web site via the command line
Posted by RedEye at 9/6/2005 4:40:45 PM
Greetings, How do I set the default version of the .net framework via the command line? I have installed the .net framework v2 beta 2 and for what ever reason I am unable to set the default runtime for a web site using IIS. I have used aspnet_regiis to see if it installed properly and it h...more >>

DataSet Problem
Posted by Sparky Arbuckle at 9/6/2005 4:26:11 PM
Error: There is no row at Position 0. This is the line that errors: If ds.Tables("DataTable").Rows(0)("Rev") Is Nothing Then strRev = "New" In my strSQL I have: "SELECT TOP 1 ItemName, (IIf([Rev] Is Null, 'New', '[Rev]')) As Rev ... " I thought that I have covered all of my bases. Any s...more >>

Update only few columns DATAGRID
Posted by Jay Villa at 9/6/2005 3:42:45 PM
Is it possible to update only few columns in datagrid during OnUpdateCommand event ? If so, could you help me .... -thanks Jay ...more >>

IIF Function
Posted by Sparky Arbuckle at 9/6/2005 3:04:03 PM
I am using the IIF function in my application to create an instance and value of a field if it doesn't exist in the query. I am using a datagrid to display 4-5 items at a time and if one of the items doesn't have a revision listed in tblRevisions then the whole page errors out. I am using the fo...more >>

Does W3 DOM Level 1 (HTML) Support on the .NET platform exist anywhere?
Posted by uv2003 at 9/6/2005 2:34:03 PM
Greetings, I've been searching for a way to use the W3 DOM Level 1 interfaces in a native .NET implementation without any luck. Does anyone know if something like this exists? Specifically, I'm refering to this: http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html.html So fa...more >>

Re-using asp:label
Posted by footballhead NO[at]SPAM gmail.com at 9/6/2005 2:15:33 PM
I do some design work on a website that up until to now has been limited to defining CSS and HTML elements. Excuse me if I am using incorrect terminology, I am just starting out in this. I would like to try some beginning coding and the developers are giving me some latitude to experiment. The...more >>

INPUT field sizes in Netscape
Posted by Paul W at 9/6/2005 2:09:04 PM
Hi - I have the following field defined: <asp:textbox id="txtUsername" MaxLength="50" Runat="server" Width="312px" Height="24"></asp:textbox> When displayed in IE, it gets rendered as <input name="txtUsername" type="text" maxlength="50" id="txtUsername" style="height:24px;width:312px;" />...more >>

Quote values error mesage differently within a '<%
Posted by csgraham74 at 9/6/2005 1:10:52 PM
Hi guys, Im having a real problem with the formatting of my code below. I continue getting the "quote values differently inside a '<%..."value"...%>' block. Can anyone please help me sort out my code as ive been sitting at this issue for two days now. CODE BELOW <a href = "#" onmous...more >>

Newlines in Datagrid
Posted by chrismichaelgardner NO[at]SPAM hotmail.com at 9/6/2005 1:06:16 PM
I have a very simple Datagrid with one bound field. The field has Environment.NewLines in it. When the datagrid is rendered, they don't appear. I have tried a few of different ways to get them to appear: 1.) Replace Environment.NewLine with <br> before saving to the database. 2.) Replace...more >>

Transfering data from page to page
Posted by Shahid Juma at 9/6/2005 12:59:44 PM
Hi, This may be a very trivial answer but I was wondering if it possible to have a ASP.NET page and on a user click, it transfers to another page. Rather than redirecting to the new page, I want to pass some data with it. I know I can do it using sessions but is it possible doing it in a diff...more >>

Oh the machinations!
Posted by zamdrist NO[at]SPAM gmail.com at 9/6/2005 11:44:19 AM
I can't believe the machinations one must go through to get a simple messagebox for form validation purposes to work via ASPX & code-behind VB. What an incredibly stupid omission/oversight on the part of the .Net developers. We sure got some sexy XML stuff going though! Incredible. Marke...more >>

Get Rendered Source of a ASP.NET Page without HTTP Request??
Posted by ingo.beyer*nospam NO[at]SPAM pc-*nospam-*ware.de at 9/6/2005 10:09:31 AM
Hi All, i need to get the rendered source of a asp.net page. it's not possible at that point to create a http request. - how can i simulate a page load & rendering lifecycle to get the source that would be posted to client... thank you! ingo ...more >>

sending email
Posted by Jim in Arizona at 9/6/2005 10:02:46 AM
I've made an application that is a computer problems (tickets) system. The employee goes to a web page and posts the comptuer problem they're having. Then, the IS staff goes to another webpage (both pages aspx of couse) which shows the posts by the employees. From there, we assign the problems...more >>

RedirectFromLoginPage to multiple paths
Posted by Sehboo at 9/6/2005 9:42:58 AM
Hi, I have form authentication, and am using RedirectFromLoginPage to redirect to the page which is set by 'Set as start page'. My question is, can I decide at run-time where I want to redirect to? Based on userid of the user, I want to redirect that user to a different page. If you are V...more >>

Intercepting page output...
Posted by Stu at 9/6/2005 9:34:29 AM
Hi, I am trying to grab the page output so I can do some html processing before the page is sent to the browser. I found a post somewhere which suggests that this would grab the page content immediately before it is sent to the browser. I have added this to the page but the sub is not ca...more >>

Need All Your Views on using Web User Controls.
Posted by Kiran at 9/6/2005 9:28:26 AM
Hi, I use a lot of web user controls for web development. And I need all your views on this. (1)Does the functionality(Logic part) of a web user control should be included in the aspx page that uses the web user control using events. If you are doing this way, you will be able to use t...more >>

ado.net error handling
Posted by Andrew at 9/6/2005 8:42:57 AM
Hi, I have this line of code: string strAnswer = (string)ds.Tables["testQuestion1"].Rows[0]["studentAnswer1"]; I got the error "There is no row at position 0", which is true coz the database is currently empty. How do I handle the error for this ? I tried : try { if ( ds.Tables["tes...more >>

using System.Data.OracleClient with asp.net
Posted by Andy Fish at 9/6/2005 8:06:21 AM
Hi, I have an asp.net/ado.net application that I have just ported to work with Oracle, using microsoft's own System.Data.OracleClient. I am having great difficulty working out what configuration of oracle client is required to make it work properly with asp.net. I tried to use the oracle...more >>

Scale text according to window/screen size.
Posted by UJ at 9/6/2005 7:58:11 AM
My client wants to have some text scale appropriately depending on the resolution of the screen. This is very much like the way that flash works in that as the area being displayed gets bigger, the font gets bigger, smaller - it gets smaller. Trying to write flash is turning out to have some ...more >>

urgent: beta 2.0 error
Posted by param NO[at]SPAM community.nospam at 9/6/2005 7:15:41 AM
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- S...more >>

DropDownList Border Color Control
Posted by csgraham74 at 9/6/2005 6:49:18 AM
Hi, Just wondering if anyone has used a free 3rd party drop down list control for asp.net. I need to find one that has a border color that can be changed as the built in one does not appear to work correctly. Or alternatively a workaround for the the built in dropdownlist border color issue...more >>

Remembering the state of a Page
Posted by Bill Manring at 9/6/2005 6:21:05 AM
I have an ASP.NET application with many different pages. On one particular page, I would like it to be restored to its previous state if a user navigates away (within the application) and then returns to that page - as if they had used the "Back" button in IE to get back to the page. I tri...more >>

Help on seting project path
Posted by serge calderara at 9/6/2005 6:11:10 AM
Dear all, I am actually studying ASP.net and I have read in MS press book that by default, project defined within VS studio 2003 environement goes under Inetpub\wwroot folder. What I woul like to do is place all my sample project in my own defined place like D:\ASP.NET\Samples \Chap1 D:\...more >>

Webservice sample for VS2005
Posted by jhcorey NO[at]SPAM yahoo.com at 9/6/2005 5:59:20 AM
Hello, I'm trying to figure out how to reference a web service from a VS2005 web site project. I know how to do this in VS2003. I've been combing msdn for samples, but I've only found the MovieCollection app, which is a windows app, and doesn't compile for me. If anybody can point me to a...more >>

Datagrid using webpart in sharepoint server
Posted by susurla at 9/6/2005 5:39:18 AM
How to display a datagrid in sharepoint webpart? is it possible or is there anyother way around? Currently I use webpageviewer and show the asp.net page .Is there a better way?? ...more >>

Partial Classes, .Net 2.0 and Custom Attributes
Posted by Julian Jelfs at 9/6/2005 4:15:03 AM
Hi, I had an aspx pag in .Net 1.1 with a label on it. As such I had a code behind page with a declaration for that label. When I convert to Asp.Net 2.0 the code behind is converted to a partial class and the declaration for the label is removed. This is what I expected to happen and I ...more >>

How to prevent download
Posted by Shahid Saleem at 9/6/2005 3:42:31 AM
Dear Members I have an asp.net application , we are selling certein articles on net (saved in pdf files) files are located in a folder on server, only the authenticated user are allowed to downlod the file (A link in the member area), Problem is when a user download a file he get the static li...more >>

drag and drop in asp.net datagrid
Posted by sunil at 9/6/2005 3:33:03 AM
Hi there, I am trying to implement the task in which i have a datagrid filled with data extracted from the database and a combobox in which i have populated some data. Now what i want to do is that i select multiple rows from the datagrid, drag them and drop them on to the combobox(dropdown...more >>

Installed IIS after .NET Framework
Posted by Nick at 9/6/2005 12:00:00 AM
Hi there, I'm having troubles with IIS as it was installed after the .NET Framework and VS.NET 2003. In the control panel I cannot see the "Web Service Extensions" section in order to enable any of them. How do I resolve this? Please don't say I have to uninstall the .net framework a...more >>

tick marks
Posted by Martin Eyles at 9/6/2005 12:00:00 AM
Hi, I want to make a scale on a graph, by telling asp to insert empty divs of class tick, and the setting the style in css. I am trying to get a 3D effect by using colored top and bottom borders on the divs, and setting their height to 0. The code bellow show an example tick, and it all look...more >>

Hide Hyperlinks Visitors?
Posted by Patrick.O.Ige at 9/6/2005 12:00:00 AM
What are the best ways to hide hyperlinks from visitors? Any ideas ...more >>

getting Runtime error instead of custom errors
Posted by Pat at 9/6/2005 12:00:00 AM
In my Web.config i have :- <customErrors mode="On" defaultRedirect="genericerror.htm"> <error statusCode="404" redirect="pagenotfound.aspx"/> </customErrors to get page not found error but instead i keep getting a RUN TIME error below: Any ideas.. Runtime Error Description: An app...more >>

Redirect to a link in a user control
Posted by Max at 9/6/2005 12:00:00 AM
Hello, here a user control named aff.ascx : (this control is used to see the contains of a link) <%@ Control Language="VB" %> <script runat="server"> ' Insert user control code here Public adr As String </script> <!-- Insert content here --> <div align="center"> Contrôle<br /> <% I...more >>

identification of NET objects
Posted by guy at 9/6/2005 12:00:00 AM
Hello My browser doesnt know NET objects. for example if i download this small asp.net page ,the Button ,label and text box dont appear on the screen . only the text!! how can i fix that??? <%@ Page Language="VB" %> 2: 3: <script runat="server"> 4: Sub tbMessage_Change(Sender A...more >>

ChildControls and ViewState
Posted by Graham at 9/6/2005 12:00:00 AM
I have created a server control that reads data from an xml file and = renders either a datagrid of entries from a database or group of form = controls to allow editing of an individual entry from the same database. = The Xml defines how the datagrid and edit form looks and what fields = each di...more >>


DevelopmentNow Blog