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 > may 2005 > threads for tuesday may 17

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

How to develop an application which runs automatically
Posted by aparnasinha26 NO[at]SPAM yahoo.com at 5/17/2005 11:21:34 PM
Hi All, I have to develop an application .The application has to update database.It does not have any user interface.It needs to run on Windows XP/2000 automatically at a particular time say 4 p.m. daily. I have to develop the application in VB.net My first question is which Visual Basic.Net Pr...more >>

How to develop an application which runs automatically
Posted by aparnasinha26 NO[at]SPAM yahoo.com at 5/17/2005 11:20:56 PM
Hi All, I have to develop an application .The application has to update database.It does not have any user interface.It needs to run on Windows XP/2000 automatically at a particular time say 4 p.m. daily. I have to develop the application in VB.net My first question is which Visual Basic.Net Pr...more >>

Creating a custom 404 asp.net page.
Posted by craigkenisston NO[at]SPAM hotmail.com at 5/17/2005 11:12:26 PM
Hi, I'm going nuts with a supposed simple thing. I have this page : <%@ Page language="c#" Codebehind="404page.aspx.cs" AutoEventWireup="false" Inherits="mydomain._404page" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <%@ Import Namespace="System.Web" %> <%@ Import...more >>

Authentication in ASP.NET. Need Help. Thank You.
Posted by Shapper at 5/17/2005 11:12:10 PM
Hello, I am working in ASP.NET/VB and I need to create a login page. In login.aspx I have a dataset with the usernames, passwords and access level. How to create the login? And how to make the access level available in page_load so I can check the user access level and take the accordin...more >>

Write to file folder problem
Posted by Don at 5/17/2005 11:11:41 PM
"c:\inetpub\wwwroot\html\043396718852.html" The path is too long after being fully qualified. Make sure path is less than 260 characters. This doesn't make sense for the string that I generate above. What could possibly be wrong? I am only trying to write html files to a folder. ...more >>

Connection Issue - .NET and Oracle
Posted by Rig76 at 5/17/2005 10:28:07 PM
I'm having a very strange issue with an application I'm building. The applicaiton has multiple users, each with their own connection to the database. However, when one of these connections closes then all the other users connections seem to close. This is most obviously seen when I'm writing...more >>

microsoft.public.dotnet.framework.aspnet
Posted by Rig76 at 5/17/2005 10:27:55 PM
I'm having a very strange issue with an application I'm building. The applicaiton has multiple users, each with their own connection to the database. However, when one of these connections closes then all the other users connections seem to close. This is most obviously seen when I'm writing...more >>

RegisterArrayDeclaration Help Needed with Grid
Posted by xenophon at 5/17/2005 9:44:25 PM
I have a grid with checkboxes in it. When a checkbox is un/checked, I want to set a true-false value in an array. Then on PostBack I can work with that array. I know I need to use RegisterArrayDeclaration, but I don't see a quick tutorial how. Can anyone post sample C# code-behind-only code ...more >>



My ASP.NET Page theory!
Posted by Amelyan at 5/17/2005 9:25:48 PM
I need some help to confirm my theory! I think I discovered something new for myself about behavior System.Web.UI.Page. THEORY: Every time I change control on my WebForm1 page that results in PostBack, it is handled by a new instance of WebForm1 class, i.e. a new instance of WebForm1 class...more >>

how to config the web.config to specify the folder i want form aut
Posted by lenyado at 5/17/2005 9:21:02 PM
i want to use the forms authentication for the folder in virtual folder "admin/" but i don't know how to config the web.config. once i turn on authentication mode to "Forms", all files will need authenticate, which is not what i want. anyone can help?...more >>

Autopost back and Blank Page
Posted by Tony Doyle at 5/17/2005 8:56:15 PM
All, I have a web form with 3 embedded panels, all working fine. However, I have now added a Checkbox where autopostback=true, and only the ascx pages on my page appear, none of the panels / tables do. It just doesnt make sense, looking at the source of the page in view i see <input ty...more >>

