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

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

Datagrid - anyway to change width of edit text box?
Posted by YeeCN at 3/11/2005 7:41:41 PM
Hi, I have a datagrid with one very wide column. The problem is that if the grid goes into edit mode the textbox that appear automatically is far too small for the cell content. Is there anyway to change the width of the textbox? Thanks in advance, Regards, Yee ...more >>

Combining numeric mode paging and nextPreview paging in datagrid
Posted by Red at 3/11/2005 7:02:43 PM
Hi, How to combine numeric mode paging and nextpreview paging in datagrid. Im using vb.net Thanks...more >>

I need to figue out the count of the sessions.
Posted by Michael Tkachev at 3/11/2005 6:02:49 PM
Hi everybody, I have a question. I would like to know the following question: How can I find out how many users were loginned to my web project. I need to get the count of the sessions in the project because and I need to get datas from the different sessions. Who knows what I can do? Thank...more >>

msagent asp.net vb
Posted by Roberto Sandro Alvarez at 3/11/2005 4:43:23 PM
does somebody know how to use the msagent in ASP.NET with VB? ...more >>

Listbox Sorting
Posted by 00_ChInkPoIntD12 at 3/11/2005 4:30:52 PM
Can anyone confirm there isn't a Sort() method for WebControl Listbox in Asp.net? It is rather simple to write a method to do the sorting, but just wondering I shouldn't invent the wheel if there is already one. C.P. ...more >>

500 - Server internal error!
Posted by Costi Stan at 3/11/2005 4:19:55 PM
I've just installed MS VS.NET 2003 on Windows XP Professional with IIS(ASP.NET 1.1). Everything went smooth. But when I'm trying to create a simple distributed application with C#, I get a message from IIS like "500 - Server Internal Error" Does anyone knows where it might be the problem? ...more >>

Javascript popup and server code
Posted by tshad at 3/11/2005 4:09:21 PM
I don't know if this can be done. It is a coordination with my client side vs my server side code. I can create a popup fine: Dim myNextButton As ImageButton = CType(DataList1.Controls(DataList1.Controls.Count-1).FindControl("DownQuestion"),ImageButton) myNextButton.Attribute...more >>

controls position in asp.net
Posted by Murthy at 3/11/2005 3:36:46 PM
HI, I would like to display the controls at a specified postions in asp.net. on the page for ex at (200,300) position when i click on the link button in the run time dynamically on the page and and how to handle the events of the genated control in the run time. can any one help me Plz. Rega...more >>



forwarding a request from a specific ip
Posted by Brian Henry at 3/11/2005 3:34:29 PM
I want to be able to forward any request from my one site to another site based on the IP address... kind of like denying access to the site if an IP is a certain one if they try to access any page on it and forward it to like google.com or something, how would you go about doing this? and can...more >>

