all groups > asp.net > june 2004 > threads for tuesday june 29
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
New to .net need help/explanation
Posted by Dave at 6/29/2004 11:44:26 PM
Hi,
I'm new to asp.net and visual studio .net.
I'm trying to fix a few problems on a friend's web site and don't really
understand how .net works.
The site is in .net. All asp.net pages have codebehind specified.
Does this mean that the vb code has been compiled?
I notic... more >>
No suggestions why ActiveX control on a aspx page won't D/L on XP?
Posted by Joe at 6/29/2004 11:31:49 PM
I posted a question on 6/27 that I have an activex control which works fine
in Win2k but doesn't work for XP.
The activex control displays a progress bar, downloads a setup.msi file and
runs the installation.
On XP, the activex doesn't even download. No errors, security settings the
same on... more >>
Dynamically creating .xls file.
Posted by Asha at 6/29/2004 10:50:01 PM
Greetings,
I’ve query some data from the table, how can I push it into an excel file and allow user to save it? anyone done this sort of thing before?
... more >>
Dynamically creating .xls file.
Posted by Asha at 6/29/2004 10:49:01 PM
Greetings,
I’ve query some data from the table, how can I push it into an excel file and allow user to save it? anyone done this sort of thing before?
... more >>
client maintianing a connection to the server
Posted by Jake at 6/29/2004 10:45:14 PM
Hi All
I am trying to develope an asp intranet page that
displays data from a database, when the data in the
database changes I would like all of the people currently
viewing the ASP page to have the records on their screen
updated.
I dont want the whole page to refresh, as this would ... more >>
ASP.NET Image Upload... Guru needed
Posted by john-thompson NO[at]SPAM uiowa.edu at 6/29/2004 9:50:34 PM
We're sooo close. When we load the page to upload the image, all of
the prms go through except the binary image data. Using SQL server
with the data type set to "image".
Please help!
Thanks-
John
<%@ Page Language="vb" debug="true"%>
<%@ Import Namespace="System.Data" %>
<%@ ... more >>
Error when i run my page
Posted by WStoreyII at 6/29/2004 9:34:47 PM
i am getting the following error when i run my page
i know that it has something to do with the fact that i am running cassini
and not iis because i have windows xp home.
but i need to find a way around this so that i my run and test my web pages.
here is the error:
Server Error in '/' Applic... more >>
Namespace Access
Posted by Chris Glenn at 6/29/2004 9:28:01 PM
I want to register my namespace so all applications on the server have access. I have it placed individualy in the bin folders and it is a pain to update all sites. Can someone please point to an article or some other how to resource.
Thanks!... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Grid Paging
Posted by Red at 6/29/2004 7:36:01 PM
I have implemented the PageIndexChanged event handler and also cached the
data source to a session object. Everytime I click on the next page I get a:
Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
The page index is 1, the number of pages is 2. Any ideas?
... more >>
ConfigurationSettings.AppSettings vs. IIS Application
Posted by JMD at 6/29/2004 7:21:02 PM
I am curious to know if there are performance issues in choosing between A and B. Which performs best?
A. store string values in the web.config and pull them using ConfigurationSettings.AppSettings
B. Use Application_OnStart to store string values in Application variables... more >>
Pass Web FileObject to a class
Posted by kaushas at 6/29/2004 6:53:01 PM
All
I have a file HTML object, I want to pass this object to a class so I can write a common method for uploading files.
Idea is to avoid coding file saving in the forms submit button, but call a method that can process the file that just got submitted.
Is this possible at all? Any idea on h... more >>
Why am I getting these errors?
Posted by vbMark at 6/29/2004 6:31:31 PM
Here's my code:
public void DownloadImage(string sImagePath)
{
WebClient myWebClient = new WebClient();
myWebClient.DownloadFile(sImagePath,"blahblah.jpg");
}
Here are the errors:
The type or namespace name 'myWebClient' could not be found (are you
missing a using directive... more >>
Web User Control reference set to nothing when post back
Posted by Jie at 6/29/2004 6:10:03 PM
Hi, All
I am use Web User Control for State/Province drop down list.
Public Class TEQContactCreate
Inherits TEQBasePage
Protected ddlProvinceFilter As ProvinceDropDownList
Protected ddlStateProvinceStep2 As ProvinceDropDownList
....
When the page loads, there is no problem. But when... more >>
DirectoryServices and Windows Integrated Auth.
Posted by Mohamed Zaki at 6/29/2004 5:48:23 PM
Dear All,
I've develop asp.net solution to enumerate the domain users, this
solution using Windows Integrated Authentication, however on the staging
server it's working fine, but when moving the the live server, it throws
errors and i've to set the "UserName" and "Password" for the directory... more >>
ASP to ASP.NET question
Posted by vbMark at 6/29/2004 5:19:32 PM
Using previous ASP (not ASP.NET) I was able to pass off functions to COM
objects to do miscellaneous things.
Now, using ASP.NET, I want to pass off some work to a non-web program that
will do some work (access a SQL database, etc) and return the results.
Do I write a COM object in Visual S... more >>
Need help with a Dynamic Image Generation Service VB 1.1 (similar to 2.0)
Posted by moondaddy at 6/29/2004 5:14:42 PM
I read a great article by Dino Esposito about a control he built to help
generate images dynamically similar to how asp.net 2.0 will do it. His
sample worked in a C# project, but when I tried to write it in VB, it
wouldn't work (and no obvious errors). Its really quite simple (if you know
what... more >>
Force Download Not Working
Posted by localhost at 6/29/2004 4:51:12 PM
I have a text file that I need web users to get as a "forced download"
instead of displaying in the browser. The following Page_Load code is
not working, what did I miss?
private void Page_Load(object sender, System.EventArgs e)
{
string sendText = "[empty]";
if ( Session["sendText"]... more >>
404's, aspxerrorpath, and querystring variables
Posted by news.microsoft.com at 6/29/2004 4:44:49 PM
I'm trying to create a 404 handler that can record the *exact* URL that
caused the 404 to occur.
When I turn on custom error handling in the web.config, ASP.NET successful
redirects the 404 to my custom page (404.aspx), but the aspxerrorpath
querystring variable only shows what page the reques... more >>
Random Disappearing Cookies across ASP/ASP.net
Posted by Raterus at 6/29/2004 4:40:55 PM
Howdy,
I have one IIS Application, with asp/asp.net pages. I set a cookie like =
so in an ASP page.
Response.Cookies("AuthCookie")("hash") =3D md5(username & =
Application("HashCode")) Response.Cookies("AuthCookie")("username") =3D =
username
Then I response.redirect to my asp.net page,... more >>
Click event doesn't fire o dynamicly added user controls
Posted by Henke at 6/29/2004 4:30:28 PM
Hi
I have a aspx-page with a panel-control. On this panel control I add user
controls dynamicly with LoadControl and panel.Controls.Add(myControl).
On some of the dynamicly added user controls I have button's and handlers
for the click event.
Why doesn't the event get fired in the dynamicly... more >>
Re: Security?
Posted by JDP NO[at]SPAM Work at 6/29/2004 4:26:20 PM
Sorry, I fat finger posted too soon....
Is there a best practice of where to place the code for the connection and
stored procedures?
I'm using <AppSettings> in the Web.config file to hold my connection string, is
this safe?
I saw someone use a WebService from w/in a project to hold all t... more >>
wire enter to button click
Posted by Derrick at 6/29/2004 4:20:13 PM
Hi
I have a asp.net page that has 5 User we controls in it. My header control
has a search text box with a 'go' button.
How would I configure the button so it is 'clicked' when the user hits enter
on the keyboard?
Thanks
Derrick
... more >>
Automatic build process + automatic NuNit (2 in 1 solution)
Posted by gicio NO[at]SPAM gmx.de at 6/29/2004 3:55:32 PM
Hi!
Can someone tell me can I use MsBuild with NuNit today?
Or is MsBuild only available for MSDN subscriptions ?
Or what do you for an automatic build process + automatic NuNit testing.
I looking for a 2 in 1 solution (build + NuNit)
gicio
... more >>
Problem checking the lenght of a string
Posted by vbMark at 6/29/2004 3:36:06 PM
My code in the convert.aspx.cs page:
private void Page_Load(object sender, System.EventArgs e)
{
string sFile = Request.QueryString["File"];
if (sFile.Length > 0) <--- Error here.
{
Response.Write(sFile);
}
else
{
Response.Write("No file");
}
}
Causes
Excepti... more >>
How to Decide Between a Browser-Based or Rich Client
Posted by Rob Nicholson at 6/29/2004 3:27:54 PM
(PS. Please suggest another newsgroup for this if not really applicable
here)
I recently came across the following article which really sums up an issue
that's been niggling me for a while:
http://msdn.microsoft.com/netframework/using/building/windows/analystreports
/decide.aspx
We curre... more >>
Upload a file w/o a user interface?
Posted by vbMark at 6/29/2004 3:05:07 PM
From the URL Query String I'll get the file path like this:
private void Page_Load(object sender, System.EventArgs e)
{
string sFilePath = Request.QueryString["FilePath"];
}
Now that I have the path how do I upload the file to the server?
Thanks!... more >>
Server wide objects
Posted by Chris Glenn at 6/29/2004 2:39:02 PM
I want to share my .net objects amongst several websites on the same server. Can anyone direct me to an article or information on how to do this. I created a namespace with all of my classes and us it each bin directory for each site. It is a pain to do updates. What would be the correct terminology... more >>
window.showModalDialog and PostBack
Posted by Henry Johnson at 6/29/2004 2:26:22 PM
I'm currently opening an aspx page (myModalASPX) as a dialog box from
client-side script using window.showModalDialog(blah blah blah).
The dialog opens as expected. Now I'm adding functionality to the dialog
box/aspx page that causes a postback. What currently happens is that after
the postbac... more >>
What template to use?
Posted by vbMark at 6/29/2004 1:56:36 PM
Hi there,
I need to create an asp page using ASP.NET that does not have an interface
but only accepts URL Query Strings.
When starting a new project what template should I use?
Thanks!
--
http://www.vbmark.com/
A good place to start.... more >>
DataGrid
Posted by Jim Heavey at 6/29/2004 1:54:01 PM
I have a datagrid and there are 2 columns where I may or may not want to print based upon a condition.
I thought I could use the OnItemCreated Event and then turn the visibility flag on or off as the condition required, but I can not seem to be able to find and turn on the visibility property.
... more >>
is there a way to do this
Posted by Mike at 6/29/2004 1:52:22 PM
What i'm working on a project and what we want to do is, to allow the user
create a "my yahoo" type portal and customize it with their favorate sports
team. Is there any way or anything I could use to get all kinds of
information on a team or game that the user types in?
Example:
If the user ... more >>
Launching an asp.net application
Posted by sebastienforest NO[at]SPAM hotmail.com at 6/29/2004 1:40:50 PM
Hi
I have an asp.net application that use Session variables.
What I want to do is to launch an second instance of this application
by a link inside the first application.
The problem is: when I launch the second application, this second
application override the session variables values of the ... more >>
Setting DocType in Asp.Net
Posted by Kenneth Keeley at 6/29/2004 1:37:35 PM
Hi,
How do I set the DocType the Asp.net will use when it creates the html the
is sent to the client. I wish to create all my pages to a known standard,
mostly HTML 4.01 and I have found that Asp.Net pages don't always validate.
Is there a global setting that needs to be set or do I have to do... more >>
What's wrong with this?
Posted by vbMark at 6/29/2004 1:16:30 PM
The below code gives this message:
CS1519: Invalid token '=' in class, struct, or interface member declaration
What am I doing wrong?
<script language="C#" runat="server">
string sInfo = Request.QueryString["Info"];
TextBox1.Text = sInfo;
Thanks!
--
http://www.vbmark.co... more >>
Accessing form objects from Codebehind
Posted by vbMark at 6/29/2004 12:57:01 PM
Hi there,
Using ASP.NET and C# I am trying to access an object on the main form from
the "Codebehind" file default.aspx.cs but can't figure out how.
If I have Textbox1 then how do I put text in it from default.aspx.cs?
Thanks.
--
http://www.vbmark.com/
A good place to start.... more >>
Is it possible to use ADO.NET and ASP.NET databinding with textboxes , HELP!
Posted by Lloyd Sheen at 6/29/2004 12:50:34 PM
I have several apps that use a roll your own approach, but I am embarking on
a project which will not allow that with the time constraints.
I have gened up a little app to try the databinding approach. Simply it is
a page to maintain the Territories table in Northwind (SQL Server).
I have t... more >>
yet another...
Posted by David at 6/29/2004 12:48:53 PM
and now there's Visual C# 2005 Express Edition
http://lab.msdn.microsoft.com/express/vcsharp/default.aspx
sigh I find it harder to choose my environment then picking up on C# !!!
... more >>
Overloading the = in c#
Posted by shalafi at 6/29/2004 12:42:18 PM
Here's the issue.. I wrote up the middle tier as a model of the objects to
my satisfaction. but the result is that instead of asp.net pages using
datasets to construct the gui, they are dealing with User[], Article[],
Category[]... etc.
My first thought was to overload the = operator so i ca... more >>
beginning page load immediately on postback with a long load time ?
Posted by usenet_daughter NO[at]SPAM yahoo.com at 6/29/2004 12:39:37 PM
i have a dropdown control with autopostback=on that when selected,
posts back and populates a second dropdown. the 2nd dropdown takes a
while to load, giving the user time to start typing in other fields
before the screen refreshes. i would like to disable any user input
during this time.
I ... more >>
AutoPostBack on TextBox loses Focus
Posted by - Steve - at 6/29/2004 11:48:02 AM
I have two textboxe's (FirstName & LastName). I have set autopostback on
both of those. The problem is if you enter the first name and then tab, it
doesn't go to the next textbox. So then you have to click with the mouse on
the LastName text box. How can I keep the tabs going where they sh... more >>
Making a scroll
Posted by Marlene A. Roman at 6/29/2004 11:23:24 AM
Is there a way that when I show some fields below that don't fit in the
screen, it automatically makes a scroll down event so the user doesn't have
to scroll down the page by his own?
Thanks in advance
... more >>
<a... <img..>> in a <td> from code-behind... this can't be that hard
Posted by Henry Johnson at 6/29/2004 11:17:46 AM
Okay - I'm spinning my wheels on this one... can someone help me figure out
how to programmatically populate a table cell as follows (from C#
code-behind)? I've tried using a Literal control in the TableCell, a
HyperLink control, and an Image, but I'm not getting the results I want.
Here's the... more >>
Error trying to get totals in footer
Posted by me NO[at]SPAM privacy.net at 6/29/2004 10:52:22 AM
I have gotten the following error in trying to get totals to come out on a
footer.
Server Error in '/test' Application.
----------------------------------------------------------------------------
----
DataBinder.Eval: 'System.Data.Common.DbDataRecord' does not contain a
property with the ... more >>
What editor, what environment to program in?
Posted by David at 6/29/2004 10:38:58 AM
hi
been using Editplus for JScript/MS Access/ASP for 4 years now while asp
programming. Would like to try some other environment now while migrating to
C#/.Net
Some environments I find interesting are
* Aspexpress
text editor so I get full control of my code. Might be too simple?
* Visual... more >>
NEW: Visual C# Express Edition
Posted by clintonG at 6/29/2004 10:37:30 AM
Visual C# 2005 Express Edition [1] is a simple, lightweight, integrated
development environment designed for beginning programmers and
non-professional developers interested in building Windows Forms,
class libraries, and console-based applications. Visual C# 2005 Express
Edition includes many o... more >>
Passing data from server side to client side?
Posted by Mike Fellows at 6/29/2004 10:26:40 AM
Ok, im not sure if this is at all possible and if it is how i go about it is
beyond me
i have a piece of client side code that requires a piece of data from the
server side (an ID number in this case)
how can i pass the data from one side to the other, or retrieve it from the
webform on the... more >>
COMBO BOX INSTEAD OF DROP DOWN BOX
Posted by Angel at 6/29/2004 10:13:02 AM
is there a combo box that a user can key something in or select from the drop down list? i added the webcontrol drop down but there is no property to allow the user to key into the text portion of the control.
thanks... more >>
Autopostback fails because of script error
Posted by Ethan Adams at 6/29/2004 9:45:37 AM
I have a user control that is a header that I intend to use in a number of
pages. This user control contains a number of ASP list boxes and an ASP
check box. I have set the Autopostback to true for these ASP controls. I
then put the tag for the user control in a page and ASP.NET writes a littl... more >>
XHTML problematic, in xml used w/ .net
Posted by Jason Shohet at 6/29/2004 9:38:19 AM
I have an xml file (that is updated through infopath), which populates
various .net controls.
One of the elements in my xml file contains XHTML tags: And the xml text
reader object that .NET provides, cannot read elements of an xml file that
contain xhtml. The reader does not return the text, ... more >>
Displaying Special Symbols
Posted by Gibs at 6/29/2004 9:36:29 AM
Hi
Is there any way to show the special symbols[CopyRight, Cents] in a =
TextBox.
Thanks in Advance
Gibs... more >>
Popup window VS SmartNavigation
Posted by Grey at 6/29/2004 9:33:36 AM
Hi,
I'm having a problem with SmartNavigation. When I open up a new (popup)
window using Response.Write, "Response.Write ("<SCRIPT
LANGUAGE='JavaScript'>window.open('abc.aspx')</SCRIPT>");" on one of my web
pages, I got an error. In my application, I need to use both SmartNavigation
feature a... more >>
Cannot select checkboxes in checkboxlist within repeater.
Posted by jake NO[at]SPAM attis.org at 6/29/2004 9:18:40 AM
I have the following function that created a checkboxlist and "is
supposed" to be checking values that are already saved in the
database. As I step thru the code, it is in fact marking the
approporiate checkboxes as checked as I watch them in the watch windo
and I see the execution of the code ... more >>
Web page width is shrinking/scrunching on some machines
Posted by epaetz41 NO[at]SPAM hotmail.com at 6/29/2004 8:56:03 AM
I've got an intranet site running and when viewed through a couple of
machines the pages appear 'scrunched'.
Labels are reduced in width, forcing them the display multiple lines
of text, instead of a single line.
All buttons are shortened, with the displayed text truncated.
Text boxes ar... more >>
Dropdownlist in datagrid
Posted by Darren at 6/29/2004 8:54:14 AM
Guys,
I have a template column with a picture and when I
click on it I would like to enter edit mode and instead
of the picture being displayed I need a drop down list
populated with data.
once data is selected from the list I need to exit edit
mode and replace the picture with a hy... more >>
VS.NET and HTTPS
Posted by mike parr at 6/29/2004 8:46:54 AM
I have written a couple of HTTPS websites using notepad, and now I'm
trying to write one in VS.NET but I'm having a few problems. I need a
default file in the root folder which redirects to a secure folder where
all my files (excluding bin folder, web.config) reside.
To start off with I devel... more >>
%23 in querystring
Posted by Jeremy at 6/29/2004 8:29:54 AM
I'm trying to understand the following part of a QueryString value: What
does the %23 mean? I presume that the 'efefef' is a color (RGB) value. What
about the '&'. I thought the ampersand (&) signaled another variable in
the querystring - but apparently not in this case?
BG=%23efefef&... more >>
Problems emailing a control
Posted by foehammer NO[at]SPAM hotmail.com at 6/29/2004 8:23:40 AM
I am using the standard .NET method of sending an email. My users will
be filling out a web form with various pieces of information. I have
created a control with properties that are the same as the items on
the form. When the user clicks submit, my code is as follows:
InformationRequest req =... more >>
Visual Web Dev Vs. VS.NET
Posted by Scott G. at 6/29/2004 8:03:11 AM
Does anyone know if one can install Visual Web Dev side by side with =
VS.NET 03 and NOT screw up VS.NET (and ASP.NET 1.1)? I might like to =
play around with ASP.NET 2.0 -- but not if there's a remote chance that =
it going to screw up VS.NET.
Thanks.... more >>
disabling user input after AutoPostback dropdown selected ?
Posted by usenet_daughter NO[at]SPAM yahoo.com at 6/29/2004 6:59:23 AM
i have a dropdown control with autopostback=on that when selected,
posts back and populates a second dropdown. the 2nd dropdown takes a
while to load, giving the user time to start typing in other fields
before the screen refreshes. i would like to disable any user input
during this time, and po... more >>
Exchange data between ASPX pages with no refresh
Posted by Dimitris Pantazopoulos at 6/29/2004 6:50:02 AM
Hi
How can I exchange data between two ASPX pages without a round-trip?
Let's say from the 1st page I call the 2nd one in a new window and then I want to return back a value. BUT without refreshing (i.e. reloading the 1st page).
I see this kind of exchange happening in lots of sites, like Yaho... more >>
Multiple Occurances Of Value In String
Posted by Jim Heavey at 6/29/2004 6:17:02 AM
I am wanting to find any instance in a string where more then on occurance of a value occurs and replace it with a single occurance of the value. Specifically I want to search a text field and find any time where more then a single ' (tic) occurs in succession, and replace it with a single ' (tic).... more >>
Error: "The viewstate is invalid for this page and might be corrup
Posted by Bartosz Krzywicki at 6/29/2004 5:21:02 AM
I have a problem with the following error:
"Server Error in '/sir' Application.
--------------------------------------------------------------------------------
The viewstate is invalid for this page and might be corrupted.
"
Page properties are: EnableViewState="True" EnableViewStateMac=... more >>
Asp Web Application Problem
Posted by WStoreyII at 6/29/2004 5:04:44 AM
When i try to make a new web application project i keep getting the
following error:
Visual Studio.Net cannot create or open the application. The likeliest
problem is that requiered components are not installed on the local web
server. Run Visual Studio.net setup and add the web development ... more >>
cassini sample server
Posted by WStoreyII at 6/29/2004 2:55:21 AM
I have downloaded the cassini web server, as i was told that it would allow
me to develop asp.net applications since i can not use iis on windows xp.
However i do not know how to install it
i cliked on the executable and went through that process. But then when i
opened up the vstudio.net ide a... more >>
Getting Windows Controls to Interact with Web Controls
Posted by lltaylor2000 NO[at]SPAM yahoo.com at 6/29/2004 2:47:42 AM
Hello,
Does anyone know if windows controls can interact with web controls or
vice versa.
For example, I would like to have a web page with a Windows Tree
Control embedded, and use that windows control to navigate around the
web application and interact with other web controls.
I know th... more >>
Html Component Question
Posted by WStoreyII at 6/29/2004 1:00:15 AM
I dont think that it really matters, but just for my own reference?
I found a calendar component tutorial online for html components.
in this component the tag for a script was <SCRIPT
LANGUAGE="JavaScript"></SCRIPT>
here is the problem when i tried this in my own component it would not work... more >>
Data Binding with ADO.NET and ASP.NET
Posted by Lloyd Sheen at 6/29/2004 12:20:21 AM
I have several apps that use a roll your own approach, but I am embarking on
a project which will not allow that with the time constraints.
I have gened up a little app to try the databinding approach. Simply it is
a page to maintain the Territories table in Northwind (SQL Server).
I have t... more >>
Queries on tables from different data sources
Posted by John at 6/29/2004 12:00:25 AM
Hi
I need to perform two queries in sequence on two identical access tables.
The source table is coming from a dataset returned by a web method and the
destination table is from a local access table. The queries are;
UPDATE [destTbl] INNER JOIN srcTbl ON [destTbl].entry_id = srcTbl.entry_id
... more >>
|