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 > march 2005 > threads for thursday march 17

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

Static Methods in BLL
Posted by Åženol Akbulak at 3/17/2005 11:49:01 PM
Hi; I am developing an 3 tiered application. And my user interface is an ASP.NET web application. My methods in BLL only uses own parameters and DAL. Now my methods are not static. I heard that static methods are dangerous in ASP.NET because ASP.NET applications are multi thread application...more >>


A DHTML Problem !!
Posted by MingChih Tsai at 3/17/2005 11:03:03 PM
Dear All, How should I do if I want to get the left offset value of the button 2 !! Thanks a lot !! code as following ..... <HTML> <HEAD> <script language="javascript"> function test(e) { alert (e.offsetLeft); } </script> </HEAD> <body> <form id="form1" method="pos...more >>

SqlClient.SqlException: Line 1: Incorrect syntax near '='.
Posted by Patrick Olurotimi Ige at 3/17/2005 10:53:02 PM
why is this giving me error System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near '='.?? my code is in c# strSql = "Update addmessage Set message = '"+null+"' Where ID=" +ID; strSql = "Update addmessage Set message = '"+message+"' Where ID=" +ID; *** Sent via Developersde...more >>

get name of server
Posted by Andy Sutorius at 3/17/2005 8:46:44 PM
Hi, How do I get the name of the server? I want to change the navigation url based on the name of the server the web app resides on. What namespace do I need to include? Thanks, Andy ...more >>

Assign result to variable
Posted by Jim via DotNetMonster.com at 3/17/2005 7:22:48 PM
Hi, How can I assign the result of a function to a variable. I need to get the result so that I can query the database again. What I'm trying is: LessonID=GetPage(IntCourseNumber,IntLessonNumber,IntPageNumber) I get the error: Value of type 'System.Data.IDataReader' cannot be converted t...more >>

image processing
Posted by Andreas Viklund via DotNetMonster.com at 3/17/2005 6:16:02 PM
Hi! I am developing an application in ASP.NET that takes an image, that have been created with a digital camera or camera phone, and processes it, to get data from it. The image taken by the user will be of a square in some kind of magazine or newpaper, with a white background and the border of ...more >>

Styles are not Merging
Posted by Ponnurangam at 3/17/2005 5:26:18 PM
Hi, I have created two styles from cssclass and merged first one with the second one. I then used the style for an Item. The styles are not merging. Here is the code that I used Dim mystyle1, mystyle2 As System.Web.UI.WebControls.Style mystyle1 = New Style mystyle2 = New Style ...more >>

How do I write XML from a dataset to Response, including schema?
Posted by Alan Silver at 3/17/2005 5:25:57 PM
Hello, I am trying to write some XML from a DataSet out to the Response object, but I'm getting somewhat stuck. I started out with ... strXmlData = dstData.GetXml(); Response.Write(strXmlData); which was fine, except it doesn't include the schema. I then discovered that I should hav...more >>



