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 > october 2006 > threads for friday october 6

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

newbie question: connection string handling
Posted by luke at 10/6/2006 11:19:18 PM
Hi I wonder are there any "professional ways" to handle the connection string if you like to deploy to various servers from one application, apart from hard code in the application. e.g. read connection from txt, ini file, or from registry. if we use hard code in the application, then main...more >>


ASP 1.1 - StandardOutput from console application
Posted by Harald Fichtner at 10/6/2006 10:06:20 PM
Hello, I tried the following code with ASP 1.1 to get the StandardOutput, but it didn't work. Who knows what's wrong? Try Dim file As String = Server.MapPath("test.exe") Dim myProcess As New Process myProcess.StartInfo.FileName = file myProcess.StartInfo.CreateNoWindow =...more >>

one to many relationships
Posted by rodchar at 10/6/2006 7:28:01 PM
hey all, i have a dataset that has a customers tableadapter and an orders tableadapter. i have a webform that has a dropdownlist bound to the customers and and formview bound to the orders. when i click Add the button for the formview on a respective customer the insert template shows a wr...more >>

GridView Image Button
Posted by shapper at 10/6/2006 6:49:48 PM
Hello, I created an Hyperlink field in a GridView but I can't find and ImageUrl property. I know normal Asp:Hyperlink control can also be used with an Image. Is this possible in GridView? Then I tried to use a button field but I can't see a way to build the NavigateUrl as I need and as you...more >>

Check if query string parameter exists
Posted by shapper at 10/6/2006 6:29:53 PM
Hello, How can I check if a parameter, for example "name", is available in a QueryString? I need to create a default value if the parameter is not available. Thanks, Miguel ...more >>

how to use microsoft application blocks ent lib june 2005
Posted by Mukesh at 10/6/2006 6:05:04 PM
Thx Sloanfor the solution. It is working properly under Full trust When i tried it under unMedium trust it was giving error Parser Error Message: Required permissions cannot be acquired. :::::::::: Source Error: [No relevant source lines] Source File: machine.config Line: 258 ::::...more >>

RSS Feed and Browsers
Posted by shapper at 10/6/2006 5:55:15 PM
Hello, I offer RSS feeds on my web site. How to make browsers, like Firefox, to recognize the RSS channels I offer? Thanks, Miguel ...more >>

peace...
Posted by al NO[at]SPAM google.com at 10/6/2006 5:25:03 PM
give peace a achance... ...more >>



Separate String
Posted by shapper at 10/6/2006 5:05:55 PM
Hello, I have a string as follows: MyString="Name1,Name2" I want to create 2 strings from it: String1 = "Name1" String2 = "Name2" So String1 gets the characters on the left of "," and String2 the characters on the right. How can I do this? Thanks, Miguel ...more >>

My Dropdownlist keeps getting repopulated
Posted by needin4mation NO[at]SPAM gmail.com at 10/6/2006 4:25:18 PM
I remember in 1.1 that I would put not to populate a given dropdownlist unless it was not Page.IsPostBack. But in 2.0 where I use the DAL and no codefile, I don't see where to effect this. Any help is appreciated. I want my dropdownlist to keep what the use selected when the page refreshes. ...more >>

RenderBeginTag() output not XHMTL compliant
Posted by MatsL NO[at]SPAM newsgroups.nospam at 10/6/2006 4:12:53 PM
Hi, This is seriously driving me crazy, could anyone explain to me why neither of these doesn't produce XHTML compliant output (it is being called in Render() btw): output.WriteLine("<img src=\"" + vars["{$baseUrl}"] + " />"); output.AddAttribute(HtmlTextWriterAttribute.Src, (string)var...more >>

Add jscript at the end (with ClientScript.RegisterClientScriptBlock) ?
Posted by Stan SR at 10/6/2006 3:56:58 PM
Hi, I need to place some javascript code at the end of my aspx page. How can I do that using the ClientScript.RegisterClientScriptBlock ? Thanks Stan ...more >>

