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 monday april 24

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

Master page woes!
Posted by William Buchanan at 4/24/2006 10:17:47 PM
Hi folks Why are master pages such a pain? I have put a search text box and link button on my master page because I want it on all pages on my site. After lots of juggling with the different properties I managed to get it to work. However, any page which has RequiredFieldValidators fail...more >>


validating groups of validators in 1.1
Posted by Darrel at 4/24/2006 9:42:10 PM
I noticed this nice new feature in 2.0: a.. Validation Groups - Validation groups allow multiple forms on a page to be separately validated. Alas, I'm using 1.1 on a project at the moment and need to do exactly that. Any best-method way to handle that with 1.1? I have one ASP.net form ...more >>

Confirming postback from javascript ALERT?
Posted by Darrel at 4/24/2006 8:10:30 PM
I have a page that lists a bunch of items. You can check each item and hit ADD to add these items to a record in the DB. This page has a dropDownList. When you select an item from the list, I want to do an auto-postback and then list a new bunch of items that you can, again, check and click...more >>

Time spent reading a file. ASP.Net (V1.1)
Posted by v.anupama NO[at]SPAM gmail.com at 4/24/2006 7:39:48 PM
I have a requirement where a user can access ONLY one file at any given time out of a list of files listed in datagrid (button/hyperlink columns). Only files listed are pdf,doc,txt. I cannot use shared point etc. this should be a ASP.net application. I also need to keep track of how much time ...more >>

How to add the 2nd querystring in web.sitemap
Posted by ad at 4/24/2006 7:37:11 PM
I need add two querysting in a node in web.sitemap: <siteMapNode url="~/LocalReport/RViewer.aspx?sKind=Acc_List"&MyYears=2006 title="WebReport" description="" roles="" /> But the compiler said that I can't use & in the siteMapNode. How can I add the 2nd querystring in web.sitemap? ...more >>

from List <double> to double[]
Posted by Web learner at 4/24/2006 7:25:42 PM
The following code works fine private List<double> GetDataFor(string column, int selectedYear) { ------- ------- return list; } foreach (double item in GetDataFor("AirTemp", selectedYear)) { Response.Write(item.ToString() + ", "); } It shows data as follows: 37987, ...more >>

Crash on first access
Posted by Frank Rizzo at 4/24/2006 6:08:10 PM
Has anyone seen the condition where you update the web site by publishing from VS2005 and the first time you access the site you get a generic error, but the subsequent times it works fine. Is there a way to resolve it? Thanks....more >>

