all groups > asp.net > march 2005 > threads for wednesday march 16
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
No AspNetSqlProvider in the Admin Tool's prover section
Posted by Lundberg at 3/16/2005 11:43:42 PM
Hello!
When I go to the Asp.NET Web Site administration tool and to the
Provider tab, select "select a single...." I only have
AspNetAccessProvider there, there is not AspNetSqlProver. Where have
the Sql Provider gone?
I'm using the Express products of both Visual Web Developer and SQL
Exp... more >>
Body Classname from Codebehind page
Posted by RJDev at 3/16/2005 11:25:16 PM
Hi,
I want to switch some info in the Codebehind page.
Everything is working but one thing.
I need to set the classname of the body at the page load.
I cannot find on how to do this from the code behind page.
Normaly i take the protectec System.Web.UI.HtmlControls. ..... Controls =
or other ... more >>
How to make a page entirely in C#, no .aspx?
Posted by sarah at 3/16/2005 10:56:56 PM
Take a look at the example on this msdn page:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuipageclassenableviewstatetopic.asp
The C# example looks like it is a complete page, and should work without a
..aspx.
The question is, after I make a dll o... more >>
Development Over VPN
Posted by Frank Bishop at 3/16/2005 9:13:35 PM
I have Visual Studio and SQL Tools on my local PC. I have a friend
across town who has a public Web server which is also a SQL Server (low
traffic sales staff site).
Could I push out my Visual Studio.Net apps to his Web server in addition
write against his SQL Server if he allows me to join hi... more >>
Design Issue
Posted by Matthias S. at 3/16/2005 8:20:45 PM
Hi there,
I'm wondering how the "best-practise" of seperating code into a DAL, BLL
and user interface go along with the point and click website creation
through data-binding in VS2003.
If I databind the gridcontrol on my page against a dataview where does
the business logic go? Should th... more >>
Datalist with one entry only - alternative?
Posted by Daves at 3/16/2005 8:05:33 PM
when viewing a single entry from database (title, text, image, link) isn't
it a little bit too much to use a Datalist control to databind? Is there
some other control for a single entry only?
... more >>
System resources and Dispose!?
Posted by James T. at 3/16/2005 7:24:33 PM
Hello!
I designed a custom class to handle image uploads. Everything is working
fine, but it seems that not all resources are not being released after image
upload is complete.
Could someone check this code:
http://www.it-xenius.co.uk/Class.vb.txt
Thanks!
James
... more >>
Question about array of controls
Posted by Diana M at 3/16/2005 7:17:01 PM
Hello,
I have started my first asp.net application (beginner). I have 2 text
boxes on the form that should contain 2 different dates (beginning and end).
It would be nice to have 2 small buttons besides each text box that allow to
open little form with calendar. I came from VB world wher... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Newbie question
Posted by Qwert at 3/16/2005 7:07:40 PM
Heya,
I want to use classes from custom assemblies:
<HTML>
<%@ Assembly Name="TestASP.dll" %>
<script language="VB" runat="server">
Dim objTest As New TestASP.TestASP()
Sub Page_Load(Sender As Object, E As EventArgs)
objTest.ShowMessage()
End S... more >>
adding text after hyperlink control
Posted by Daves at 3/16/2005 6:40:51 PM
I'm dynamically adding Hyperlink controls to a Label control. Can I somehow
add " : " string after each hyperlink control so that the links appear like
Link1 :: Link2 :: Link 3
... more >>
How to display empty for DateTime.MinValue in the datagrid
Posted by George Jin at 3/16/2005 6:14:33 PM
In the Datagrid clolumns there is one is DateTime Type. It always shows
DateTime.MinValue. How can It show emptty string instead? I Know I can do
conversion from DateTime to string before binding the string. Is there a
simple way?
--
Thanks
George Jin
... more >>
Shared Assembly
Posted by Yatin Patel at 3/16/2005 6:05:01 PM
Hello Everyone,
I have created a shared assembly and I installed it in GAC -- now I want to
use this shared assembly in my Web project. Can anyone help me with this --
i tried adding a reference to my project and specifying it in web.config as
follows:
<runtime>
<assemblyBinding xml... more >>
DataReader - Invalid attempt to read data when reader is closed.
Posted by Patrick Olurotimi Ige at 3/16/2005 5:50:26 PM
With the code below i get error:-
Invalid attempt to read data when reader is closed.
//Get a datareader
SqlDataReader objDataReader;
objDataReader =
objCommand.ExecuteReader(CommandBehavior.CloseConnection);
datalistoutput.DataSource = objDataReader;
datalistoutput.DataBind();
if (... more >>
Imports errror while attempting Insert
Posted by jason NO[at]SPAM catamaranco.com at 3/16/2005 5:32:41 PM
I'm picking up an 'IMPORTS' error for a simple database insert based on two
input entry boxes in my form?
It says an 'Imports' statement must preceede any declarations....... is this
perahps the '@' symbol??
Any help appreciated!
Thanks
Jason
------------------------------------... more >>
Regular Expression Validation Question
Posted by Jon Natwick at 3/16/2005 5:16:26 PM
I am using the following script to validate e-mail address format. The
problem I'm having however is that if I enter a long invalid string, like
"123456789012345678901234567890", CPU process for this process goes to
maximum and IE does not respond.
I am doing something wrong or is this a b... more >>
how to assign event handlers at run-time?
Posted by Dave R at 3/16/2005 5:15:36 PM
Anyone know how to wire up an event handler for controls added to an ASP.NET
page at run-time? Of course, at design-time this is easy: just enter the
method's name in the event tab of the control's properties. But what if I
do...
LinkButton lb = new LinkButton();
lb.Text = "Click me now... more >>
Unable to initialize server controls
Posted by mcollier at 3/16/2005 5:14:16 PM
I'm having trouble getting my server controls in my code-behind file to
initialize. I field names exactly match that of the control in the
ASPX file. The controls are also public. However, in my Page_Load()
method the fields remain unitialized (null). Each of my pages derive
from my own base... more >>
Using a base class for a loaded UC (Part III)
Posted by darrel at 3/16/2005 4:49:16 PM
Continuing my ongoing journey through base classes...
Thanks to help from some folks, I think I've gotten my syntax close (but not
quite) where it needs to be.
What I am doing: trying to load a variety of usercontrols programtically and
then assigning property values to them.
What I have:... more >>
The control values are not sent to the form code.
Posted by Cezar at 3/16/2005 4:45:01 PM
I am new to Web Forms and I ported my little app from Windows Forms to
ASP.NET and I am wondering why some things are not working as before.
Although I figured most of them, one of them is that on my form I have input
fields and a button causing to store all the input fields into the database.
... more >>
type or namespace could not be found
Posted by Andy Sutorius at 3/16/2005 4:32:50 PM
Hi,
I have a placed a user control I created in two seperate places within my
webpage. When I go to build the solution I am told that the user controls
are causing an error, "the type or namespace name 'ddlBillingCountry' could
not be found (are you missing a using directive or an assembly ref... more >>
Database Access and trusted connections
Posted by Shawn H. Mesiatowsky at 3/16/2005 4:30:14 PM
I have a strange problem here. I have my development computer with IIS
installed, and we have a SQL server as well on a windows 2000 server. both
are members of a domain. I have restricted access to my web app using NTFS
ACL's and have disabled anonymous logon and enabled windows authenticatio... more >>
How do work smartnavigation on redirect?
Posted by Rafael Leonhardt at 3/16/2005 4:12:59 PM
I know that smartnavigation works on formpost.
But I can to do smartnavigation works when I redirect to same page than post
the page.
Example:
Actual page is "mainpage.aspx?param=xx"
In a button click I Redirect to "mainpage.aspx?param=yy" but I want that
scroll stay on position of butto... more >>
DataGrid / Table / DataList
Posted by Sam at 3/16/2005 4:10:43 PM
Please advise any good website for reference of datagrid,table and datalist
except msdn and www.asp.net
I had learned asp.net 1.1 but I still weak at datagrid and table control
whereby I changeover from ASP 3.0 to ASP.Net 1.1
... more >>
Clear data in memory
Posted by Sam at 3/16/2005 4:09:10 PM
I using connected environment via ADO.Net and I wonder how to clear memory
once I exit Web Application (ASP.Net).
Possible to clear memory whenever perform ADO.Net to load data from SQL
Server to Client PC?
Please advise.
... more >>
DataList
Posted by Eduardo Rosa at 3/16/2005 3:31:50 PM
Hello people,
I'm using DataList to show some info from db (sqlserver), my question is
about how make a button that call a function to do something using info from
a line of the DataList.
I explain:
The code below will write a table with the values (from db) in their cells,
what I want ... more >>
Authorization
Posted by Leszek at 3/16/2005 3:31:12 PM
Hello!
I have an aspx page. By IIS page is connecting to SQL server and getting
records from database. But i cannot find where i made a mistake. It says,
that "Login failed for user xxx". Can someone help me to understand how it
works? Where i must permissions and how strong must it be tec?
... more >>
Problems with System.Web.Mail
Posted by Tiabes at 3/16/2005 3:01:05 PM
Hi,
I am using System.Web.Mail for a email feature in an Intranet Application
(ASP.NET). I need to use NTLM Authentication:
ms.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "2")
All work fine in my development machine, but when I run this application
from... more >>
post to another website
Posted by ejswanson at 3/16/2005 3:01:01 PM
I need to have a button on a web page that posts information contained on
this page to another web page on a completly separate site? How do I
accomplish this?
Thanks
Eric... more >>
Intercept IIS 404 errors? Issue with Viewstate and 404
Posted by Jonathan Folland at 3/16/2005 2:40:20 PM
I have been working on this most of the day and cannot find a solution to my
problem.
I have an application where I may not actually have a page. for example a
user may make a request for www.mydomain.com/page_that_does_not_exist.aspx.
In the Application_BeginRequest, I am handling that by r... more >>
Best Practices: Porting ASCX control to compiled Custom Control?
Posted by David Bowey at 3/16/2005 1:31:24 PM
Hi There!
What is the best way to port the ASCX control to complied Custom Control
(i.e. DLL)? Please share some pointers.
Also, can many ASCX controls be ported into one complied Custom Control?
Thank you all!!
Dave
... more >>
Q: query of dataadapter
Posted by JIM.H. at 3/16/2005 1:09:02 PM
Hello,
I have a SqlDataAdapter component in my design. Is there a way to send a
parameter to the query of SqlDataAdapter, I need go get adapter use a where
clause and extract data. Is it possible?
Thanks,
Jim.
... more >>
session variables, accessing from client side java script
Posted by ray well at 3/16/2005 12:52:49 PM
hi,
is a session varibale acessible for reading and writing from client side
javascript?
say i have a session variable called 'Session("Color")', and i want to
read/write to it, how would i refere to it say in a onclick event?
i would appreciate a snipet of code.
thanks
ray
... more >>
Exporting Datatable to csv file
Posted by Chris at 3/16/2005 12:49:03 PM
I am trying to export a datatable to a .csv file from an aspx page. I found
the following code, but would like to save the file on the client side and
not the server which is now happening. I would appreciate any help that can
be offered. Thanks.
// Create the CSV file to which grid dat... more >>
multithreading
Posted by kavitha N via DotNetMonster.com at 3/16/2005 12:19:12 PM
Hi
I have written a program which receives mails from server using POP3 in
ASP.NET . it's downloading sequentially. now i want to use the
multithreading in this regard where i can create threads for each and every
mail...and download those mails simultaneously.
if u have any idea please help me... more >>
Localization Question
Posted by Matthias S. at 3/16/2005 12:12:46 PM
Hi everybody,
I'm starting to design a Portal-Style application which should support a
couple of languages. What I figured is that one could use various resx
files to localize more or less "static" information such as labels and
short text blocks.
But what about Lookup-Table-Data stored ... more >>
Q: exception on DateTime field
Posted by JIM.H. at 3/16/2005 12:01:04 PM
Hello,
I am using the following code to update my table through datagrid, it works
fine if I have all the field as nvarchar, if I have DateTime type filed it
raises exception by saying “String was not recognized as a valid DateTimeâ€,
how can I solve it?
protected void DataGrid1_Update(... more >>
OLEDB Provider for SQL SERVER + Parameterized Queries
Posted by Martin at 3/16/2005 11:49:00 AM
Hi,
I currently have an application that connects to an MS ACCESS database. This
application uses an OLEDB connection string for MS ACCESS.
Now, I'd like to upsize the application so I converted the db to SQL SERVER
and this went well.
Next thing I changed the connection string from OLEDB... more >>
Add validation to droplist control
Posted by TJS at 3/16/2005 11:41:56 AM
I have a control, called FieldBuilder, which generates a droplist
dynamically for a form.
I want to add validation to the droplist thru the 'OnItemCreated' function.
i can't seem to get the "controltoValidate" portion correct.
Can anyone help ???
-------error msg:---------------
BC3031... more >>
Prevent browser from caching
Posted by Shardul Kulkarni at 3/16/2005 11:12:46 AM
Hi All,
What is the most reliable method of preventing a page from being cached by
the browser? I'm using ASP.NET v1.1.
Thanks.
Shardul.
... more >>
align center not working in IE
Posted by tshad at 3/16/2005 11:02:25 AM
I have the following:
<tr valign="baseline">
<td align="center" width="103" colspan=2 nowrap>
<asp:Button ID="ViewPositions" runat="server" Text="View Positions"
OnClick="ViewPositions_Click" />
<asp:LinkButton text="Advanced" onClick="Advanced_Click"
runat="server"/>... more >>
Basic 'What can ASP do' question
Posted by dgk at 3/16/2005 10:28:57 AM
I'm trying to persuade my company to use ASP.NET for a development
effort but I'm pretty weak in both ASP.NET and web development. I've
explained that ASP.NET works by turning the controls on the page into
html and java script so we don't have to write html and javascript
ourselves but clearly w... more >>
http post on asp.net
Posted by guoqi zheng at 3/16/2005 10:26:09 AM
For a credit card payment process, I need to do http post to post a xml
message.
In traditional ASP, I can use Msxml2.XMLHTTP.
What can I do in ASP.NET to do http post?
regards,
Guoqi Zheng
http://www.ureader.com... more >>
cannot find Webcontrols on MS site.
Posted by Peter Rilling at 3/16/2005 10:24:15 AM
A link on MSDN that should go to the downloads page for the IE Webcontrols
does not work. The site indicates the page does not exist. Where can I
download it from? I also believe this should have the source code, am I
right?
... more >>
web.config and error 500
Posted by xaime at 3/16/2005 10:07:34 AM
Hi all,
I have a problem with my application.
It run OK in my local server, but give me an Error 500 in the remote server.
I would like to configure web.config in order to see all error code, but I
don't know how.
Please, could someone help me?
Thanks a lot.
... more >>
Another bug in smart navigation.
Posted by aschmidt at 3/16/2005 10:06:36 AM
Another bug in smart navigation. If smartnavigation is enabled in the
page and session
timeout occurs, the framework redirects you to wrong location of
login.aspx page if you
use Forms Authentication.
Steps to reproduce.
1=2E Create new web project in Visual Studio
a. Go to File | New |... more >>
Why is Build Style menu option disabled?
Posted by Cezar at 3/16/2005 10:01:03 AM
I don't know why when I right-click on a label element on my html document
the 'Build Style' menu option is disabled.
The target schema is Internet Explorer 5.0, I was even able to build
document styles on Format-Document Styles, but still I can't build a style
for an individual element.
The... more >>
ASP.NET (VB) Upload
Posted by gce at 3/16/2005 9:56:35 AM
Hi,
I like to let users upload a file. I am using Visual Studio .NET ASP 2003
prof.
Am an old fashion VB6 programmer and new to this all. Please help.
<Gert>
... more >>
Force re-logon with Windows authentication
Posted by Jonas at 3/16/2005 9:42:53 AM
Hi!
I'm building an ASP.NET web application that needs an automatic logoff after
a specified time out period, forcing the user to enter his/her Windows
authentication credentials again. I use Windows authentication and IIS is
set to use Basic Authentication as this is going to be used in an... more >>
ObjectDataSource and Exception handling
Posted by nunya5200-bidness NO[at]SPAM yahoo.com at 3/16/2005 9:38:21 AM
I hope someone may have some insight to this issue...
I would like to know how to properly implement exception handling using
the ObjectDataSource control.
Specfically, I am doing an insert using an object that calls a web
service to accomplish this. The service returns a message to the
In... more >>
Counter. How to keep track of an order number?
Posted by gce at 3/16/2005 9:24:10 AM
Hi,
I am an old fashion vb6 programmer and new to asp.net (vb). So please
forgive me.
I like to have a ordernumber counter. How do i do this? By wrting a number
to a file and increasing it? Or are there smarter ways?
Best regards,
Gert
... more >>
The Demise of the Art of Programming
Posted by Kevin Spencer at 3/16/2005 9:19:39 AM
Is it just me, or am I really observing a trend away from analysis and
probem-solving amongst programmers? Let me be more specific:
It seems that every day, in greater numbers, people are coming to these
programming newsgroups and asking for ready-made solutions to fairly simple
programming... more >>
Datagrid set field item to disply only when new
Posted by Kurt Schroeder at 3/16/2005 8:33:03 AM
I have a data grid with about 20 repeating items. they
data:
colors, red
colors,blue
colors, green
Animals cat
animals bird
people, Tom
people, Bill
people, Kris
i want to have a level break so that THe first column will show only when
the "itemtype" is different from the previous. The ... more >>
What is the maximum number of request a Web Application can handle.
Posted by aB£ at 3/16/2005 7:57:33 AM
Hello Genius,
Greetings.
I would like know if someone can help me know how many request that an
fairly complex C# web application can handle. We have a good server
with 1 GB RAM and a FAT bandwidth.
Thanks in Advance.
Abraham.
... more >>
Does ASP.NET 2.0 have same context as application's request?
Posted by Rulin Hong at 3/16/2005 7:49:02 AM
In other words, can I use Request.IsAuthenticated in callback function to
check if user is authenticated or not?
Thanks in advance.
... more >>
multiple controls with same ID
Posted by Daves at 3/16/2005 7:47:52 AM
say I have a Datalist and each row has a image control with ID "MyImg". I am
hiding/showing each image based on a result from the database. I need to
find that particular img control to access it's properties. Obviously it
isn't possible to just say FindControl("MyImg") since there are multipl... more >>
Linking Database from Microsoft Access to VB.NET
Posted by Emmanuel at 3/16/2005 7:29:03 AM
Hi,
How can I link or create a database link for my MS Access Database using the
ODBC...
... more >>
Asp.net Permission cannot be acquired. Error------------URGENT
Posted by far_asllam NO[at]SPAM yahoo.com via DotNetMonster.com at 3/16/2005 7:15:03 AM
When i try to upload my project which is using a pdf generator assembly. It
gives me Error as:
Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your con... more >>
Problem in visual studio: Required permissions...
Posted by jhcorey NO[at]SPAM yahoo.com at 3/16/2005 6:35:49 AM
(I had posted this in the vsnet.studio group without a response.)
We have VS with framework 1.1 on an xp machine, and this was working
fine the last time we used it, which was probably several months ago.
Now we cannot create new projects, and keep getting an error,
"Required permissions can... more >>
VS.Net 2003 Install Error
Posted by Frank Bishop at 3/16/2005 6:32:18 AM
I am getting a mapped drive error when trying to install VS.net 2003 on
a Windows 2003 server. After I select which components to install, I
get: "At least one component has an install path set to a mapped drive,
installing to a mapped drive is not supported." Yet non of my components
are set to... more >>
prevent application shutdown
Posted by Pint at 3/16/2005 6:07:09 AM
Is there a way to prevent my web application from shuting down if I
don't have access to machine.config?
Thanks,
Pint... more >>
Redirect an IFrame's Parent Page: Server-Side Code
Posted by MLibby at 3/16/2005 5:53:06 AM
How can an IFrame's aspx page force a server-side redirect on its parent
page? Typically, an IFrame's client-side javascript specifies '_top' to
change the parent page...
window.open('default.aspx?SMID=18', '_top', '', false);
However, the server-side Redirect doesn't include '_top'.
... more >>
Passing a variable to HTML
Posted by Jim via DotNetMonster.com at 3/16/2005 4:22:23 AM
Hi,
I'm creating a control that displays the Previous and Next Pages. I get the
values I want but they don't display in the HTML Href tag. It just displays
blank. I declared the 2 variables PageBack and PageNext outside the sub but
that doesn't seem to work.
I tried using a session variable... more >>
Errors when Compiling a Class File
Posted by Joe via DotNetMonster.com at 3/16/2005 3:33:20 AM
Hi,
I'm creating a Class file that contains a function that queries the
database. I receive alot of connection type errors when I try to compile
and I'm not sure what I'm doing wrong.
This is my dataClass.vb file:
Imports System
Imports Microsoft.VisualBasic
Imports System.Web
Name... more >>
ASP.NET IIS server admin
Posted by Gary at 3/16/2005 1:44:11 AM
How do you administer ASP.NET on the IIS server. I'm using XP Pro. I need
to update ASP.NET on the server from 1.0 to 1.1.
Thanks,
Gary
... more >>
Choosing platform to site
Posted by smallville at 3/16/2005 1:41:07 AM
I am planning to build a site which contains a tree.
for example:
Programming
C++
C
C#
Examples
Tutorials
English
Free
Not Free
etc.
i am not sure about the depth of the tree but i think it wont achieve 10... more >>
getting host name
Posted by Brian Henry at 3/16/2005 1:12:53 AM
is there a way to get the host name of someone? like mine is
68-23-123-123-pitt-pa.adelphia.net?
Request.UserHostName doesn't seem to return the host name like it states in
the documentation, only gives me back an IP address.. which is what I
assumed Request.UserHostAddress would do... they... more >>
img Url being changed
Posted by Daves at 3/16/2005 1:01:19 AM
hmm... since my application is running different web urls I use seperate img
directories for all images. So in masterpage codebehing I parse all image
controls and change the url manually. The url somehow is again prefixed with
the current directory location so my question is... how can I perm... more >>
method Fill - problem
Posted by Pawel Blochowiak at 3/16/2005 12:26:22 AM
Hello Everybody
SqlConnection conn = new SqlConnection(str);
DataSet dataSet = new DataSet();
SqlDataAdapter dataAdap = new SqlDataAdapter("select * from Region", conn);
conn.Open();
dataAdap.Fill(dataSet, "Region");
I have porblem with method Fill. When i don't coment line with
data... more >>
ASP.NET Version Mismatch
Posted by Gary at 3/16/2005 12:26:18 AM
I've installed Visual Studio 2003, Framework 1.1 SDK, etc.
I still get the following error when trying to open the first example in
Microsoft Press "ASP.NET Programming with Microsoft Visual C# .NET Step by
Step" by Duthie.
Visual Studio .NET has detected that the Web server is running ASP... more >>
Looking for a Menu Control. Need Advice. Thank You.
Posted by Shapper at 3/16/2005 12:10:06 AM
Hello,
I am looking for a good Menu Control.
I found a few ones in Control Gallery of this web site.
Some Examples:
http://www.telerik.com/Default.aspx?PageId=1415
http://www.componentart.com/menu/default.aspx
I would like to receive some opinions about these 2 or sugestions of any
oth... more >>
|