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 > september 2005 > threads for friday september 30

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

ASP.NET + WindowsServices
Posted by Andy at 9/30/2005 10:27:17 PM
Hello, I would like to access to Windows Service via ASP.NET. I have written very simple web application which starts and stops windows service. Here is my StarButton event: private void StartButton_Click(object sender, System.EventArgs e) { ServiceController sc = new ServiceController(...more >>


Problem retrieving Active Directory users
Posted by tangus via DotNetMonster.com at 9/30/2005 9:14:45 PM
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://domain") Dim mySearcher As New DirectorySearcher(enTry) ...more >>

When Can I Access the New Value of the SelectedIndex property?
Posted by Nathan Sokalski at 9/30/2005 8:19:26 PM
I have a problem that is driving me crazy. I have a User Control = composed of three DropDownLists that will be used to select a date. I = have everything working except for one thing. When I select a new value = from one of the DropDownLists, the code still returns the old value. You = will not...more >>

Having problems with HttPost and HttpGet
Posted by Daniel Bello Urizarri at 9/30/2005 6:40:55 PM
Hello: On the new Asp.net 2.0 the <protocols> section does not work. But without it, my application, which uses such protocols, does not work either How can I enable those protocols on aspnet 2.0 iis 6.0? <protocols> <add name="HttpPost"/> <add name="HttpGet"/> <remove name...more >>

Custom Error Handling Problem /Question
Posted by Mr Newbie at 9/30/2005 4:19:27 PM
I'm testing error handling configurations and having some trouble. I created a WebForm called. ErrDefault.aspx and I am trying to use the Page error attribute to force the redirection to a custom page, but I only get and unhandled exception page and it does not direct me to my specific page. ...more >>

Two Questions
Posted by john wright at 9/30/2005 4:12:00 PM
1. I have three Upload controls on my form. When someone clicks a checkbox, the upload control becomes visible and the user can click the upload button and the file uploads great. However, if someone clicks on the second or thrid checkbox to upload a file and makes these corresponding con...more >>

Workflow products recommend require.
Posted by ABC at 9/30/2005 4:10:58 PM
My client request a workflow solution. They want the solution provide as: 1. Has a workflow diagram interface presents their roles, work and tasks. 2. Support .NET technologies for developers to enhance. 3. Has a workflow design to implement or modify the workflow sheets 4. Workflow Backend e...more >>

UrlWriting
Posted by fabrice at 9/30/2005 3:05:46 PM
Hello, I'm looking for a tutorial to realise URL Rewriting, using vb.net. If someone know how to do url-rewrintg under asp.net 1.1 and vb.net , I will be very happy thanks a lot fabrice ...more >>



how is this normally done?
Posted by ari at 9/30/2005 3:01:01 PM
hey all, i have a web form that i want to authenticat with Active Directory. i can do that part but how do you authorize the user to different roles in my application. do i have it first authenticate to AD then goto to a database to retrieve authorization rules? thanks, ari...more >>

How To? Bind MS Access to DropDownList?
Posted by troy.forster NO[at]SPAM gmail.com at 9/30/2005 2:48:40 PM
I am sure this must be about the simplest thing to do. I can whip something off in 10 different languages and environments with no problem. But VisualStudio 2003 and ASP.NET is sooooo frustrating!!! My example is simple. I have an Access table (mytable) with two fields of type text (userid ...more >>

not sure if i did this correctly...
Posted by rodchar at 9/30/2005 2:37:03 PM
hey all, i have a datagrid template column that has a checkbox in it's header item and in its item. how do i access the header checkbox in my code behind? thanks, rodchar...more >>

Why must <configSections> be 1st element of <configuration> ?
Posted by Joseph Geretz at 9/30/2005 2:16:54 PM
Parser Error Message: Only one <configSections> element allowed. It must be the first child element of the root <configuration> element. OK, fine, easy enough to fix, I just need to copy and paste this block to where .NET wants it to be. But I can't help but think, why??? Doesn't this insi...more >>

how can I export ALL datagrid rows to excel?
Posted by The Colonel at 9/30/2005 2:14:50 PM
I'm only getting current page. I've tried playing with the PageSize and AllowPaging = False before exporting, but no luck. Here's my code: <snip> Public Sub btnExport_OnClick(ByVal sender As Object, ByVal e As EventArgs) Response.ContentType = "application/vnd.ms-excel"...more >>

DetailsView Data Binding
Posted by Andrew Robinson at 9/30/2005 1:44:03 PM
Is there any way to accomplish two way data binding in a Details View with a DataSet or DataTable as the DataSource. All I want is to get an updated DataSet or DataTable back from the DetailsView and then handle my updating manually. -Andrew ...more >>

cannot open .aspx files locally anymore
Posted by SteveC at 9/30/2005 1:30:10 PM
Help... for some strange reason I cannot open .aspx files locally anymore, instead of opening in IE6 I am now promoted to download or open the file and opening the file loads visual studio with the file... Help... Steve ...more >>

Application.Lock() from whitin custom class
Posted by P. Prosper at 9/30/2005 1:12:07 PM
I need some help on this issue. I am trying to lock the application object from within a vb class but I'll get the following error: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 84: Dim i As Integer Line...more >>

Runtime SelectedIndexChanged!
Posted by Adam Knight at 9/30/2005 1:07:56 PM
Hi all, I have a DropDownList that i want to attach a OnSelectedIndexChange event Dynamically. So far my attempts have failed. 'determine if report being generated is a 'Question Statistics' report If(ddlReportTypes.SelectedValue = "q") Then 'specify OnSelectedIndexChanged method Sub...more >>

Datagrid not refreshing with new data
Posted by pv_kannan NO[at]SPAM yahoo.com at 9/30/2005 12:58:55 PM
One of our dev team members is having a strange problem with a datagrid... We are not seeing a datagrid's data getting refreshed after a new row is entered in a popup window inspite of resetting the datasource and rebinding it. We have a datagrid (enabled viewstate) that binds to a collecti...more >>

Row Index?
Posted by Adam Knight at 9/30/2005 12:44:45 PM
Hi all, i could be going blind..but i don't see a row index property on a data row in the class browser. I am trying to accomplish the following? 'iterate through dataset For Each rw As DataRow In Ds.Tables(0).Rows ddlQuestions.Items.Add(New ListItem( ?RowIndex?, rw(0)) Next ...more >>

Master Page with CSS link and Javascript Url problem
Posted by homawong NO[at]SPAM gmail.com at 9/30/2005 12:21:13 PM
In the header section of the master page I have <script src="JavaScript/MyScript.js"></script> <link href="CSS/MyCSS.css" type="text/css" rel="stylesheet" /> Since both of them are relative url, when the client request for a page in a different directory other then the one master page loca...more >>

How to pass SqlDataReader row
Posted by msnews at 9/30/2005 12:17:47 PM
Hi All, I have the following code ------------------------------------------------ Business.Prod prod = new Business.Prod(); SqlDataReader Product = prod.GetProducts(); while (prod.Read()) { Response.Write(BuildProduct("PASS THE ROW"); } private string BuildProd...more >>

access server side files - outside of virual directory
Posted by Craig at 9/30/2005 12:13:02 PM
How can I access files on the server that are outside of the virtual directory of the web application. More Information: web application located here: C:\inetpub\wwwroot\FileAccessor File located here: C:\MyFiles ...more >>

validating a webpage before first postback
Posted by Chris at 9/30/2005 12:06:02 PM
Hi, I am creating a webform in ASP.NET using C#. I have a drop down list control and 5 textbox controls. Each textbox control has a required field validator assigned to it. I have a save button on the form. When I first load the form and immediately hit the save button the field val...more >>

ASP.NET maintain state with client side JavaScript...?
Posted by Matt Jensen at 9/30/2005 11:49:01 AM
Howdy all Hopefully I can explain my problem straightforwardly. In it's simplest explanation, what I want to do is have a hyperlink that, when clicked, executes some client side JavaScript and then saves every form element value and reloads the page (with the 'save' being much the same as w...more >>

Problem With Froms Authentication. HELP
Posted by JMUApache at 9/30/2005 11:44:41 AM
Hi: I have got a problem with FromsAuthentication for many days. I use "Forms" Authentication in my ASP.NET Web Froms, and I find that I can't singout.... Some Code Here: //In my Logon.aspx, I got the username and password //then I check these in my database //logon.aspx protec...more >>

Senior Applications Developer Springfield, MA
Posted by Ronella at 9/30/2005 11:42:21 AM
Senior Applications Developer Save this job | Email this job | Printer-Friendly Version Location: US-MA-Springfield Base Pay: $60,000.00 - $80,000.00/Year Employee Type: Full-Time Employee Industry: Internet - ECommerce Manages Others: No Job Type: Information Technology Req'd...more >>

Sr. Applications Developer position in Springfield Mass--SPONSORSHIP AVAILABLE
Posted by Ronella at 9/30/2005 11:40:03 AM
Senior Applications Developer Save this job | Email this job | Printer-Friendly Version Location: US-MA-Springfield Base Pay: $60,000.00 - $80,000.00/Year Employee Type: Full-Time Employee Industry: Internet - ECommerce Manages Others: No Job Type: Information Technology Req'd...more >>

Convert an object to a control, or what?
Posted by Magnus Blomberg at 9/30/2005 11:24:21 AM
Hello! An common issue for me is that I have a web control, double-click it to reach the event in the code-behind. Then I for example get the code: protected void CheckBox1_CheckedChanged(Object sender , EventArgs e) This is good, but if I then want to use the sender as a control, for insta...more >>

Newbe question about location of assemblies.
Posted by Daniel Bello Urizarri at 9/30/2005 10:54:58 AM
Hello: Im creating a web site that uses a class with some [DllImport] mehods, when the web application starts, it can not find the external dll. Where should it be placed? ...more >>

Too many arguments error
Posted by Roy at 9/30/2005 10:53:22 AM
Hey all, Perhaps one of you can see what I'm doing wrong. The rowselectorcolumn is an excellent little control that adds in checkboxes to a datagrid. That's just an FYI, it's not my problem. If I click "btnRelease" and only have a single checkbox checked, all is well and the records update. If ...more >>

Forms Authentication Cookie from two applications
Posted by Harold Crump at 9/30/2005 10:14:38 AM
Greetings, How does ASP.NET Forms Authentication distinguish between tickets/cookies issued by more than one application in the same domain? The domain name on the cookie will be the same in this case. Let's assume the user name is the same as well. What happens if the user logs on succes...more >>

How to get the previous page's url address under ASP.NET C# code?
Posted by ABC at 9/30/2005 10:00:37 AM
How to get the previous page's url address under ASP.NET C# code? ...more >>

Delete confirmation in GridView
Posted by mpenev at 9/30/2005 9:47:20 AM
Hi, Is there a way to make the GridView ask for a confirmation (something similar to javascript: window.confirm ) before deleting a row? Thanks ...more >>

Stupid question about fonts.
Posted by UJ at 9/30/2005 9:23:31 AM
What's the easiest way (without setting up a style sheet) to set the font for an area of text. I need to be able to specify the exact font and font size - not the 1-7 numbers IE uses. I want to be able to set some text to be Font=Arial, Size=12pt. TIA - Jeffrey. ...more >>

Change Title
Posted by Chris at 9/30/2005 8:55:21 AM
I have a very simple vb.net aspx page. How do I change the title of the page code behind? Thanks. Chris...more >>

Server.URLEncode and potentially dangerous string
Posted by veenakj NO[at]SPAM gmail.com at 9/30/2005 8:42:28 AM
Hi Code snippet -------------- strErrMsg = "Could not find a part of the path \"C:\\Temp\\data\\Test.xml\"." } Server.Transfer("Message.aspx?errormsg=" + Server.UrlEncode(lsErrMsg)); --------------- I'm getting "potentially dangerous Request.Form value was detected from the client " e...more >>

IIS getting directory paths incorrect
Posted by foldface NO[at]SPAM yahoo.co.uk at 9/30/2005 8:20:17 AM
Hi Anyone ever seen a case where IIS (I assume) gets the paths wrong for an application, e.g. - Page 1 holds an IFrame which in turn holds folder1/page2 - folder1/Page2 wants to load ~/folder2/b/c.ascx in the aspx file but according to the IIS log its trying to load /folder1/folder2/b/c.asc...more >>

change to bin directory without timeout?
Posted by foldface NO[at]SPAM yahoo.co.uk at 9/30/2005 8:14:35 AM
Hi Assuming your developing asp.net applications using visual studio, normal procedure: - code - run - find bug in .cs file - stop, change, compile - run again Is there anyway you could compile your file when not in debug mode, copy it manuualy to the bin directory and have asp.net igno...more >>

WebServices In Asp.net
Posted by anujsharrma NO[at]SPAM gmail.com at 9/30/2005 6:51:27 AM
Hi, All i m developing a system, but in this i can't use web-services, coz i read some where, that web-services are store data / or they can provide data in xml format. if i want to store the data, can i read that perticular xml file & then i store all information in my sql-server database. o...more >>

Email and including a stylesheet
Posted by WebBuilder451 at 9/30/2005 6:09:01 AM
i'm sending email via an aspx page. The format is html. Is there a way to include a link to a stylesheet? I notice that the Dim mail As New MailMessage mail.Body = msg mail.BodyFormat = MailFormat.Html will create the correct html headers but i can't figure out how to include a link to a...more >>

Access Data in UserControl
Posted by John Howard at 9/30/2005 3:35:04 AM
I am trying to access the SelectedIndex property of DropDownList but the dropDownList is in a UserControl. I'm sure this is very simple but I can't work it out :o( please help. John...more >>

webdav 400 bad request
Posted by Gaz at 9/30/2005 3:08:03 AM
Hi I am trying to send a new mail via webdav using the c# example on msdn, when the following line executes: PUTResponse = (System.Net.HttpWebResponse)PUTRequest.GetResponse(); I get a "The remote server returned an error: (400) Bad Request." error. Does anyone know what this could be?...more >>

determine ASP.NET worker process user context programatically?
Posted by Danny Miller at 9/30/2005 2:02:03 AM
Hi there, I've got a web app that uses impersonation and makes calls to a SQL Server backend. I'd like to be able to automate the setting of database security for the web app upon deployment. What I'd like to do during installation is the following: - run the database creation script - ...more >>

Page-load twice
Posted by MaryA at 9/30/2005 1:55:12 AM
I have an aspx page that loads twice inspite of using the IsPostBack i removed all controls from the page and still the page_load event is called twice I appriciate any help coz i have lost several hours on this NB even i removed all events called on page load but still same problem Regar...more >>

URL Decode HTML encoded in JavaScript
Posted by Ben Amada at 9/30/2005 1:09:56 AM
Hello. I have some HTML that I would like to pass to a popup webform via a querystring. I've run into some problems which I believe is because I need to encode the HTML. The popup webform is being created via JavaScript so I need to use JavaScript to encode the HTML. The problem is that I'...more >>


DevelopmentNow Blog