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 2004 > threads for wednesday may 26

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

IFrame Image resizing
Posted by mad3251 NO[at]SPAM rit.edu at 5/26/2004 11:37:29 PM
I'm trying to load images in an IFrame and would like them to stay within the size constraints of the iframe. So far, no luck. I'm making an image gallery for my personal site, and using the TreeView webcontrol to navigate. The reason I'm using an iframe is so that I can click a directory to...more >>


Why I am Unable to read the content of a TemplateColumn ?
Posted by Ing. Rajesh Kumar at 5/26/2004 11:05:37 PM
Hi everybody I have a problem reading the content of a cell. When i use = AutogenerateColumns =3D True or when i use <asp:BoundColumn DataField=3D"COLUMN1" HeaderText=3D"COLUMN1"/> then i = can simply read the content of a cell in the OnItemDataBound method = using the following code : For j ...more >>

How To: redirect to current URL with new parameters
Posted by Tony Zoccolillo at 5/26/2004 10:31:55 PM
I have a toolbar aspx page in a frameset. On the toolbar is a dropdownlist. The frameset is launched from an outside source and comes in with a specific parameter for the module desires, like... http://myurl.com/frameset.asp?themod="A" The dropdownlist contains the current selected module (A)...more >>

attaching events to textbox in a grid....
Posted by smith Smith at 5/26/2004 10:26:05 PM
I have attached java script code for the text box in the bind event of a grid for a template column. Even though I can attach the java script to the text box but could not achieve the full java script implementation. I want to add java script validation so that user can enter only the numeric va...more >>

set index of drop downbox
Posted by martin at 5/26/2004 10:09:53 PM
Hi, I would like to set the selected item of drop downbox to the index of an item that will only be known at run time. I realise that if I were to know it at design time I could write ddlResidentialCity.SelectedIndex = 3 however what I wish to do is say ddlResidentialCity.SelectedInd...more >>

Binding a DropDownList to a cell in a grid...
Posted by rmorvay at 5/26/2004 8:39:04 PM
I am trying to dynamically build a dropdownlist and bind it to a cell in a grid. I tried to utilize the following code but I am stuck at the point where I bind the dropdownlist to the grid cell. I get the following message for this code but I suspect that the " UltraWebGrid1.Rows[intCtr].Cells...more >>

Mixing secure and unsecure pages with Forms Authentication
Posted by MR. UNDERHILL at 5/26/2004 8:26:06 PM
I want to use forms authentication on my website. Looking at the documentation, I create a sample site for testing. One of my requirements is to ensure that SOME pages required an authenticated user and some others, like the home page is not required. I specified the <deny users="?" /> on the web...more >>

how to diaplay chinese character in aspx page
Posted by Spider_Jia at 5/26/2004 8:26:04 PM
I am using win 2000 and vstudio.net 2002. When I input chinese character into vb.net (aspx page) using vstudio.net, everything is okay.I can see the chinese words. But if i try to view it as a webpage, all chinese character become garbage. I tried change the web.config settings .from UTF-8 to...more >>



Excel process remains in memory after ASP.NET automation.
Posted by Tim Marsden at 5/26/2004 8:18:50 PM
Hi, I have a routine which is call from a ASP.NET web form. This routine creates an excel application, opens a workbook , runs some code to update the workbook, saves it as HTML on the sever and returns to the Web form to display. All is OK, except EXCEL remains in the process list in task ...more >>

display data
Posted by Mike at 5/26/2004 7:16:47 PM
I need to display data in text boxes not datagrid, can anyone point to some examples on how this is done in VB.NET? in the old way it was <input type="text" value=<% dataitem %> > how can i do this in the .net world from db connection to populating the text boxes .net ...more >>

querystring
Posted by Mike at 5/26/2004 6:51:44 PM
I'm new to the asp.net world and on my app i have a querystring to pass data to the update screen. can querystrings still be used in asp.net or no? Example: response.redirect("update.aspx?Status=Edit") or response.redirect("update.aspx?Status=New") how can i capture the Status and exec...more >>

