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 wednesday april 5

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

Form submit in textbox when enter key hit
Posted by William Buchanan at 4/5/2006 10:50:00 PM
Hi folks I have a text box and a linkbutton on my home page. The linkbutton has a postbackurl of "Page2.aspx" which displays result and also has it's own search textbox. On the home page, if I click the link button it works fine. However, if I hit the Enter key in the text box, the page ...more >>


NDepend 2.0
Posted by Patrick Smacchia at 4/5/2006 7:51:32 PM
NDepend is a freeware tool for .NET developers which analyses assemblies of an application and generates reports containing design quality metrics, warnings and diagrams. I've just released NDepend 2.0 with some major enhancements such as an interactive view of your application and a language ...more >>

Specified cast is not valid, when column returns NULL
Posted by Web learner at 4/5/2006 7:30:12 PM
while (dr.Read())=20 //dr is an instance of sqlDataReader { double minAirTemp =3D (double)(Single)dr["minAirTemp"]; // minAirTemp is column in SQLExpress table (data type: real, = allows nulls)=20 } The above code works. But when there are NULL, I get the following error System.In...more >>

RequiredFieldValidators and user control required fields?
Posted by Dave at 4/5/2006 6:44:01 PM
Hi, I'm using .NET 1.1 and wondering if I can use RequiredFieldValidators with required fields inside user controls. The page is a type of tabbed panel layout with the divs show/hidden using javascript. Depending on which tab panel is visible upon the submit, I want to execute the appr...more >>

VS 2003 Freezes
Posted by Ryan Smith at 4/5/2006 6:25:01 PM
My VS 2003 freezes everytime i try to open or create a web application. I have heard that this can be caused by zone alarm and or norton security and I have neither. I have a barebones system with barely any software loaded on it. I just pulled it out of the box. Any ideas on how i can get...more >>

