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

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

Can URL rewriting be used to make tertiary domain?
Posted by Showjumper at 1/7/2005 11:22:48 PM
Can one use url rewriting to make a url such as http://somesite.com/support/default.aspx look like support.somesite.com? ...more >>

MySql's equivalence to MsSql's 'TOP' command/function/clause
Posted by Kenneth P at 1/7/2005 11:17:05 PM
Hi, I'm trying to do some Custom Paging technique with the datagrid object and with the select command in Sql, thus forcing the server to only select those rows from the database that should be rendered in the datagrid object. This works fine with the code I have in MsSql2k but now I'm tr...more >>

Using a webform from a class file
Posted by Raymond Du at 1/7/2005 11:11:21 PM
Hi, I don't know if this is possible, I have a webform named genRept.aspx that has a datagrid in it. From a VB class file, I would like to access the html that datagrid in genRept.aspx renders. Here is my code snippets in VB class: Dim getRept1 as new genRept Dim strHTML as string strHTM...more >>

How do i lunch a power point presentation through my asp.net app?
Posted by Bredal Jensen at 1/7/2005 10:05:59 PM
Hello, Ar some point in my web pages , i need to present a power point presentation. Any ideas about the various way of doing this are welcome. Many thanks in advance JB ...more >>

Hide Links Depending on Login
Posted by Frank Bishop at 1/7/2005 9:48:30 PM
I'm using forms authentication with a database. I have an app that lets users run online reports. Right now, depending on their login in the DB, they get redirected to the pages that apply to them. I've noticed that nothing stops them from browsing out to another users page once they log in. ...more >>

Secure Socket Layer??
Posted by Charles A. Lackman at 1/7/2005 7:08:53 PM
Hello, I have a web site that has a single page secured using SSL. This page also has Flash Macromedia header on it, Does this cause a conflict? When you visit the site it says, "This page contains both secure and nonsecure items. Do you wnat to display the nonsecure items?" If you clic...more >>

Event not firing from dynamically added linkbutton
Posted by JoakimR at 1/7/2005 7:02:13 PM
Hello, I have a problem with events not firing. I've created a web user control which renders a calendar using a table control. In two cells I'm adding LinkButtons for "prev/next month". However, the events from these are not fired. In the PageLoad event I check if it's a PostBack. If it isn'...more >>

Global.asax : BeginRequest Event
Posted by Pietro at 1/7/2005 6:37:27 PM
Hello, I'd like to know if the BeginRequest Event in global.asax can be raised when i request a image or another file not an aspx page, if it can, how i do it? Thanks Pietro...more >>



Duplicate fieldnames in Datareader
Posted by Beren at 1/7/2005 6:05:17 PM
Hello, I have an sproc to query a couple of tables, that have the same fieldnames, for example DateCreated. ------------------------------------- Select a.* , b.* From tablea a Join table b On b.keyfield = a.keyfield ------------------------------------- Now table A and B both have a f...more >>

Redirecting to the Browser Default Page
Posted by Kenny M. at 1/7/2005 5:57:03 PM
In my Sign Out method I want the user to be redirected to his Browser Default Page, Is It possible??? -- Kenny M....more >>

how to share user controls across apps
Posted by dx at 1/7/2005 5:39:47 PM
I have 3 vb.net web applications. I would like all 3 to have access to a library of user controls. server controls wouldn't cause a problem but these are user controls (ascx.) From each solution I reference the user control library project and create a virtual directory under each applicatoi...more >>

how to set width of datalist item
Posted by TomislaW at 1/7/2005 5:23:45 PM
is it possible to set width of ItemTemplate i tried to set like this: <ItemStyle Width='<% SomeProperty %>'></ItemStyle> i get error: '<% SomeProperty %>' can not be parsed as a unit as there are no numeric values in it. Examples of valid unit strings are '1px' and '.5in'. ...more >>

how to display from dynamic generate bitmap to object
Posted by pei_world at 1/7/2005 4:06:24 PM
please help I have a function to generate bitmap object, however I don't want to save it to server. I want to display on the page directly. how to do it? this image is a verify image, so that for every user they will have different image. to save them in server is a waste of time and cup power...more >>

