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 > december 2005 > threads for tuesday december 13

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

Scrolling DataGrid
Posted by Wasco at 12/13/2005 11:55:31 PM
Hi All, somebody knows how can I implement a scrollable datagrid? I made one used DIV tag and the tricks of a datagrid for title and another for contents but I'm not satisfied. Thanks!! ...more >>


outlook in asp.net
Posted by Sundar.k at 12/13/2005 11:06:01 PM
i need to add a remainder to outlook to the request id i know that i can use a vcs but i want to add it implicitly without prompting the user to download the vcs is it possible? i dont want to do it in the client side...more >>

iframe and load/unload events
Posted by gesres NO[at]SPAM boundvortex.com at 12/13/2005 10:30:53 PM
I'm using an iframe to host an .aspx form. When I replace the source, via javascript, with a new .aspx page, the unload event doesn't fire, nor does the load even fire when I restore the original page. I want them to. Thanks for any suggestions. ...more >>

label web control click event
Posted by semesm22 at 12/13/2005 9:33:28 PM
is there any way that i can create a click event for a label that is part of the web control library....i want to use a label in a user control, and when the user clicks one the user control i wanna change the color of the label to red for example....i tried importing system.web.ui.webcontrol.la...more >>

How to Add a Row in WebForm?
Posted by VictorReinhart at 12/13/2005 9:08:59 PM
Hi, I need to add a row in a WebForm, using VS 2005 and C sharp, using a SQLDataSource. If the table or SQLDataSource is empty, and you use a DetailsView Control to let the user add a new row, the "New" hyperlink is invisible. Therefore, the user can't add a row. So, what can I do? Thank...more >>

javascript syntax error
Posted by barry at 12/13/2005 8:20:52 PM
Hi I have the following code in a code behind file Dim sString As System.Text.StringBuilder sString = New System.Text.StringBuilder sString.Append("<script language=""Javascript"">" & vbCrLf) sString.Append("<img src=""ck.gif"">" & vbCrLf) sString.Append...more >>

GridView sorting
Posted by IT at 12/13/2005 8:20:39 PM
Hi I use GridView in ASP.NET 2.0. When I set property AllowSorting, style of header is changed. There appear LinkButtons with default style (blue ForeColor). I need change ForeColor this LinkButtons only in one GridView, but I dont know how. Anybody knows? Mac ...more >>

postion user control dynamically
Posted by semesm22 at 12/13/2005 8:16:13 PM
i have a form that acts a layout for a movie theatre....i have created a user control to represent the seat...the problem is that i am dynamically creating about 200 of these seats at the page_load event....i did some research and figured out how to use the LoadControl method, with the page.Cont...more >>



DefaultButton What's wrong with this code?
Posted by mablejune NO[at]SPAM otismukinfus.com at 12/13/2005 8:10:47 PM
HtmlForm frm = (HtmlForm)Master.FindControl("formMain"); frm.DefaultButton = "btnSubmit"; txtCall.Focus(); Running this code produces the following error message: The DefaultButton of 'formMain' must be the ID of a control of type IButtonControl. btnSubmit is a System.Web.UI.WebControls....more >>

Using Javascript with ASP.NET Dropdown Control
Posted by Stuart Shay at 12/13/2005 8:07:26 PM
Hello All: I hava a ASP.NET Web Page where I want to change the visibility of a Dropdown, I want to avoid using Postback since the selection of the Dropdown choices is always the same. The Code below is just a date filter selection. The Code works fine but on page postback I want to reloa...more >>

v2 - GridView - UserControl .ascx - Problem
Posted by Alexander Widera at 12/13/2005 7:46:15 PM
Hi, I have the following source code: <%@ Register tagprefix="my" tagname="tcontrol" Src="article_small.ascx" %> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ShopConnectionString %>" SelectCommand="SELECT AricleNumber FROM Articles;"></asp:S...more >>

VS.NET, ASP.NET - using via Frontpage Ext, now via SHAREPOINT?
Posted by Gerry Hickman at 12/13/2005 7:27:40 PM
Hi, We are currently running VS.NET clients against a Windows 2000 server which has Frontpage server extensions; this means we can have teams of developers interacting on web applications from remote locations over HTTP without firewall issues. However, Frontpage extensions have now been...more >>