DataTable Find/Update
Posted by Solel Software at 3/17/2005 5:13:01 PM
Hello, I have a basic question. I have a DataTable of information without a database store (it's only in memory). I am looking to somehow query the DataTable to find out which row(s) satisfy certain criteria and then update the data in those rows, all without any sort of database access (...more >>

aspx Page wants to download not open
Posted by Geoff at 3/17/2005 4:49:18 PM
I have loaded my application which runs great on other IIS 5 servers but when I call the aspx page it gives me the save or open dialog and won't run the page. Any suggestions? ...more >>

Redirection ?
Posted by Arsalan at 3/17/2005 4:01:49 PM
Suppose I have a file named Account.dat [which is 50 MB] What function do i use to redirect the user to the file location of Account.dat [I dont want the user to see the path or location of the file] and show download prompt ? I once tried to download ASPForum or something similar from ASP...more >>

Comexception when setting domain password with directoryentry in a ASP.NET project
Posted by Marek Kopanski at 3/17/2005 3:46:30 PM
Hallo, I have to change a user password in my ASP.NET project. In the first step I was trying to change my own passwort (as example) in Active Directory on my Server, but already at this point I get problems. Can somebody help me? 1. I use following fragment of code: ---------------------...more >>

Why can't i find a Row in a dataset?
Posted by Paul Custance at 3/17/2005 3:44:09 PM
Hi, Currently had a Dataset that has information from the Northwind database, Customers table in it. I have created my update and select commands and they work fine. When I go to update a row in the data set I use this //Get the datarow to edit DataRow[] adrEdit = ds.Tables["Customers"]...more >>

I am having huge problems with a null referance
Posted by I am Sam at 3/17/2005 3:37:10 PM
The codebehind is as follows: I have instenced the DataSet dsclub2a protected System.Data.DataSet dsclub2a; and I have instanced the DropdownList as follows: protected System.Web.UI.WebControls.DropDownList ConCat1; public void ContactCat() { dsclub2a=new DataSet(); clubconn=new S...more >>

ASP.NET is crashing my machine. Please help.
Posted by Steve at 3/17/2005 3:37:02 PM
Here is a post from somebody that has the same problem. Is this a known issue? Is there a fix for it? I would like to use VS.NET 2003 soon again. Any help is appreciated. Thank you, Steve http://www.dotnetjunkies.com/Forums/ShowPost.aspx?PostID=6027 ASP.Net application times ou...more >>

Display a pdf stream in an ASP .NET page
Posted by msnews.microsoft.com at 3/17/2005 3:36:28 PM
Hello I have a .pdf (from a SQL DB field) and I wish to display it in a ASP.NET page (with the Adobe toolbar, or at least a print button..) Thank you ...more >>

asp:dropdownlist display infront all the time
Posted by Xuanly ly via .NET 247 at 3/17/2005 3:27:30 PM
asp:dropdownlist always display infront of everything and I can't make it display behind HELP HELP help!!!. <form id="Form1" method="post" runat="server"> <asp:TextBox id="TextBox1" runat="server" style="Z-INDEX: 1; LEFT: 50px; POSITION: absolute; TOP: 300px" Width="250px"></asp:TextBox> <asp:...more >>

User Control ?
Posted by WJ at 3/17/2005 3:09:37 PM
1. I have a User Control (UC) that hosts one Link-Label control. When the user clicks on the link label, the following event is executed in the UC: Response.Redirect("Help.Aspx",True); 2. The UC is included in many Asp.Net webforms. 3. In the "Help.Aspx" form, there is...more >>

looking for an ASP.NET 2.0 + SQL Server 2000 hosting provider...
Posted by Jéjé at 3/17/2005 3:00:09 PM
Hi, I am looking for an hosting solution based on the Framework 2.0 + SQL Server 2000. There is a lot of providers, but who support the ASP.Net 2.0? any guide? thanks. Jerome. ...more >>

Object reference not set to an instance of an object
Posted by Rudy at 3/17/2005 2:59:02 PM
Hello All! I get this error at this line Line 368: Len(e.Item.Cells(5).Text) - 1) Line 369: txtQty.Text = e.Item.Cells(5).Text ****Line 370: chkEbay.Checked = CType(e.Item.Cells(6).FindControl("chkEbay"), _**** Line 371: CheckBox).Checked Line...more >>

Double Quotes in a stringbuilder
Posted by Justin at 3/17/2005 2:57:04 PM
how do I insert a double qoute into a text file uing a stringbuilder? Thanks, Justin....more >>

share common methods and properties for .ASPX and .ASCX Pages
Posted by Garth17 at 3/17/2005 2:55:54 PM
I'm trying to figure out a solution for sharing common properties and methods in all me .aspx and .ascx pages. In classic ASP I would use include directives. So far I have made 2 base classes WebFormBase and UserControlBase. And then set all my webforms and usercontrols inherit from the appr...more >>

Connect Form to Database Insert Code
Posted by jason NO[at]SPAM catamaranco.com at 3/17/2005 2:37:41 PM
I am having trouble figuring out to call a database INSERT procedure from a simple submit form. It appears I should use the onclick event to trigger the procedure called [Sub btnInsert_Click] BUT when I do this I receive this error: 'btnInsert_Click' is not a member of 'ASP.Insert_aspx'. ...more >>

session state
Posted by rodchar at 3/17/2005 2:37:02 PM
hey all, i'm storing my dataset in session state and when i select a value from my drop down list (which by the way is set to autopostback), my session value disappears? i've used session state a bunch a times in the past. any ideas? thanks, rodchar...more >>

ASP.NET Page Inheritance flow?
Posted by Dave at 3/17/2005 2:20:37 PM
Hi, I want to create a base Webform where I want to put code to check if the logged on user is allowed to view the page. I want to put this code in once place and have all secured webforms inherit from this base class What I would like to happen is that the code in the base class be cal...more >>

Q: a function
Posted by JIM.H. at 3/17/2005 2:19:48 PM
Hello, I have this function working in one of my project. Can anyone convert this to C#? I used one of the converter but faced problems, it did not compile. Public Function ReadADUserGROUPX(ByVal userName As String) As String Dim rootEntry As New DirectoryEntry("LDAP://DC=domai...more >>

CSS Class and Background Image.
Posted by Kiran Kumar at 3/17/2005 1:46:51 PM
Hi, I have set a cssClass to an item. Then I set the background image for that item in aspx.vb code. I get all the styles to that item from css file but I don't get that background image when I view the page. Is there any way so that I can set a cssclass to an item and then set the b...more >>

Css and Nested Data Controls
Posted by JJ at 3/17/2005 1:27:13 PM
Hi, I have a datalist with a nested datagrid control in it. It works fine but CSS for the datagrid doesn't apply unless I hit a sort link on the datagrid relating to the datagrid sort property. How can I have my css rules show in my datagrid without having to hit the sort link on datagrid?...more >>

The beginning.
Posted by Qwert at 3/17/2005 1:06:02 PM
Ok, I have a file 'WeatherPage.aspx' with the following code, basic stuff: <%@ Page language="VB" %> <script runat="server"> Shared rand As Random = New Random() Function GetForecast(zip As String) As String Dim ret As String = String.Empty Select rand.Next(5) Case 0 ret = "S...more >>

DataGrid Sort Expression for a date in format 'dd mmm yy'
Posted by yer darn tootin at 3/17/2005 12:14:44 PM
Does anyone know the sort expression for a column that's data has been returned in the format, eg '07 Jul 05'?? The sort expression {..:"dd mmm yy"} doesn't work ( if the column was returned as '07-Mar-05' the expression {..:dd-MMM-yy} works OK Second question, does anyone know hwo to return...more >>

I am new to .NET and C#
Posted by Santhi Pattamatta via .NET 247 at 3/17/2005 11:51:24 AM
(Type your message here) -------------------------------- From: Santhi Pattamatta Hello Friends, Can you help me here please=2E I am just trying to learn C# using =2ENET and will need to create= ASP=2ENET applications for my project=2E I was trying a simple= example--created a web p...more >>

Please help me to find out the reason for this error in ASP>NET page ????
Posted by ~Maheshkumar.R at 3/17/2005 11:50:52 AM
The error i'm getting is as: > Server Error in '/' Application. > -------------------------------------------------------------------------- -- > String or binary data would be truncated. The statement has been > terminated. > Description: An unhandled exception occurred during the executi...more >>

Q: convert to C#
Posted by JIM.H. at 3/17/2005 11:33:04 AM
Hello, This is the way I can catching my group name from AD collection. If UCase(pKey) = "MEMBEROF" And UCase(pCollection) Like "CN=MYGROUP_*" Then ADUserMYGROUP = Mid(pCollection, 11, 3) Return ADUserMYGROUP ...more >>

TSQL
Posted by Eduardo Rosa at 3/17/2005 11:25:26 AM
hi everbody, there's some way to do a query in stored procedure with dynamic table name. I think to do a join with table sysobjects, but I could't do this works. that's not works: Select ColumnName From @TableName thanks a lot ...more >>

Coding Global.asax file
Posted by DavidM at 3/17/2005 11:21:05 AM
What is the difference between the Application_AuthenticateRequest and the Global_AuthenticateRequest events? I see that that the Global_AuthenticationRequest even fires before the Application_AuthenticateRequest event, but which event is the preferred mechanism to use if you want to impleme...more >>

scalable state-management
Posted by John Grandy at 3/17/2005 11:13:40 AM
Could someone point me in the direction of good discussions on scalable state management solutions? Specifically, pros and cons of following strategies: Strategy 1 : temporary business-objects are implicitly stored in RAM, "permanent" business objects are explicitly stored in SQL-Server ...more >>

HttpWebRequest.GetRequestStream Causes an Exception
Posted by Jason at 3/17/2005 10:56:13 AM
I'm having a hard time getting a call to HttpWebRequest's GetRequestSteam to work. Each time I try to run it, I get the following error: The underlying connection was closed: Unable to connect to the remote server. Description: An unhandled exception occurred during the executio...more >>

Message back from JavaScript
Posted by tshad at 3/17/2005 10:52:28 AM
I am trying to set up a Javascript popup box that has a way of sending back a message to asp.net on how to process some data. At the moment I am just doing: myNextButton.Attributes.Add("onclick", "return confirm('Are you sure you want finish this test?');") to attach a popup box to a...more >>

Null Referance Exception
Posted by I am Sam at 3/17/2005 10:25:08 AM
I keep getting the following exception error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the...more >>

How I get IIS Server Informtaion
Posted by MrDotNet at 3/17/2005 10:25:05 AM
Hi, I need help Get IIS Server Information like, how many site in that server, how many Virtual Directories ..... I want all the information through .NET coding so I an see more then one servers thought my Desk PC. Thanks -- -MrDotNet MCAD, MCSD Sr. Software Engineer / Lead Architect ...more >>

file read/write in asp.net
Posted by gce at 3/17/2005 10:17:18 AM
Hi, As a newbie (old vb6 programmer) I like to know how to read/write/lock a file using asp.net ? Best regards, Gert ...more >>

aspnet_wp spiking memory usage
Posted by DKode at 3/17/2005 9:55:23 AM
Ok, I restart the aspnet_wp.exe, memory usage is at about 3 mb, the first time I run one of my asp.net apps, the memory usage shoots to 30 mb usage and remains there. Even if I close the IE window that I am running my app in, the memory is not freed up. Is this normal? I am imagining that the...more >>

Q: vb to C#
Posted by JIM.H. at 3/17/2005 9:55:04 AM
is tere any free VB to C# converter?...more >>

Inline code prevents Design view
Posted by Ken McCrory at 3/17/2005 9:46:58 AM
I have a page with some inline server-side code. An example line is: <input type="hidden" name="fmFirstName" value="<%=Session("FirstName")%> "> The code and logic works and does what it is supposed to do BUT if I try to change from HTML view to Design view I get this error message: Could...more >>

How do I read IIS stats?
Posted by Lars Netzel at 3/17/2005 9:46:05 AM
Hi I want to create a aspx page that reads some basic statistics from the IIS, is that possible? For example number of hits, unique hits and stuff like that... best regards /Lars ...more >>

Property Value
Posted by Islam Elkhayat at 3/17/2005 9:46:00 AM
I'm using System.Reflection.PropertyInfo to list all property in a class.. I can access the property name& type but i can't get the current... How could i access the current property value?? ...more >>

problem with code download file - two window file download
Posted by Sam -- at 3/17/2005 9:45:55 AM
Hi all I've a problem I write code for download a file. Sometimes when I run the code, the window of "File Download" appears I push the "open" button and the window of "File Download" appears again This happens in this situation windows 2003 - IE version 6.0.3790.0 note: If i comment the ...more >>

Programmatically finding machine.config
Posted by Kevin Jackson at 3/17/2005 9:02:15 AM
Is there a .NET framework call(s) or technique that allows one to programmatically find the machine.config file. ...more >>

Error creating ASP.net web app/project
Posted by Skip at 3/17/2005 8:57:01 AM
Ok, I've been through the 10,000 suggestions for fixing this problem (frustration is beginning to set in), however, none have completely (see change below) worked for me. Stats: XP Pro, IIS 5.1, VS2003 IIS log: #Software: Microsoft Internet Information Services 5.1 #Version: 1.0 #Date:...more >>

IndexOutOfBounds on databinding
Posted by Kevin Swanson at 3/17/2005 8:49:12 AM
I'm writing what should be a very simple app against an Oracle database. The app has a number of user controls, any one of which is loaded into a main display page using the loadControl method, depending on which menu item a user selects. Each of these controls follows the same basic pattern: ...more >>

File Up and Download best methods using ASP.NET 2.0
Posted by Bob Hanson at 3/17/2005 8:41:54 AM
Hello All, I am looking for best methods for file up and down load on the web using ASP.NET 2.0. I am talking about binary files with a size up to 10 MB. Thanks for your help, Bob Hanson *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET.....more >>

Use XML to read/write a counter variable
Posted by gce at 3/17/2005 8:26:05 AM
Hi, I am an old vb6 programmer and new to ASP.NET. Please help me on the way. How can I read/write a variable to a server-file. (maybe XML?) Have to use a lock function too i think. Thanks, Gert ...more >>

Building Dynamic tablecells
Posted by gane kol at 3/17/2005 8:24:52 AM
Hi, In C# code behind, I have to generate the table row and cells dynamically based on the value stored in the datatable. For eg: In my datatable, Element Type ElementRow (column name) (columnname) -------------------------------- label 1 textbox ...more >>

.NET and ActiveX question
Posted by clsmith66 at 3/17/2005 8:19:03 AM
What is the .NET equivalent to the old ActiveX or is there any? I have an ASP.NET appliction and I need to build a control or something to access a program on a server from a client machine without going through the web server. I'm using VB.NET for my code behind. Any suggestions? Thanks...more >>

Application pool
Posted by Steve Bugden at 3/17/2005 7:59:08 AM
Hi, I am having trouble with an asp.net application on an ISP's web server. For some reason the permissions on my files and directories change for no reason that I can determine. I have copied files over using ftp and also use Frontpage to update files and therefore have frontpage serve...more >>

Need VB.Net References
Posted by A P at 3/17/2005 7:55:51 AM
Hi! I am new to VB.Net, and I am task to develop web based applications using VB.Net . I only have these infrastructure: Win2K server SP4 with .Net Framework 1.1 Visual Basic .NET 2003 Standard Using MS Access as its database I need a book/Internet URL that can easily guide me. Hope you ...more >>

no suggestions on this one??
Posted by Alejandro Penate-Diaz at 3/17/2005 7:39:34 AM
Hi. I have posted this question three times in this newsgroup as well as microsoft.public.scripting.jscript and have get no answer yet. Now I dont know if my question is too stupid or too weird, though usually my stupid questions get some funny answers. I am gona try once more before I give...more >>

DataBinder set property
Posted by Tu-Thach at 3/17/2005 7:21:03 AM
DataBinder has the GetPropertyValue that returns the value of a property of an object. It does this via reflection, but is very handy when you need it. Is there a class similar to DataBinder that does the setting of a property value? Something like DataBinder.SetPropertyValue(obj, "Prope...more >>

Loops in stored proc or webcode? Which is most efficient?
Posted by Roy at 3/17/2005 7:15:10 AM
Apologies for the cross-post, but this truly is a two-sided question. Given the option of creating Looping statements within a stored proc of sql server or in the code-behind of an .net webpage, which would you choose and why? Reason I ask is I created a webpage which essentially runs throug...more >>

Straight ASP in VS.NET Question
Posted by swoozie at 3/17/2005 7:03:04 AM
All, I have to set up a web server to handle the following call: <server URL>/Submit.asp?parm1={1}&parm2={2}&parm3={3} I'm pretty lightweight in ASP.NET and a pure noob in straight ASP. What's the easiest way to set up a simple server page to grab these three parms and invoke a method ...more >>

How to update a record in a datagrid if primary key is uniqueident
Posted by Hennie at 3/17/2005 5:01:02 AM
When trying to update a record in an editable datagrid I ran into a few problems. My update procedure is just not working. Can someone please have a look at my code and see what am I doing wrong. I had to set the datagrid's DataKeyField to MailSubscriberID manually since vs does not do it a...more >>

Fotballmanager.com
Posted by Kenneth P at 3/17/2005 4:43:03 AM
Hi, A few years back I attended a .net seminar in Stockholm where there were two guys (one from holland if I remember correct) and they had on Microsoft's wishes created a three-tier-app they called fotbollmanager.com as I remember it. It was on a Microsoft asp.net seminar. Anyway, they ...more >>

localhost SqlConnection error.
Posted by StephenRichter NO[at]SPAM gmail.com at 3/17/2005 4:34:14 AM
I have SqlServer loaded on my w2k system. The freeby I just downloaded from MS. Within WebMatrix I created a database. called it "WebMatrix" In WebMatrix I connect to the database. server: (local) Windows authentication Database: WebMatrix all of my web matrix .aspx pages u...more >>

Can we use isPostBack in UserControl
Posted by ad at 3/17/2005 4:18:17 AM
Can we use isPostBack in UserControl's Page_Load method ? ...more >>

creating files in network computers with VB called from ASP
Posted by hillah NO[at]SPAM gmail.com at 3/17/2005 2:32:58 AM
Hi, I am running a VB application from an asp page.. I mean that when pressing a button in the asp page the asp runs a vb application. The problem is that this VB Application is supposed to create files in network computers - and i checked that it works when i run it without the ASP. This can...more >>

Load Report Fails on ASP.NET app when report is on a different ser
Posted by hubristicbob at 3/17/2005 1:43:03 AM
hi, this might be an easy one to answer but I can't find the info on this. I am building an ASP.NET application that displays crystal reports from a network location. I can load any report on my local machine without a problem, but I can't use either a UNC or a mapped drive to load the re...more >>

VS2K3 - hotspots
Posted by Neven Klofutar at 3/17/2005 12:00:00 AM
Hi, How can I create image hotspots in VS2K3, and is there a way I can run them as server controls somehow ? Thanx, Neven ...more >>


DevelopmentNow Blog