Dual Logins
Posted by Rudy at 5/17/2005 8:40:02 PM
Hello All! I hope somebody can help me figure this out. So I have a web site, with it's own login page, pulling the info from a SQL databse. User can go where they need to go, Admins are allowed on a another page, it's all very good. Now I am adding Chat Software. CuteSoft has chat software c...more >>

powerpoint execution
Posted by barry at 5/17/2005 8:21:23 PM
This is the code I am trying to execute in the page load Dim oapp As PowerPoint.Application oapp = New PowerPoint.Application oapp.Presentations.Open("C:\Inetpub\wwwroot\StoryBooks\AccessorMutator.ppt") The following error was given when executed System.Runtime.InteropServices.COMExcept...more >>

Double Apostrophe "
Posted by wrytat at 5/17/2005 8:17:01 PM
How to you print a double apostrophe in asp.net using vb? meaning for e.g. I want to write ", So I do a Response.Write(""") Something like that, but the mentioned is wrong. Thank you in advance...more >>

Using Repeater
Posted by wrytat at 5/17/2005 6:48:03 PM
There's a column in my repeater that stores a value that can be 0 or more than that. If the value is 0, I want to just display the number 0. But if the value is more than 0, I want to show a link so that the user can click. Is it possible to do that? I'm binding the repeater with an arraylist ...more >>

CSS Question
Posted by dee at 5/17/2005 5:38:58 PM
Hi I have the following in my styles.css: BODY { ... font-size: .8em; ... } Why doesn't this reduce the text size in my <table> <tr> <td>? Is there a global .css that IE uses for defaults? Thanks. Dee ...more >>

SmartNavigation
Posted by Jay at 5/17/2005 5:38:37 PM
I use SmartNavigation a lot and it makes the web UI very nice for some situation. I have trouble in using SmartNavigation and setting the focus to a textbox using the code below. Has anyone found a way to make SmartNavigation work with setting the focus. Jay <script type="text/javascrip...more >>

Another Newbie Question
Posted by Yosh at 5/17/2005 4:36:50 PM
What's the recommended method of passing a parameter from one web form to another? Thanks, Yosh ...more >>

