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 > april 2006 > threads for friday april 21

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

Active Directory : Add an user to a group !
Posted by moi at 4/21/2006 11:55:53 PM
Hello, Is there an Membership API to Add a user to group ? like to change the password ... Or do i have to program it ? If i do have to program it, what about the right,permission to do it ? I would like to add the user in a group when he change his password (to activate the possibility f...more >>

hide root menu item (no sitemapdatasource used!)
Posted by Daves at 4/21/2006 10:33:55 PM
my 2.0 menu control has this root node which I want to hide normally the showrootnode property is set to false on the sitemapdatasource for the menu but I am actually populating it my self from a sql database and so I cannot figure out how to not display the root node only child nodes? ...more >>

Tollbarless application
Posted by YoMama at 4/21/2006 7:50:29 PM
Is there any way to run asp.net web app as toolbarless, menuless window in IE? ...more >>

I am using ActivePDF tool kit to generate PDF files in our ASP.NET 2.0 web app. Need help!
Posted by Learner at 4/21/2006 7:38:36 PM
Hello, We are using ActivePDF toolkit to generate reports in our web application. We are using ASP.NET 2.0 and SQL Server 2005. We are able to open the pdf files on our local development box with out any problem. But having problems on the production server. When we moved our application ...more >>

FileSystemWatcher does not seem to be working
Posted by Nathan Sokalski at 4/21/2006 7:15:50 PM
I have a directory on my site that I keep a bunch of text files in (this directory is "/poetry/poems/"). The Application keeps the first line of each of these files in an HttpApplicationState variable as a SortedList. When I add or modify a file in this directory, I want to delete this HttpA...more >>

Default limit to file uploads via HTTP?
Posted by darrel at 4/21/2006 4:50:54 PM
I've built a file upload component for our CMS so people can upload images, PDFs, etc. I just ran into a snag with an 8mb PDF file. If I try to upload this, I immediate get a 'application has timed out error, try again?'. Any other file goes fine, but not this huge PDF file. Is there a d...more >>

Web site "title" always wants to say Untitled page
Posted by Brian Henry at 4/21/2006 4:33:55 PM
I changed the title in the header of the master page and when its in the browser it still says "Untitled page" how do i get it to say what i want it to? also, how can i get unique titles for each content page that uses a master page? ...more >>

More file locking problems
Posted by darrel at 4/21/2006 4:25:17 PM
I've been dealing with a file locking issue for a while. Our CMS spits out a new XML file each time an item in the DB is updated. This XML file is basically our site menu, and is what we use on the front end to render out site's navigation, site map, breadcrumbs, etc. We're using it becaus...more >>



<form runat=server> Tag in a MasterPage environment
Posted by Alex Maghen at 4/21/2006 4:10:02 PM
I have a master page which contains a general page framework and also contains a <form runat=server> around most of the content of the page. Inside that <form> tag is a ContentPlaceholder. I then create an ASPX which is tied to that MasterPage and in it a put a bunch of form fields and an <...more >>

wierd bloodhound virus message in asp.net
Posted by VB Programmer at 4/21/2006 3:54:56 PM
Just loaded up one of my ASP.NET 2.0 projects. When I ran the webapp (IE) I was warned with this message... Your system may be vulnerable to BloodHound Virus! We recommend you DOWNLOAD one of these security software programs to prevent malware infections... Looked "spamish", so I didn't d...more >>

How to email off users details??
Posted by Jon at 4/21/2006 3:12:57 PM
Hi all, I have an array that has 13 elements each containing data (name, address etc). How would I FIRSTLY place this data in any document/sheet and then SECONDLY email this document to say 'sales@company.com'. Basically I want the users entered details that exist in an array to be laid out...more >>

Can I use static variable in the scope of a PAGE?
Posted by Sandeep Singh at 4/21/2006 3:04:47 PM
I m building an application in which I redirect the user to a particular page. In the Page Load event of the that page , I assign a variable some value. Then I call the Button click event on that page. I have applied the !IsPostBack so that the Page Load event does not occur on clicking th...more >>

RDLC Subreport problem...
Posted by Jéjé at 4/21/2006 3:00:32 PM
Hi, When I try to display a report with a subreport using the reportviewer control, I receive this error: Error: Subreport could not be shown. I have 1 paraneter between my 2 reports which is correctly defined. The Subreportprocessing event is never raised. any idea? ...more >>

Using a field that is filled in by javascript in a code behind page.
Posted by UJ at 4/21/2006 2:57:02 PM
I have a JavaScript that fills in a text box with a date/time. I then need to access it my code behind code. If I make the input field runat=server, I can get at it by code behind but JavaScript can't see it. If I don't have the runat=server, then JavaScript can get at it but I can't get at it...more >>

Error Using WMI to Get List of Shared Folders on the Server
Posted by lecnac at 4/21/2006 2:11:18 PM
Here's some details: Server and workstation both in the same workgroup Logged into server as local Administrator Logged into workstation as a local user that is only in the Users group The local user on the workstation is also defined with same name and password on the server (and only in the...more >>

Asp.net 2.0 - Cookies
Posted by Gil Paz at 4/21/2006 2:00:50 PM
Looks like a very simple question, but I don't find the answer. I use ASP.net 2.0 VB, I would like to check if a cookie exist on the clients computer's and if not to create. In order to create a cookie I write: Dim Cookie As HttpCookie = New HttpCookie("UserID") Cookie.Values.Add("S...more >>

how do i register 'onUnload' script from a content page
Posted by fredd00 at 4/21/2006 2:00:21 PM
Hi here is my problem i use master pages and content pages i would like for some content page to register a script that will trigger on the 'onUnload' of the web page can it be done with clientscript.register .... if so how ? Thanks ...more >>

.Net "Applet"
Posted by instruo at 4/21/2006 1:56:02 PM
Hi all, I'm curious if Microsoft has any plans of taking the .Net framework to the web in the same kind of capacity as Java Applets do. I've read that using the <object> tag, one can embed a Windows Control (though, not a form) into a web page for IE. I was wondering if there's been any t...more >>

Databound TreeView
Posted by Loopsludge at 4/21/2006 1:46:30 PM
Using ASP.NET 2005/C# flavor, I need to dynamically populate a TreeView control from the results of a SQL Server 2005 query. Clicking on the end leaf of the tree will need to yield some details about that leaf (Assuming I need to hit the database again) in a data view. In terms of populating ...more >>

vs doesn't recognized newly added methods in references
Posted by Dica at 4/21/2006 1:12:07 PM
i'm working on building a web app that uses several dlls being built by another member of the team. his dlls are frequently updates as we decide on the need for new methods, but much of the time, after he's done compiling his code, i'm unable to access these (visual studio tells me there's no suc...more >>

Inherits multiple source?
Posted by tedqn NO[at]SPAM yahoo.com at 4/21/2006 1:04:29 PM
I've read quite a number of posts here and none seems to address my situation.. Currently, I use this line to retrieve user's info, which will pretty much be used in every single page that is password protected. <%@Page Language="VB" Debug="true" Inherits="SessionVerify" Src="/scriptfiles/Ses...more >>

Paging data and highlight closest match
Posted by Daniel Di Vita at 4/21/2006 12:52:02 PM
I have created an ASP.NET using page that allows the user to page through a result set. I need to expand on this. On that same page I have a field where the user can type in a search string. When they click a button ALL the results will be returned and the closest match to the search string wi...more >>

button click event on master page
Posted by hazz at 4/21/2006 12:42:31 PM
oh it hurts to be a newbie again....:-( I have a button click event I want to handle for a button to create an excel spreadsheet from gridview contents. I can't write the code for the button click event on the master cuz it doesn't know anything about Gridview1. But if I put the code on t...more >>

DataSourceControl implementation and SlectParameters
Posted by WT at 4/21/2006 12:29:02 PM
Hello, I am trying to implement a DataSourceControl and I need to simulate the same functionality as the SqlDataSourceControl : being able to set declaratively the select parameters to use when binding a DetailView to the Selected Row in a GridView, but I have difficulties with the sample in ...more >>

Referencing a assembly from the GAC
Posted by Dale at 4/21/2006 12:20:02 PM
I have created a class that implements IHttpModule and I want to use the module on several of the web sites that exist on my server. The module works great if I place the dll in a web applications bin directory. However, I can’t get it to work at all from the GAC. If I remove the dll from th...more >>

is there a way to do this
Posted by rodchar at 4/21/2006 12:11:02 PM
hey all, if i put a publisher file on my webserver is there a way for clients to open that file so long as they have publisher installed locally? thanks, rodchar...more >>

Back button (.net) generated not working (Repost)
Posted by ShaneFowlkes at 4/21/2006 11:45:01 AM
I created a couple of quick test pages and to my surprise, these do not work either. When I click "Go Back" on test2.aspx, nothing happens. Ideas?? Surely I must be missing something obvious..... Thanks PAGE 1 - test.aspx <%@ Page Language="VB" %> <script runat="server"> Protect...more >>

TableAdapters and true N-Tier
Posted by CMM at 4/21/2006 11:38:58 AM
Unless someone has come up with a way, I still don't understand how you can use TableAdapters in a true n-tier infrastructure.... where the DataAccessLayer is in one Dll and *only* the Datasets themselves can be shared across layers. I find it inconceivable that this suggestion http://lab...more >>

What's the Deal with www2
Posted by Jordan S. at 4/21/2006 11:14:23 AM
Lately it seems like I've been seeing more and more domain names with a URL that begins with "www2" Why is that? Is there something special about having a "www2" subdomain? Thanks! ...more >>

am I among html friends here? Adding a button into a row on an asp.net page
Posted by hazz at 4/21/2006 11:12:29 AM
Below is one row with a company logo in the left table cell and = 'Reporting Tool' in the table cell on the right. I would like to add a button in this same row, just to the right of the = company logo, which will be for clicking on to create an Excel = spreadsheet from the grid. How do I use ...more >>

Web Form and PDF
Posted by Cheryl at 4/21/2006 11:10:53 AM
I'd like to display a web form at the top of an ASP.NET page and a PDF from a SQL Server database directly below the web form. Currently, I'm getting a PDF stored in the database and using BinaryWrite to display just the PDF. I'm using ASP 1.1 and VB.NET. - Cheryl ...more >>

TreeView (.NET 2.0) and self-referencing database table
Posted by vojinle NO[at]SPAM gmail.com at 4/21/2006 10:48:00 AM
Hi, Is there any example populating TreeView control from self-referencing database table? Table structure: ID Item_name Parent_ID Thanks ...more >>

Passing variable to SQL string is not working.
Posted by glenn at 4/21/2006 10:36:02 AM
Hi folks, The problem I have is that a query string works if hard-coded but if I pass a variable to it, it does not work as shown here. This works: querystring="SELECT * FROM USERS WHERE CNAME = 'MICROSOFT'" This does not work: Dim var as string var = "Microsoft" querystring="SELECT * ...more >>

Strong Password encryption program?
Posted by KatMagic at 4/21/2006 10:03:14 AM
I have a web-based program that will be going to an external web server and want to create a logon process. I am using forms authentication, passing encryption with salt, but want to force the user to create passwords with rules: combinations of numbers & letters, at least one character caps...more >>

ASP.NET, adding controls on client side
Posted by Oleg Ogurok at 4/21/2006 9:38:28 AM
Hi all, Does anyone have example of adding controls on the client side (DHTML) and then persisting them as ASP.NET server controls on the server side? For example, a page has an <input> box for entering e-mail address and a button <Add more addresses>. Each time a user clicks the butt...more >>

Add dynamic hyperlink on the fly in ASP.NET
Posted by sweetpotatop NO[at]SPAM yahoo.com at 4/21/2006 9:12:46 AM
Hello, I would like to create dynamic hyperlinks in a web page when it is first loaded by using ASP.NET. Basically there will be a list of documents in a folder and I will list them all as a hyperlink for user access. I wonder how I can go through the folder and create the dynamic hyperlin...more >>

Change protocol in form submit, relative path
Posted by D Godwin at 4/21/2006 9:03:22 AM
This is probably more of a straight HTML question, but here goes: I want to change from http to https during a form submit. This it pretty straightforward with a complete path (action=https://site.com/folder/page.aspx), but how can you specify a relative path so you don't have to change it...more >>

Caputuring (netbios) Server Name in ASP.NET
Posted by Brad Baker at 4/21/2006 8:37:11 AM
Using ASP.NET (or classic ASP) is there a way to capture the NETBIOS name of the server that a page was run on? Currently we have email based error reports which get sent to us from our web sites. We have hundreds of websites on half a dozen servers. Sometimes the same website is load b...more >>

SmartNavigation/MaintainScrollPositionOnPostback & Datagrids
Posted by Zamdrist at 4/21/2006 8:36:51 AM
Use of SmartNaviagtion appear to cause a serious perfomance hit, I'm not working with ASP.Net 2.0 yet so MaintainScrollPositionOnPostback=True isn't an option either. Is there a way I can persist the user's scroll position in a datagrid, are there any other options? Thanks ...more >>

How to view / print stored procedures in VS 2005
Posted by keithb at 4/21/2006 8:17:45 AM
Using VS 2005, is there some way to print stored procedures? Is there any way to simultaneously view the content of multiple stored procedure files? Thanks, Keith ...more >>

web.config, HTTP Module, and the GAC
Posted by Wayne Sepega at 4/21/2006 8:13:48 AM
I have a web.config in the root of my website, in the web.config I have defined an HTTPModule that is to be loaded into any application under the website. Also defined in the web config is a custom configuration section, and the custom section points to a file, the file is in the same director...more >>

parse incoming SOAP message.
Posted by Sai at 4/21/2006 8:09:56 AM
Friends, Any body know how to parse incoming SOAP message. Do I have to create web-services to do this. I know nothing about how to do it. Any direction to start would be great. Thanks, K ...more >>

Please help with regular expression (string must be letter plus 5 numbers)
Posted by paulsmith5 NO[at]SPAM hotmail.com at 4/21/2006 7:52:28 AM
Hi, I'm developing a web app and I want to validate a users input on a form. I need a regular expression to validate a string which must begin with a letter (i.e. A-Z or a-z) and must have 5 numbers (0-9) after it. For example, A12345. Hope someone can help. Thanks, Paul ...more >>

PageClassName from UserControl
Posted by DatelMonkey99 at 4/21/2006 7:42:02 AM
I am inside a usercontrol and would like to get a reference to the page that user control is contained in. Here is my code: MyPageClassName myPage = this.Page What I cannot figure out is how I get the MyPageClassName part. For instance, shouldn't it be the same as the class name specifie...more >>

Case sensitive username/password
Posted by nemo at 4/21/2006 7:40:59 AM
I've included a list of username/password combinations in the Web.Config file and I've a simple .aspx page with a username and password field for the users to log in. While the password field is automatically case sensitive, the username field is not. How can I force the username field to be cas...more >>

ASP .NET debug using Breakpoints -failed
Posted by MSK at 4/21/2006 7:29:26 AM
Hi all, I am newbie to ASP .NET , Recently I installed .net in my pc and tried to create one sample ASP . NET application, I can not debug the flow using break points. I am not getting any error message. application is working fine. but the breakpoints are not considered why ? Any idea ? Ma...more >>

Horizontal Gridlines not showing up
Posted by Matt at 4/21/2006 7:24:01 AM
I can not get the horizontal gridlines to show up on a Gridview. I have changed the selection to both and horizontal with no sign of them. Also, when I set the Gridlines property to Vertical or Both, the Vertical lines show up but they are the wrong color. Which property controls the color ...more >>

Parse a CSV file in C#?
Posted by C at 4/21/2006 6:53:01 AM
Hi, I have a CSV file with some data (7,500 rows , 18 columns) How can I parse this file in C#? Can I programmatically save the file as an Excel Workbook and then parse the file using the Excel Namespace Methods available? Or can I programmatically save the CSV file as an XML file and ...more >>

page caching issue. dropdown list not refreshing.
Posted by Oleg at 4/21/2006 6:47:01 AM
Hi, I'm having a problem with page caching and therefore reusing dropdown box contents. Scenerio: user1 has security to see list of three items(.aspx populates it with three items only) in dropdown on page1. user2 has security to see list of two items in dropdown on page1. user1 logs in....more >>

DropDownList control and OnSelectedIndexChanged event
Posted by glenn at 4/21/2006 5:51:01 AM
Hi folks, I am trying to determine which item in a DropDownList Web control has been selected. I have posted an OnSelectedIndexChanged subroutine in my code with a reference to the subroutine in my asp tag as shown here: <asp:DropDownList id="ddlTo" runat="server" DataValue...more >>

GridView refresh problem
Posted by coynej60 at 4/21/2006 5:28:01 AM
I have a GridView that is bound to a SqlDataSource that uses Stored Procedures for its Select, Insert, Update and Delete Commands. The Gridview only contains one visible column (PK Identity column is hidden). There is a textbox and button that I use to submit a new row. Everything works fine,...more >>

How to read empty data
Posted by mosipenko NO[at]SPAM hotmail.com at 4/21/2006 5:00:04 AM
I used to have a problem with DBNull, but now my issue is: System.InvalidOperationException: Invalid attempt to read when no data is present Here's my code behind: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load Dim connectionStri...more >>

Quick DropDownList question
Posted by Chris Fulstow at 4/21/2006 4:05:13 AM
Hi all, I've got a simple data-bound DropDownList control: <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="ObjectDataSource1" DataTextField="EmployeeName" DataValueField="EmployeeID"> </asp:DropDownList> I want to DataTextField to include the DataValueField, so my drop-...more >>

Calling server side function in javascript (ASP.Net 2.0)
Posted by KK at 4/21/2006 3:32:01 AM
Hi, Does anybody know how to call server side function in javascript? Suppose I've a method named Test() at code behind of ASP.Net page. How can I call that method in javascript function ??? Any help is appreciated.. Thanks Crystal...more >>

Attaching to Aspnet_wp
Posted by the_kiddie98 NO[at]SPAM yahoo.com at 4/21/2006 2:49:54 AM
Hi, I am building an aspx handler application which works fine. The problem arises when I try to attach to aspnet_wp. Sometimes (rarely) after clicking "OK" on attach to process the window takes a while to close (delay) and the breakpoints in the application are hit. Mostly though the "atta...more >>

is it possible inputting characters from keyboard by codes.
Posted by yasin at 4/21/2006 12:01:20 AM
is it possible inputting characters from keyboard by codes.or can we use assemly interrupts in asp.net to press keyboard buttons by code. ...more >>

AJAX and Framework 1.1
Posted by Sara T. at 4/21/2006 12:00:00 AM
I know that .NET Framework 2.0 has already come with AJAX, but if I am still using ASP.NET 1.1, which component of AJAX is so powerful? Or does Microsoft provide us any component of ajax to be downloaded? ...more >>

Short Date Format Bug!!!
Posted by ABC at 4/21/2006 12:00:00 AM
I am sure I modified the Regional and Language Option's Customize Short Date Format. When I run my ASP.NET applications, No one function and properties can return the customize short date format. I only need to obtain the short date format string (ONLY the pattern string "yyyy/MM/dd") to d...more >>

Membership credential verification failed With ActiveDirectoryMembershipProvider
Posted by moi at 4/21/2006 12:00:00 AM
Hello, I try to make a login.aspx page to login an Active directory's user and = i have a 1315 Web event Error in Windows server 2003 application's log = with this error : 4006 Membership credentiel verification failed. Could you help me ? here's my web.config : <connectionStrings> <...more >>

Advice on how to create deployment package
Posted by Terry Holland at 4/21/2006 12:00:00 AM
I have just created my first asp.net application and I am ready to deploy. The solution consists of the following: A single asp.net assembly to be deployed to web server A number of vb.net assemblies to be deployed to application server. Some of these assemblies will be shared by future applica...more >>

Run time error
Posted by Phinney at 4/21/2006 12:00:00 AM
Hi; I keep getting the following; There is no build provider registered for the extension .asax. You can register one in the <Compilation> <buildProvider> section in machine.config or web.config.... How do I do this? I'm trying to make a global.asax file and a web.config file to go with .aspx ...more >>


DevelopmentNow Blog