Parse ASCX Controls into HTML from Code?
Posted by Mike Kline at 1/7/2005 3:41:18 PM
Hi There! Is it possible to parse (execute) the User Controls (ASCX) from VB.NET code in ASP.NET? For example, is there any objects in ASP.NET that allow me to do something like... strHTML = <<Object>>.Parse ("MyUserControl.ascx") and get the output HTML string into strHTML variab...more >>

Optional....
Posted by Doug Zody at 1/7/2005 3:38:52 PM
How to make function argument as optional in Vb.Net? I have a function signature as shown below. I am using .Net Framework 1.1. Public Shared Function Foo(ByVal strCustNo As String, ByRef strActNo As String) As String End Function How to make the above function parameter as optional. Ex...more >>

Add/Remove permissions to folders programmatically
Posted by Codex Twin at 1/7/2005 3:11:11 PM
Hello folks Is it possible to add/remove Read Permissions (and any other NTFS permissions) to a folder programmatically via an ASP.NET page? Thanks. ...more >>

Excel & ASP.NET
Posted by Shaker at 1/7/2005 3:01:01 PM
Hi, Is there a way to access an excel sheet over the ASP page, While making the execl resulted data to be filterd based on selected parameters from perviouse web page. Also the resulted excel sheet will display chart. based on resulted data. I know how to do excel on local machine. but ...more >>

output data question
Posted by pei_world at 1/7/2005 2:59:50 PM
how can I write out data whereever I want it, like asp and php? otherwise, asp.net is really not convenience. ...more >>

CacheDependency to Oracle table
Posted by Diffident at 1/7/2005 2:57:02 PM
Howdy, How can I set the CacheDependency to an Oracle table? I have come across SqlDependency class for using the CacheDependency to an SQL server table but not Oracle. Any pointers? Thanks!!!...more >>

Windows users
Posted by Jim at 1/7/2005 2:53:09 PM
Hi I would like to get all the windows users defined in the current domain. What is the code for this? ch Jim ...more >>

aspnet_wp.exe in a deadlocked state
Posted by Antonio Concepcion at 1/7/2005 2:42:42 PM
Hi! We have an ASP.NET web site experiencing errors saying that aspnet_wp.exe got into a deadlock state and was recycled. Specifically the Client browser gets the following message: ***************************** Server Application Unavailable The web application you are attempting to acces...more >>

[urgent] how to output image in place
Posted by pei_world at 1/7/2005 2:41:08 PM
in asp or php, we can use inner output command to print out text or other thing inside out web page. I want to know how to do this in asp.net. I know user control with placesholder can do, but if I want to generate a image and output to client directly, then I cann't set the imageurl. I want ...more >>

Session Prob
Posted by Vishal at 1/7/2005 2:11:37 PM
Hello, Lets say I have a domain name like this: bla.com and another one like secure.bla.com. Both points to the same server. When I store a session in bla.com and go then to secure.bla.com then the session is not anymore available. Can somebody tell me what I can do to make it availab...more >>

Event Log Entry - excess info
Posted by MattC at 1/7/2005 2:11:24 PM
I am able to successfully make entries into the Event Log for my Web App but all the entries have this before my text: The description for Event ID ( 0 ) in Source ( Conquest ) cannot be found. The local computer may not have the necessary registry information or message DLL files to displa...more >>

New to .NET, can I have one drop down box control the data of another drop down box using a database?
Posted by SirPoonga at 1/7/2005 1:59:43 PM
Lets say I have a couple of tables in a database containg car make, type, and model. I want to create a drop down box that is populated by the makes. Based on that selection run a query to get the types of vehicles that make creates. Then baed off that the models that fit that make and type. ...more >>

How to link to text files in datagrid?
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/7/2005 1:56:47 PM
hi, I have a datagrid in my asp.net application, I am using vb.net language. I want to have my last column as a link column, link to text file. The link path is "c:\Temp\" & F_File_Name, which is the 2nd column. For example, the data grid should like this: Batch # File Name File S...more >>

