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 > april 2006 > threads for thursday april 27

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

how to convert string to money(sql db)
Posted by joe at 4/27/2006 9:27:01 PM
how to convert string to money before to insert to sql serve(sql db)...more >>


Format SQL query string using asp:loginname
Posted by Loopsludge at 4/27/2006 9:24:13 PM
ASP.NET 2.0/ SQL Server 2005/ Login Controls Does anyone know how to format a SQL query string using asp:loginname in the WHERE clause? Alternatively would I need to store the login name upon login w/in a Session variable? Can someone give me an example? Thanks, Loopsludge ...more >>

Handlers not getting called
Posted by Irshad Ahmad at 4/27/2006 7:53:00 PM
Hi, I am developing an Web Application in ASP.Net with C#. In this application I have used the IsApiRewrite tool for Rewriting the URL. I have got a page named Images and this page has got a dropdownlist. When the dropdown list is autopostbacked then the original URL gets appended to the Rewr...more >>

Need help with accessing a control within a template field
Posted by Siva at 4/27/2006 7:44:43 PM
Hello I have a dropdownlist inside the gridview as a template column defined as follows: <asp:TemplateField HeaderText="Choose Location"> <ItemTemplate> <asp:DropDownList ID="ddlChooseLoc" runat="server"> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> I have the gridview inside of...more >>

Using Starter Kits - Please help
Posted by oldgent at 4/27/2006 7:13:01 PM
I am having a problem installing the starter kits. I have reinstalled VS 2005, think that might be the problem. I then installed both 'Personal Website" and the "Club Website" starter kits. I still have the same problem. Any web starter kit that is installed under 'My Templates" does not a...more >>

How to use Response.write to write to a specific area on a aspx pa
Posted by Abel Chan at 4/27/2006 5:48:01 PM
Hi there, I am trying to use ASP.NET to populate list of files with hyper link from a specific directory. The following code works well but it populates the list to the top of the web page. I have header and footer defined on the web page. How could I write the list to the body session l...more >>

Help with TreeView runtime error
Posted by keithb at 4/27/2006 5:08:06 PM
What causes this intermittent runtime error? Microsoft Jscript Runtime Error: 'ct100_TreeView1_Data is undefined. When the error occurs, the following section of code is highlighted: on MouseOver="TreeView_HoverNode(ct100_TreeView1_Data, this" I looked for a missing property related to Hov...more >>

Codefile directive validity with @Application ?
Posted by WT at 4/27/2006 4:50:43 PM
Hello, In my Global.asax file, I have only an @ Application directive like <%@ Application Language="C#" Inherits="WT.Global" CodeFile="Global.asax.cs" %> Visual studio complains saying that CodeFile is no valid for Application but the documentation says to use it for Codebehind ? W...more >>



Login Control .NET 2005
Posted by soumya at 4/27/2006 4:47:09 PM
Hello all, I have a problem with displaying the "CreateUserUrl" property of the Login control on a Content Panel. I do not know what the reason is except for that particular property, everything else works like FailureActionText, etc. Also I have tried to add a hyperlink externally, but th...more >>

ASP.NET 2.0: Bind ArrayList to FormView Control
Posted by sck10 at 4/27/2006 4:46:31 PM
Hello, I am trying to bind an arraylist to a FormView DropDownList control in the PreRender state. The error that I get is the following: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control. Any help with this would be appreciated...more >>

beginner AJAX questions (AJAX.net)
Posted by darrel at 4/27/2006 4:22:07 PM
I've been playing with prototype.js and scriptaculous to create some nice drag-and-drop interaction on my applications GUI. That's working well. Now I want to take the next step and start passing data back and forth between my page and the server via AJAX. In terms of .net, can someone giv...more >>

How do I access 'Request' from a Library?
Posted by Robert W. at 4/27/2006 4:21:03 PM
In one of my business objects I wanted to include a method like this: public static void PageRedirect(string pageName) { Response.Redirect(Request.ApplicationPath + "/" + pageName); } The class is referencing 'System.Web' but yet I'm getting a compile error in regard...more >>