How use WebUserControl
Posted by DichkoSoft at 5/17/2005 4:30:07 PM
Hi I create WebUserControl and very confused when use control For Example: ***************************** *wuc.ascx ***************************** <script id=clientEventHandlersJS language=javascript> <!-- function selMap_onclick() { //???? here is my problem } //--> </...more >>

Cache dependency for SQL database changed
Posted by Steffen Loringer at 5/17/2005 4:27:27 PM
Hi all, it seems that the only CacheDependency for an object is time or a file. I like to renew a dataset in the server-cache once the belonging SQL database is changed! Anybody any idea? Thanx a lot for support! Steffen ...more >>

Security Attribute on Event?
Posted by xenophon at 5/17/2005 4:06:37 PM
I am using Role-based seucity Attributes on different methods in my code-behind like this: private void callmymethod() { try { mymethod(); } catch{} PrincipalPermission(SecurityAction.Demand , Role="1")] private void mymethod() { } Then any work in mymethod will fail quietly...more >>

How to make the text in TexbBox selected
Posted by ad at 5/17/2005 3:52:57 PM
I want the text in a TextBox selected when the TextBox get focus. How can I do that? ...more >>

Quick Newbie Question
Posted by Rudy at 5/17/2005 3:38:01 PM
Hi All! I have a.aspx with a text field, I can put a value in the text field. Now when I go to b.aspx through a response.redirect, that's fine. Now when I hit the back button on the browser, my value stays in the text field. But if I use a Response.redirect command, my text field go blank. H...more >>

How to set focus in a GridView
Posted by ad at 5/17/2005 3:21:15 PM
I used ASP.NET 2.0. When I edit a row in a GridView. How can I set the focus to the first editable column? ...more >>

relative names
Posted by tshad at 5/17/2005 3:12:18 PM
I am trying set up a bunch of fields that are differentiated by a number. For example, I have 3 names which would be: <asp: textbox id="name1" runat=server> <asp:textbox id="name2" runat=server> <asp:textbox id="name3" runat=server> I want to be able to do a loop, something like: for i...more >>

A better way to check for IsDBNull ?
Posted by Paul D. Fox at 5/17/2005 2:14:07 PM
I have this code snippet below where I'm loading all the labels based upon the retrieved record from the DataReader. Unfortunatley, some of the values are null, so I can't explicitly set the labels without checking first. Is there a better method to write this than using a bunch of "If" stat...more >>

Accessing original (html tag) value of a control property
Posted by HoustonFreeways at 5/17/2005 1:48:31 PM
Suppose I have a datagrid control which defines the showfooter property <dg:datagridconfirm id="dg_inbox" Runat="server" showfooter=false> During subsequent postbacks of the page, I change the showfooter value to true or false depending on the number of items in the datagrid If me.Items.C...more >>

ie 6.0 bizare behavior
Posted by dee at 5/17/2005 1:16:02 PM
Hi I hope someone here has run into same issue. I am developping a site that that has several forms. On one form two of the text input server html contorls show background as yellow. But not always. I run IE 6.0 on a XP Pro SP2. Running under W2K has never had this problem. One the left of th...more >>

Long time in Render phase on production server
Posted by Tony at 5/17/2005 12:55:50 PM
I have a very peculiar problem that I am hoping someone can point me in the right direction on. I have an asp.net page that displays a virtual paycheck to a user. One asp.net page calls another that has its return type as a jpeg. This jpeg is an image of a paycheck that is written on top of w...more >>

Newbie with Question
Posted by Yosh at 5/17/2005 12:46:58 PM
Is there a Treeview control in ASP.Net? Where is it? Thanks, Yosh ...more >>

ASP.NET Application and FileSystemWatcher
Posted by J-T at 5/17/2005 12:04:57 PM
We are working on an asp.net application which is a 3-tier application.I was aksed to create a component which monitors a folder and gets the file and pass them to a class library in our business logic layer(so far so good and easy).I initialize my class which is using a FileSystemWatcher in m...more >>

Is it possible?
Posted by Marc Robitaille at 5/17/2005 11:43:47 AM
Hello, I have a server button on my page. This button is use to open a serach page. In the Page_Load event, I code this If (Not Page.IsClientScriptBlockRegistered("clientScript")) Then Page.RegisterClientScriptBlock("clientScript", mpstrGetOpenSearchDialogScript) End If ...more >>

User Control Implementation: Could It Be More Efficient?
Posted by Smithers at 5/17/2005 11:36:31 AM
I have a non trivial ASP.NET Web application that implements its navigation system via a user control (menu.ascx) placed on every page. It is important to note that the user control that hosts the menu is injected into every page at runtime when the page is requested (i.e., it's not declare...more >>

Mailer code sample available? Also - loop & delay question
Posted by D. Shane Fowlkes at 5/17/2005 11:34:06 AM
I've decided to send weekly emails to registered users ("members") on one of my sites. This will be the first time I attempted anything like this. Now I know I could use some 3rd party list server services like MailChimp.com or ConstantContact.com but since this site I have is basically main...more >>

Problem with reading XML file in ASP
Posted by Tomas Kepic at 5/17/2005 10:56:12 AM
Hi all, I want read some data stored in XML document in my aspx page, but I have problem with this. My XML file settings.xml is: <?xml version="1.0" encoding="utf-8" ?> <parameters> <back_color>blue</back_color> <text_color>red</text_color> </parameters> And her...more >>

validator disabling postback ???
Posted by fredd00 at 5/17/2005 10:17:25 AM
hi i have some validators on a page (required ,custom and compare) when i click on my image button the postback does not occur even when all fields are filled correctly they all worked fine until i installed xp sp2 could that be the problem ? does anyone know how to fix this thanks ...more >>

Newbie question concerning page load event
Posted by Flack at 5/17/2005 10:16:21 AM
Hello, I was looking at this sample asp page: ----------------------------------- <Script Runat="Server"> Sub Page_Load lblMessage.Text = "" End Sub Sub txtSomeText_TextChanged( s As Object, e As EventArgs ) lblMessage.Text = "You changed the value!" End Sub </Script> <htm...more >>

attaching client script to cancel EditCommand in DataGrid
Posted by js at 5/17/2005 10:12:33 AM
I have a Datagrid control on my page. I want to attach a client JavaScript during the control's ItemCreated event in the CodeBehind like the following, but I can only attach the script to the Edit command button, but not the Cancel or Update button. Thanks for your help. private void ItemsG...more >>

How can i change refresh time of my page dynamically?
Posted by jensen bredal at 5/17/2005 9:08:01 AM
Hello, Is there a way to dynamically select how often my page should be refeshed? Any comment will be higly appreciated. Thanks JB ...more >>

Newbie needs help on messagebox
Posted by UJ at 5/17/2005 8:33:21 AM
I've seen lots of messages about how to get a confirmation messagebox to happen before running a piece of code. I need to have a messagebox that does the typical 'Everything is done.' after I've run some VB code. Here's the code snippet: In my .aspx page: <asp:linkbutton id="btnDelete...more >>

Multiple user controls not reloading properly
Posted by Mark at 5/17/2005 8:20:30 AM
Hi everyone, I have two user controls on a webform that display overlapping information but each in quite different ways. One of the controls can update information in the database and the other one displays some of that information. The first control saves back to the database and the dis...more >>

Request.Servervariables("Logon_User") giving problem
Posted by Amitava Bardhan at 5/17/2005 7:56:56 AM
Request.servervariables("Logon_user") returns and empty string on one asp page but works perfectly well returning the NT user id on the other asp page. Both the pages are in the same directory. This directory has both Anonymous Access and Integrated Authentication enabled at the IIS....more >>

fill in a form value in an iframe
Posted by guoqi zheng at 5/17/2005 6:28:40 AM
Dear sir, I have page with an iframe in it. That iframe page contains a form from remote site to fill in. What I like to do is that when user clicks a button on my page, that form on the iframe page will be filled in with some data related to this user. I guess this has to be done by...more >>

Opening .pdf files
Posted by Tom at 5/17/2005 6:12:02 AM
Hi there I try to display the content of an .pdf file at the browser. I do have the data stream (the actual .pdf file contents) as binary data and send it to the browser on using the function Response.BinaryWrite(). So far it works but at the browser's side a new windows (PDF reader) is creat...more >>

Dynamic Refresh using meta tags????
Posted by Tim::.. at 5/17/2005 6:08:03 AM
Can someone please tell me why the following dynamic refresh doesn't work! Thanks Inline code... <!----- dynamically filled META REFRESH element -----> <meta id="mtaRefresh" runat="server" /> ...CodeBehind Protected WithEvents mtaRefresh As System.Web.UI.HtmlControls.HtmlGeneri...more >>

Input the scores of a subject
Posted by ad at 5/17/2005 6:05:32 AM
I want to create a input form to Input the scores of a subject in a class. There are about 30 students in a class. I want to desplay 30 textboxes in a form at a time. The user can intput the score of all student at a time and press a summit button to update to database. How can I do that? ...more >>

extraneous dlls in bin causes failure?
Posted by dhnriverside at 5/17/2005 5:25:43 AM
Hi guys I just did a copy of a dll file for my project into the \bin directory (so it had the file and the copy in \bin) and the application just stopped working completely. It seemed to be trying to use the copy, but not knowing what it was. Is that normal? How does it look in a file it...more >>

Completely unable to update an access db from a datagrid
Posted by René Kabis at 5/17/2005 4:58:18 AM
People, I am at my wit's end. I am using the exact code from http://aspnet.4guysfromrolla.com/articles/071002-1.aspx And yet, the code does not manage to update the database. When I go to update my database, I am able to get the form fields, and I am able to replace the data, but when I g...more >>

Problem After Rename
Posted by Wayne Wengert at 5/17/2005 4:33:20 AM
I am using VSNET 2003. I have a project in which I renamed a form (I renamed "frmBand Application" to "frmBandInformation") and I changed the Class name in the code-behind but when I try to run the app I get the error "Could not load type 'WBA_StaffControls.frmBand_Application'" Where is th...more >>

CDONTS strangeness
Posted by Stimp at 5/17/2005 4:26:09 AM
I'm trying to send a mail using CDONTS with a .FROM email address that doesn't exist (like bob@nowhere.com), but it won't send the mail unless I put a valid .FROM email address (i.e. of an email address that exists) The mails I try to send on the Windows 2000 server are moved into the mailroo...more >>

UserControl Properties
Posted by Jon at 5/17/2005 4:15:01 AM
Hello all, I have a usercontrol with a number of public properties. A couple of these properties are file paths (to xml files, etc). These file paths may be to any folder in my project. However, when setting these using xmlfile="~/thexmlfile.xml" it doesn't seem to work. If I do a debug...more >>

Can Visaul basic 6 be installed after installing VS .NET?
Posted by EC at 5/17/2005 4:07:01 AM
Is it possible to install VB 6 on a machine that already has VS .NET 2003? If it is then are there any known problems and workarounds that I should know? ...more >>

Passing variables in query string in the HyperLinkColumn of a datagrid
Posted by aparnasinha26 NO[at]SPAM yahoo.com at 5/17/2005 3:27:58 AM
Hi All, I have to pass variable in a query string. The query string is in the hyperlink coloumn of a datgrid. The code appears like this <asp:HyperLinkColumn DataNavigateUrlField="ProductID" DataNavigateUrlFormatString="ViewProduct.aspx?qProductID='<%strProduct%>'" DataTextField="ProductID" ...more >>

CSS stylesheet
Posted by wrytat at 5/17/2005 2:51:18 AM
I want to use css stylesheet in my asp.net web application but when i write <LINK href="style.css" type="text/css" rel="stylesheet"> in the header, visual studio tells me that the active schema does not support the element LINK. And the css isn't use when it's built. The style is not reflected...more >>

Using ArrayList & Repeater
Posted by wrytat at 5/17/2005 2:42:04 AM
I have an arraylist storing objects that I've defined my own. The object is called Stock. And each stock has attributes like Comp, PartNo, Model, and etc. I want to bind this arraylist with a repeater. But I always get an error message: "No default member found for type Stock." This is w...more >>

Quick Data Formating Question
Posted by thechaosengine at 5/17/2005 2:30:58 AM
Hi all, I'm trying to format a date in a bound datagrid. In order to do this I've placed the following as an attribute to the bound column in question: DataFormatString="{0:dd/mm/yyyy}" Unfortunately when the date is output, its still showing the time as well, which I don't want. Do ...more >>

Windows XP and Visual Studio Remote Debugging
Posted by Web Team NO[at]SPAM Borough of Poole at 5/17/2005 2:23:33 AM
Hi, Our team has just upgraded our development machines from Windows 2000 to Windows XP SP2. We previously developed remotely, which worked AOK. Since going to SP2, when we try to debug, we get this error: "Error while trying to run project: Unable to start debugging on the web server. The ...more >>

javascript confirm fires after deletion instead of before
Posted by TJS at 5/17/2005 1:52:39 AM
javascript "confirm" fires after deletion instead of before deletion. how do I get this to stop the processing ? code ================== Sub ShowAlert(ByVal s As string) RegisterClientScriptBlock("CSP-showconfirm-function", _ "<s"+"cript language=""JavaScript"">" & vbCrL...more >>

ASP.Net and powerpoint
Posted by C Williams at 5/17/2005 1:07:28 AM
We are having trouble automating Powerpoint 2003 from an asp.NET web page. I know that MS officially discourages doing such a thing, but we are trying nonetheless. On only one of two servers, I get an Access Denied error when I attempt: pptApp = new Powerpoint.Application On the other ...more >>

Displaying a counter value within a Repeater Control
Posted by Bhelliom at 5/17/2005 12:55:20 AM
Hi there, something I thought would be really really easy so far hasn't been easy at all. I'm using the Repeater control to produce some HTML with values taken from a DataSet. That is totally fine, works without a hitch. What I would love to do is have the iteration count of the Repeate...more >>


DevelopmentNow Blog