db record doesn't get written in a Click event
Posted by Ken McCrory at 3/11/2005 3:23:26 PM
I have a registration page (yeah, it's me again.). The confirmation page uses the code below to transfer the parameters passed from the first page to the Insert command parameters then it writes the record to the database. MoveDataToRecord() 'transfers the Params passed from the first ...more >>

Streaming Video
Posted by Steve Caliendo at 3/11/2005 3:18:20 PM
Hi, Can someone point me in the right direction for doing this? A ton of websites have streaming video, and all I want to do is serve a local webcam on a web page. Thanks, Steve ...more >>

Specify target framework in Web.Config
Posted by Mike at 3/11/2005 3:18:03 PM
Is it possible to specify the target framework version in the Web.Config file? I'm planning on installing the Whidbey Beta2 framework soon and want to explicitly make sure I'm pointing to the 2003 framework for some existing web applications. Thanks, Mike ...more >>

Pass a string from a .ascx to a .aspx
Posted by Chad at 3/11/2005 3:11:45 PM
Alright, I've been searching all over and it seems I'm just not looking for the right thing, since what I want to do seems extremely simple I just don't know the correct syntax. All I get is how to pass information from a control in a .ascx to a control placeholder in the html section. I don't w...more >>

Why not need to set Login url
Posted by ad at 3/11/2005 3:09:08 PM
I have downloaded the Portal Starter Kit from http://www.ibuyspy.com/Default.aspx?tabindex=8&tabid=47 The authentication section of web.config is below ----------------------------------------------------------- <authentication mode="Forms"> <forms name=".ASPXAUTH" protect...more >>

Forcing a .net 1.1 web application to always use the 1.1 framework
Posted by appdevtech at 3/11/2005 3:01:01 PM
A little background… We have multiple web servers in a farm and are starting to upgrade some applications to 1.1 by re-compiling in VS2003. One of the things out of our direct control is the framework version on the application directory. I'm worried that in the future some directories could...more >>

DataGrid: Add Checkbox
Posted by Frank Esser at 3/11/2005 2:48:43 PM
Hallo, within a DataGrid with just one column I want to display a checkbox additionally to each item text. I can do it in the event "DataGrid_ItemDataBound" for each cell: CheckBox myCB = new CheckBox(); e.Item.Cells[0].Controls.Add(myCB); On the Web-Page the checkbox is displayed at th...more >>

The error code for the failure is 80070545
Posted by jfleeson at 3/11/2005 2:36:52 PM
I'm getting the following error after installing the .NET Framework 1.1. Do anyone have a solution? "aspnet_wp.exe could not be started. The error code for the failure is 80070545. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files...more >>

Multiple Projects, single code file
Posted by Jody Gelowitz at 3/11/2005 2:10:49 PM
Within ASP.NET, is it possible to use a single .vb file and have it shared (or accessed) between multiple projects without having that file being copied to each project folder? ie. C:\Projects\MyProject1 (project 1) C:\Projects\MyProject2 (project 2) C:\Projects\CommonFiles\MyC...more >>

Q: connection problem
Posted by JIM.H. at 3/11/2005 1:31:06 PM
Hello, What is wong with the following code I am getting “ The ConnectionString property has not been initialized” Sub BindDataGrid() Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("Persist Security Info=False;Integrated Security=SSPI;database=myDB;...more >>

add validation to droplist control
Posted by TJS at 3/11/2005 1:19:57 PM
I need to add validation to drodownlist control but it sends back an error message that says: "System.Web.UI.WebControls.DropDownList' does not allow child controls" the code is : If e.ItemType = ItemType.FieldItem And e.ColumnName = "IDEvent" Then Dim ctlEvent As DropDownList = CT...more >>

problem in the datalist
Posted by Vadivel Kumar at 3/11/2005 1:15:01 PM
I have one datalist which contains one item template. In that, iam printing a value taken from the sql table and one check box. Now, the user will select some checkbox and press a button and that will be cached (or stored in session). After storing i.e., after the page refresh, instead of prin...more >>

resize and postback
Posted by google NO[at]SPAM geerdes.nl at 3/11/2005 1:11:12 PM
I have a grid, which unfortunately does not allow me to set its width to 100%. I need to specify the pixels. But as the grid is build up from many parts, I am unable to set the width on the clientside. So I would like to do this on the server side. So when the client is resized AND "the mouse ...more >>

Response length
Posted by Henrik Hofmann at 3/11/2005 1:10:28 PM
Hi, after a Request is finished I'd like to log the the byte quantity sent to the user to get a per user traffic analsis. The correct place to do this seems to me to be Applicaltion_EndRequest but how can I determine the length of the response. If I had an opportunit to just get the Conte...more >>

Asp.Net SS control call client java function
Posted by Mike Moore at 3/11/2005 1:01:04 PM
Can an asp.net button that is a server side control call a client side java function when the button is clicked? If so, please provide example.....thanks., ...more >>

Disappearing code lines
Posted by AlBruAn at 3/11/2005 12:57:03 PM
For the header on nearly all of our web pages, we're using a composite control containing, among other items, a button to perform searches based on criteria entered in other contained controls. Since individual controls within composite controls aren't displayed when the composite is dragge...more >>

WebControls.Menu in Whidbey not Mozilla compatible?
Posted by Rick Shuri at 3/11/2005 12:47:01 PM
My beautiful and basically simple (2 level) Menu in ASP.NET 2.0 looks great in IE, but in Firefox, it loses all it's formatting. Is this a browser detection problem? Anyone know anything about this? thanks, Rick...more >>

How to get access to current page class from other class?
Posted by John Smith at 3/11/2005 12:27:20 PM
Hi, I have this problem. I have a page class in code behind called "WebForm1" and I have another class called "Class1". Now in Class1 I am creating ImageButton and I am adding event handler onClick, then this ImageButton is added to page - WebForm1. In WebForm1 I have my methods to deal w...more >>

using page-object in .cs-file
Posted by Alexander Widera at 3/11/2005 12:03:33 PM
I have a file "file1.cs" with a method: using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public static void justdoit() { string script = "<script language=\"JavaScript\"> alert("it works"); </script>"; Page.RegisterStartupScript("frreload", s...more >>

Handling events for Checkboxes in Data Grid
Posted by Abhijit Salvi via .NET 247 at 3/11/2005 11:56:08 AM
(Type your message here) -------------------------------- From: Abhijit Salvi Hi All, I am working on a DataGrid that has a column of Checkbox Controls. There is some Business Functionality that I need to accomplish when the Checkboxes in the column are checked or unchecked, basically ...more >>

Problem displaying pdf to a web page
Posted by Efrain Flores at 3/11/2005 11:44:30 AM
Hi: I recently found a problem while trying to display a pdf document on an aspx webpage. Here is the code that I am using: With Response . ClearHeaders() .Clear() .Buffer = True .ContentType = "application/pdf" If pfForceDownloadDlg Then .AppendHeader("...more >>

WebUIvalidation.js error version
Posted by P. Jn-Charles at 3/11/2005 11:41:04 AM
Can someone help with this problem. It's all over the web. Here is the error when I tried to submit a webform. ------------------------------------------- This page uses an incorrect version of WebUIValidation.js. The page expects version 125. The script library is " + Page_ValidationVer + "."...more >>

Streaming MJPEG to browser
Posted by Jay Douglas at 3/11/2005 10:50:14 AM
Hello all. I have an MJPEG on a remote web cam that I am able using the System.Net facilities in the FCL. However, I am having a hard time streaming the MJPEG to the browser. I'm trying to figure out a way to basically keep the byte buffer flowing to the browser. Any resources or sugg...more >>

Convert seconds to minutes and seconds
Posted by tshad at 3/11/2005 10:50:00 AM
Is there a quick function in vb out there that will convert seconds to minutes and seconds? Thanks, Tom ...more >>

CType not working for Button
Posted by tshad at 3/11/2005 10:14:17 AM
I have the following: sub submitQuestion_click(Sender as Object, e as EventArgs) Dim submitButton as Button = CType(sender,Button) This gives me an error that says: " System.InvalidCastException: Specified cast is not valid. " Why is that? Sender is a button. Tom ...more >>

DataGrid Header Image
Posted by Sparky Arbuckle at 3/11/2005 10:04:16 AM
I would like to place an image in my DataGrid's header. Code: <asp:TemplateColumn HeaderText="Sample"> <ItemTemplate> <asp:HyperLink id="Sample" runat="server" text="Listen" NavigateURL='<%# Container.DataItem("SampleURL") %>' /> </ItemTemplate> </asp:TemplateColumn> I would like to place...more >>

How can i create a link i a table???
Posted by stevegr NO[at]SPAM web-dot-de.no-spam.invalid at 3/11/2005 9:37:10 AM
hi, how can i create a link in a table in a webform, which links to another page??? please help me, my project must go on... :? Apollo0130 :) Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION *...more >>

rendering PDF and trying to display a message
Posted by David Cho at 3/11/2005 9:37:05 AM
I hope I can describe the dilemma precisely. I have code to render PDF output in a browser window (using a third party control that merges PDF files and renders the PDF output in the browser window). While rendering PDF in the browser window, I would also like to display a message of some s...more >>

Setting button color not being rendered
Posted by tshad at 3/11/2005 9:34:10 AM
I want to be able to change the color of the text of a button after it is pressed. The first part of the event is: sub submitQuestion_click(Sender as Object, e as EventArgs) trace.warn("Sender text = " & Sender.text) trace.warn("Sender color = " & Sender.ForeColor.ToString()) Sender.Fo...more >>

foreignKey constraint error.
Posted by GMK at 3/11/2005 9:24:11 AM
Dear all i'm having an asp.net application whci is bugging me with the following error: Foreignkey constraint does anyone know what is the cause of this error , i could not debugg it becasue the error is occuring on a specific data not on all datas as the test data i have on my environment. ...more >>

Page_OnInit event
Posted by Daves at 3/11/2005 9:10:24 AM
I am using 2.0 Masterpages. I want to add some text after the content page code has been run and so thought I could add an OnInit event in the masterpage class: void Page_OnInit(System.EventArgs e) { .... } for some reason this code is never run... Am I doing something wrong? Running ...more >>

How do I refer to a label in javascript?
Posted by jacobryce at 3/11/2005 8:57:12 AM
I have a javascript function that is called when I click my server-side submit button. I want to validate that one of my labels is not empty before allowing a submit. I cannot figure out how to access the value stored in myLabel.text. For hidden form variables I use the following syntax in...more >>

string to formated datetime
Posted by Alejandro Penate-Diaz at 3/11/2005 8:40:59 AM
how can I convert a string like this "10/04" meaning octuber/2004 to a valid DateTime? ...more >>

User Control within User Control - Event not firing
Posted by Don at 3/11/2005 8:38:35 AM
I have a User Control called Menu that is used in another User Control called header. It seems the button clicked event in the first control (Menu) is not firing. If I click a button on the menu the page will reload but the code in the button click event in the code-behind is newver executed....more >>

Autonumbering in Datagrid
Posted by BlueHeaven at 3/11/2005 8:17:12 AM
Hi all, How to create auto numbering in datagrid if I show the data from database to datagrid by using datasource = dataset. Thanks all...more >>

Itterate through a DataGrid
Posted by Jim Heavey at 3/11/2005 7:39:07 AM
If I have a datagrid in which I have placed a "Check box" in one of the columns and then I have a button (outside of the grid) when the user presses, I want to do something with each line in the grid in which the user has clicked the check box. How do I iterate through the datagrid and find m...more >>

How can i pass parameters between two webforms???
Posted by stevegr NO[at]SPAM web-dot-de.no-spam.invalid at 3/11/2005 7:37:55 AM
hi, i want to pass a parameter (a string) between two forms. i have a Webform A (default.aspx) with a button and a Webform B (detail.aspx). i want to click the button and open the webform B with the parameter submitted from the webform A. how can i do that? greetz Apollo0130 Posted Vi...more >>

ASP.NET project
Posted by tlh9 NO[at]SPAM np.edu-dot-sg.no-spam.invalid at 3/11/2005 7:37:55 AM
I have a web application that was created in VS.NET 2002. After installing VS.NET 2003, this application cannot be opened in the new version. Even if I copy the files into the C:\Inetpub\wwwroot folder, this does not help. Why is this so ? Previously, I reinstalled the WIN XP. Can there be so...more >>

Image WebControl and fade
Posted by tommy_razz at 3/11/2005 7:19:11 AM
is there a good method to fade image in a simple way in a server control without using flash or other proprietor software ? ...more >>

DataBinder.Eval()
Posted by Patrick Olurotimi Ige at 3/11/2005 6:47:03 AM
Does this work in C# too? <%# SomeFunc(DataBinder.Eval(Containter.DataItem, "ColName")%> *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

DataBinder.Eval() in C# Question
Posted by Patrick Olurotimi Ige at 3/11/2005 6:02:19 AM
If have i a funtion below:- Protected Function CheckUnit(Units As Object) As String '----------------------------------------- ' If the Units returned equals to Zero, ' a message of "Out of Units" will be displayed. ' Otherwise, displayed the original value...more >>

SQL Server does not exist or access denied
Posted by Jan Agermose at 3/11/2005 5:37:11 AM
Hi We have to serveres, a webserver A and a sql server B, running Windows 2003 and SQL 2000/IIS6 On the webserver we are running some 30 ASP websites (not ASP.NET) and they connect to the SQL server. "Sometimes" (a very precise definition) the sites fail with this error: *************...more >>

Web Form w/ DB Move EASY question
Posted by wwcoop at 3/11/2005 5:21:02 AM
I have VB.NET web form set up with an Access DB in a local directory. I have a local server set up on my box for the purpose of testing the application. When I move the application to the web server, naturally the explicit path of the database is wrong. Is there a way to set my program to use...more >>

VS Designer code change
Posted by Julien Lefebvre at 3/11/2005 3:09:03 AM
Hello all, When we add a new component in default.aspx in the designer mode, it automitically adds a line declairing the component in the codebehind. We dont want the declaration of this component in the code behind because we inherit from a base class which already contain this declaration o...more >>

Mimetype .aspx?
Posted by Patrick F at 3/11/2005 2:35:01 AM
I cant figure out what mimetype .aspx pages are, i have been searching thru msdn and the only thing that i found was a way to list all mimetypes installed on the computes, output something like this: Microsoft (R) Windows Script Host Version 5.1 for Windows Copyright (C) Microsoft Corporat...more >>

ASP.NET modular architecture
Posted by Nick Goloborodko at 3/11/2005 1:36:15 AM
Hi, I'm in the process of conceptualizing a new ASP.NET application. I'm a relative newbie in ASP.NET / .NET in general, so any comments will be greatly appreciated. Basically i need to make my application as modular as possible, something along the lines of Mambo (PHP CMS System) Drupal (a...more >>

JPG generated with GDI+ problem
Posted by m at 3/11/2005 1:35:04 AM
hi, i ve generated a jpeg using the GDI+ library. A part of the code i pasted below. But surprisingly i am able to see the picture in the windows picture viewer but i am not able to open it in photoshop. Photoshop gives an error saying that unexpected end of file was encountered. Did any one...more >>

web.config : <authentication>
Posted by (cmrchs NO[at]SPAM yahoo.com) at 3/11/2005 12:06:12 AM
Hi, I'm having problems with the interpretation of roles in the <authentication> entries in web.config Scenario : I'm logging on as 'Administrator' and try to access a site for which the IIS-authentication method is set to 'Integrated Windows' only Following are the web.config-entries of th...more >>


DevelopmentNow Blog