Groups | Blog | Home


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 > august 2005 > threads for thursday august 11

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

input string not in correct format
Posted by amitbadgi NO[at]SPAM gmail.com at 8/11/2005 10:59:29 PM
I am gettign this error, while migration an app to asp.net Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 19: Dim enddate = request.QueryString("enddate") Line 20: Line 21: if cint(eventid) = "0" then Line 22: searchtype = 0 Lin...more >>

syntax error in update statement in vb.net
Posted by amitbadgi NO[at]SPAM gmail.com at 8/11/2005 10:57:26 PM
HI i am getting the foll error while conv an asp application to asp.net Exception Details: System.Runtime.InteropServices.COMException: Syntax error in UPDATE statement. Source Error: Line 112: MM_editCmd.ActiveConnection = MM_editConnection Line 113: MM_editCmd.CommandText = MM_edi...more >>

syntax error in query expression in vb.net
Posted by amitbadgi NO[at]SPAM gmail.com at 8/11/2005 10:56:30 PM
I am geting the following error while conv an asp to asp.net Exception Details: System.Runtime.InteropServices.COMException: Syntax error in query expression 'id =System.__ComObject'. Source Error: Line 196: for i = 0 to ubound(emaillist) Line 197: selectsqlstatement = "select * from tblus...more >>

type mismatch error
Posted by amitbadgi NO[at]SPAM gmail.com at 8/11/2005 10:53:16 PM
I am getting teh following error while converting an asp application to asp.net, Exception Details: System.Runtime.InteropServices.COMException: Type mismatch. Source Error: Line 347: 'response.Write(sql2) Line 348: rs_getAlarmCount = Server.CreateObject("ADODB.Recordset") Line 349: ...more >>

Prevent worker process from recycling when foreground thread is executing.
Posted by Marcel van den Hof at 8/11/2005 10:46:31 PM
Dear all, Is there any way to prevent the ASP.NET worker process from recycling the worker process when a thread is being executed on the foreground (IsBackground=false). I'd also like to know if there a way for a foreground thread to detect if the worker process is being recycled? It ...more >>

How to create own progress bar in user control?
Posted by Daniel at 8/11/2005 9:21:02 PM
Hi, have any ideas? Thank you in advance. Best regards, GL...more >>

Session problem
Posted by Daniel at 8/11/2005 9:20:01 PM
Hi, i am using asp.net 1.1 and i encouter problem in using the session. i create session after authorized person success login the webpage. the session works fine when i test it in my developing laptop. I will open two webpage and login as diff person. Each webpage will show oni relevant data ...more >>

Spam contoller in my page
Posted by J-T at 8/11/2005 8:08:16 PM
I have a form which users submit their entry,how can I add that functionality which asks the user to enter a word or number from a picture to avoid spams? Thanks a lot ...more >>



How to dynamically add a row to Datagrid?
Posted by Merdaad at 8/11/2005 7:30:02 PM
I have a datagrid that reads several rows of data from the database and loads them on the screen. Now I want to dynamically add a new row and assign the cells in the new row, values. When I try to create a datagridItem, I use the following call: int newIndex = datagrid1.Items.Count; // retu...more >>

