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

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

how to connect to sybase
Posted by xinhuanet.com at 6/3/2005 11:45:41 PM
can you tell me how to connect to sybase database with vb.net? please give me one example.thank you! ...more >>


Pass Array to function. Can't this be done?! Urgent. Thanks.
Posted by Shapper at 6/3/2005 11:24:52 PM
Hello, I have this function: Sub MyFunction(ByVal myString As String, ByVal myArray() As String) .... End Sub And I am calling it this way: MyFunction("hello", {"ola", "hola", "hello"}) I am having problems in passing the array, What am I doing wrong? Thanks, Miguel ...more >>

Page.ProcessRequest...
Posted by Philipp Schumann at 6/3/2005 10:55:51 PM
Hi there, I have added an aspx-Page "home.aspx" with the corresponding code-behind class "home.cs". I also have a HttpHandler class that implements IHttpHandler. Do you know why the following code is not rendering my "home" page at all (only empty, default HTML scaffolding code is "gener...more >>

wait windows
Posted by yujohan NO[at]SPAM gmail.com at 6/3/2005 10:26:51 PM
Dear all, I have an aspx page which do a complex query on web service database. The query is take very long time, more than 1 minute. So, I would like user know that prosess in in progress, like something in singaporeair.com if we do booking online. It will popup a window and the windows wil...more >>

Cookie Question
Posted by William at 6/3/2005 9:47:21 PM
ERROR: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. This if then statement only works if a cookie exists. It fails if the cookie does not exist. How can I turn off lines 2 to 9 if a cookie does not exist (ie: if the cookies does no...more >>

How to create this string?
Posted by Shapper at 6/3/2005 9:23:42 PM
Hello, I am trying to create a simple code but I am having problems: 1. Create an array of integers: myArray = (1,0,1,0) 2. Detect the size of this array. 3. Create a string like this: "item" & myArray(0) & "item" & myArray(1) ... In this case I would get the string: "item1item0item1i...more >>

Newbie Question - AutoPostBack
Posted by damiensawyer NO[at]SPAM yahoo.com.au at 6/3/2005 8:36:08 PM
Hi, I'm wondering if someone can help me with an autopostback issue. I have three controls Textbox1 Textbox2 button1 The textbox's have autopostback set to true. This is because we need to do some validation in the textchanged event when they leave the control to update a 'valid/inva...more >>

Several questions
Posted by eitan at 6/3/2005 7:52:11 PM
Hello, I am using Microsoft Visual Studio 2003 .NET. I have several question, please. 1) I have a connection to the database, which I create it at login, by application("conMain") (I have some problems by using session("conMain"), see question 2). I don't know if it's a good thing t...more >>



ASP.Net Validators
Posted by tperri at 6/3/2005 7:38:04 PM
I'm placing a ton of validators on a form where a user creates an account. All I want to do is show the errors in the validation summary and not in each individual control. I have a validation control set up already as well as the field validators. How do I do this? Thanks Therese...more >>

cookies question
Posted by William at 6/3/2005 6:21:22 PM
I'm new to ASPX. In my .aspx page I set multiple cookies from the session variables to the "visitor" container: dim cookie as HttpCookie cookie=new HttpCookie("visitor") cookie.Values.Add("cid", Session("sid")) cookie.Values.Add("ckeywords",Session("skeywords")) co...more >>

Asp.NET and master-detail input?
Posted by Ozgur YASAR at 6/3/2005 5:24:23 PM
Hi, i need to be able to active; on the first page a process is started with a (master) record insert and it will open next page on the next page a datagrid will be used to insert update delete detail vales of the master record finally the "save" button will actually save the in...more >>

How do I open a new browser window programmatically?
Posted by Nathan Sokalski at 6/3/2005 5:22:36 PM
How do I open and change properties of (such as size, position, scroll position, visibility of toolbars, etc.) a browser window? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/ ...more >>

Print the page
Posted by simon at 6/3/2005 5:17:52 PM
When user click the print button, I would like to read page stream, remove from it the parts I don't won't to print and then show him the printer friendly page. How can I do that? Any example? Thank you, Simon ...more >>

modifying control apperance on the webpage
Posted by matthias s. at 6/3/2005 5:11:41 PM
Hi there, Is there a way to safely (meaning, it yields identical results in most browsers) customize the appearance of standard WebControls such as a TextBox or a DropDownList? I know that I can manipulate a TextBox' appearance by using a style definition, but this doesn't seem to work w...more >>

zip files and pdf files
Posted by Régis Soares at 6/3/2005 4:48:08 PM
hi, how to generate zip files and pdf files in asp.net with vb.net? thanks ...more >>

Datatable lot of Columns
Posted by Paperback Writer at 6/3/2005 4:20:02 PM
Hi I have around 40 columns from my PROC and i need to return as a DataTable but if very difficulty to me add the columns in DataTable manually...Is there a way to accomplish that dinamically ? Manually: dt.Columns.Add(new DataColumn("col_1")); dt.Columns.Add(new DataColumn("col_2")); AND S...more >>

Showing records as a Table format
Posted by Kenny M. at 6/3/2005 4:03:02 PM
Hi I have a SqlDataReader getting 1000 records from a table and showing it into a DataGrid (via binding) It looks like Rec1 Rec2 Rec3 ...... What ideas can you give me to show it like a table (rows an columns) Rec1 Rec2 Rec3 Rec4 Rec5 Rec6 Rec7 Rec8 .... thkns ...more >>

windows form controls in place of web controls in .net 2.0
Posted by Bryan ZM at 6/3/2005 4:01:02 PM
I saw a sample app at the VS live conference in San Francisco this year, they had a gridview control on a web form, but when .net 2.0 was detected on the PC it actually rendered a .net form control in place of the web control. I am playing around with beta 2 and trying to replicate that beha...more >>

Missing QueryStirng?
Posted by VR at 6/3/2005 3:34:27 PM
I'm integrating my application with a Flash front-end and when the Flash requests my login page with ?login=x&password=y queryString appeded to the URL, this information get's lost. If I put the entire URL in my browser, everything goes fine, but, when I call it from Flash the query string ...more >>

Productivity tools for writing web-apps/JS?
Posted by Paul W at 6/3/2005 3:34:01 PM
Hi - I'm developing an asp.net app., but find I spend HOURS cranking out javascript by hand (ie. typing it into Visual Studio which offers little more than Notepad). All the server-side stuff in asp.net is great, but in order to improve the UI I find a need lots of JS. There's GOT to be a bett...more >>

DLLInport from a ASP.NET web app using C#
Posted by Ravneet at 6/3/2005 3:31:03 PM
I am trying to do some calls to unmanaged DLL that I have written. I am doing it in the Session_Start of my Global.asax.cs. The first time I call a function in my DLL it returns correct string value. The return type in unmanaged DLL is LPSTR (tried LPTSTR too). There are no in/out params in t...more >>

Tricky JavaScript/ASP.NET Question
Posted by Roy at 6/3/2005 3:03:54 PM
Hey all, What I'd like to do is take a datagrid and, depending on the value of individual cells, display various information specific to that cell by using some javascript method. In other words, an onmouseOver event for each cell that dynamically displays popup info depending on the cells va...more >>

Tricky JavaScript/ASP.NET Question
Posted by Roy at 6/3/2005 3:01:38 PM
Ok, what I'd like to do is have a datagrid which, when someone moved their mouse cursor over the cells, more information would pop up (using JavaScript) about that specific cell, depending on it's value. In other words, an onmouseOver for each individual cell with popup info specific to it's v...more >>

Get user group
Posted by Vincent Vinet at 6/3/2005 1:47:52 PM
Is it possible to get the name of the group(s) the user is part of when using integrated windows authetification? ...more >>

session.abandon doesn't!
Posted by Paul W at 6/3/2005 1:20:09 PM
Using default session handling (ie. inproc and with cookies). I have a 'logout' button that returns the user to the login screen and does a session.abandon. HOWEVER, if they then log back in (even with a different username) they will have the same sessionid as before! This is not what I exp...more >>

How to upload files to a web server in asp.net
Posted by Andrew at 6/3/2005 1:04:02 PM
Hello, friends, I wonder how to upload files from client to a web server in asp.net. I wrote one in InterDev 6.0 to upload image files to a web server, it was quite lengthy and easy to have mistakes. Does asp.net make it a lot easier? Any sample source code or reference papers? Thanks a ...more >>

Q: what is problem here
Posted by JIM.H. at 6/3/2005 12:35:02 PM
Hello, I am trying to send Where clause as a parameter. Here is the detail: Select statment: // sqlSelectCommand1 // this.sqlSelectCommand1.CommandText = "SELECT * " + " FROM myTable " + " WHERE @WClause "; this.sqlSelectCommand1.Connection = this.sqlConnection1; this.sqlSelectCommand1...more >>

iif not working
Posted by rodchar at 6/3/2005 12:25:43 PM
hey all, i'm using an iif and it's not working how I think it should work (go figure). Anyway, IIf(IsNothing(Request.QueryString("Sd")), Me.sortDir = "asc", Request.QueryString("Sd")) When i run this the expression evaluates as true but the true part doesn't happen for some reason. I...more >>

Resuming scroll position
Posted by Emmanuel at 6/3/2005 12:17:38 PM
Hi, I have placed a DataList control inside a panel control to obtain a scrollable list using the overflow:auto attribute. The rows in the data list contains and edit LinkButton to enable editing of the selected row via postback. My problem is that if i click on the edit button of a row wh...more >>

Q: convert to numbers
Posted by JIM.H. at 6/3/2005 12:05:16 PM
Hello, string newStr=myStr.Substring(1,3); int newNum = System.Convert.ToInt32(newStr); This fails if newStr does not have all characters as numbers. How can you do this in a professional way? Thanks, Jim. ...more >>

How to use a value of a datareader?
Posted by Shapper at 6/3/2005 11:59:17 AM
Hello, I have created a datareader function in a asp.net/vb web site. The datareader returns only one record with 2 fields: [message] and [imageURL] In the same aspx.vb I want to use this values as follows: myImage.ImageURL = [ image URL ] myImage.Text = [ message ] How can I do this?...more >>

Localhost
Posted by MW de Jager at 6/3/2005 11:56:15 AM
Hi I'm trying to connect to a database on my machine from an ASP.NET appliaction. The connection string currently contains my machines name on the LAN in stead of "localhost". If I change the connection string to look for the database on localhost, I get an error stating that the database...more >>

Retrieving Sharepoint Lists
Posted by Richard at 6/3/2005 11:51:18 AM
Hi I'm new to ASP.NET (1.1) development and I was wondering if anyone knew of any good tutorials or websites where I can find out how to populate a drop down list control using a Sharepoint list? Thanks ...more >>

Body
Posted by Victor Rodriguez at 6/3/2005 11:41:32 AM
Is there a way to add from the server side of a page an onunload="something()" to the Body tag of a page? thanks, Victor ...more >>

Diagramming a web site.
Posted by UJ at 6/3/2005 11:29:00 AM
Are there any tools out there that will graphically 'map' a web site so that you can see how the pages are related to one another? TIA. ...more >>

can't access file on a remote file server
Posted by reycon at 6/3/2005 11:14:01 AM
I have a problem that has been doggin me for 2 days now. I have a web app that needs to access files on another server in the same domain. but nothing that I have tried has allowed the web app access to the files. the system is set up as follows: Server 2: Windows 2000 server contains ...more >>

Frames and Control Value Question
Posted by David Hearn at 6/3/2005 11:10:20 AM
I am using frames in a site that I am building (I know! But not my choice). I have the need to be able to get the value from a DropDown List that is in one frame and read it from another frame. I know there is a way to do this using client side code, but I'm not sure how. I've never been a jav...more >>

Tracking Logged in User
Posted by Harman at 6/3/2005 11:10:04 AM
Hi, I have an ASP.NET application in which if a user has logged in with a set of credentials then i do not want to allow another user to log-in with the same credentials. For this i am thinking of keeping a flag which would let me know if the user has already logged-in or not. Problem ...more >>

Impersonation and Network Share
Posted by Jason MacKenzie at 6/3/2005 11:09:40 AM
I have an asp.net application with a treeview control that accesses a network share and recurses through all the directories and displays the structure on a scree - pretty standard stuff. I impersonate a domain admin account with the code that I will attach below. When I step through the co...more >>

Using ASP.net to create a website
Posted by Joe_Black at 6/3/2005 10:53:17 AM
Hi all, I have to admit when it comes to websites and the like I'm a complete novice, so I want some advice/opinions please. I have been writing apps for Windows for about 7 years now, and for several years before that for DOS and now, I develop in C# these days, but a friend asked me th...more >>

File Dialog to choose a path and file
Posted by B Garrett at 6/3/2005 10:44:34 AM
Hi, I have a .ASPX page using C# and I need to read in a text file from a selected path. so in need the file dialog box to allow the user to choose the path and file that they want to read in. What command can I use todo this in a .ASPX page, I tried getting it to use windows that has ...more >>

Clear Menu
Posted by Shapper at 6/3/2005 10:41:00 AM
Hello, I have this code in my aspx file: <div id="dmenu"><CAMenu:Menu id="myMenu" runat="server"></CAMenu:Menu></div> On my .aspx.vb file the menu is build in Page_Load. At a certain time I need to clear the built menu and restart. Basically I need to get back to: <CAMenu:Menu id="myMe...more >>

Can't get querystring to post to second page
Posted by Chumley Walrus at 6/3/2005 10:17:24 AM
I've got a c# script whereas I am trying to post from a textbox on my firstpage.aspx over to page2.aspx, but the error I get is:The name 'txtstuff' does not exist in the class or namespace 'ASP.page2_aspx' firstpage.aspx button object subroutine: /////////////////////// private void btnSubm...more >>

Generate DataSet rename tables
Posted by ASP.Net programmer at 6/3/2005 10:12:47 AM
I have a few SQLDataAdapters which select a MAX() value from a few different tables. Here is a sample of the SQL statement: SELECT MAX(startdate) AS startdate FROM some_table1 WHERE (startdate <= GETDATE()) The problem I have is this: When I select a few of those SQLDataAdapters to gener...more >>

Problem with machine.config
Posted by Jorge Ochoa at 6/3/2005 10:10:04 AM
Hello every one: I have a problem: We have applications in a share server but they have changed the machine.config <trust level= "Full" to <trust level="Medium", this does not let me use assembles like a text editor of htlm. I tried to write down this line: trust level="Full" at the web.co...more >>

problem with <object>
Posted by Zbigniew Kawalec at 6/3/2005 9:49:53 AM
Hello I have two external controls (dll) in my project. I try to insert them on my aspx page like this: <OBJECT id="axGr1" style="Z-INDEX: 106; LEFT: 176px; POSITION: absolute; TOP: 16px" height="272" width="384" classid="axGrafEd.dll#axGrafEd.axGr" name="axGr1" VIEWASTEXT> </OBJECT> ...more >>

ASP.NET and Images not displayed!!
Posted by Stelios Skiathitis at 6/3/2005 9:43:55 AM
In a datagrid I create a template column having a hyperlink to an image file in a specific folder. Depending on the row id the link to the image is different. The NavigateUrl property of the hyperlink is like http://localhost/imgFiles/afisa.jpg When i click the link a blank image icon is show...more >>

Exception block
Posted by J-T at 6/3/2005 9:36:41 AM
I'd like to use Exception block for my asp.net application,but apparently there are two things available now: 1)Old exception block 2) exception block represented in enterprise library. I thought I read somewhere they are not using ApplicationException anymore in Elib and I don;t want to us...more >>

An Automated process of watching a network file folder, reading a file in it and deleting the file using ASP.NET ?
Posted by Luis Esteban Valencia Muñoz at 6/3/2005 9:32:31 AM
Hi everyone, I created a VB.NET application that looks at a folder in my local system from which I can read the file, enter data into the database and delete the file. I am using the filewatcher class.. However I need to do the same with ASP.NET. I want this application to b...more >>

Reasons To Migrate to 2.0
Posted by Jeffrey Todd at 6/3/2005 9:28:44 AM
I have a heavy investment in an ASP.NET Web application built on 1.1. I have read about a bunch of new features coming in ASP.NET 2.0, and I don't see that I need the *new* features. So, what would be some good reasons for me to switch to 2.0 if I don't need its new features. Are existing feat...more >>

Event not firing
Posted by Luis Esteban Valencia Muñoz at 6/3/2005 9:26:53 AM
Hello Experts, I have three classes: Globals.cs, FunctionalArea.ascx.cs, and ReprotList.ascx.cs. The idea is that when one drop down is changed (i.e. Functional Area), another drop down on the page (Reports) would get updated. Both of theses are controls in the same web form. In Global...more >>

Using FindControl on editable datagrid
Posted by zambizzi at 6/3/2005 9:22:03 AM
....I can't seem to get my hands on a control I'm loading in an editable datagrid. Here's my datagrid control: <asp:datagrid id="GLRulesGrid" runat="server" autogeneratecolumns="False" oneditcommand="GLRulesGrid_Edit" ondeletecommand="GLRulesGrid_Delete" onupdatecommand="GLRu...more >>

Conditions for HttpContext == null
Posted by Luis Esteban Valencia Muñoz at 6/3/2005 8:48:42 AM
I have a 2 base classes that do error handling -- one for pages (System.Web.UI.Page) and one for applications (System.Web.HttpApplication, Global.asax uses it). Are there any situations in either of these error handlers where HttpContext.Current would be null? Page Error Handler public c...more >>

How to retrieve control's value from ViewState
Posted by epigram at 6/3/2005 8:41:28 AM
I'm responding to a button click event on an asp.net web form. I then need to retrieve the value from a TextBox control and I want to compare it against the control's previous value to see if it has changed. How can I retrieve a control's previous value from the ViewState? I know that I cou...more >>

shdocvw
Posted by jose at 6/3/2005 8:32:04 AM
ow resolve this http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.interop/2004-06/0294.html i put [STAThreadAttribute()] or [STAThread()] int he main() but don't work.... thank...more >>

Downloading data and save in a zip file (ASP.NET program)
Posted by bienwell at 6/3/2005 8:14:03 AM
Hi, I'd like to do downloading big data from my table into a zip file in ASP.NET program (without displaying data on the datagrid control) by an event button_click . If you have your advises or sample codes, please send it to me. Thanks in advance. ...more >>

Command Execution
Posted by Niggy at 6/3/2005 6:04:02 AM
I think I'm missing an execute command here. Please help. Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Me.Label1.Text = ListBox1.SelectedItem.Value() Me.DataGrid1.Visible = False ...more >>

FormView and ObjectDataSource - Delete doesn't work
Posted by John Bailey at 6/3/2005 5:52:01 AM
I am using a formview with an ObjectDatasource in ASP .Net 2.0. Everything works fine until I try the delete. The ItemDeleting event fires, so I know it should fire my delete method, but instead I get an error: No parameterless constructor defined for this object, and the delete method is n...more >>

ListBox index values
Posted by Niggy at 6/3/2005 4:24:03 AM
Hi there, I would like to display the values of the index as chosen by the user in a listbox. These values would be as per the datavaluefield. On testing I get a value of -1: Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles L...more >>

problem with grid
Posted by androoo at 6/3/2005 3:20:16 AM
Hi I am learing how to use the grid in asp.net. Im trying to replace the button columns with nice friendly images. So : <asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn> would become : <asp:TemplateColumn> <ItemTemplate> <asp:ImageButton id="cmdDel" runat="se...more >>


DevelopmentNow Blog