DataGrid column Visible issue
Posted by GaryDean at 10/6/2006 3:38:16 PM
(one of our developers posted this and it got no answer so I'm giving it another try) I'm converting a DataGrid utility component that previously used the columns array to function as it has in the past without using the columns array. The reason for this is because it must process columns cr...more >>

Listview in ASPNET 2.0????
Posted by Merichel at 10/6/2006 3:36:45 PM
Hello everybody !! I need to migrate an application from Windows Forms to Web Forms. The problem is that in my windows application I have listviews and I would like to know If there is any control in ASPNET 2.0 that can make the same function. I use the listview to show files, like windows exp...more >>

Apply threading for filling gridview?
Posted by VMI at 10/6/2006 3:21:02 PM
I'm filling up a gridview and the underlying datatable has about 30,000 records, so it takes some time before I can see the page again with the records on the gridview. Is there any type of threading (or anything else) that I can use so that I can display some message (i.e. "Grid loading...")...more >>

changing rendered page just before it gets to the user
Posted by david2tm NO[at]SPAM gmail.com at 10/6/2006 3:13:54 PM
hello) i have some task to coplete, and cant find any way how to do it in my asp.net (2.0 c#) i do some work, rendering pages... in those pages, are url's presented, writen in some manner... let say * "~/somepage.aspx" * "^/somepage2.aspx" now, i want to change this "~" to a server ...more >>

c# GridView and FormView write error "An OleDbParameter with ParameterName '@ID' is not contained by this OleDbParameterCollection"
Posted by DC at 10/6/2006 2:41:22 PM
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this OleDbParameterCollection" whenI try to write a new record. Delete and Modify work fine its just the add record functio...more >>

Pop Up Box Question
Posted by Bob at 10/6/2006 2:28:49 PM
Hi, I am looking for a asp.net third party control or javascript that show a preview box with info like espn.com has. Anyone know of such a control? Thanks ...more >>

Pass NULL To Stored Procedure
Posted by rn5a NO[at]SPAM rediffmail.com at 10/6/2006 2:26:24 PM
How do I pass a NULL value to a field while inserting records in a SQL Server 2005 DB table using a stored procedure? I tried the following but it inserts an empty string & not a NULL value: ALTER PROCEDURE dbo.Purchase @UserID int, @Total decimal, @Address varchar(250) = NULL, ...more >>

User information DB
Posted by Tor Inge Rislaa at 10/6/2006 1:43:27 PM
In the Web Site Administration Tool you can use the Provider Configuration tab to configure how web site management data is stored. By default, user information is stored in a Microsoft SQL Server Express database in the Data folder of the Web site. Is it possible to store the data in an SQL ...more >>

Preprocessor directives in codebehind file
Posted by Theon Greyjoy at 10/6/2006 1:25:03 PM
Hi all, I have a code behind file which I would like to conditionally compile parts of. The code is in C#. here is what I want to achieve, in pseudo C++ style: -------------------------------- #define PRODUCTION 1 public partial class _MyPage : System.Web.UI.Page { protected void P...more >>

Render scrollbar in listbox by CSS
Posted by kurt sune at 10/6/2006 11:51:53 AM
How do I render the scrollbars by CSS in a listbox? I have understood that an asp listbox gets rendered as a select element. So I tried first by adding a style element: ..TA {scrollbar-3dlight-color:aqua; scrollbar-arrow-color:fuchsia; scrollbar-base-color:fuchsia; scrollbar-darkshad...more >>

Problem with vss and visual studio 2003
Posted by brianlanning at 10/6/2006 11:46:02 AM
We have a web application in 2003. The solution contains the project for the web application and five other projects for shared assemblies. We have two issues. The first is that we want to place the entire solution in some other directory like c:\work rather than wwwroot. We can use vss to d...more >>

Maintaining State on Master Page Without Session Variables
Posted by Sam at 10/6/2006 11:35:40 AM
I have an asp.net 2.0 app that uses a sitemap, Master Page, and has several content pages. While this feature has simplified the process of creating a data-driven site menu, it does seem to have some big restrictions. Namely, maintaining state on the Master Page across all content pages. I si...more >>

web user control
Posted by Kevin Attard at 10/6/2006 10:13:12 AM
Hi there, i'm using asp.net 2.0 and vs2005. I am trying to load a usercontrol dynamically when a button is pressed myUserControl ctl = (myUserControl)Page.LoadControl("myUserControl.ascx"); myUserControl is in the same project but the following error is being thrown The type or namespac...more >>

FormsAuthentication cookie refreshing
Posted by Dan at 10/6/2006 9:59:02 AM
Hi, I am trying to refresh the cookie to make sure the timeout is reset by simply calling a blank page on my site. I am doing this because I have an external site hosted in my web that isn't sharing the auth mechanism. I can test this easily by simply having a hidden iframe and use a javasc...more >>

Datalist HeaderTemplate repeating duplicates? - sort, break, grouping?
Posted by jobs at webdos at 10/6/2006 9:46:00 AM
I have data that looks like this prodid fileid date where prodid repeats I want report like this prodid - fileid date fileid date fileid date My Datalist is below, and ofcoure the header shows up as unbound. Anybody have an example of how I can do this with ...more >>

Cannot get AspNetActiveDirectoryMembershipProvider working !!!
Posted by Jayashree Krishna at 10/6/2006 9:40:03 AM
Hi All, I'm not able to get "AspNetActiveDirectoryMembershipProvider" working with Forms Authentication.The ASP.net configuration tool is throwing an exception when i try to creat a user.It works fine when i use SqlProvider. I'm not even sure if the cause is something to do with ADAM instance ...more >>

Build error
Posted by Diffident at 10/6/2006 9:29:01 AM
Hi All, How can I prevent my end users from noticing an error when we are re-compiling our project? Is there any way? Or how can we show a user-friendly message when we are recompiling the project? Thanks a bunch!!!...more >>

Page has Expired
Posted by Chris Davoli at 10/6/2006 9:05:02 AM
How do I expire a page, and I want to get the following message when I hit the back button to that expired page? I get this message from my bank. Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a secu...more >>

Application Start and Request events from a static constructor
Posted by ThazKool at 10/6/2006 8:41:48 AM
I would like to attach an event handler to the application start without having to use a Global.asax file. If this could be done from a static constructor then that would be ideal. I guess HttpContext.Current would be used. Also, I would like to attach an event to the first request and then r...more >>

themeable table cell background-image
Posted by Michael at 10/6/2006 8:37:02 AM
Is there a way to specify a background-image for a html table cell in a theme's css file. I know a lot of things I can't do... can't figure out one that I can do: 1) ~/ Images/logo.gif doesn't work since it isn't a server side control. 2) /Images/logo.gif doesn't work, not sure why. ...more >>

Double POST
Posted by John Smith at 10/6/2006 8:08:52 AM
When my user click on Submit button, my form submits. The problem is that new page takes long time to show up, due to lot of processing on the server side after first submition. So, somethimes my users clik browser's refresh button (F5) which submits again my form. Is there any way to preven...more >>

LinkButton Event Handling (Dynamic controls)
Posted by WolfyUK at 10/6/2006 8:03:53 AM
Hello, I have a standard asp:DataGrid called CasesGrid that I wish to write my own paging controls for. The aim is to get something like the following rendered to screen: << First < Previous 1 2 3 4 5 ... Next > Last >> I have achieved the first/previous/next/last buttons quite eas...more >>

DataGrid and embeded Checkbox..How to find if checkbox clicked
Posted by DotNetDev at 10/6/2006 7:36:01 AM
Hi, I have a datagrid. <asp:DataGrid id="DataGrid1" runat="server" Height="237px" Width="280px" AutoGenerateColumns="False" AlternatingItemStyle-BackColor="#e9e9e9" ShowHeader="false" ShowFooter="false" > <Columns> <asp:TemplateColumn HeaderStyle-Height="0"> <ItemTemplate> ...more >>

SqlDataReader.Read
Posted by rn5a NO[at]SPAM rediffmail.com at 10/6/2006 7:27:22 AM
The following code calls a function in a DLL which returns a SqlDataReader (the function in the DLL calls a stored procedure which returns 6 columns): Dim boCart As Cart Dim sqlReader As SqlDataReader boCart = New Cart boCart.GetRecords(iUserID) 'Next I want to just display the record i...more >>

ASP.NET 2.0 : Is there a need for OnClick attribute in .aspx file?
Posted by pedestrian via DotNetMonster.com at 10/6/2006 7:17:24 AM
I'm having an issue with the button click event handler. I follow this book example using the single-file method. It is a very simple page with a Button and a label: <script runat="server"> Sub Button1_Click(...) Label1.Text = (Int32.Parse(Label1.Text) + 1).ToString End Sub ...(omitte...more >>

Using a connection pool for SQL Server ASP.NET 1.1 Session managem
Posted by JoeSep at 10/6/2006 7:13:02 AM
Hi! Is it correct/safe to define a connection pool in the string "sqlConnectionString" of the "sessionState" section of Web.config? - The application is developed using AspNet 1.1 in a Windows Server 2003. - The AspState DB is defined in a Sql Server 2000 DB on another server. I have added ...more >>

Allowing users to edit a page
Posted by Neil Steventon at 10/6/2006 6:23:01 AM
Hi, Im after some advise on how to go about this problem. I have a master page with nice header and side bar setup. I then have various aspx pages that use this master page. I want one of the aspx pages to be editable by a user. This saves me having to doing any of the changes. Should ...more >>

ajax update panel trigger
Posted by rodchar at 10/6/2006 6:21:02 AM
hey all, i have to buttons on a web form and i have an update panel with a single textbox inside it. i add a trigger to the update panel for one of the buttons. the button procedure assigns some simple text to the textbox and tries to change the .Enabled property of the other button to false....more >>

Server Error: Object reference not set
Posted by SAL at 10/6/2006 6:08:02 AM
I am getting the following ERROR in my WebApp on line 30: Server Error in '/TestWebApp' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the...more >>

Captha Images implementation!
Posted by Varangian at 10/6/2006 5:41:42 AM
Hi .. I already asked this.. please anyone knows an answer for this? how should I apply a Captcha Image on a Web Form correctlly? Say I have an ASP.NET WebSite.. where should I make the code validity check?. Should I do it on the Page_Load event or on each click or Event where I wish to va...more >>

HOWTO: Know Which Controls Actually Changed Values On FormView
Posted by Dan Sikorsky at 10/6/2006 5:38:01 AM
How can you tell which FormView controls have different values from their initial values when the page was loaded? If the user clicked the submit button on the EditItemTemplate and no controls have truly changed values, then we don't have to update the database. -- Thank you kindly, D...more >>

Problem with function
Posted by shapper at 10/6/2006 5:30:47 AM
Hello, I have a class inside my page class where I have the following code: Server.HtmlDecode("MyString") I get the error: Reference to a non-shared member requires an object reference. How can I solve this? Could you give me an example? Thanks, Miguel ...more >>

problem with SCO Vision ODBC
Posted by fasulin_mat NO[at]SPAM hotmail.com at 10/6/2006 5:02:45 AM
I am working with SCO Vision ODBC (version 4.16.900.00). I try to retrieve information from a data base with SCO Vision ODBC called from a web service that runs at IIS. I have this error: 'ERROR [IM003] Specified driver could not be loaded due to system error 1114 (SCO Vision ODBC).' Could you...more >>

master page and title tag
Posted by Rippo at 10/6/2006 4:31:12 AM
Is it possible to turn off the title tag in the page directive when using master pages? We have got meta data and title defined in a content control and are ending up with 2 title tags, one defined in our content and an emty one defined by the page directive. Can anyone help?? ...more >>

Javascript Server-side Action Questions..
Posted by den 2005 at 10/6/2006 4:19:01 AM
Hi everybody, Question 1: How do you set the values from server-side to a client-side control or how do you execute a javascript function without a button click event? Question 2: How do you get response from a Confirm() popup window to uncheck all server-side checkboxes placed in a...more >>

drop down list doesn't keep state
Posted by tarscher NO[at]SPAM gmail.com at 10/6/2006 2:53:34 AM
hi all, I have a dropdownist that doesn't keep it's selected previous state. When I select an item i want the selected item to be selected when the postback happened. The DDL looks like this <asp:DropDownList ID="keywordsDropDownList" runat="server" AutoPostBack="True" OnSelectedIndexChange...more >>

Dynamic Controls
Posted by rn5a NO[at]SPAM rediffmail.com at 10/6/2006 2:04:10 AM
Assume that a ASPX page uses a user control named Address.ascx which has 2 TextBoxes. This ASCX page creates 2 properties named 'Address' & 'City' using the Get & Set statements: <script runat="server"> Public Property Address() As String Get Address = txtAddress.Text...more >>

Dynamically changing TextSize
Posted by Neil Steventon at 10/6/2006 12:45:01 AM
Hi, I was wondering on the best way to change the text size of website. I have seen these effect on the dotnetnuk web http://www.dotnetnuke.com/ , where you have a link to change the size of the text. Is it just a case of using javascript to set the prefered stylesheet to use ? or is there ...more >>


DevelopmentNow Blog