caching user control output, at runtime, how to?
Posted by Welman Jordan at 5/26/2004 6:17:01 PM
Hello, I met with a tough problem when making my pages. Please help. To make the problem short, i write down what i want here first, and then explain my situation in details. How can I acchieve this: Only one Page_Load, and then the output of the control is cached within the Cache[], acc...more >>

ASP.NET Site Mapping
Posted by T. Ford at 5/26/2004 5:11:03 PM
Has anyone ever, or know of a way to generate a site map for an ASP.NET site? What I would like to do is generate links to all pages even those that require user input without having to go through the UI. The purpose is to provide a collection of links that a user can use to view the pages without...more >>

VAlidation
Posted by simon at 5/26/2004 4:45:34 PM
I have 2 <asp:textbox controls>: <asp:textbox id="txt1" Runat="server" ></asp:textbox> <asp:textbox id="txt2" Runat="server" ></asp:textbox> User must insert the value either in txt1 OR in txt2, so one of them shouldn't be empty. Which validation control should I use? Any example? ...more >>

Beginner question
Posted by Henry Nelson at 5/26/2004 4:33:37 PM
Hi all I'm very new to dotNet and just trying to get my head around the right way to do the thing that I would normally do in asp. In asp I would loop through a recordset and output all the html dynamically for the layout I want. I have seen some examples of using a repeater and they seem t...more >>

focus question
Posted by starbuck at 5/26/2004 4:30:02 PM
We have some fields with AutoPostBack set to true and when user tabs to the next field the screen re-calculates correctly however we also lose which control/text box had focus when the user tabbed. Is there any way of storing and resting which control should have focus? We are using asp.net wi...more >>

Clientside validation not working
Posted by Eddie Dodd at 5/26/2004 4:26:25 PM
I have a scenario where a required field validator works fine on my machine - it fails validation on the field and does not post back when I click the submit button, showing my error message. The same project on the test server works as expected. But when I place the project into live, the c...more >>

Form Authentication
Posted by Greg Decos at 5/26/2004 3:22:30 PM
I implemented forms authentication but noticed that the session expires at the time specified even though requests are made. Do I have to place code to reset the Session timeout after every page request? Greg ...more >>

Postback on Controls added to placeholder
Posted by Angel at 5/26/2004 3:16:03 PM
I have added controls to the placeholder control. All the controls that were added have EnableViewState = true including the placeholder. One of the controls has a button that performs a postback. My question is when the button is clicked and a postback is performed, the controls that were in the pl...more >>

Question about required validators
Posted by Simon Harvey at 5/26/2004 3:14:59 PM
Hi, With required validator controls, if the field is empty and you tab out, a message is displayed. Fairly standard behaviour. However, I would like to make a small change to the controls behaviour. Once you put some data into the field, the message doesnt disappear until you tab out. Som...more >>

outputcache - clientside caching not working?
Posted by Dave Bartlett at 5/26/2004 3:13:05 PM
I'm wondering why, when I turn on output caching for a page using: outputcache duration="60" varybyparam="*" Location="Any" that it appears not to cache on the clientside. No Temporary Internet Files are generated and subsequent requests to the same page always do a round trip to the server. ...more >>

Dynamic socket connection in asp.net
Posted by Adam Smith at 5/26/2004 2:58:06 PM
Hello. I'd like to build a stock quotes application that will dynamically post quotes, similar to the way in which a java applet would by opening a socket connection back to the server. Is there any way to do this in asp.net? Thanks in advance. Adam Smith. *** Sent via Developersdex...more >>

ASP.NET and Websphere MQ
Posted by Ming at 5/26/2004 2:54:14 PM
Hi Experts, I'm going to develop a new intranet application based on the .NET framework and use ASP.NET for development. Our app mainly access data from AS/400 DB2 while small amount of data will be accessed from SQL Server. Our main concern is the way to connect to Websphere MQ and it's re...more >>

About .Net FrameWord Component AutoUpdater didnt work??
Posted by Lucrefy at 5/26/2004 2:42:44 PM
i have a winform program that need automatic upgrade.I see and follow an article£¨http://windowsforms.net/articles/appupdater.aspx£© to build my own program,but it didnt work. show me a error message like following: /*-------------------------------------------------------------------------- --...more >>