DataSet updates
Posted by Random at 1/7/2005 1:54:46 PM
What I want to do is to carry a DataSet through a multi-page process. Each page will have an interface for updating and/or inserting records in individual DataTables. At the end of the process, I will submit the entire DataSet (through DataAdapters) back to the database. Filling the DataS...more >>

Problem with DTS package
Posted by Page Horton at 1/7/2005 1:48:45 PM
I have a ASP.NET (VB) web application running. The DTS package is suppose to generates a flat file to a file path (aka: \\myStation\outputFiles\). When it runs it generates the following error on one of the steps (the others run successfully): Step 'Copy Data from Results to H:\Data\outfilena...more >>

DataList bubble event with Buttons
Posted by Neil at 1/7/2005 1:46:25 PM
I can't get the event handling to work on Button or ImageButton inside the header of a DataList. If I change Button to LinkButton it works fine. Has anyone had this problem? I'm using c# code behind. Here are the important parts of the code: <%@ Page language="c#" Codebehind="WebForm1.aspx...more >>

Sccript debugging in Visual Studio
Posted by gemel at 1/7/2005 1:32:16 PM
I am trying to debug the client script of a CustomValidator, but VS seems to ignore it completely. This is waht I do: Enable script debugging in Internet Explorer Launch the page from Internet Explorer In VS set a breakpoint in the script Attach the IExplore debug process Operate on the page...more >>

web.config inheritance problem
Posted by gemel at 1/7/2005 1:20:23 PM
In the web.config folder at the root of my VS project I have the following section: <customErrors mode="On"> <error statusCode="404" redirect "404.aspx" /> </customErrors mode> When access to a non-existent page is made from any aspx file in the root then this 404.aspx page is execited as...more >>