Why is my XML file being written corrupt?
Posted by darrel at 4/5/2006 6:08:12 PM
In our CMS, every time a page is updated, we spit out a new XML file. This file is written via a function that queries the Database using a recursive function, grabs the data, and writes out a file using xmltextwriter: Dim fs As New System.IO.FileStream(System.Web.HttpContext.Current.Ser...more >>

What's the best ASP-to-ASP.NET converter you know?
Posted by Paolo De Nictolis, Eng. [441410] at 4/5/2006 6:00:19 PM
Hello everybody, considering limits of this kind of products, and the fact they require anyway human intervention, what is for you the best converter from ASP pages to ASP.NET pages? Hope to hear from you soon, Paolo De Nictolis, Eng. ...more >>

check box list
Posted by Ankit Aneja at 4/5/2006 5:58:28 PM
I am making check box list with 4 check boxes say All,One,Two,Three by default all is selected i write selected ="TRUE" for All but i want if user clicks on One All should become Unslected and secondly if user selects One,Two,Three than automatically on Autopostback event All should get sele...more >>



newbie in asp.net need help
Posted by hoaian at 4/5/2006 5:49:10 PM
Hi everyone, I have a asp:listbox control. I want to have a javascript function that detect the onselectedindexchanged and then make another textbox visible. It just like the old fashion way in asp <select onchanged="myfunction()" >. But with asp.net control i can't do that anymore on client...more >>

data binding nonconventionaly
Posted by Mike Gaab at 4/5/2006 5:22:31 PM
Is there any way to bind a control, say a label, that is not directly associated with the data source? I was reading an article a few days ago that showed how to bind a asp:literal and some string format function to bind data to the literal. The literal was then added to the ?? control containe...more >>

How can you retrieve the SMTP information from the web.config?
Posted by VickZaro at 4/5/2006 5:21:31 PM
How can you retrieve the SMTP information from the web.config? <system.net> <mailSettings> <smtp from="john@hotmail2.ca"> <network host="relais.aol2.com" password="please" userName="username" /> </smtp> </mailSettings> </system.net> ...more >>

Proper way to pass a catch back to the parent page.
Posted by darrel at 4/5/2006 4:59:41 PM
I have a .aspx.vb page that calls a function in a .vb file that has a try catch. Usually, I use a catch to display an error. In this case, I want the parent page to know if the function errors out or now. What's the proper method to pass this information back to the page? For insance, he...more >>

Odd error from one ip address only
Posted by newsgroups.comcast.net at 4/5/2006 4:44:40 PM
I am having an odd problem. Every day I get application errors from my website. The errors are only from one particular ip address (The error is System.NullReferenceException: Object reference not set to an instance of an object....) The logs show that the request appear to be coming from some k...more >>

An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll Additional information: Requested registry access is not a
Posted by Ankit Aneja at 4/5/2006 4:35:55 PM
This is my problem. I am using Visual 2003, .Net framework 1.1 and the Application Block I configured the DAAB using the Enterprise Library Configuration now this is the error which is coming Security Exception Description: The application attempted to perform an operation not allowed ...more >>

Add default option to databound dropdownlist
Posted by IMB at 4/5/2006 4:34:36 PM
I'm using VS2005 and am working with a ASP.NET 2.0 web site and I'm coding in VB.NET. I understand that I can add an item to a databound dropdownlist and make it the default selection using the following code: MyDropDownList.Items.Insert(0, "My default item") MyDropDownList.SelectedIndex ...more >>

ReverseDataBind
Posted by Peter Morris [Droopy eyes software] at 4/5/2006 4:22:39 PM
DataBind() will move data from my source object into the GUI, but is there a way to automatically reverse this data flow, or do I need to write code like this? MyPerson.Name = NameTextBox.Text; Thanks Pete ...more >>

gridview and dataset
Posted by Carlos at 4/5/2006 4:21:56 PM
Hi all, just wanted to display the resultset from a dataset in a gridview is it possible? Dim sqlCommand As String = "Select LastName, FirstName, emailHome From employees" Dim dbCommand As DbCommand = db.GetSqlStringCommand(sqlCommand) Dim studentDataSet As DataSet = db.ExecuteDataS...more >>

Master page refresh for each postback question
Posted by Bishop at 4/5/2006 3:52:47 PM
Using master pages, everytime the page reloads there is a delay where I see the background, then the new page starts to display. Although I remember seeing some of this with asp.net 2003 it seems more pronounced with 2005 master pages. Is this just in my head or is this a common occurance ...more >>

Having trouble calling code-behind functions from within an .aspx page
Posted by mikepolitowski NO[at]SPAM yahoo.com at 4/5/2006 3:01:25 PM
Hi folks, I am have been trying to solve this problem for quite some time now and would appreciate any advice. I have been trying to call a code-behind function that is defined in my aspx.cs from within a DataList <ItemTemplate> block using the <%# %> syntax. I would not have written here i...more >>

Best way to implement extremely heavy calculation?
Posted by roygon at 4/5/2006 2:55:38 PM
Hello, I have a C# application that runs a relatively complex simulation which, on a typical computer, could take up to 10 seconds. I am now trying to port this application over to ASP.NET so obviously this calculation needs to happen on the client. What is the best way to implement this? ...more >>

How to create a Delete button in a GridView which calls a Javascript function?
Posted by Miguel Dias Moura at 4/5/2006 2:54:30 PM
Hello, In an Asp.Net 2.0 GridView I have ButtonField for deleting the record. I used .CommandName = "Delete". I want to cancel this server side action. I want, instead, the button to call a javascript function on the client side. And I need to send to that javascript function the RowIndex...more >>

Adding Attribute to BUTTON postback?
Posted by darrel at 4/5/2006 2:53:33 PM
I am using a javascript WYSIWYG text editor for our CMS. To grab the proper content we need to add a javacsript call to the form: Form1.Attributes.Add("onSubmit", "myOnSubmitEventHandler();") That works fine. However, we also have some dropDownLists that trigger a postback. If we change...more >>

Changing the background color
Posted by Glenn Hanna at 4/5/2006 2:47:35 PM
Hi, Can someone tell me how to change the background color of a web page though C#? I've tried various things that I have found on the web written in VB but I haven't had much luck with them. Thank you, Glenn ...more >>

SendMail ASP.NET 2.0: Multiple To's
Posted by sck10 at 4/5/2006 2:23:34 PM
Hello, I am trying to send email to 4 people (str01 = "p1.mysite.com,p2.mysite.com,p3.mysite.com") using the following: Dim addrFrom As New MailAddress(str00) Dim addrTo As New MailAddress(str01) My problem is that only the first person receives the email. When I check the variable ...more >>

how can I print the content part from homepage in asp 2.0
Posted by Henry Lee at 4/5/2006 2:11:36 PM
hi , I am doing a report function on asp 2.0 environment. The question is the report generate in content control which is the only part need to be printed. How can I do that without printing master page. Thanks a lot Henry ...more >>

ASP.NET or Cold Fusion
Posted by tomlebold NO[at]SPAM msn.com at 4/5/2006 1:50:53 PM
I'm a Microsoft Access and ASP.NET developer. Currently I'm working at a company that uses Cold Fusion and we can't find any developers. I suggested that we use ASP.NET and Visual Studios. The Cold Fusion developers tell me that it takes longer to develope applications using ASP.NET. We are lo...more >>

SecureQueryString assistance please (VB)
Posted by Groove at 4/5/2006 1:23:02 PM
I think what I'm trying to do is fairly simple. I simply want to encrypt or mask a querystring variable (db record key) so the URL looks like: page.aspx?id=abcdef.... etc. instead of page.aspx?id=1 Using VB .NET2, how can this be done. I found some references (just a few) on asp.net but ...more >>

locking an XML file...will it create a queue?
Posted by darrel at 4/5/2006 12:46:08 PM
We're having an odd problem with our home grown CMS once in a great while, an XML file will become corrupt...either missing, or only half-written. We think something is happening when two people happen to hit the 'write XML' function at exactly the same time and both process vie to write the ...more >>

Application Pool recycling hangs
Posted by Wayne Smith at 4/5/2006 12:42:10 PM
Hi, We are having a few problems with ASP.Net pages hanging during load when an Application Pool is recycled. To test this we have setup the following ASP.net page which refreshes every 2 seconds: <%@ Page language="c#" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.IO"...more >>

vs 2005 migration problems
Posted by DS at 4/5/2006 12:39:43 PM
I am trying to migrate a vs 2003 asp.net application to vs 2005 and am having many problems. After dealing with 300+ compile errors after conversion now I have many run time error. I lot of them seem to be related to client script problems. Does vs 2005 handle client script differently than 2003...more >>

DataTextFormatString property
Posted by bazzer at 4/5/2006 11:53:10 AM
i have a webform accessing a microsoft access database. when i display dates i get from a table, into a listbox, their displayed in the form: "05/04/2006 00:00:00". all i want to be displayed is the date alone. what would i need to put in the DataTextFormatString property in my listbox propertie...more >>

Databound Checkboxlist question
Posted by tjonsek NO[at]SPAM phenom-biz.com at 4/5/2006 11:42:12 AM
Is it possible to concat to fields from a dataset together to create the checkboxlist labels? I'd like to create a form with a checkboxlist with the text of the label for each item coming from a combination of date,description and location fields in a database ...more >>

How to access a UserControl in a Master apge from a content page
Posted by Paul at 4/5/2006 11:14:00 AM
I have a MasterPage that has on it several UserControls (*ascx files). I wish to control the visibility of the controls on the content pages according to some parameter (for example on a user control that depends on a param StoreID, for the UserControl to be visible only if StoreID is in the ...more >>

Object Creation.
Posted by GhanaShyam at 4/5/2006 10:46:02 AM
Hi All, I have this basic doubt. Consider the following piece of code class MyClass { XmlDocument objXmlDoc; void page_load () { if ( ! IsPostBack ) { objXmlDoc = new XmlDocument ( ); } } } Now my doubt is whenever the page is refreshe...more >>

Query string variables security risk
Posted by Thirsty Traveler at 4/5/2006 10:08:29 AM
I have a question regarding the use of guery string variables. I understand this can be a security risk subject to "brute force" attacks. Is this true and, if so, what is the proper way to handle it? Should they never be used? ...more >>

Printing (opening in popup) a single control
Posted by DC at 4/5/2006 8:34:23 AM
Hi, I would like to implement printing facilities for some of the controls on my webpage. If, for example, there is a datagrid in the content pane of the page then I would like to offer a "print" button in that control which will open a new browser window which displays only this control. I...more >>

Regular expression voodoo
Posted by clickon at 4/5/2006 8:25:02 AM
I have never managed to properly understand regular expressions, as far as I am concerned they are some kind of gobldegook that performs magic voodoo. However i have a TextBox that must be set to one of three values VS,WS or FP. Right i thought even i can manage a regular expression that doe...more >>

SiteMap and Menu behavior on website using host header
Posted by GopherGold at 4/5/2006 8:23:14 AM
I have a site that uses a combination of Web.Sitemap and a SqlSiteMapProvider that I created (thanks to Jeff Proisse @ MSDN). One node of the Web.Sitemap is the same as the root node from the SqlSiteMap. Each SiteMapProvider sources a separate menu. I use this configuration because it allow...more >>

Dynamically assign textbox ID to a textbox variable in a loop?
Posted by david at 4/5/2006 8:21:02 AM
I try to use "for" loop to assign textbox control ID to a textbox variable in server side codebehind for a web form. But I met some problem. What I want to do is solving the following-like code by a loop: static code: txtQ1.Text = ds.Tables("mmsSpecRecord").Rows(0)("Q1") txtQ2.Text = ds.Tab...more >>

Trouble opening a connection to SQL 2000 DB
Posted by mlg1906 at 4/5/2006 8:12:02 AM
I'm developing an intranet site in ASP.NET 2.0 but I can't seem to connect to the DB from within my code. I've created a .vb class that houses a private Connection() that other functions within the class can call to connect to the database. In the calling function, I've declared my connectio...more >>

ASP.NET Data Access Problem
Posted by thebison at 4/5/2006 7:43:24 AM
Hi all, I hope someone can help with this relatively simple problem. I am building a timesheet application using ASP.NET C# with Visual Studio 2003.As it is only a protoype application, my database has been made in MSDE. As part of my application, I have a 'Resources' table, which holds em...more >>

v easy but baffling to me CSS question
Posted by CharlesA at 4/5/2006 7:36:02 AM
I'm using .net framework 1.1 C# and ASP.net with IE 6.0.2800 I'm using the very traditional idea of having a logo at the top left of the page which when clicked takes you to the home page This is the markup: <a id="logo" href="Entry.aspx"><img src="../images/logo.gif"></a> the trouble is...more >>

DropDownList web control in DataGrid
Posted by glenn at 4/5/2006 7:27:02 AM
Hi folks, I am getting an error "Object reference not set to an instance of an object". It seems I have everything in place but something is obviously in err. If you could take a quick peak at my code segments and provide any insight in a reply, I would be eternally grateful. My table na...more >>

Get GridView Cell Value
Posted by Chris at 4/5/2006 6:54:08 AM
Hi, In ASP.NET 2005, I am using a gridview control. I have some Buttons in gridview for opening different forms. I use ROWCOMMAND event for retrieving the name of the button pressed. Can I retrieve from which row the button was pressed (ex. grv_reports.Rows(0).Cells(4).Text) ? I have the pr...more >>

dynamic image on mouse over of gridview cell
Posted by NH at 4/5/2006 6:50:01 AM
ANy ideas on how to acheive this? I want to display a dynamically created image when a mouse over occurs on a gridview event. I need some way of creating the image (it will be a small chart type image) on each rowdatabound event and then display it on a mouse over on the gridview cell. I...more >>

Cookiekess forms authentication gives error with ASP.NET 2.0 SiteMap
Posted by Jules at 4/5/2006 6:38:49 AM
For a project I'm developing a custom ASP.NET 2.0 website. The case: - Forms authentication - Cookieless forms authentication and sessionstates is enabled via cookieless="AutoDetect". - On the MasterPage a TreeView-menu is linked to the Web.sitemap. The issue: When I browse this website w...more >>

How to manipulate word document in .NET dynamically?
Posted by Kavans at 4/5/2006 6:38:01 AM
Hi, I have following issue and I desperately need some help. I have a requirement in where I need to manage word documents in my website. I need to give user the following things: 1. Facility to upload the word documents 2. These documents will not be saved on any server but rather saved...more >>

Now this is strange...!
Posted by tobias_e at 4/5/2006 6:32:19 AM
Hi! I just upgraded my .NET Framework from v1.1 to v2.0 (and uninstalled v1.1). I have compilled my assembly with the v2.0 compiler and uploaded it to my web-server - which runs on v1.1. Now I get the following error: -----------------------------------------------------------------------...more >>

DataGrid Paging Problem
Posted by Octopus0 at 4/5/2006 6:20:05 AM
hi, i have a problem in row size when I set the page size. for eamlple if i set the page size of a datagrid to 8 rows and there is only two rows in the grid, then the hieght of the rows become wider. and if i set page size 15 and there is only two rows the the height of rows will beome wide...more >>

Referring to User Control in a different project
Posted by pradeep_TP at 4/5/2006 6:13:02 AM
Hello everybody, I have created a web site which has a simple user control (LogoDisplay.ascx). This is part of a separate project called CommonControls. I have a main Project "MainProj" from which I am referring to "CommonControls". I have a web page Default.aspx page in MainProj that has...more >>

Nested DDL in GridView ItemTemplates
Posted by bigbrorpi NO[at]SPAM gmail.com at 4/5/2006 6:06:27 AM
Hi I have a FormView that contains a GridView. The GridView is populated from an ObjectDataSource. Two of the columns in the GridView are not bound, and the values used in Update mode come from dropdowns (inside of ItemTemplates). In my ObjectDataSource, I have Parameters for the bound fiel...more >>

Maintaining state with a dynamically created TemplateColumn
Posted by Pete Moss at 4/5/2006 5:39:02 AM
During a postback event, I am having trouble retrieving the state of a CheckBox Control that I am dynamically adding to a DataGrid Control using ASP.NET 1.1. I have no trouble adding the TemplateColumn dynamically. I persist a DataSet in my Session object and I bind the CheckBox to the Data...more >>

TextBox_changed event not fired ?????
Posted by serge calderara at 4/5/2006 4:46:02 AM
Dear all, On a web page I have a series of Textbox object. All of them have PostBack=false. When I click on Submit button, only the TextBox_changed event of the first object is trigged not the others ???? Any idea why ? regards serge...more >>

Display RTF tekst in webform
Posted by Marc Hoeijmans at 4/5/2006 4:25:02 AM
Hello, Who has a fast and easy solution for displaying an RFT-tekst (stored in a Sql Server databasae) in a webform? Thanks, Marc...more >>

CLI access of aspx application
Posted by Abhi at 4/5/2006 4:17:29 AM
Dear all, i am developing an application that needs to be remotely accessed through CLI using SSH protocol... Plz reply asap... ...more >>

Restrict page access by IP address
Posted by Chris Fulstow at 4/5/2006 2:48:04 AM
Hi, I need to restirict access at the page level to a range of IP addresses. What's the best approach? I thought of building an HTTP module that could compare the requesting IP with a restricted range, specified in web.config. Any thoughts? Thanks, Chris ...more >>

datagrid error
Posted by Andrew at 4/5/2006 2:08:02 AM
hi, I tried to create a datagrid, I followed the code exactly from the samples at dotgotnet.com. However, I am getting an error message which I have no clue why ?? Compiler Error Message: CS0122: 'MainFolder.FolderB.WebForm5.MyDataGrid_Page(object, System.Web.UI.WebControls.DataGridPag...more >>

Fonts
Posted by BobLaughland at 4/5/2006 1:59:37 AM
Is there a way in ASP .NET to use non standard fonts? Or if not which fonts do you think look the classiest. I know that is a non specific question, but just throw some out there for me to try. Thanks. ...more >>

File hyperlink ???
Posted by serge calderara at 4/5/2006 12:05:01 AM
Dear all, I am building an ASP 1.1 applciation collecting data from an SQL server database. In one table field, users will have possibility to introduced a file path (attached document) What I would like to do is to display in a datagrid column, a picture visible when the File path colu...more >>

No create asp.net 2.0 project in my VS2005?
Posted by Nik Coughlin at 4/5/2006 12:00:00 AM
Hi, My VS2005 seems to be missing the ASP.NET Web Application template for some reason. With the following instructions: To create the project and form On the File menu, point to New, then click Project. In the New Project dialog box, do the following: In the Project Types pane, choose e...more >>

Couple of questions about DetailsView and ObjectDataSource controls
Posted by J055 at 4/5/2006 12:00:00 AM
Hi I have a Business class called User which returns a DataRow for individual user accounts using accountID as a parameter (i.e. User.Retrieve(accountID)). The ObjectDataSource doesn't complain if I attach the method to the SelectMethod property but the DetailsView does not display it pro...more >>


DevelopmentNow Blog