javascript confirm
Posted by mark at 5/26/2004 2:39:24 PM
im having issues in creating a javascript confirm option on pressing a delete button in a datagrid - ive tried a few things but nothing seems to work (either crashes or does nothing) my codebehind is laid out like this :- Private Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e As Sy...more >>

Collection Editor in Composite Controls
Posted by Alexander Popov at 5/26/2004 2:38:04 PM
i have following sample Control [ParseChildren(true)] [PersistChildren(true)] public class MyControl: System.Web.UI.Control { MyCollection values_ = new MyCollection (); [PersistenceMode(PersistenceMode.InnerProperty), DesignerSerializationVisibility(Desi...more >>

stategically place javascript???
Posted by DaveF at 5/26/2004 2:02:57 PM
Is there any way to to build javascrip on the client and place it exactly where I want it in the html? -- Dave ...more >>

Iterate over a ArrayList
Posted by Jim Heavey at 5/26/2004 1:56:03 PM
Is there a way to do a "foreach ?? item in myArrayList I need to iterate over an ArrayList in the order in which items were added to the arraylist. How can I do this?...more >>

print to network printer
Posted by Roel at 5/26/2004 1:42:24 PM
Hello I 'm on a LAN and I want to print some pdf's to a network printer. The pdf's are located on the iis-server Does anybody knows how I can do that using ASP.NET ? Thx !! ...more >>

Timeout / Obtaining a connection from the pool - Please Help!
Posted by theintrepidfox NO[at]SPAM hotmail.com at 5/26/2004 1:14:49 PM
Dear Group I'm desperate for a solution to this problem. Let's assume I've the following code: Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim sqlConnection As New System.Data.SqlClient.SqlConnection sqlConnection....more >>

How can I import a web project?
Posted by disaia NO[at]SPAM earthlink.net at 5/26/2004 1:10:33 PM
I have a set of files I would like to import into Visual Studio. It is a web application written in C#. I've tried everything but am having a helluva time getting it to run without errors. Need a recipe to make this happen. Thanks, Dominic Isaia disaia@earthlink.net...more >>

How to store list
Posted by martin at 5/26/2004 12:40:40 PM
Hi, I would appreciate knowing the best way to store a two dimensional array, and the bind that array to a dropdownlist. The original array is in the form integer, string and the list will look like this 1,"sdfsdf" 2,"dsfsdf" 3,"gfhfghgfhfg" The integer will eventually bind to t...more >>

Please help me with bandobjects
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 5/26/2004 12:39:03 PM
I am trying to do something VERY simple. I want to use this: http://www.codeproject.com/csharp/dotnetbandobjects.asp?msg=727553#xx714692xx to point to a web page. I cannot use process.start because it opens the webpage in the last opened IE window, not the window which is currently active...more >>

Intercept html before rendering
Posted by Adam Smith at 5/26/2004 12:27:12 PM
Not sure if this is the best place for this but here goes... I'm trying to create a dynamic newsletter generator. There will be several controls to select from to generate the layout of the newsletter etc... Then a preview of the newsletter as generated by a variety of controls, I've stuck al...more >>

What if I dont want to redirect after a user logs in?
Posted by Brian Lowe at 5/26/2004 12:16:41 PM
I'm using Forms authentication with my user data in a SQL db. I have pages in the main appliaction folder accessible to anonymous users and I've set security to deny annonymous users access to pages in several sub folders (e.g. admin). I've set up a login page where users trying to access any /a...more >>

Set headertext in datagrid programatically
Posted by mg at 5/26/2004 12:06:04 PM
I create a datagrid using the Web Forms Toolbo The dataadapter,dataset and databind() code runs in a button eventhandler The headertext is currently determined by the column names of my SQL select statement there How can I change the headertext programatically in the codebehind? ... I don't w...more >>

Multiple assemblies, one prefix in aspx page?
Posted by Welman Jordan at 5/26/2004 11:52:19 AM
I have developed several assemblies for my own site. They are in different namespaces, e.g. MySite.Web; MySite.Web.UI; MySite.Web.UI.HtmlControls; MySite.Web.UI.WebControls; I would like to do this: In an aspx page, I can use one prefix for those three namespaces. <mysite:TextBox run...more >>

Trigger ImageButton Click with a HttpWebRequest
Posted by Benjamin Schwitter at 5/26/2004 11:28:01 AM
Hello all I have been experimenting with System.Net.HttpWebRequest. No problems with "normal" GET's and POST's. I can pass form data and I receive the result correctly, as if a user browsed the site. My problem is, that I can't figure out, how to trigger the clickevent from a serverside I...more >>

Properties
Posted by Josh at 5/26/2004 11:23:33 AM
Hi Jeffrey, I am aware that you can pass parameters into the class in a number of ways but I need to pass the parameters via get and set methods because each use placeholder is instantiating the same user control but with different property settings. My problem is that when I LoadControl I ...more >>

TRUE IF-statement gets ignored
Posted by Gabriƫl at 5/26/2004 11:17:43 AM
Hi Folks, If got a piece of code in which a IF-statement is true, but still the ELSE code is excecuted. (While debuging it constantly jumps to the ELSE, while the expression, according to the Command Window & Watch is true) Code: if (Request.QueryString["Id"] != null) { ...more >>

url structure
Posted by Mark at 5/26/2004 11:10:00 AM
I ran accross a web site that included a url structured like the one below. I use query string variables, but this looks different. Any ideas on how this technique might be leveraged in general and the advantages/disadvantages? www.joeschmo.com/nav.aspx/page=/foo/bar.aspx Thanks in advance...more >>

Include files in dotnet aspx
Posted by me NO[at]SPAM privacy.net at 5/26/2004 10:59:01 AM
I'm converting a web application from traditional asp to dotnet. In our report writer module, we make calls to a number of include files, in order to set parameters for which report is due to be run. Is there a way to call an include file from within an aspx module? If so, how? Thanks, ...more >>

input type=hidden
Posted by simon at 5/26/2004 10:14:11 AM
I have input html control in my dataGrid. When user click some button I would like to get it's value from codeBehind. <ItemTemplate> ....... <input type=hidden runat=server id="txtExists" value='<%# Container.DataItem( "exists" ) %>'> </ItemTemplate> Public txtExists...more >>

odbc datacomponent problems
Posted by news.microsoft.com at 5/26/2004 9:58:55 AM
I have used typed datasets by creating a Data Component (data.vb) by creating a new component in a vb or asp/vb.net project, dragging data tables onto the component, which generates the connection and adapters for me. After getting everything set up the way I like it, I then tell it to generate ...more >>

Deduce calling Page or UserControl in library method
Posted by JezB at 5/26/2004 9:58:02 AM
In my Page_Load event of all my web app Pages and UserControls I instantiate the same library class "TextResources" (to take care of reading presentation text strings from localizable resource files). Within this class's constructor I want to deduce the name of the calling control without havi...more >>

Passing Parameters to User Controls that are Dynamically Loaded in Placeholders
Posted by Josh at 5/26/2004 9:51:24 AM
Hi Guys, I have been having a big problem with trying to pass parameters into a user control when the user control is dynamically loaded into a placholder. I am developing in c#. I have get and set methods on the user control "editButton.ascx" which work fine. How do i pass parameter into...more >>

accessing code behind ..
Posted by ashish at 5/26/2004 9:49:50 AM
Iam having following hyperlink html on a aspx page <asp:HyperLink id="HyperLink1" runat="server" Width="264px" Height="24px" NavigateUrl='<%# CreateHyperLink %>' >HyperLink</asp:HyperLink></TD> where CreateHyperlink is a public function in code behind ... but this function is not bei...more >>

When does an ASP.NET application restart?
Posted by Steven Spits at 5/26/2004 9:37:50 AM
Hi group, We have installed our first ASP.NET WebApp on our preproduction server. The site stores some general user information in session variables that are needed in every page. So loosing your session means you'll get an error (for the time being). Session is stored in-process, so whenev...more >>

Whats wrong
Posted by aa at 5/26/2004 9:31:07 AM
From local computer it is working very good. But then I want to read the file from the disk which is maped and in Nowell system I getting the this error. In local computer I am working this the Administrator user, but the disk is maped by other name wchich have administrator role in local comput...more >>

ASPNET Account
Posted by Greg Couto at 5/26/2004 9:30:41 AM
The ASPNET account on one of my servers was locked out this morning. After some frustrating time I discovered this fact. Does anyone know why this might happen? Under what conditions? This server is behind a firewall on a secured intranet. I've looked through the logs and there is no indication o...more >>

Confusion in ASP.NET security
Posted by Reza Alirezaei at 5/26/2004 9:29:46 AM
Is it possible to define an account in <Identity> in web.config which dosen't exist in domain??? The following line is in somebody's ASP.Net application: I was viewing somebody's application I found the following line in his web.config <identity impersonate="true" userName="DOMAIN_NAME\ASP...more >>

Selective Validation Using Validator Controls
Posted by Bobby Maul at 5/26/2004 9:28:59 AM
I'm not sure the subject of this post adequately describes my situation, = so let my elaborate. =20 We have a web form with two textboxes--one for a start date/time and the = other for an end date/time. We are wanting to use the validator = controls to ensure that the user enters a date/time a...more >>

populating a dropdown list from arraylist of objects
Posted by Paul M at 5/26/2004 9:27:08 AM
hi there, i have an arraylist which holds my Customer object, that contains the customer details, but when i try binding it to a dropdown box, i cant get the values to appear.. this is what i tried: customerList.DataSource = Customer.GetAdminList() customerList.DataBind() customerList.D...more >>

Login failed for user 'machinename\ASPNET'
Posted by Mandar Patil at 5/26/2004 9:26:08 AM
H I am getting following error Login failed for user 'machinename\ASPNET when tryiong to do the following: SqlDataAdapter1.Fill(DataSet11 This user is never specified in the database and never mentioned anywhere in the code. I am creating sqldataadapter with wizard in VB Dot net 200 Regard ...more >>

Dynamic control not displayed
Posted by peterwu NO[at]SPAM hotmail.com at 5/26/2004 8:54:00 AM
Hello Group, I create a class that inherits from the System.Web.UI.WebControls.DataGrid class. Basically, what I want to do is to dynamically add a Table that contains some numbers for paging. Something like paging indexes but I want to do it manually as I don't want the DataGrid to cache the...more >>

Pinging Computers on a local Network from ASP.NET
Posted by Devin at 5/26/2004 5:26:03 AM
I need a way to ping an IP address from an ASP.NET page to verify that it is not in use. This is one example given to me earlier, but unfortunetly I do not know C#. Could someone translate this into VB for me? or perhaps know of another way to easily ping an IP from an ASP.NET page. Thanks Devin ...more >>

Crystal Reports Question
Posted by Sunil Sabir at 5/26/2004 3:31:06 AM
Dear All I am new to crystal reports. I can do development with ASP.net and Crystal Reports on my machine.It work fine. But I dont know that when I install my project on the server machine. Will it work or not. I want it to wor without installing Visual Studio.net ...more >>

Updated Strong Named Assembly
Posted by Gary at 5/26/2004 3:11:04 AM
We are building a simple ASP.NET app where the assembly has a strong name and is delayed signed Everything works fine when you run it. However, after making changes to the source, these changes are not reflected when you build and re-run it....more >>

FileStream permission problem with asp.NET web application!
Posted by Mikael Gustafsson at 5/26/2004 1:26:03 AM
I want to be able to upload a file to a asp.NET web application using the FileStream object. The problem is that I get a permission error saying that the application don't have write permisson to the specific file path. The only solution I have found is to give the aspnetuser pemissions to the speci...more >>

Microsoft Exception Management Block
Posted by ozcankanbur NO[at]SPAM yahoo.com at 5/26/2004 12:48:42 AM
The Microsoft Exception Management publish exceptions to Application Log in EventLog as default but I want to publish different log in Event log so I created MyLog in Event Log and I want Exception Management to publish MyLog in EventLog. How can I do that?...more >>


DevelopmentNow Blog