VS project 2005 and 2003 coexist on a web server
Posted by Danny Ni at 12/13/2005 7:09:50 PM
Hi, Is there anyway for a VS 2005 ASP.Net web application and a VS 2003 ASP.Net Web application and Classic ASP coexist in a web sever? If yes, please provide some info on how to make this happen. TIA ...more >>

Posting using C#
Posted by Amir Ghezelbash at 12/13/2005 5:34:13 PM
Hello all, I would like to know how to i can post to a page using the server behind code ...same exact posting as you would do say if you had a form in your html file...is it possible what i have is this but doesnot seem to be working string url = BuildLink(); HttpWebRe...more >>

Is ASP.NET Request.QueryString secure?
Posted by Kevin Rose at 12/13/2005 5:30:04 PM
I can't decide what level of risk we are taking by using ASP.NET Request.QueryString. We have a web page that will have an data "posted" to it by partner company. The data is passed via the QueryString and taken in by the page using Request.QueryString in the ASP.NET code behind. This page ...more >>

Collections
Posted by James T. at 12/13/2005 5:26:24 PM
Hello! I am using KeyedCollection to store data. Now I would like to get the last item in that colletion... Could someone please provide an example how I can do that? James ...more >>

pivot table in asp.net using sql dataset
Posted by kingster at 12/13/2005 5:03:15 PM
Hi, I have a regular dataset and all i want to do is make a pivot tabl display in a browser with the datasource of the pivot table to be thi dataset and then the end-user will be able to do whatever they want .. i dont need to do any special formatting just a straigh ot pivot tables usign ...more >>

Newbie: Page level caching in ASP.NET
Posted by Navin Mishra at 12/13/2005 4:59:22 PM
Hi, How could Page level caching be implemented in ASP.NET ? My ASP.NET page takes some query arguments and I want page level cache to last for the lifetime of the page generated using the passed arguments only. If different arguments are passed, I want new page level cache for the new page....more >>

Supress error/warning of winapi in class?
Posted by Edwin Knoppert at 12/13/2005 4:54:43 PM
I have this error: Warning 1 Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.... This because i have a call in a win32 dll: Public Declare Ansi Function TheCall Lib "MyDll.DLL" Alias "TheCall" (ByVal szK...more >>

Using POST to preserve state
Posted by Mark at 12/13/2005 4:32:22 PM
I'm aware of how to preserve state using session, application variables, view state, query strings, etc. I'm told that you can use POST to do a similar state preservation. How does this work and/or could someone post a quick example of how to store and retrieve? Thanks in advance. Mark ...more >>

RAM based cookies
Posted by Mark at 12/13/2005 4:29:27 PM
It's my understanding that there are two types of cookies that can be created in an ASP.NET web application: 1. File based cookies that persist on the hard drive 2. RAM based cookies If a client browser has cookies disabled, are both disabled, or do RAM based cookies still work? Thanks...more >>

Could Not Load Assembly
Posted by Thom Little at 12/13/2005 4:28:06 PM
My first ASP.NET application on Visual Studio 2005 and .NET Framework 2.0 The application compiles and executes correctly on the development machine. I then publish it to an empty directory on the development machine. I then copy that directory to the remote server that contains numerous dir...more >>

ASMX and ASPX in same application ?
Posted by Navin Mishra at 12/13/2005 4:26:47 PM
Hi, Are there any implications of having ASMX and ASPX in same ASP.NET application ? Both would share the same global varriables, etc. Regards Navin ...more >>

Having trouble starting new ASP.net Web Application in 2003
Posted by Jozef at 12/13/2005 4:16:27 PM
Hello. I'm having trouble creating a blank solution (and ASP.net web application) from my laptop. I own the server (in fact it's sitting right next to me) and have added the URL to the trusted sites on my laptop. Here are the details; This is what I'm selecting from the start page.... ...more >>

if statement
Posted by SimonZ at 12/13/2005 4:12:35 PM
I have dataRepeater. How can I do: <ItemTemplate> <asp:TableCell > <%If viewState("type") = "3" then%> <%# writeLine(DataBinder.Eval(Container.DataItem, "name")%> <%else%> <%# writeLine1(DataBinder.Eval(Container.DataItem, "nam...more >>