Server-Side Events in ASP.NET 1.1
Posted by Mohammed AlQuraishi at 1/7/2005 1:06:37 PM
Hi, I'm having trouble with synchronizing the order of server-side events, and I was hoping someone here can shed some light on what's happening. In a simplified version, I click on a button which changes the contents of a textbox, something like: private void btn_Click(object sender, Sy...more >>

deploying a web application/dbase on a server
Posted by Paul at 1/7/2005 1:03:05 PM
I am trying to setup an installation cd that one can just run from a server to install a .NET web application onto that server. The program is using crystal reports so these dlls need to be placed on the server as well. It also is using webhelp (created using robohelp) so this should be incl...more >>

Viewstate and dynamic control
Posted by Mick at 1/7/2005 1:01:02 PM
Hi, Dynamically adding Checkbox and GroupRadioButton (extended control http://www.codeproject.com/aspnet/groupradiobuttons.asp) to placeholder. In fact, displaying questions and answers. When my question as only one good answer, I display RadioButton. In the other hand, checkbox. Testing m...more >>

TextBox Style Like Label?
Posted by localhost at 1/7/2005 12:53:32 PM
How can I style a TextBox so it appears like a label when rendered? Thanks....more >>

Global.asax II
Posted by Fabio Gouw at 1/7/2005 12:53:03 PM
Hello, talking about Global.asax events, does anyone know if there's an event that fires just before the code of a page is executed, and with the Session available? I've tried ApplicationRequest, but the sessions weren't available at this time. I'd like to validade if a user can access a...more >>

Dont allow datagrid paging if changes are detected
Posted by Luis Esteban Valencia at 1/7/2005 12:50:15 PM
I have a data grid control with a templated checkbox column residing in a asp.net user control. The checkbox boolean state determines if the item is later added or removed from another database table. The checkbox column is not part of the db schema, but is added at run time and initialized ...more >>

Have anyone bought some business web server controls?
Posted by creative at 1/7/2005 12:07:05 PM

1000 pts datagrid to excel with columns readonly
Posted by Luis Esteban Valencia at 1/7/2005 11:58:03 AM
Here is my aspx code: ============= <%@ Page language="c#" Codebehind="WebForm3.aspx.cs" AutoEventWireup="false" Inherits="PDM.excel.WebForm3" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>WebForm3</title> <meta content="Micr...more >>

Dynamically sending files to a user
Posted by BoltonWolf at 1/7/2005 11:38:11 AM
Hi, I have an ASP.Net app which displays data from a spreedsheet. This spread sheet is located outside of the virtual directories. I want to be able to give the user the option to download the spreadsheet, without having to move it into the virtual directory. Does anyone know how I can a...more >>

Converting html string to object
Posted by Wouter vanEck at 1/7/2005 11:18:14 AM
Hi, I need to find a way to read a html type string from a database and add it to a placeholder control on the page and then I need to be able to populate the fields that were in that html string at run time. The html string may look like this "<table><tr><td>First Name</td><td><input name=...more >>

Display XML Data in ASPX
Posted by Michelle at 1/7/2005 10:54:29 AM
Hi, I want to display some pretty basic xml data in a .NET user control that I would like to build for my site. I am getting the XML from a URL that has been provided to me (i.e. http://domain.com/somelink.asp). If I type the URL into my browser, the xml doc below is displayed. How ca...more >>

VB.Net Copy Project fails because copy directory is marked executable.
Posted by John Blair at 1/7/2005 10:54:25 AM
Hi, Can anyone tell me how to make the Copy Project option work from within Vb.net - it fails on my PC with an error saying the new copy directory is marked as executable and i am not allowed to copy files into that directory on my PC! thanks. ...more >>

cookie troubles
Posted by Owen at 1/7/2005 10:44:34 AM
I have a web app that is a mixture of ASP and ASP.NET pages. Largely the only data passed between them is via the querystring, or by reading from a database. However there is a requirement for one part to communicate via a cookie. (Please dont ask me to go into why, I don't have time). In m...more >>

aspx security?
Posted by Sam at 1/7/2005 10:39:52 AM
I have successfully created authentication via web.config however I discovered some security issues as follows: 1. ASPX Security I have web application via asp.net and it is consist of following sections: i. Administration ii. Attendance iii. Reporting Each section has it own autho...more >>

datetime diff
Posted by SenthilVel at 1/7/2005 10:38:19 AM
HI how to get the differences between 2 given dates?? supposse if i ahve 2 dates , DATEa, and current datetime. how can i find if the DATEa is less then 3 hrs from the current datetime ??? ,,,, Senthil ...more >>

Static Business Object work from the UI ASPX code?
Posted by Richard at 1/7/2005 10:23:02 AM
Hi, I write mostly winform app and often create a Business Class Library for my bus logic. When doing this I often set the method to static so I don't need to instantiate the class. Can I do the same with ASP.Net or will all user end up getting the same copy for the business object? T...more >>

tcp/ip
Posted by Mike at 1/7/2005 10:17:02 AM
I need to connect to a server via my web page using an IP address and Port number, this is not a web server, it is a file share server. Can anyone point me to an example on how this works? ...more >>

TTLB For aspx page
Posted by Tim Payne at 1/7/2005 9:56:42 AM
Would I be correct in thinking that the TTLB metric returned by ACT when stress testing an aspx page is the total time for the entire execution and delivery of the page (including all the CLR processing etc)? Regards, Tim. ...more >>

.NET Passport question
Posted by Exception at 1/7/2005 9:50:48 AM
I'm preparing to take 70-315 soon. The skills assessment test on Microsoft's site (by MeasureUp) contains a question about .NET passport that I always fail to answer. I asked this question in the more appropriate MCAD newsgroup, but got no reply. I would really like to know the answer to th...more >>

rendering Button inside Render() event, makes it loose its click event handler association
Posted by sonic at 1/7/2005 9:50:20 AM
I generate a button link control in following Manner. Button b = new Button(); b.Click = MyEventHandler(...); If i add this button to current control with: this.Controls.Add( b ); it will render, and its clicked event will be triggered properly. Unfortunately I do not have alot of control ...more >>

Good ASP.NET Hosts
Posted by Brian at 1/7/2005 9:44:50 AM
Hi. I am looking for a good, low cost website host that supports ASPX pages. My current host only supports ASP. Suggestions? Thanks, Brian ...more >>

Button outside datagrid
Posted by sri_san NO[at]SPAM mailcity.com at 1/7/2005 9:36:53 AM
Hello group, I have a datagrid(dg) and a couple of buttons outside the dg( 'New'& 'Done'). Have a 'save' button inside the dg that responds to itemcommand event. On a 'New' button click, the footer(textbox) is displayed in the dg which acts like a new row addition. the 'save' button correspo...more >>

Dropdownlist problem
Posted by JJ at 1/7/2005 9:21:03 AM
Hi, I have a dropdownlist box that has a datasource set to a function call. the function call returns an arraylist. I moved the dropdown from a datagrid template column that I had it in and it worked with no problem. Now just being on the page it doesn't call the function call in datasour...more >>

Post Data (Urgent)
Posted by Vishal at 1/7/2005 8:16:09 AM
Hello, I am posting some credit card info to the payment server via a similar code. My code is written in VB.NET but uses the same approach. At the end however I do a response.write(streamReader.ReadToEnd()); ---------------------------------- string stringPost = Request.Form.ToStr...more >>

asp.net 2.0 - build provider for aspx?
Posted by Christopher Baldwin at 1/7/2005 7:40:47 AM
Hello, Using ASP.NET v2.0.40607.42, I'm attempting to create a new file extension that should be handled exactly like "aspx" pages. For example, I just want to rename an aspx page from "test.aspx" to "test.extx", where .extx extensions are handled in exactly the same way as aspx pages. In...more >>

exposing NameValueCollection Property through ASPX page ? (string representation of its values)
Posted by sonic at 1/7/2005 7:33:18 AM
Hi, Is there a signature that would allow me to set values for such properties as NameValueCollection or StringList within ASPX xml definition ? example: myControl has a Values property of type NameValueCollection. class myControl { public NameValueCollection Values {...} } could i ...more >>

Enter Button Takes You to HomePage
Posted by MrMike at 1/7/2005 6:49:01 AM
On my webforms, if the user hits the Enter button they are directed back to the home page. Why does this happen? How can I prevent the user from being redirected when they hit the Enter button? Thanks....more >>

SqlConnection Object Keeping Reappearing
Posted by MrMike at 1/7/2005 5:37:05 AM
I have a web.config file containing the SQLConnection String to a SQL Database. Before I implemented this SQLConnection String into web.config, I had individual SQLConnection objects in each webform's designer tray. I am now going back through the webforms and replacing the individual SQLC...more >>

Panel not disabling ??
Posted by louise raisbeck at 1/7/2005 2:55:01 AM
Hi there, I have put some web controls, textboxes and drop down lists, in a Panel, so that under a certain condition i can disable all fields for input. I read in Help that disabling a Panel control (enabled=false) will disable all child controls within it - just what i want. but it just doesn...more >>

November ctp crashing
Posted by John at 1/7/2005 2:12:16 AM
Hi Just uninstalled vs 2005 beta1 and installed nov ctp instead. The nov ctp vs 2005 splash screen comes and load the stuff but as soon as 'Find & Replace' window starts to appear it crashes and offers to send the report. What am I doing wrong and how can I fix it? Thanks Regards ...more >>

I need help with datagrid
Posted by student at 1/7/2005 1:20:13 AM
Hi all, I'm having trouble with my datagrid, it is suppose to display a row from a table called "Calls" based on what is selected in the dropdownlist which displays the first and last name from another table called "Contacts". The problem is only the dropdownlist is showing in the browser and not...more >>

WebRequest Firewall issue
Posted by Anders at 1/7/2005 1:05:24 AM
Hi, we have recently installed Kerio Server Firewall on our server. This has possed a problem for one of our websites which dynamicly generates some of its content by streaming it from other websites. Giving aspnet_wp full access in Kerio doesnt help. The website only works when we disable ...more >>


DevelopmentNow Blog