Adding button at runtime: Events not firing
Posted by John Hughes at 8/11/2005 6:57:00 PM
Im adding a button at runtime to a datagrid but the DataGrid1.ItemCommand event does not fire. I also have a button that I added at design time and this button does fire the event ItemCommand. Any ideas? My Code : private void InitializeComponent() { this.OpenPriceList.Click += new S...more >>

Exchange 2003 and ASP.NET e-mails...AAAUGH!!
Posted by Green Start Button at 8/11/2005 6:11:08 PM
Aaaugh!=20 Okay, here's the deal.=20 The I/T department at my company has updated their Exchange Server to = the 2003 version. Now, the e-mail forms I have created in ASP.NET all = cough up the error "Could not access 'CDO.Message' object" ... (Grumble! = Grumble!) So the code I used to use ...more >>

Handling website structure
Posted by Imran Aziz at 8/11/2005 6:05:28 PM
Hello All, I want to develop a website that has three panels, the left and right panel needs to include code from common or other sections then the middle panel. Now in ASP the way we use to do it , was include the site structure in include files, like site header, site navigation in an i...more >>

Registry Access using Asp.net
Posted by Sledge at 8/11/2005 5:32:56 PM
We have developed an accounting application both in windows and web. Application calls the function in Dll that inturns access the registry keys. using the value of the registry key it connects to the database and returns the datasource. In former windows application works fine . but the Asp.n...more >>

too many arguments in public function?
Posted by DC Gringo at 8/11/2005 4:55:59 PM
I have a simple function within a web method. It works fine with one parameter, but gives me a compile error when I try to add a second: "Too many arguments to 'Public Function FewsArticles(OrgID As String) As String'." Here's the client calling code: Dim sFeed As String = oWs.FewsAr...more >>

Microsoft CDO Schemas...
Posted by Green Start Button at 8/11/2005 4:44:17 PM
Is there a way to download these CDO Schemas to your local server = instead of having to reference them though the Microsoft web site? e.g. http://schemas.microsoft.com/cdo/configuration/smtpserver TIA......more >>

Calling ASMX from ASPX File?
Posted by Sledge at 8/11/2005 3:56:20 PM
Hello All, I'm completing a web application with .NET using VB Script. I created a ASPX File and I want to call a webserver service ASMX File, but I don't know how to? Can you guys help or show me an example on how to accomplish this? I need an example on how to call an .asmx file from ...more >>

Mail merge + Label Print from ASP.NET
Posted by achintya.jha NO[at]SPAM gmail.com at 8/11/2005 3:49:10 PM
Hi, I am currently working hard to print Word labels from ASP.NET I have multiple records which I need to print on to a word label print functionality. I know that Word Label printing prints the same label multiple times on the printer. I have to print multiple labels on to the same page an...more >>

Inherits class in webpage
Posted by Marc Robitaille at 8/11/2005 3:09:07 PM
Hello, I created a VB class that inhertis from System.Web.UI.Page. I set the class to be MustInherit because I set some subs and functions to be MustOverride. I created a webform call frmClient. By default, the page inherits from frmClient class. In the frmClient class, by default, it inher...more >>

Button not being pushed on Enter
Posted by tshad at 8/11/2005 2:56:08 PM
I have a button: <asp:Button ID="SendEmail" text=" Send " runat="server" onClick="sendEmail_click" AlternateText="Send Email"></asp:Button> It is the only button on the page. It works fine when I press it. But it doesn't go to the SendEmail_Click routine if I just hit enter. ...more >>

need help on java script
Posted by Q. John Chen at 8/11/2005 2:40:42 PM
I have an web form with following items: aRadioButtonList (with two items r1, r2) aCheckBoxList (with four items c_r1_a, c_r1_b, c_r2_c, c_r2_d) When r1 is checked. I want to enable c_r1_a, c_r1_b clear and disable c_r2_c, c_r2_d When r2 is checked, I want enable c_...more >>

Transparency, ASP.NET, and GDI+
Posted by Nathan Sokalski at 8/11/2005 2:36:48 PM
I am trying to create graphics with GDI+ that include transparency. However, the transparency never seems to show up, even though my colors have an alpha value of 0. How can I generate a graphic that is completely transparent in certain areas (so that the web page background shows through)? I ...more >>

Creating a please wait dialog
Posted by Jeremy Chapman at 8/11/2005 2:26:13 PM
I have a button on my page which when clicked redirects to another page. on the page load of the page that I've redirected to, there is a long query. What I want to do is with dhtml, display test in the center of the screen saying 'please wait..' so that the text displays until the new page i...more >>

SmartNav breaks SetFocus client side script
Posted by Robin Yarnell at 8/11/2005 1:54:01 PM
Hello, Don't know if this is the right group for this, but I will start here. I have a setfocus JS that sets the focus to whatever control I want on the page on a postback. However if I have smartnav enabled it no longer works. I know that smartnav.js gets the control that caused the pos...more >>

How to convert/insert NULL date value into MS SQL?
Posted by darrel at 8/11/2005 1:43:53 PM
I have the following right now to enter a date into SQL getting the data from some pull down menus: ------------------------------------------------- dim dateCCJApprovedDate as DateTime if cbx_ccjDateNone.Checked = True then dateCCJApprovedDate = ctype("", DateTime) else dateCCJAppr...more >>

How can I get to the EditCommandColumn?
Posted by needin4mation NO[at]SPAM gmail.com at 8/11/2005 1:25:26 PM
I have this in my DataGrid's ItemCreated event: TableCell myChangeCell = e.Item.Cells[0]; LinkButton myChangeButton = (LinkButton) myTableCell.Controls[0]; myChangeButton.Text="Hello!"; I am trying to get to the button that is automatically created by the control. I get an object reference...more >>

ASP.NET Crashing on IIS 5.0 - Buffer overflow
Posted by .NET Dev at 8/11/2005 12:46:02 PM
Hi! My Web Form has many controls and grids related to each other which require viewstate enabled. Overall page size is around 100KB and ViewState size is around 30-40kb Everything works fine on dev box, but application is crashing IIS 5.0 (Windows 2000) on production box. I have eEye in...more >>

Where does the short date format come from?
Posted by MattB at 8/11/2005 12:28:07 PM
I've hit a snag with an application I wrote because of the differing date formats in different countries. It's a set of pages that make calls to a COM object that I have wrapped in a web service. The COM object isn't mine, and it wants to receive dates in a short date format, and it seems t...more >>

pdf reports open source
Posted by bbdobuddy at 8/11/2005 12:22:02 PM
Hi, Sorry to be bothersome with this question, but is there any VB.net open source applications that allows me to create pdfs on the fly or able to convert .txt files to .pdf files. I am in a bind here and any help would be appreciated. Thanks Brian...more >>

ASP.NET Configuration Error
Posted by Ryan Ternier at 8/11/2005 12:03:03 PM
While working on .NET I've had this error pop up on every Solution. Usually I'll just re-build the project and it works, but now it has started doing this to components we've purchased. I can't rebuild those. IF I leave my computer for an hour or so, I can continue working / debuging etc....more >>

Postback stops working
Posted by johnfinkle NO[at]SPAM yahoo.com at 8/11/2005 11:28:08 AM
I have a web application. I had several web form buttons and a datagrid. I cut and pasted some of the buttons to change the layout around, and also cut/pasted the datagrid to move it. Now when I click any of the buttons they do nothing. A hyperlink column in the datagrid which previously ope...more >>

Autorefresh a page after x seconds.
Posted by UJ at 8/11/2005 11:12:34 AM
Could somebody post code to make a page reload itself after x seconds? I know it needs to be done in Javascript just don't know how to do it. TIA ...more >>

Multiple selections in dropdownlist
Posted by Steffen Loringer at 8/11/2005 11:11:16 AM
Hi all, may be an easy question: How can I allow multiple selections in a dropdownlist? Thanks Steffen ...more >>

Can someone tell me what is wrong here?
Posted by Bigal at 8/11/2005 10:51:17 AM
I just added the SQL connection string to my web.config: ________________________________________ <configuration> <system.web> <customErrors mode="Off"/> compilation debug="true"/> </system.web> <appSettings> <add key="ConnectionString" value="server=localhost;dat...more >>

Q: web.config problem
Posted by JIM.H. at 8/11/2005 10:51:10 AM
Hello, The following error message appears from time to time while I am working on my application. What might be wrong? Thanks, Error: Server Error in '/' Application -------------------------------------------------------------------------------- Runtime Error Description: An applicat...more >>

Make This Work in ASP.NET?
Posted by Wayne Wengert at 8/11/2005 10:47:01 AM
I found an interesting article on automatically populating the city and state after the user enters a ZIP code (http://www.codeproject.com/aspnet/AjaxWebServices.asp?df=100&forumid=204967&select=1191985) but I don't see how to make that work on an aspx page. How can I trigger the javascript ...more >>

newbie question
Posted by PJ6 at 8/11/2005 10:45:13 AM
I'm looking for a good open source menu control I can learn from that uses postback like skmMenu. I can't look at skmMenu because I only have VS.2002 at the company I work for now. Any recommendations for a menu control that will work in ASP.NET 2002? Paul ...more >>

Need help with ApplicationException
Posted by Charles at 8/11/2005 10:07:04 AM
I need to find a way to share information between two classes, one is an employee class and the other is a custom error class that inherits from ApplicationException. These two classes are part of a ClassLibrary project. The other project has all the web page classes. My project allows em...more >>

ADS/LDAP/System.DirectoryServices -> Get Users of Group
Posted by Chad Beckner at 8/11/2005 10:01:00 AM
I am starting to translate some code from ASP to ASP.NET (VB). I was able to query ADS to get a users groups that they belong to, and also query a group and get a list of users. However, I can't seem to get this to work in VB.Net. Here's what I have: OLD ASP Code: Function Get_ADS_Use...more >>

filesystemobject
Posted by abcd at 8/11/2005 9:47:03 AM
from ASP.NET program how can I check the file existance and get properties of a file on a system....do .net use the same FileSystemObject or are there other .NET calls availbe to work equivalent to FileSystemObject capability... thanks ...more >>

convert a textFile to a pdf file.
Posted by bbdobuddy at 8/11/2005 9:46:13 AM
Hi, I am generating some text in a text file that I want to generate to a pdf file but I am not sure how to do this in .net. Any help would be appreciated Thanks Brian ...more >>

choosing to display or not to display a checkbox in repeater control.
Posted by Imran Aziz at 8/11/2005 9:43:30 AM
Hello All, I display a list of entries with a checkbox against them using a repeater control bound to a database table. Based on the value of database table I want to either show the checkbox for a row or not to show, how do I accomplish that using a repeater control ? Should I do something...more >>

Try Catch and Finally
Posted by Alfredo at 8/11/2005 9:42:18 AM
Hi, I have question, i debug this code: try 'Some operations catch Response.Redirect("Page 1") finally Response.Redirect("Page 2") end try I am getting an error but always Page 2 is loaded. Why? Thanks, Alfredo Barrientos ...more >>

sql servers
Posted by abcd at 8/11/2005 9:22:19 AM
I want to pop up a list of SQL servers on the domain in to a list box or combo box. How can I pop up this list using asp.net. thanks ...more >>

Database update with auto connection open/close
Posted by Maziar Aflatoun at 8/11/2005 9:20:07 AM
Hi, To update the database I first open a connection, update and then I close it. Is there way to do this without opening the connection first? Such as using the DataAdaptor (which manages the connection automatically)? Is that efficient? Thanks Maz. ...more >>

datagrid - 2 master tables
Posted by Bala at 8/11/2005 9:16:03 AM
Hi I have the following table structure. employee table structure 1.empid 2.cateid 3.empname Category table 1.cateid 2.catename I want to display and edit these details on datagrid. i want to display the employee table details and also category name details into combo box on grid. ...more >>

Set javascript value OnCheckedChanged
Posted by Assimalyst at 8/11/2005 8:55:11 AM
Hi, I have a AutoPostBack checkbox and need to set a value bSubmitted = true when the checkbox is checked in order to prevent a warning message appearing notifying the user they are navigating away from the page. I have been trying to add the following in the <script> section of the <HEAD> ...more >>

Type.GetType() ASP.NET Beta 2
Posted by Craig at 8/11/2005 8:50:36 AM
Hi I have a class in the App_Code location of my web project. example: namespace Company.AppName.Objects { public class ObjectA { public ObjectA(){ } public void DoSomething() { } } } In a web page I want to dynamically get the type of this class like ...more >>

repeater binding to method?
Posted by ChrisA at 8/11/2005 8:39:41 AM
I have an array of objects I'm binding to a Repeater. Unfortunately, I need to bind to the value returned from a method, while Eval() only seems to work on Properties. Is there a way to do this? Can I intercept an Event to provide a value? ...more >>

MailMessage question
Posted by MSG Servicos de Informatica at 8/11/2005 7:31:03 AM
Hi MSDN Team! I have a doubt about the "MailMessage" class in Framework .NET 1.1. My SMTP server works in a local network that no have access to the internet for security reasons. And in my network we have an application that send emails to other department inside the company using...more >>

copying code of event of user control automatically
Posted by manojrane2000 NO[at]SPAM gmail.com at 8/11/2005 7:26:31 AM
hi, how can i copy code of event of usercontrol in form on which it is placed automatically. whenever control is dragged to the form. ...more >>

ThreadPool
Posted by Jim Kane at 8/11/2005 7:14:04 AM
I've written a c# web service. When a request is received I need to download a potentially large file from another site. To do that I was starting a new thread using QueueUserWorkItem but to my surprise the thread frequently vanishes before finishing it's task. Why? If I use system.thr...more >>

Y "object expected" ?
Posted by Daniel at 8/11/2005 6:54:07 AM
Hi, I have problem to get the control id and set its visible to true/false(mean show/hide). here is my code: <%@ Control Language="vb" AutoEventWireup="false" Codebehind="ucNavbar.ascx.vb" Inherits="UserInterfaceDesign.ucNavbar" TargetSchema="http://schemas.microsoft.com/intellisense/ie5...more >>

Page load of the parent page called twice when a modal dialog is opened from a button click of the user control on the parent page
Posted by Samy at 8/11/2005 6:34:11 AM
Hi There, I have a user control with buttons on it which I use on a aspx page (parent page). On a button click, a modal dialog(aspx page) opens up and the user enters some info in the modal dialog and clicks the save button on it. The info is saved to the DB and the parent page is refreshed. Ev...more >>

Advice on 'breaking into' the ASP.NET world for an experienced sw devel
Posted by Bob Robertson at 8/11/2005 6:07:00 AM
Hey guys, I am an experienced sw developer (8+ yrs) with a pretty broad background. I know C/C++ very well, have had a decent amount of embedded experience, have had quite a bit of Linux app development experience, as well as some core java development experience (swing apps-no enterprise),...more >>

Formatting appSettings data using Expression Builder
Posted by Darren Carter at 8/11/2005 5:31:18 AM
Does anyone know if it's possible to format data stored in an appSetting node when it's bound to a form control? I would like to format a date stored in appSettings, and I bind to it as follows: <asp:Label ID="SomeLabelID" Runat="Server" Text="<%$AppSettings:someDate %>" />...more >>

Session_End Qeustion?
Posted by Raed Sawalha at 8/11/2005 4:48:03 AM
in our multiple applications solutions which is as follows: Parent : Global.ascx Logout.aspx SubProj1 No Global or logout SubProj2 No Global or logout in Global.ascx Session_End Event string serverName = this.Request.UserHostName; string appFolde...more >>

EditItemTemplate question
Posted by NH at 8/11/2005 4:40:01 AM
How can I only display the textbox I have in an EditItemTemplate based on the value in another cell in the row? i.e I only want users to edit one of the cells based on the value in another cell.... Should I do this in the ItemDataBound event of the datagrid...something like... If e.Ite...more >>

<asp:hyperlink> , Databinding
Posted by Satya at 8/11/2005 4:10:02 AM
Hi all, The following code is throwing a run time error "The server tag is not well formed. " <ItemTemplate> <asp:HyperLink Runat="server" ID="lnkFile" NavigateUrl="javascript:OpenImage('<%# DataBinder.Eval(Container.DataItem,"FileName") %>');"><%# DataBinder.Eval(Container.DataIt...more >>

javascript references becoming undefined when adding validators
Posted by Miles at 8/11/2005 3:29:01 AM
I have an ASP.Net text box which I am adding a javascript event (onChange) at runtime. It passes a parameter which is another control which I am getting the name for from the ClientID property. So when rendered looks like: <input name="txtVal" type="text" id="txtVal" onChange="DoCalc(txtV...more >>

Share Classes
Posted by Raed Sawalha at 8/11/2005 1:58:03 AM
I have a web application with 100 pages and 30 user controls so we decided to separate some pages and controls into sub projects ( the generated subprojects was 2) the problem we have that now the parent and the 2 subprojects will use a classes in parent project (Tools.Utilities folder in pa...more >>

Vb.Net or C#.Net
Posted by Kamal Ahmed at 8/11/2005 12:00:00 AM
Hi guys..... I have 2 options to develop a Asp.Net Portal either using VB.Net or C#.Net. What is difference between these two languages. and what is edge of develoing in C# because mostly companies require developing in C#.Net. And what are drawbacks in VB.Net that differs it with C#.Net ??...more >>

Formatting: Focus in textarea: enter to submit form with serverside event trapping
Posted by Perry van Kuppeveld at 8/11/2005 12:00:00 AM
Hi, I have a problem with formatting a table including text fields wich can contain up to 255 chars. I need a table with 3 columns: - First column 50 % over the with a rowspan of the total number of rows. - Second column 25 %, no rowspan - Third column 25 %, no rowspan In the first col...more >>

How to get the list of login ID(Asp.Net2.0)
Posted by ad at 8/11/2005 12:00:00 AM
I use Login control to authenticate use. How to get the list of user ID who have login in? ...more >>

Detect when the session is going to time out and display some kind of message.
Posted by UJ at 8/11/2005 12:00:00 AM
How do you detect when your session is going to timeout and display a message saying 'unless you do something you will be logged out' much the way bank web pages do? Can you do it for the site or do you need to put code on every page doing it? TIA ...more >>

Deploying
Posted by Tumurbaatar S. at 8/11/2005 12:00:00 AM
I'm going to move my ASP.NET app to a target machine. What files do I need to move? All aspx, dll (in bin folder) and web.config? What about Global.asax? Currently, it contains only Codebehind and Inherits directives, nothing more. Also, cs, resx and etc files are not needed on the server? ...more >>

How can I restrict that the some ID can only login once in the some time
Posted by ad at 8/11/2005 12:00:00 AM
I use Login control's Authenticate event to authenticate use. I find that different users can use the same ID to login in the same time. How can I restrict that the some ID can only login once in the some time ...more >>

Placeholder Control
Posted by Alex at 8/11/2005 12:00:00 AM
Hi, I know this will be a very easy question for somebody to answer but how would I display an existing HTML page within a placeholder ? I have a master page and for dynamic content use a XML/XSL transform to produce the html to add to my placeholder, how do I do this to display an existing...more >>

traditional ASP pages not working
Posted by Grant Merwitz at 8/11/2005 12:00:00 AM
Hi I've just set up a new server. Installed IIS, with frontpage extensions. and the .NET framework v1.1 I am running Windows Server 2003 - Standard addition and updated. My ASP.NET application is working fine, but there are a handful of traditional ASP pages which are just not working. ...more >>


DevelopmentNow Blog