trace request
Posted by rvegas NO[at]SPAM rogers.com at 12/13/2005 3:55:51 PM
Hi, I have a windows web servers, seperated from the internet, by a bunch of internal networks. Internet --- network1---network2---network3---windows ---- internet connection2 Basically what i want to know is, the path the ASP the request takes BACK to the client. Obviously it would be...more >>

System.Web.Mail in ASP.NET 2.0?
Posted by Carlos Albert at 12/13/2005 3:40:30 PM
Hi guys, I always used Imports System.Web.Mail and then SmtpMail.SmtpServer = Configuration.ConfigurationSettings.AppSettings("smtpserver"), SmtpMail.Send(Mail) to send mails using ASP.NET 1.1 But ASP.NET 2.0 says is no-go. How can I do this? Tnx. ...more >>

What are the minimum permissions required for ASP.NET to instantiate the component?
Posted by Stan at 12/13/2005 3:12:46 PM
ASP.NET site runs under Windows Authentication, Anonymous Access is unchecked. Page tries to create NET component (regular assembly, not ES) and fails with 'Access Denied' We don't want to give the users who connect to the web site local admin rights on the server. Wat are the minimum l...more >>

Unable to delete a registry key from an ASP.NET web service
Posted by Robert Rotstein at 12/13/2005 3:11:08 PM
I’m running an ASP.NET web service which dynamically creates a registry key, stores some values in it, then, on a subsequent call to another method in the service, attempts to delete the key. The problem is, the delete operation always fails with the error message “Cannot write to the regis...more >>

datagrid and ajax
Posted by Vikram at 12/13/2005 3:03:24 PM
Hi, anyone tried using datagrid binding with ajax. Like i want to display datagrid without firing postback, through javascript. Any help will be appriciated. ...more >>

VS 2005 Theming?
Posted by sstrangee NO[at]SPAM gmail.com at 12/13/2005 2:50:48 PM
Maybe I don't get the whole theming thing... but here is what I'm trying to do: I have a App_Themes directory with a Theme named "Standard." Under this theme a CSS named "standard.css" and also have a folder named Images (which contains header_left.jpg and header_right.jpg). In my project,...more >>

The object is currently in use elsewhere error when trying to prin
Posted by kCura at 12/13/2005 2:50:02 PM
First off, I'm sorry if this isn't the write thread to post this message but I couldn't find one dedicated to System.Drawing. I'm developing an intranet application in VB.NET that uses a Hosted Windows Form (HWF) dedicated to image manipulation. This HWF is also supposed to allow the user t...more >>