CheckBoxField in GridView Tasks - Edit Column can it be a CommandField too?
Posted by hazz at 4/27/2006 4:00:59 PM
Given the update query UPDATE Columns SET Include_in_Report = @Include_in_Report WHERE (ID = @Original_ID); Include_In_Report is a bit field in the table, represented as a checkbox on the grid. If someone clicks on the checkbox, I would like the bit field in that row in...more >>

Help - Need to allow Java Client to post form data to ASPX Web Page
Posted by jjouett at 4/27/2006 3:44:50 PM
I'm trying to setup an ASPX web page such that an existing Java Client can post form data, and I'm running into a problem. The existing Java Client doesn't set any credentials, and when I try to post to my page, the Java Client gets a 401 error. My own C# client works because I am setting the Cr...more >>

I don't remember
Posted by Andrea at 4/27/2006 2:33:28 PM
Sime times ago I was reading about web controls that automatically remove html control passed when a form is postback ... but I don't remember the msdn link as well as the name of this prevention technique. Some helps? Andrea ...more >>

how do I know it's posted back due to a button click in Form_Load
Posted by Jazz at 4/27/2006 2:27:02 PM
Hello, I have an asp button control(called buttonA), and in the Form_Load event I want to know if the postback is due to the click of ButtonA. Which method should I use to achieve this? Thanks, Jazz...more >>

rounding values to the nearest 5 or 10
Posted by Milsnips at 4/27/2006 1:59:11 PM
hi there, any help with this one? i have say, numbers which i'd like to be rounded to the nearest 5 or 10, example: 147.24 -->>150 181.99 -->> 180 824.18 -->>825 822.49 -->>820 and so on.. is there anything that i can do this right away in .net or would i have to somehow create my o...more >>

web.config in separte directory
Posted by theWizard1 at 4/27/2006 1:59:01 PM
Using Asp.NET 1.1, and C#. I have a directory for the website, and a directory under it named Secure. I have a web.config in each of the above directories. The web.config in the Secure directory contains the connection string information for the database. How can I use Configurat...more >>

accesing parent Page TextBox from WebControl?
Posted by Daves at 4/27/2006 1:43:35 PM
code in a webcontrol's Page_Load event wants to grab value of a TextBox in the parent page; (TextBox) _textBox = (TextBox) this.Page.FindControl("TB_TextBox1"); string _value = _textBox.Text; well, FindControl(...) returns null and in VS debugger I see the particular TextBox is a lock...more >>

SqlDataReader Limitation?
Posted by SDRoy at 4/27/2006 1:32:02 PM
Hi Is there a limitation on how many rows can be fetched using a SqlDataReader in ASP.Net 2.0 ? -- Thanks, SDRoy...more >>

Atlas + Webparts --> Strange Error
Posted by ryan.mclean NO[at]SPAM gmail.com at 4/27/2006 12:59:29 PM
Hello all, I have a web application that uses Atlas and Webparts. It works fine on my machine, but on the remote servers, i get the following error: _whidbeyZone.webPartTable is null or not an object It happens when a postback from a control in the webzones occurs . . . I'm not even sure ...more >>

Asp.Net 2.0 - invalid webresource request
Posted by Amelyan at 4/27/2006 12:14:45 PM
Why does this happen? How do you work around the problem? System.Web.HttpException: This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep...more >>

Cannot rebind GridView nested in DataList
Posted by H5N1 at 4/27/2006 12:05:17 PM
Hello everybody I'm stuck for a long time with the following problem, so I will be really gratefull if you could help me a bit: I have a GridView nested in DataList (it's located in DataList's Item Template together with it's data source). In OnRowUpdated event of child GridView I'm calli...more >>

Can't Rename Controls
Posted by Arthur Dent at 4/27/2006 11:51:46 AM
Hello all... i have a question about something which really bugs me with the 2K5 IDE.... When i place a new control on a form, often times, i cannot rename the control from the properties window. It lets me type in a new name, but when i hit Enter, or otherwise 'commit' my change, it just ...more >>

Loop through all fields in a single record?
Posted by tedqn NO[at]SPAM yahoo.com at 4/27/2006 11:40:44 AM
In ASP, I can do it with For Each objField In rsValue.Fields //do something with objField.Value Next or For i = 0 To rsValue.Fields.Count - 1 .. I couldn't find any equivalent on how to do this with .net. Can anybody help? ...more >>

