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 > february 2006 > threads for wednesday february 1

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

Databind ??
Posted by Adam J Knight at 2/1/2006 11:10:33 PM
Hi all, I am trying to bind a value to a hyperlink control. For some reason it isn't working. What have i missed? <asp:HyperLink ID="lnkQuestions" NavigateUrl='Questions.aspx?ID=<%# DataBinder.Eval(Container.DataItem,"ID")%>' Runat="server">view questions</asp:HyperLink> The databin...more >>


Ajax and .net multiview control
Posted by Mavenos at 2/1/2006 10:31:53 PM
Dear Programmers, Actually Iam trying to use a multiview control with the tab functionality in .net, I tried one simple example for this. But whats happening is, the whole page is getting refreshed when I click on a particular tab. Is there any way to avoid the page refresh and show the tabbe...more >>

Suggestions to prevent VICIOUS data input?
Posted by VB Programmer at 2/1/2006 10:24:32 PM
Using ASP.NET 2.0/SQL Express.... In places where I allow data input by users (sign up forms, comments, etc...) do I need to manually safeguard my site against vicious attacks (SQL injection, etc...)? Should I just run all input thru a filter that removes all special characters, like aster...more >>

Binding to Hierarchical Data Source (FAQs)
Posted by Kent Boogaart at 2/1/2006 10:12:42 PM
Hi, I have some hierarchical data (FAQs) that I would like to bind to. The basic structure is: FAQ Category + Categories + FAQs So an FAQ category has any number of sub-categories and any number of FAQs. I want to display this structure on a web page so that it looks something...more >>

SqlDataSource not binding
Posted by Mike T at 2/1/2006 10:05:12 PM
I'm having a problem with the new ASP.NET 2.0 SqlDataSource object. (my first time using it) I placed a SqlDataSouce object on the page and set its connection properties in the Web.Config. Using the "Configure Datasource..." wizard, I can browse my tables and stored procedures fine. If I clic...more >>

button server onclick not firing
Posted by Vikram at 2/1/2006 8:23:00 PM
I have a button and a text box. when i press enter on text box i want button click at servide side shoiul fire. I thin its a default behaviour but its not happening. Page is posted back but button click event does not fire Thanks ...more >>

ASP.Net 2.0 Repeater Pagination and SORT
Posted by Chaprasi at 2/1/2006 8:20:29 PM
hey guys I was wondering if anyone knows about any pagination and sorting in ASP.Net 2.0 with the <asp:Repeater> control. Thanks, Chaprasi ...more >>

Help! Dataset returning an error on one machine, works fine on another.
Posted by Rico at 2/1/2006 8:06:10 PM
Hello, I have a web application that I developed in ASP.NET on one machine and I'm trying to deploy it on a Windows 2003 Server. The application runs fine on the development workstation connected to the development SQL Server 2000. I've deployed the application to the server and it works ...more >>



Datagrid doesn't print
Posted by Daniel at 2/1/2006 7:37:34 PM
Hey guys When i print preview a datagrid in IE i find the first page shows the grid lines of the grid, and prints them, but all pages after page 1 don't. Any ideas why? Also it will not print the shaded parts of the datagrid, any idea how i can get it to do this so i can have a nice shaded blu...more >>