CSV File
Posted by Charles A. Lackman at 12/13/2005 2:49:21 PM
Hello, I have been able to successfully make an Excel file from data I have in a dataset, IE: With Excel ..SheetsInNewWorkbook = 1 ..Workbooks.Add(1) ..Worksheets().Select() For intRow = 0 To FedExDataset.Tables("Order").Rows.Count - 1 For intColumnValue = 0 To FedExDataset.Tables("Orde...more >>

Using Request.Browser.Crawler - is it reliable?
Posted by Bill at 12/13/2005 2:38:21 PM
Has anyone used/tested Request.Browser.Crawler ? Is it reliable, or are there false positives/negatives? Thanks! ...more >>

Handles !
Posted by Adam Knight at 12/13/2005 2:16:34 PM
Hi all, Can i have multiple form elements be handled by the same function? IE: private sub Test() handles btnTest.Click, btnTest1.Click Cheers, Adam ...more >>

.net 2.0 configuration section.
Posted by Ashish at 12/13/2005 2:13:59 PM
hi All, I am trying to define a section in a .net 2.0 configuration file. Turns out that i "have" to define a type with it. and i dont really want to create a seperate class for holding this information so i make it of type System.Configuration.DefaultSection ... DefaultSection exposes a ...more >>

Callback With Master Pages [Help REALLY Appreciated]
Posted by kfc1976 NO[at]SPAM yahoo.com at 12/13/2005 1:51:16 PM
Hello All and Advanced Thanks For Replying, OS: XP Pro IDE: Visual Studio 2005 ..net Framework: 2.0..... Problem: Getting An Error When trying to implement the following CallBack on a content page that uses a master page (Code From Professional asp.net 2.0 Book) Error: /*****************...more >>

Retrieving values in user control placed in placeholder ctrl
Posted by Joe at 12/13/2005 1:41:32 PM
Hello All, I have a user control which is composed of a label and a dropdownlist. In my code I add the user control to a placeholder on the webform. Now I want to be able to retrieve the selected value from the drop downlist when a user clicks a button server control. Here is the code ...more >>

Request["fieldname"] returns UTF8 but I want Unicode
Posted by Abe Simpson at 12/13/2005 1:32:39 PM
Hi all, My form file has this attribute: <META http-equiv="Content-Type" content="text/html; charset=utf-8"> The form's action points to an .aspx file where I try to retrieve field values as follows: txtTextBox.Text = Request["fieldname"]; However this seems to return a UTF-8 encode...more >>

GridView and Paging
Posted by news.microsoft.com at 12/13/2005 1:20:09 PM
I've looked in the help and at each of the properties for the grid view, but can't seem to find what I need. I have allowpaging set to true for my gridview and when the page loads I go and fetch 75 records from the DB, I know there are 750 records total in the DB. How can I control the p...more >>

How to fix the popup windows' button client refirect to login page?
Posted by ABC at 12/13/2005 12:35:12 PM
After the application user login, when I click the master page button, it popup window using javascript's window.showModalDialog function as: Response.Write("<script language='javascript'>window.showModalDialog('myURL.aspx', '', 'dialogWidth:800px:dialogHeight:600px');</script>"); Then, ...more >>

VS Does Not Generate Ref To HTML Server Control
Posted by JebBushell at 12/13/2005 11:55:02 AM
I retrofit an HTML <select id="SelectBrand" name="SelectBrand"...></select> into a page and make it a server control. The aspx.cs file should, but does not, magically acquire the declaration: protected System.Web.UI.HtmlControls.HtmlSelect SelectBrand; If I insert the above declaration th...more >>

Design question
Posted by JJ at 12/13/2005 11:42:42 AM
Hi, If I have a Winform thick client that had internet access and I had an access database residing on a web server located some where else on the net. I guess I would probably use a web service to access the database. So I guess I would supply the url to the web service/web method with app...more >>

Extracting html
Posted by Jimmy Jazz at 12/13/2005 11:19:04 AM
Hi, I am trying to extract html content from a web page to print in a separate window. I think I need to use Page.Request..InputStream.BeginRead(), can anyone tell me if this is correct and show an example of how it is done, Thanks Jim...more >>

Best Way to Create a Graphical Control
Posted by Maury at 12/13/2005 10:55:32 AM
Help! I'm looking for the best way to create a graphical user control in asp.net...by now I create an ..ascx that uses GDI+ to draw something on itself, then I use a tag <img src='....myusercontro.ascx> but I don't like this way... some hints? thanks ..:M:....more >>

filling arraylist with arraylists in loop problem
Posted by drdave NO[at]SPAM canoemail.com at 12/13/2005 10:28:08 AM
Hi All, I'm filling an arraylist with other arraylists within a loop and within the first iteration and addition all is fine.. however when I clear my value holding temporary array I lose the values already in the output array.. the code.. '******** LOOP OVER THE PROVINCE ID VALUES *****...more >>

Membership API (ASP.NET 2.0)
Posted by Adam Knight at 12/13/2005 10:19:15 AM
Hi all, I am venturing into ASP.NET 2.0. I have been going through the quickstart ect ... and have a question. With the membership API ie(MembershipUser,Roles) can they be customized to store and retrieve info in a db rather than the web config? Unfortunately, my googling time is very ...more >>

How to return the current page URL
Posted by Dan at 12/13/2005 10:00:56 AM
I'm having trouble getting the current page URL into a local string variable. I've tried using the System.Security.Policy.URL.Value but I get the message "Reference to non-shared member requires an object reference" I've searched the help files and online for a vb sample but found none. I have ...more >>

asp.net not working
Posted by abcd at 12/13/2005 9:52:44 AM
I have installed .net framework 1.1 when I create simpel Hello.aspx its not working I am using Windows XP SP2. I reinstalled .net framework by calling aspnet_regiis -i I get below message when browsed the Hello.aspx Server Application Unavailable The web application you are attempting t...more >>

How do I Format Currency w/out decimals?
Posted by JeffP NO[at]SPAM Laptop at 12/13/2005 9:52:07 AM
In the datagrid I have $320.00 from... <asp:Label ... Text='<%# DataBinder.Eval(Container, "DataItem.Install_1", "{0:c}") %>' ...> How can I get: $320 TIA JeffP.... ...more >>

DataSet w/ many tables to one Datagrid
Posted by arun.hallan NO[at]SPAM gmail.com at 12/13/2005 9:35:41 AM
I have a dataset that calls a stored procedure within our system. The stored procedure saves each table into the dataset. I want now to display each table one after the other, all in the same datagrid. I've tried: this.grdResults.DataSource = results.DefaultViewManager; But that doesnt ...more >>

What are the possible reasons for this error?
Posted by Andrew at 12/13/2005 9:30:02 AM
Hello, friends, help please: Deployed a web app, (it worked fine in IDE). The first page displayed correctly. Then when I clicked Submit to go to the second page, I got errors: The page you are looking for cannot be displayed because the page address is incorrect. HTTP 405 - Resource no...more >>

what's the difference
Posted by rodchar at 12/13/2005 8:52:02 AM
hey all, just wondering what the difference is between WebClient class and HttpWebRequest class? thanks, rodchar...more >>

Debugging ASP.NET in absence of VS.NET
Posted by Roy at 12/13/2005 8:36:04 AM
Hi all, Would anyone guide me how to debug an asp.net file when Visual studion is not installed? I've installed SDK, but not able to apply dbgclr.exe the way I've used where VS is present. Thanks in advance Roy...more >>

nullreferenceexception for Private Object Variables
Posted by David Whitchurch-Bennett at 12/13/2005 8:35:06 AM
Hi There, I have created a very simple web user control, containing only a combo box. I have created a class which contains some private object variables, for example... Private _anObject as Object Public Property anObject() As Object Get Return _anObject ...more >>

Integrated Authentication
Posted by Bill at 12/13/2005 7:57:03 AM
Ok, so I have a laptop running XP Pro with IIS 5.0, Visual Studio 2005, and SQL Server 2005. I added the Northwind DB and set up my IIS website to use Windows Integrated Authentication. I created a web page and configured the connection string to use Integrated Authentication for the purpose...more >>

How to retrive and process information from other web pages withou
Posted by david at 12/13/2005 7:44:04 AM
web services. I want to write a server application which is to retrieve and process infromation from third party web site (pages and forms) which does not provide web services. And then populate some useful information in our web page. What kind of technique should I use? Where to get a d...more >>

Collapsible list of question and answer
Posted by Anitha at 12/13/2005 5:52:41 AM
Hi All, How to create a FAQ page similar to one in http://www.microsoft.com/office/faq.mspx#EX. using C# and ASP.NET. The questions answers are in database. Thank you , Anitha ...more >>

TreeView and Master Pages
Posted by Juanjo at 12/13/2005 5:04:02 AM
I need to know how to maintain de status (nodes expanded and selected) of a treeview in a master page. I have a master page with a treeview. I have a default page, when the treeview is expanded and a node is selected then redirects to a another page Response.Redirect("Page2.aspx") And r...more >>

RequiredFieldValidator for 1 control or other
Posted by Mark at 12/13/2005 2:15:02 AM
Is it possible with the Required Field Validator to make 1 of 2 textboxes required? ie. you are required to enter a value in either of the 2 fields. is this possible? -- Mark...more >>

Outlook 2003 and ASP.NET
Posted by Snig at 12/13/2005 1:42:45 AM
Hi I'm into creating a web application in C# (.NET Framework 1.1) which would list and manage the outlook tasks. If I try to do this in a Windows Application, it works fine. But there are many issues in case of Web application. Code: Outlook.Application app = new Outlook.Application()...more >>


DevelopmentNow Blog