How to map XML to .NET class?
Posted by Zean Smith at 4/27/2006 11:24:25 AM
I was given an XML (see below) already in string format, is it possible to map the data to an Array of a .NET class? I read some article about XMLDataDocument and XMLReader, but never talk about mapping... help. It would be cool if I can get data fill out like this from XML.. ((myclass)...more >>

Custom validator and Checkboxes
Posted by Martin at 4/27/2006 11:17:01 AM
I am writing a custom validator by extending CustomValidator in order to validate three fields as follows: If checkbox true then textboxA and textboxB must have data in. The problem I am having is that whether the checkbox is ticked or not it returns the value "on" to my validator code. T...more >>

writeable checkbox in datagrid from bit field in table
Posted by hazz at 4/27/2006 11:12:23 AM
I am having a very difficult time with what should be an easy task. I simply want to select these fields from the database table into the GridView control and have checkboxes appear for which the user can select which columns to include in a report. The checkboxes are always read only, even ...more >>

catching exceptions across dlls
Posted by Sridhar at 4/27/2006 11:11:03 AM
Hi, I am not able to receive correct exception messages from a different project which is added as a reference as a dll. If I add that different project to the same solution and now add it as a reference, it is giving correct exception message. But the thing is I have so many projects...more >>

FormView, SqlDataSource and handling exceptions
Posted by Rob at 4/27/2006 10:57:28 AM
Hey all, So.. a simple FormView/SqlDataSource to handle inserting records into a table. The table has a primary key that the user enters (eg DiscountCode). If the user enters a duplicate the database complains about a primary key violation (which is what I want) and an exception is thrown. ...more >>

show following year and passed
Posted by CSharpguy at 4/27/2006 10:47:02 AM
I have a drop down where I'm showing 3/31/2006 and the passed 5 years, I need to also show month end for the following year and still show the passed 5 . So I need 12/31/2007 and back 5 years from today, how can I do this?...more >>

GridLayout no longer supported!!??
Posted by Tina at 4/27/2006 10:00:32 AM
I see that in VS.Net 2005, grid layout is no longer supported. I really liked gridlayout because I could put things exactly where I wanted them. How can we put things exactly where we want them now? Why was gridlayout eliminated? Thanks, T ...more >>

Authentication Error ! plz help
Posted by Mr. Ali Hasan at 4/27/2006 9:27:02 AM
There's a problem in my application that calls a remote web service's method, when it tries to connect to the webservice it displays this error: "The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the...more >>

Button Click and JavaScript
Posted by Sekhar at 4/27/2006 9:07:01 AM
Hi all I have an ASP.NET Button Control. I woud like this button to make a Call to JavaScript function on some condition. How would i do this Thanks Sekhar ...more >>

ObjectDataSource could not find a non-generic method error
Posted by tparks69 at 4/27/2006 8:45:01 AM
I get the error: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Insert' that has parameters: last_name, first_name, email, role_id, user_id, modified_by, modified_date when my application is trying to insert a record from a formview. It works fine for delete...more >>

Nested data
Posted by clickon at 4/27/2006 8:32:02 AM
What is the best way to acheive a nested list of data. What i want is a list of parent/child data. specifically a list of invoices with their invoice lines underneath. There doesn't seem to be any suitable control for doing this easily even though this must be a very comon thing to want ot ...more >>

NAnt for .net 2.0
Posted by sireesha.parvatham NO[at]SPAM gmail.com at 4/27/2006 8:28:34 AM
Hi, Can somebody help me please. I am a learner using NAnt build files for my ASP.NET web applications. It works fine for .cs files, but when i try to use .aspx files, it gives me an error. The problem is "Partial" modifier on the declaration of class. If I remove this, NAnt works, but my web f...more >>

redirect from https to http w/o security warning
Posted by Dabbler at 4/27/2006 8:28:03 AM
I'm sending users to a secure page https to fill out a registration form. When they're done I show a thank you page. I need to return the user to http mode after filling out the form. If I use response.redirect I get a security warning when transitioning from https to http. Is there an acce...more >>

ASP.Net 2.0 Multithreading Problem
Posted by insomniac at 4/27/2006 8:22:01 AM
I need some help, I've run into an issue with threading my ASP.Net APP once it is launched into production. Here's the issue: The threading works great on my development platform (Windows 2003). The threading executes exactly as expected. When the project is pushed to production, the e...more >>

How to move radio buttons into table cells?Help!
Posted by david at 4/27/2006 8:04:02 AM
I have asked this question before. But it does not work for me. Given radion buttons in the web form design page. What I did is described as follows. A panel control is dragged into the design form, and a table control is dragged into the panel from tooolbox. Add cells for the table through t...more >>

javascript doesn't work with my button
Posted by CharlesA at 4/27/2006 8:00:01 AM
Hi folks, first off, I'm using .Net framework 1.1 with ASP.net and C# I'm trying to do something very simple...but I can't figure it out I have an <asp:button runat="server"> in the test version of my app that is essentially a backdoor for changing the class of user inside the application ...more >>

Webpart - web user control - page_load firing as postback
Posted by ryan.mclean NO[at]SPAM gmail.com at 4/27/2006 7:35:33 AM
Hello all, Here is my problem: I made a simple web project that uses they new webparts. On my page, I have a DeclarativeCatalogPart that contains references to several ascx files. I put my page into catalog mode, and put the selected controls (ascx) into a webzone and viola, the controls are ...more >>

Control postioning
Posted by Michael at 4/27/2006 7:09:02 AM
Hi I been having a little problem on both a work and home projects. For work, I have created a user control with a few textboxs and 2 dropdownlists, here is the code: <table style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; heigh...more >>

Best way to use XML data source and reuse code?
Posted by Ariana at 4/27/2006 6:51:06 AM
I have the following situation for an ASP.NET 2.0 web site: - Data is in one XML file - I want to transform the data using an XSLT file before using it - The data is hierarchical - The data will change only occasionally but is quite large and needs to be up to date when it does change - The ...more >>

How to add a new row to GridView control
Posted by SDRoy at 4/27/2006 6:51:02 AM
Hi I am using two GridView controls which are populated programatically. A find button populates a GridView1 if a search was successful. For each item selected in GridView1, I retrieve a collection and populate GridView2 on the same page. I have added a button control on each row of the Gr...more >>

Streamreader is holding a text file in its grip after it is closed
Posted by damezumari at 4/27/2006 6:30:09 AM
I am running a vbnet web application http://localhost/passwords/passwords.aspx on windows 2000 where a text file is read into a temporary datatable called Table1. Here is the problematic part of my code: Dim sr As StreamReader = New StreamReader(Filename) Dim line As...more >>

!!!HELP!!! Errore debugging a solution
Posted by Marco at 4/27/2006 6:20:02 AM
Hi, I've create a simple solution into my pc that read some data from an Access DB and send them via WebServer to another DB. When I try to include a WebService into my solution and run it in debug mode, this dialog box appers "No Source Code Available For Current Location" Why?? if i try ...more >>

DropDownList - SelectedIndexChanged
Posted by j_stus NO[at]SPAM hotmail.com at 4/27/2006 6:13:04 AM
Hello there I was trying to find something about this on web but with no success. I am using code behind. Basically I am creating drop down list dynamically. Everything works but calling SelectedIndexChanged event never fires up. I found some discussions regarding this problem, but couldn't fin...more >>

GridView Paging and non-sql datasource
Posted by OJ at 4/27/2006 6:00:59 AM
Hi, I am retrieving data from an external (www) data provider through socket communication. I send a structured query (not SQL or XML) in the form of a string containing tab seperated values and the external provider returns data in the same format. I have written classes in C# to represent the...more >>

more than one login at a time from the same machine
Posted by Balaji at 4/27/2006 6:00:25 AM
Is it possible to allow users to do more than one instance of the web application with different logins. our application uses session extensively, which meens effectively the users should get different sessions. Thanks in advance. Regards, V.Balaji ...more >>

Login Control
Posted by Mr. Morad Jamal at 4/27/2006 5:39:02 AM
I want to know how to change the default databse "ASPNETDB.MDF" that the login control connects to (by default) ? i want to let it to connect to a different DB !! I also need a link to a refrence or tutorial about this control !! Thanx so much in advance !!...more >>

null references in my user control!!
Posted by Sam Martin at 4/27/2006 5:13:02 AM
I've got a really annoying problem, and I feel like i've tried everything .... I've got a really simple usercontrol, containing a single dropdown. In the Page_Load of the usercontrol, i want to set the items of the drop down, but the control reference in the code behind file is always undefi...more >>

Passing Information Between Two ASP.NET Websites
Posted by anewell NO[at]SPAM valassis.co.uk at 4/27/2006 5:05:47 AM
I need to build website on my webserver which has information securely passed to it from a web site running on a client's webserver. My client has a website that has a secure login process running under SSL. When a user has succesfully logged into that website they will be able to follow a...more >>

update binding in server-side tag
Posted by davefromalbury at 4/27/2006 4:10:30 AM
i've got a <tr> in an asp.net 2.0 formview which i set runat="server" so that in the code, i can set visible=false for that row if the user isn't admin. In this row, i have a drop-down with two-way binding. for some reason, this control isn't getting picked up in an update, ie e.oldvalues["id"]=...more >>

File transfer from server to client (Silent Download)
Posted by Jay at 4/27/2006 3:28:33 AM
Hi, I have some unique situations where i need to transfer a file from Server to client but without any Open or Save dialog box shown to the user. The file should save itself directly to client machine. I want to transfer word (.doc) file from server to client without open/save dialog box. ...more >>

File Transfer from server to client (silent Download)
Posted by Jay at 4/27/2006 3:28:02 AM
Hi, I have some unique situations where i need to transfer a file from Server to client but without any Open or Save dialog box shown to the user. The file should save itself directly to client machine. I want to transfer word (.doc) file from server to client without open/save dialog box. ...more >>

MultiLine Grid View
Posted by mosscliffe at 4/27/2006 1:59:11 AM
Dear All, I am still finding my way around Visual Web Developer, but I have hit a problem. I would like to either use a multiline gridview or a less detailed, but multi record detail view, using the standard controls eg Record 1 ID Field 2 Field 3 Field 4 Field 5 F...more >>

How to hide a column in datagrid?
Posted by ashtek NO[at]SPAM gmail.com at 4/27/2006 1:12:58 AM
Hi, I am using a datagrid with databound columns. I want to set the width of one of the columns to zero. I use the following code in the design time. <ASP:BOUNDCOLUMN DATAFIELD="FieldName" HEADERSTYLE-WIDTH="0" ITEMSTYLE-WIDTH="0"> </ASP:BOUNDCOLUMN> But the column still appears when th...more >>

System restore screwed up my asp.net web project????
Posted by VB Programmer at 4/27/2006 12:58:14 AM
I had to do a system restore today. I restored it to 2 weeks ago. After it was done I entered VS.NET (latest version) and it said I was entering it for the first time. I opened up a web project I've been working on (ASP.NET 2.0) and I noticed that 2 of the directories were renamed (ex: "...more >>

radio button in datalist
Posted by Vikas Kumar at 4/27/2006 12:00:00 AM
i had coded like this <ItemTemplate> <table width="100%"> <tr width="100%"> <td width="25%"><%#DataBinder.Eval(Container.DataItem,"FName")%></td> <td width="25%"><input type=text name="txtPass" value='<%#DataBinder.Ev...more >>

Best practice : Displaying a waiting page
Posted by Gordon at 4/27/2006 12:00:00 AM
I am looking for a way to display a waiting page whilst some processing is happening. Depending on the result of that processing I may go back to the original page ( and maintian view state) or go on to some other page. I have a threaded approach working but when going back to the original pag...more >>

How to Display an image, from a DB, into the Gridview (ASP.NET 2.0)
Posted by Auto at 4/27/2006 12:00:00 AM
Hello, I would like to know how do display an image into a Gridview (ASP.NET 2.0) taken directly from a DataBase, NOT using an URL, like described in this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/GridViewEx06.asp I have NO URL, i have the binar...more >>


DevelopmentNow Blog