Visual Studio Compiles when Bad Code Exists (c#)
Posted by bholland at 2/1/2006 6:06:12 PM
I have an ASP.NET 2.0 project that has known bad code: public page_load(object sender, EventArgs e) { foorbar(); } There is no reference to foobar() ANYWHERE. I do a build in Visual Studio and it compiles. When I view the page I get the usual : The name 'foobar' does not exist in t...more >>

visual studio bug
Posted by z f at 2/1/2006 5:24:55 PM
since i don't know where to post this bug i will post it here in the search dialog box "find in files" (CTRL-SHIFT-F )where the user is allowed to specify file extension to be searched, if *.vb is written, files with extension of *.aspx.vb are not being searched. this of course is a bug,...more >>

Forms authentication - SetAuthCookie doesn't set permanent cookie
Posted by Alan Silver at 2/1/2006 5:23:56 PM
Hello, I have a site protected by forms authentication, and when the user logs in, I do the following... FormsAuthentication.SetAuthCookie(txtUsername.Text, chkRemember.Checked); where chkRemember is an <asp:CheckBox> control. If this is checked, then it should save the user's info in a...more >>

Nested Master Detail List Problem
Posted by ultraweaver at 2/1/2006 5:22:08 PM
Hi, I have a datalist and a gridview nested in the item template and trying to bind the gridview to the datalist. I am getting teh error... System.NullReferenceException: Object reference not set to an instance of an object. I am uncertain as to why. I have data. I am following this quick...more >>

Displaying a Thumbnail vs. creating a thumbnail
Posted by David Lozzi at 2/1/2006 5:17:48 PM
Hello, I'm wondering whats the best method to use for displaying several photos' thumbnails. One method I know is to dynamically resize the photo at the time the page is loaded. What does this do to server/site performance? The other is to copy the photo at time of upload and create a thumb...more >>

formview- start out editing
Posted by Ashe Sjedic at 2/1/2006 4:17:21 PM
How do i start out in edit mode on a page with the formview control I don't want to have to load the page, then click "Edit". Thanks ...more >>

defaultRedirect in web.config doesn't work
Posted by Jonas at 2/1/2006 4:06:13 PM
Hi, I've got an ASP.NET application that I would like to use the defaultRedirect attribute of customErrors element to redirect to a custom aspx-page in case of errors. But the page just doesn't get called, instead the default ASP.NET error page is shown. I no Application_Error sub in global.a...more >>

Question: Splitting A String
Posted by VB Programmer at 2/1/2006 4:05:51 PM
I have a string, which can have one or more elements, seperated by a "##" delimiter. Here's some examples: One One##Two##Three One##Two##Three##Four##Five How can I take the string and fill a LISTBOX based on each item? I know Split can split the strings, but how do I know how many "it...more >>

Session is deleted when building project
Posted by Øyvind Isaksen at 2/1/2006 3:01:18 PM
When I build my project/solution all session-variables is deleted. This will be a problem for all users that currently is logged in because my solution show data for the spesific user based on the userID stored in a sessionvariable. Is there any way go around this problem.... for example lo...more >>

asp.net 1.1 - going back to search results
Posted by sqlster at 2/1/2006 2:38:02 PM
I have a search page which renders results upon post back based on certain input criteria. Clicking on a link on a search result such as order number navigates to the order detail screen. What is the best away to program behind the "Back to search results" screen on order detail screen. Sh...more >>

is this a problem...
Posted by rodchar at 2/1/2006 2:11:27 PM
hey all, what are some advantages/disadvantages of putting the datagrid of master records and the details fields all on one aspx page? For example, first show the datagrid of records and when a record is selected, hide the datagrid and show the details fields. thanks, rodchar...more >>

Gridview to XLS... formatting issues
Posted by Not Me at 2/1/2006 1:50:52 PM
Hi, I use the following code to export a prepared gridview control as an excel spreadsheet. *** Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" Me.EnableViewState = False Dim tw As New System.IO.StringWriter() Dim hw As New System.Web.UI.HtmlTextWriter(tw) ...more >>

Read xml string into XmlReader
Posted by wapsiii at 2/1/2006 1:38:57 PM
How do I read the xml string below (saved in varchar field in ms sql db) into a XmlReader or a XmlTextReader? <?xml version="1.0" encoding="utf-8"?> <Class_bizContact xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Property_PersonId>22</P...more >>

VS 2005 Compilation Error (App_Code.compiled)
Posted by jdp at 2/1/2006 1:33:34 PM
I migrated a simple web app from VS 2003, framework 1.1 to VS 2005, framework 2.0. Other than some obsolete warnings, nothing major was flagged. I've initiated both the Build Web Site and Build Solution and both times receive the error 'Access to the path 'C:\WINDOWS\Microsoft.NET\Framework\...more >>

returning output vars from nested stored procedure
Posted by Joe Van Meer at 2/1/2006 1:29:53 PM
Hi all, I have an app that currently runs through 3 seperate stored procedures each returning a count of records. What I would like to do is combine these calls into one call, however I am having an issue getting the output parameters' values after execution. Here is a snipit of code that ca...more >>

Virus scanning
Posted by Jon at 2/1/2006 1:18:26 PM
Does anyone know if there is a way to scan an uploaded file before it is written to disk on the server? Is there a way to scan the uploaded file stream before it's a written file? Thanks ...more >>

gridView and zero rows
Posted by Nalaka at 2/1/2006 1:08:10 PM
Hi, on a browser page, GridView does not show up when there are no rows. (at least this is what I have experienced.) is there a way to show the empty grid (headers etc.), when there are no rows? Thanks in advance Nalaka ...more >>

ASP.NET Web app not receiving expected cookie from Web service. Wh
Posted by achoo at 2/1/2006 12:48:24 PM
I have two versions of the same program that send requests to a Web service. One version is a Windows application written in C#, and it properly handles a cookie created by the Web service. All I had to do was make sure that the proxy for the Web service had an initialized CookieContainer....more >>

OutOfMemoryException
Posted by Hardy Wang at 2/1/2006 12:23:23 PM
Hi, We have a production web server machine, running Win2K + SP4 / IIS 5.0 / ASP.NET 1.1, it has 2 GB of physical memory. With the default value of <processModel memoryLimit="60"> of machine.config, we constantly get OutOfMemoryExcption, then we adjusted the value to 25, it works f...more >>

How would you do it? dataset, class, ... ???
Posted by Alexander Widera at 2/1/2006 12:02:30 PM
Hi, I have a database with 40000 articles... (it is a shop) ... there are columns like price, stock, name, short description, long description etc.... the long description could be really much text. How would you programm the connection to the database in a shopapplication? 1. DataSet w...more >>

Datagrid slow down after initial post
Posted by Dan at 2/1/2006 11:52:32 AM
Hey guys I am finding with all my data grids that after the inital binding of it, which is fast and fine, that if i then rebind to it that it takes double the time. Almost like it is binding it twice and i am unsure why? Any ideas? For example i have a button that on clicking binds the grid...more >>

Gridview Delete Query
Posted by JN at 2/1/2006 11:40:05 AM
I am using the sqldatasource to populate a gridview and I have a pop up that fires when the item_deleting event is triggered. Now in the popup, if the user clicks cancel, i dont want the delete query to continue. How do I accomplish this? Thanks. JN ...more >>

What short forms do you use ?
Posted by Jarod at 2/1/2006 11:39:29 AM
Hey Let's say we are using short forms of control names like : txt for textBox and lbl for Label... Is there any full list of such shortcuts ? I mean one standart. Because now we have additional 50 control and some new shortcuts will be useful but I want use them accroding to standarts. So a...more >>

growing pains converting to 2.0
Posted by Carlos at 2/1/2006 11:23:54 AM
Hi all, I just tried to convert an app from a colleague from 1.1 to 2.0. I have been able to convert apps in the past, and this is the first time that this occurs. I used the conversion tool from VS2005, and apparently it went successfully. However, when I try to browse a page I do get ...more >>

Bind() transform value problem
Posted by ibiza at 2/1/2006 10:52:38 AM
Hi everybody, Is there a way to convert a value with Bind()? I have a decimal(5,4) data that I retrieve from DB, which represents a percent. For example, 50% is represented as 0.5000. When I bind the data to a gridview, I'd like to see this value as "50", because what I do is a templatefield :...more >>

2.0: Gridview row styles applied to TR, does not work
Posted by HoustonFreeways at 2/1/2006 10:38:07 AM
Here I use the style attributes for a Gridview, such as AlternatingRowStyle-BorderColor <asp:GridView runat=server ID=gv_tabular_data AllowPaging=false AllowSorting=false BorderColor=#F17901 BorderStyle=Solid BorderWidth=2px AlternatingRowStyle-BackColor=#FFFEC5 Alter...more >>

Bin directory
Posted by Carlo Razzeto at 2/1/2006 10:29:11 AM
Hello, my company is just switching from PHP to .Net. As part of this what we have built our own "AIP", basically just a set of libraries to abstract common business logic. What we would like is for all of our ASP.Net applications (we are using visual stuido 2005 with ASP.Net 2.0) to simply ...more >>

checkbox
Posted by NuB at 2/1/2006 10:27:29 AM
How can i get the value of my check box? I have it based on a dataitem from the database, but on the form the user can check it or uncheck it. How can I determine if its checked or not and save it to the table? I have this but its not saving: if (checkbox1.checked == true) { value =...more >>

DataGrid
Posted by TCB at 2/1/2006 10:21:13 AM
How can I make a linkbutton on a datagrid call a javascript that pops up a window depending on the record number, I mean... I send the page and querystring to the javascript that pops the window. i have done it with an image using the onclick=... but how to do this whith a link button? Than...more >>

Debugging somehow not working (locally) VS.NET 2002
Posted by DWY at 2/1/2006 10:00:39 AM
I have not idea what has happened, but for some reason, my breakpoints aren't working. Is there some checkbox somewhere that got flipped?...more >>

excel open existing .xls and write dotnet
Posted by csgraham74 at 2/1/2006 9:51:13 AM
Hi guys, just wondering if anyone could - help me work out how to open an existing spreadsheet in excel and write to it then save it. I have some code that opens a new worksheet everytime but i want to just write info to the smae worksheet. Thanks in advance Colin ...more >>

update 2 tables
Posted by NuB at 2/1/2006 9:39:28 AM
I have a web form and when the user clicks update I have to update 2 seperate tables, How can I do that? Right now I'm using straightline SQL for this. ...more >>

ASP.NET Treeview control...
Posted by MichaelY at 2/1/2006 9:27:29 AM
I am using a treeview control for data display, and am having a bit of a hard time getting the thing styled the way I need it. There appears to be empty rows added in between the tree nodes, causing a (1+1) 2px 'gap'......I noticed in the rendered markup that the height is set to 0px in the s...more >>

First time building project
Posted by sqlster at 2/1/2006 9:21:30 AM
When I get latest on asp.net project from VSS, I do the following: 1. Open up the project file in VS.net 2. Access bin folder via file explorer. 3. Select all the files and check off the read only box. 4. Go back and build project. If I don't perform step 3, I would get whole bunch of errors...more >>

Declarative use of sqlDataSource in ASP.net 2.0 and Exception Hand
Posted by JeffDotNet at 2/1/2006 8:44:43 AM
I have been enjoying the declarative use of the new sqlDataSource in asp2.0. It makes paging and query building extremely quick and simple. However occasionally I expect to get a timeout exception. Without filling the sqlDataSource manually I don’t know how to go about catching an exceptio...more >>

XML Trouble Moving to .Net
Posted by DouglasABaker NO[at]SPAM gmail.com at 2/1/2006 8:42:02 AM
I'm having problems getting this to return a response in .Net, any ideas? I've been playing around with WebRequest/WebResponse, is that what I should use? Thanks sXMLMessage = "<?xml version=" & Chr(34) & "1.0" & Chr(34) & "?>" & vbCrLf sXMLMessage = sXMLMessage & "<transaction>" sXMLMessa...more >>

Uploading files
Posted by Jon at 2/1/2006 8:39:15 AM
I have a client with the following requirements: -Upload files via asp.net 1.1 website -write the files out -virus scan the files -save them to a database -aspnet or IUSR account cannot have write permission to any folder. 1) What are my options? If the aspnet process doesn't have write pe...more >>

Need Help with System.Web.UI.WebControls.HyperLink
Posted by SAL at 2/1/2006 8:23:54 AM
Has anyone worked with the System.Web.UI.WebControls.HyperLink? I am trying to find examples on how to use it. What I am trying to do is assign a Hyperlink to a document (i.e. .doc, .pdf, ..txt, etc.) programmatically. I am using VB.net, and ASP.net in VS.net 2003 with Framework 1.1. ...more >>

How to Pre-Select a DataGrid Row Radiobutton ?
Posted by savvy at 2/1/2006 8:23:19 AM
I have used MetaBuilders.WebControls for including a radiobutton in a datagrid. Its works fine with retreiving the checked radiobutton datagrid row id. but i'm not able to preselect the row radiobutton which matches with the database data. ok I have a Datagrid which displays CV details created b...more >>

Membership Services, Login and http/https
Posted by bjohns33 at 2/1/2006 8:22:57 AM
Hi all I've written a custom provider for membership services and put my login control on an ascx. I want this ascx to be available anywhere on the website so that users don't need to click twice to login. The rest of the site is running over http, but I want the login process to run over...more >>

ASP.NET 2.0 web page - no more grid layout?
Posted by Rob R. Ainscough at 2/1/2006 8:16:41 AM
In ASP.NET 1.1 I had grid layout option, in ASP.NET 2.0 it seems flow control is my only option?? Is this correct? If so, how do I position the controls where I what them to appear? Thanks, Rob. ...more >>

Another asp.net/Javascript Question
Posted by Joey at 2/1/2006 8:06:27 AM
I am going to use a collection of either div HTML server controls or panel web server controls (renders as div on newer browsers) on a web form. I need to be able to hide them with a client-side javascript switch block, based upon what is selected in a drop-down list web server control (renders ...more >>

Problem with e.item.dataitem in OnItemDataBound
Posted by ibiza at 2/1/2006 7:34:03 AM
Hi all, I have a simple scenario where I simply bien a repeater to a datasource. Here's my repeater definition : <asp:Repeater id="rTitles" runat="server" EnableViewState="false" OnItemDataBound="Bind"> <headertemplate> <ul> </headertemplate> <itemtemplate> ...more >>

What Am I Doing Wrong?
Posted by Joey at 2/1/2006 7:18:33 AM
I am attempting to hook the onChange event for a dropdown list with javascript so that I can do some stuff and then initiate a postback with my code. I have not yet learned about how to do postbacks with javascript code...I have always relied on the dropdown list's AutoPostBack=true property to ...more >>

ASP.NET 2.0 Localisation problem Localizable attribute not working...
Posted by aidancasey NO[at]SPAM gmail.com at 2/1/2006 6:56:20 AM
I have written a custom control called CheckboxDataList that derives from the DataList webControl. My control contains a public property called CheckedValues. The type of this property is a generic <List> of strings using System; using System.Collections.Generic; using System.ComponentMo...more >>

No Validation
Posted by tshad at 2/1/2006 5:56:31 AM
I have a page that has no Validation objects, but I also have the following code: if not Page.IsValid exit sub end if For some reason, the page is hitting the "exit sub" statement? How can that be? What else would invalidate a page and how can I find out what caused it to be invali...more >>

File not found error
Posted by barry at 2/1/2006 5:32:34 AM
Hi I get this error "Page cannot be found" HTTP error 404 when i try to open a .asp file (example default.asp) through IIS 6.0 how can i correct this problem TIA Barry ...more >>

UnManaged Resource Identification
Posted by thomson at 2/1/2006 4:23:26 AM
Hi All, Connecting to SQL Server we say its an Un Managed connection Can any one tell me whether this statement objConnection = new System.Data.OleDb.OleDbConnection(strConnectionString); is a call to an unmanaged resource thanks in Advance thomson ...more >>

Working with zip file
Posted by Reggie at 2/1/2006 1:00:36 AM
Hi and TIA! What I would like to do is upload a zip file to my virtual directory and then decompress the file. I will then execute a DDE package to import the large dbf file into SQL server. I have no problem uploading the file and executing the package, but I can't seem to find anything on...more >>

Edit Mode of Grid View and Detail View Control ?
Posted by Luqman at 2/1/2006 12:40:04 AM
How can I put GridView and DetailView control to Edit Mode with one click of button ? I don't want to show built-in Edit Buttons of above controls. Best Regards, Luqman ...more >>

Failed to map the path '/App_GlobalResources/'
Posted by Pippo at 2/1/2006 12:02:16 AM
Hi, i have W2k and framework 1.0 and 1.1 and work fine, i have installed framework 2.0 and when start a simple page aspx return the page error i try to make asp.net user permission in folder Microsoft\Crypto\RSA\MachineKeys i try to make aspnet_regiis with various paramenter but all my ...more >>

Page Directive & Dreamweaver??
Posted by Adam Knight at 2/1/2006 12:00:00 AM
Hi all, I am using a dreamweaver template for a web app i am working on. Each time i update the template my page directives at the top of the associated pages gets removed. Anyone had problems with this? Know how to fix? Fill me in on what is going on? Cheers, Adam ...more >>

How to sort a datagrid?
Posted by Dan at 2/1/2006 12:00:00 AM
Hi, I have a programatically built up datagrid and i want, after binding to be able to sort the columns by clicking the title of the datagrid column, anyone know or able to provide a code snippet of how to do this? C# pls -- Dan ...more >>

Calendar control ?
Posted by Jarod at 2/1/2006 12:00:00 AM
Hey Is there a way to make calendar "roll back" so when the user don't need it should hide a lot of dates. Or maybe some roll back... I want to have calendar in gridView but takes so much space that it wouldn't feet even if I have page like 1280pixels wide ( there is a lot of diffrent fields ...more >>

question regarding AutoPostback dropdown list
Posted by Milsnips at 2/1/2006 12:00:00 AM
Hi there, I'm using VS.NET 2003, (.NET 1.1.4322) - I've got dropdown list with about 10 items in it on a web page. On 2 of the items i'd like the autopostback to occur, whereas if the user selects the other items i dont want it to occur. Is this possible? thanks, Paul ...more >>

Datafeed to Excell
Posted by Steve Peterson at 2/1/2006 12:00:00 AM
Hi One of our clients wants to import directly data from a table SQL server on our remote server directly into Excell. I need to come up with a way to this. This is a new ballgame for me and I'm not sure exactly how to approach the problem. I was hoping that someone in the community could s...more >>

Problem with nested Datalists
Posted by TheHach at 2/1/2006 12:00:00 AM
Hi. (For information, i'm working in VB.NET) In our company, we have material that is divided into 3 parts : - a system - a batch - an article In each system are different batches, and in each batch different articles. So, in a webpage, I have to show our material like this : (+)...more >>

Hoe to make controls in a UC public?
Posted by Edwin Knoppert at 2/1/2006 12:00:00 AM
I currently have a readonly property which returns the control which resides in a usercontrol. Isn't there a more easy way to make controls public? And i don't mean through controls(index) or findcontrol. I want to reach text1 like: myusercontrol.text1.text = now ...more >>

Date Format!
Posted by Adam Knight at 2/1/2006 12:00:00 AM
Hi all, How would i go about formating the following in DD/MM/YYYY. ?? <%# Container.DataItem("activated_dt")%> Actual value is : 22/12/2005 9:51:00 AM Cheers, Adam ...more >>


DevelopmentNow Blog