String was not recognized as a valid Boolean
Posted by dba123 at 4/24/2006 5:58:01 PM
Why am I getting this error for Budget? Error: An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code Additional information: String was not recognized as a valid Boolean. Public Sub UpdateCustomer_DashboardGraphs(ByVal sender As Obje...more >>



T-SQL QUESTION
Posted by keithb at 4/24/2006 5:42:20 PM
What is the general form for a stored procedure that does two select statements and returns a true indication if all of the records from one select statement are included the records returned by the other select statment? Thanks, Keith ...more >>

Drag n' drop AJAX in .net
Posted by darrel at 4/24/2006 5:31:04 PM
I've been casually looking at the various asp.net ajax libraries looking for one to start playing with. But I'm still stumped as to which one I should go with. The key feature I'm looking for is a drag-n-drop ability to resort/update a dataset/list. I am NOT using asp.net 2.0 for this pr...more >>

Add each row dynamically to a datalist or gridview?
Posted by Vear at 4/24/2006 5:04:02 PM
Hi, I use an SqlDataReader to retrieve data and loop through it for a seperate operation. At the same time I would like to read two of the several fields into a Datagrid or Datalist. Is this possible with an Add row - Column 1 type of command? Or is there a way to bind the SqlDataReader ...more >>

Help SQL Injection Attack Question - newbie to web security
Posted by Ranginald at 4/24/2006 4:34:56 PM
If you have a URL, say ../details.aspx?ID= and the ID is generated from a master.aspx page, such as .../details.aspx?ID=24 are you vulnerable to a SQL Injection attack? And if so, can I "fix" the problem using a stored procedure to generate the new URL? Thanks in advance! Rangy ...more >>

REPOST: Error Using WMI to Get List of Shared Folders on the Server
Posted by lecnac at 4/24/2006 4:27:46 PM
Sorry for the repost. I must have done something wrong when I tried to post my reply (I can't seem to find it). Anyway, I'd really appreciate any help that anyone could provide. My issue is quickly becoming more and more urgent. Thanks for the thoughts Bruce. However, we can't do #1 (...more >>

Atlas (DragDrop - on different Drop Zones)
Posted by Ram Patel at 4/24/2006 4:07:11 PM
Hi, this is regarding asp.net Atlas DragDrop problem. 1. in atlas DrapDrop section , we define drop Zones and draggable items. lets say we have two drop zones : Zone1 , Zone2 In Zone1 Draggable items are : item1 , item2 In Zone2 Draggable items are : item3 , item4 ...more >>

Automatic refresh of a user control
Posted by KatMagic at 4/24/2006 3:43:57 PM
Is there a way to automatically refresh a user control? I have a page = where I automatically refresh the page with <meta http-equiv=3D"refresh" = content=3D"600"> The page loads a user control based on a variety of factors on what the = user is doing. I need to load the page without the ref...more >>

calendar
Posted by Frederik Vanderhaeghe at 4/24/2006 3:06:12 PM
Hi, Is it possible to get a calendar in a combobox and then search by the chosen date? Frederik ...more >>

Server-side events do not fire the first time after client-side validators have fired
Posted by Stuart Whiteford at 4/24/2006 2:52:47 PM
Hi, I asked this back in January without answer and forgot about it until now. I've got a basic web form, two textboxes, a couple of radio button groups, some required field validators, and a Submit and Cancel button. When the page loads, if I click the Cancel button, the server-side even...more >>

0x80070005 (E_ACCESSDENIED)) when i add a user to a group
Posted by moi at 4/24/2006 2:47:38 PM
Hello, I have make a Active Directory Membership to change the user password in the active directory with ASP.NET2 after a logo page, and it works fine. BUT i add this code when the password is changed to Add this user in a group, but i get an 0x80070005 (E_ACCESSDENIED)... : why ? the use...more >>

Response.Redirect() converts relative URL to absolute URL
Posted by Paul Bonfanti at 4/24/2006 2:08:01 PM
A customer of ours using .NET 2.0 on Win2003 is seeing relative URLs passed to Response.Redirect() being converted to absolute URLs in the Location header. For example '/test.aspx' becomes 'http://www.myserver.com/test.aspx'. We're not able to reproduce this on our machines. Does anyone k...more >>

literal & chanracter in anchor tag name
Posted by JeffP at 4/24/2006 1:53:02 PM
Currently I have a user control which contain a <a href> link tag. I have a requirement to change the name property of the anchor tag to something like this: <a href="somepage.aspx" id"thislink" name="&lid=somename">Link</a> The problem is that when the aspx page renders this user control,...more >>

write unicode data to a file
Posted by raj.sinha NO[at]SPAM gmail.com at 4/24/2006 1:47:04 PM
I have to "PUT" data to a Unicode file... a file that has the "FF FE" mark at the beginning of the file. How do i do that. What HTTP header do i need to send so that the data is stored in the Unicode file. Right now when i "PUT" the data it sores it in a regular file. Test code below ...more >>

User sizeable panel/table
Posted by Jason at 4/24/2006 1:34:29 PM
Does anyone know if you can create a panel or a table that a user can "resize" within the browser window just as they would a window? Thanks! ...more >>

MailMessage.Headers and Content-Type
Posted by Vlad at 4/24/2006 1:20:58 PM
We are trying to set MailMessage Content-Type to be text/calendar The following code has been used: string subject = "Calendar test 3"; MailMessage emailMessage = new MailMessage(); emailMessage.To = <address> emailMessage.Subject = "my subject"; emailMessage.Headers.Add("Content-Type","text/...more >>

Need some ideas to selectively fetch data via object data source or cache...
Posted by Siva at 4/24/2006 1:04:42 PM
Hi, I have a 3 tier ASP.Net app for a handheld which needs to fetch orders from database via a DAL and populate it in a gridview using objectdatasource. In the search page I have a few parameters and when the search button is clicked I am sending those parameters via query string ( I need to...more >>

asp.net and ActiveX control
Posted by Jeff Beem at 4/24/2006 12:34:03 PM
Hi, I'm a long-time VB/VB.net developer but this is my first web development experience. I've been tasked with hosting/rendering one of my company's ActiveX controls on an ASP.net 2.0 web page. I'm also supposed to make calls to the controls methods to log the user in. How do I host and ...more >>

How to maintain TreeView state
Posted by keithb at 4/24/2006 12:03:22 PM
Can someone provide general information on how to maintain state for a treeview control. Specifically, I need the application to maintain node expansion across postbacks. Thanks, Keith ...more >>

Is it possible to update a detailsview with a gridview in Atlas?
Posted by needin4mation NO[at]SPAM gmail.com at 4/24/2006 11:59:27 AM
Hi, I have a gridview and a detailsview. Is it possible to select a row in the gridview, not have a postback, and instead have a detailsview populate based upon the gridview - in Atlas, no postbacks? Thanks. ...more >>

System.Net.Mail.SmtpClient Send method causing an Application popup in IIS ???
Posted by ticketdirector NO[at]SPAM gmail.com at 4/24/2006 11:55:17 AM
Hi, In the event viewer on our production web server (win2k3), I am seeing that if a call to the System.Net.Mail.SmtpClient.Send() function fails / throws an exception, it is popping up an assertion failure message box. But since this is a remote server, there is no logged in user, so the ass...more >>

Sending email with System.Web.Mail fails with BodyFormat=Html
Posted by ChrisA at 4/24/2006 11:27:31 AM
I'm sending email from my ASP.NET 1.1 app, and it works fine providing the BodyFormat of the System.Web.Mail.MailMessage is set to Text. If I change to Html format, it breaks. Here's the code: Me.Msg = New System.Web.Mail.MailMessage With Me.Msg .To = "someToAddress" .From = "...more >>

How to display a GridView control with no header?
Posted by keithb at 4/24/2006 11:10:04 AM
Is there a way to make a GridView header row invisible? Thanks, Keith ...more >>

IFrame Question
Posted by GSL at 4/24/2006 10:26:16 AM
Hello, I'm building an application that will be incorporated into existing websites. I'd like to use the IFrame tag to accomplish this, but now I'm having second thoughts based on all of the negative comments I've seen regarding IFrames. Is there an alternative method to allow a page to se...more >>

DIV vs TABLE
Posted by Mantorok at 4/24/2006 10:21:37 AM
Hi all I heard recently that using DIVs instead of Tables for laying out your page was the way forward. Can anyone give me a good reason why I should use DIVs, I think they're are pain in the backside personally and can never really get my head around them. What are the advantages? Do...more >>

works but it doesn't work
Posted by rodchar at 4/24/2006 9:52:01 AM
hey all, i working with the Publisher object model in an ASP.NET page. When I'm working with my project locally everything works fine. However, when I deploy the application to my app server, it won't work for the clients. Any reason why? They're getting an IIS error. Is there something I n...more >>

GridView RowCreated Handler Issues
Posted by bigbrorpi NO[at]SPAM gmail.com at 4/24/2006 9:29:06 AM
I'm having a problem with a Gridview bound to an objectdatasource. I've created a handler for onRowCreated with something as simple as: msgbox(e.row.cells(1).text) When the page loads, I see all of the data rows from my datasource, but the e.row.cells(1).text comes up blank for every row exc...more >>

Getting DropDownList selected value
Posted by Jon at 4/24/2006 8:52:02 AM
Hello all, Through JavaScript, I add a row to a DataGrid. This new row has a number of columns, one of which contains a SELECT control with a couple of items - again, all done through JavaScript. My question is, how on the page postback, in the page's codebehind, do I get a reference to ...more >>

ItemDataBound event does not fire for selected row.
Posted by greenb at 4/24/2006 8:26:02 AM
I'm using the ItemDataBound event of the DataGrid to highlight cells that are outside an acceptable range. Each row has a button column (CommandName='Select'), that is used to display addtional details below the grid. When the page first loads and when the 1st button column is clicked, the...more >>

Enable/Disable HyperLinkField
Posted by pargat.singh NO[at]SPAM gmail.com at 4/24/2006 8:11:55 AM
I am using <asp:HyperLinkField in gridview as below which is working fine. <asp:HyperLinkField HeaderText="Process" Target="_blank" DataTextFormatString="Process me" DataTextField="doc_name" DataNavigateUrlFields="doc_name" DataNavigateUrlFormatString ="~/aaaa.aspx?path={0}" /> Currently ...more >>

implement soap listener
Posted by Sai at 4/24/2006 7:45:18 AM
Friends, Like to implement soap listener using C#.net, Can any one shed some light on how to do this. Thanks, K ...more >>

Syntax for call from aspx page to .cs file then to different aspx page
Posted by MadHatter51 at 4/24/2006 7:31:30 AM
I have an application where a selection is made from a list on a web page. I have written a class to handle some database processing and then wish to pass a bunch of data objects to another web page. I am having problems with writing the correct syntax. Is there a reference you could point me to...more >>

Displaying XML as HTML in a popup
Posted by Rusty at 4/24/2006 7:26:14 AM
Hi, our intranet web site needs to add this feature. I've got the components but just need the last step to get it going. Here's the setup. 1) a user clicks on a link which calls a web service (I will use AJAX if necessary) 2) the web service returns a string datatype which is filled with ...more >>

Web Service Problem
Posted by prasadrmarathe NO[at]SPAM gmail.com at 4/24/2006 7:13:23 AM
Hi i have Following webmethod inside my webservice it does the job of checking up the unchecked checkboxes and viceversa inside the grid . [WebMethod] public void GetAllCheckBoxesChecked(CheckBox chkCheckAll, DataGrid dgDetails,string chkItem) { if (chkCheckAll.Checked==true) ...more >>

Strange problem with Telerik R.A.D Designer control v1.6
Posted by VMI at 4/24/2006 7:08:02 AM
When I run an ASP.Net project (that I'll be working on), the only thing I see is "The provided pages file is missing or is not valid!" in my default.aspx page. This page only has a Telerik R.A.D Designer control v1.6. I created a test website and added that control, and I also see the "The pro...more >>

Atlas vs ASP.NET Callback
Posted by Varangian at 4/24/2006 7:06:43 AM
I'm not sure if there was already a post on this.. if so I apologise My question is what difference is there between Atlas and ASP.NET callback and why should people go on Atlas rather than on the ASP.NET 2.0 Callback? I used both of them:- Atlas was easy to use, just put the controls you...more >>

temp filenames
Posted by rodchar at 4/24/2006 7:06:02 AM
hey all, i have a webform that does some light server processing which creates a temporary text file for downloading to the client. What's the best way to do this? If many people are going to access this page, what's the best way to keep all the temp files related to the correct user? ...more >>

How to print a pdf document through java script
Posted by pavan.ananthula NO[at]SPAM gmail.com at 4/24/2006 4:08:12 AM
Hello, I have a web page which needs to print a pdf file when the javascript is called. I have the java script as function printPDF(PrintString) { var status = 0; var AccroApp; var p; var a; try { AccroApp = new ActiveXObject('AcroExch....more >>

Export to Excel (Default File Type - Excel)
Posted by Hemant Sipahimalani at 4/24/2006 3:23:02 AM
The following piece of code is being used to export HTML to excel. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel" HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=ABC.xls") HttpContext.Current.Response.Write(strHTML) HttpContext.Curren...more >>

Querystring tampering
Posted by Ram at 4/24/2006 1:43:21 AM
Hi, I am passing values from one form to another using querystring. It is easy for anyone to tamper these values. Now i don't want to show any values in the url .How can be this done?. I don't want any encryption. Please suggest a solution which can be incorporated in a single file and use ...more >>

Stopping people opening a page
Posted by BobLaughland at 4/24/2006 1:02:02 AM
Hi There, I am writing an ASP .NET 2.0 web site. Just wondering how I can stop people accessing a certain page when they shouldn't. For example I have 2 pages, test1.aspx test2.aspx I want there to be a link on page 'test1' which will take the user to 'test2', but if you type 'test...more >>

Site Search in ASP.NET
Posted by Kamlesh at 4/24/2006 12:28:01 AM
Hi, How to implement website search in ASP.NET? We need to search our website (www.domain.com) for certain keywords and get the results. Our website includes static and dynamic content. Also there are some Documents (PDF Files) hosted on the website. The search should be able to searc...more >>

How can we upload files on the web server
Posted by Alok yadav at 4/24/2006 12:13:01 AM
sir, i have the page which ask user to upload there photo and resume. but i m not able to upload them can there be any specific method to upload and download files...more >>

Sending Sms
Posted by Alok yadav at 4/24/2006 12:04:01 AM
Sir, How we send sms from our application wether it is desktop or web application....more >>

Server Unavailable - ASP.NET 2.0 on Windows XP
Posted by Jon B at 4/24/2006 12:00:00 AM
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the Windows XP IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because...more >>


DevelopmentNow Blog