all groups > asp.net > july 2004 > threads for wednesday july 21
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
setting the focus on a textbox
Posted by Richard at 7/21/2004 11:10:47 PM
I have multiple textboxes on a page but when the page loads i want to set
the focus on a particulair textbox so a user can fill in the text right away
without having to click on the textbox to focus it.
Anyone know how?
thx in advance...
... more >>
Reference Delphi aspx page in VB.aspx
Posted by Alain Sienaert at 7/21/2004 10:52:59 PM
Hi,
I have developped a very simple asp.net application with vb (Visual Studio
2003). The main page only contains a button that implements the following
code:
Response.Redirect("WebForm2.aspx")
This WebForm2 is written in Delphi 8 but when running the application and
clicking the button ... more >>
Screen flashes :- Smart Navigation under Frames
Posted by Sachin Kuchinad at 7/21/2004 10:21:04 PM
Hi,
I am using Smart Navigation to avoid screen flashes during refresh / reload of web pages which are under frames. Following is the physical layout of pages and their attributes.
Main.aspx contains frameset which has 4 frames underit in which there are individual web pages. 3 of the webpages i... more >>
Using Log4Net From 2 Process
Posted by pinki192brain NO[at]SPAM yahoo.com at 7/21/2004 9:53:38 PM
Hey,
I'm using the Log4Net opensource object to write to my logs.
I'v written a wrapper ClassLibrary project for the Log4Net and all my
projects reference only to it.
I'v got a web application thats calls a com+ application (- another
project of mine that is in the same solution) and I want bot... more >>
using common code for aspx and ascx classes
Posted by Vladimír Kolesnik at 7/21/2004 9:22:44 PM
Hi there,
does anybody know, how to create a class, which is can be inherited by both
aspx (System.Web.UI.Page) as well as by ascx (System.Web.UI.UserControl)
classes.
I have the bunch of same methods, which I want to reuse in both ascx and
aspx classes. Any idea how to do it?
Thanks for all y... more >>
using common code in ascx and aspx classes
Posted by Vladimír Karásek at 7/21/2004 8:55:47 PM
Hi there,
does anybody know, how to create a class, which is can be inherited by both
aspx (System.Web.UI.Page) as well as by ascx (System.Web.UI.UserControl)
classes.
I have the bunch of same methods, which I want to reuse in both ascx and
aspx classes. Any idea how to do it?
Thanks for all y... more >>
Problem with late databinding and GAC
Posted by Steven at 7/21/2004 8:49:52 PM
Hi,
I'm having an odd problem with late databinding (using DataBinder.Eval). I
have my Business Logic and Facade assemblies in the GAC, and just about
everything works fine, however, when using pages which use the
DataBinder.Eval method, I get an error saying the referenced assembly could ... more >>
how to monitor website availability from an ASP.NET app?
Posted by Bob at 7/21/2004 8:17:41 PM
I'm trying to centralize some of the resources (images, css, footer etc)
into one website that all my apps can use. Simple things like images and
css would be a direct link (e.g. img
src=http://myresourcecenter.com/images/logo.gif) and some others would be a
web service call with the results to... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Could Not Load Type "<<name>>" Error
Posted by Don Wash at 7/21/2004 7:38:54 PM
Hi All!
I'm getting the following Error:
[QUOTE]
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type... more >>
Looking for a good book on ASP .Net
Posted by Flack at 7/21/2004 7:11:02 PM
Hello,
I have been searching for a good book to learn ASP .NET using C# and VS .Net.
One book I came across was "Asp .Net Unleashed, Second Edition". The reviews at Amazon said it was a very good book but many people complained that the author did not use VS .Net but used Notepad instead. Also... more >>
help??
Posted by gorostas at 7/21/2004 6:59:45 PM
Hi all!
i have to build task rellated web app. whitch will need to have some
monitoring. i have datebase whit row of time whitch will be happen in the
future, and then when that time cums i have to fire some scripts.(in my
case, i have 2 connected web forms-pages, first auth. me on server(for
... more >>
Why i get this error: Response is not available in this context
Posted by Pepehammer at 7/21/2004 6:52:12 PM
Exception Details: System.Web.HttpException: Response is not available in
this context.
Source Error:
Line 16: '---------- // SUB : WriteString
Line 17: Public Sub WriteString(SayItNow as String)
Line 18: Response.Write(SayItNow)
Line 19: End Sub
Line 20:
... more >>
Windows Authentication Logout
Posted by Stuart Shay at 7/21/2004 6:49:59 PM
Hello All:
I am using Windows Authentication in my VB/ASP.NET Intranet Web Application.
How do I create a method that will release the authentication Token, so the
user will no longer have access to any of the resources on the site?
Thanks
Stuart
... more >>
window.open minimized
Posted by Steve Covert at 7/21/2004 5:49:28 PM
I apologize if this resolution is commonplace, but I have not found a
solution as of yet.
When I open a popup window from asp.net using Javascript as follows:
Page.RegisterStartupScript("Title", "window.open(args)");
the new window opens, flickers for a second, and then minimizes.
There mus... more >>
DataGrid - Delete
Posted by Jim Heavey at 7/21/2004 5:06:05 PM
I am looking for how to delete rows from a datagrid. When you create and ASP:EditCommandColumn, you have the ability to identify "Update" and "Cancel". There is an "OnDeleteCommand" property where you identify the procedure which will be invoked when deleting...now I am just missing how is the met... more >>
Newbie with .NET Framework installation question / problem ...
Posted by rdlebreton NO[at]SPAM hotmail.com at 7/21/2004 5:05:44 PM
I am trying to get ASP.NET to run on my Win 2000 Pro workstation but
none of the ASPX scripts I have written work. The web server just
spits out the code to my browser as if it doesn't know what to do with
it. I have:
• Windoows 2000 Professional (I am a local administrator)
• IIS 5.0
• MD... more >>
Repeater List
Posted by Big E at 7/21/2004 5:00:28 PM
I'm using ASP.Net.
I have a Repeater that uses a stored procedure to list stuff and have a
hyperlink that allows users to click and go to another page.
I also have a drop down list on the form.
I would like users to be able to select from the drop down list and have
that selection filter the da... more >>
XML documentation
Posted by Mark at 7/21/2004 4:45:18 PM
I have two projects in the same solution. One is a web project and the
other is a class library called "MyClassLibrary". I want to leverage
intellisense capabilities while using the class library in my web project.
The class library is configured in its project properties to generate an xml
fi... more >>
Passing Parameter value to Crystal Report Viewer
Posted by Mariame at 7/21/2004 4:29:12 PM
Hi Everyone,
i use crystal report & in the "Field Explorer" i select the table that i
want to appear in report & make a "Where" Clause & i determine some
parameters.
The problem is How can to pass this parameters value to a crystal Report
viewer.???????
Thanks in Advance
... more >>
asp:Button click when Enter is pressed - help
Posted by Timothy V at 7/21/2004 4:28:28 PM
Hi,
How do i make an asp:Button execute its Click event when the Enter key is
pressed?
Thanks in advance,
Tim.
... more >>
display image from database in PocketPC ASP Web Mobile
Posted by Nicolas at 7/21/2004 4:20:58 PM
How do I display an image into the image webmobile control when the image is
stored in an SQL database as image type field
I got a file (page1.aspx) with the control (img_logo2) and this call
Me.img_logo2.ImageUrl = "StreamImage.aspx?ItemID=" & dbTable.Rows(0)("ID")
Then I got this other fil... more >>
Session Variables across projects
Posted by Kent Ogletree at 7/21/2004 4:14:20 PM
I have a solution the is composed of 2 projects. The first is the main web
application itself and is written in VB.NET. The second is a web service
written in C#.
The main application launches a window that interacts with the Web Service.
However the session variables in the Web Service are NU... more >>
Can I store a Object in the Session Variable?
Posted by RSB at 7/21/2004 3:57:27 PM
Hi Every one,
Can i store a Object in the Session variable???
if Yes then HOW?
Thanks RSB
... more >>
Session variables size?
Posted by Lars Netzel at 7/21/2004 3:35:59 PM
Hi!
Is there a way to check to see how much bytesize a certain Session Variable
is using in RAM?
I have a lot of DataSets in session Objects.. I would like to know how heavy
this is!
best regards
/Lars
... more >>
WHERE Date > System Date
Posted by Paul King at 7/21/2004 3:25:59 PM
Hi there.
I want to construct a SQL ASPX page and wish to fetch all information back.
At the moment I have the following script:
Dim strSqlProducts As String = "SELECT convert(char(10),VenueDate,103) as
Date, Venue, County, Comments " & _ "FROM WeddingFayres ORDER By VenueDate"
I would li... more >>
getting records without reloading the page
Posted by Richard at 7/21/2004 3:15:48 PM
Hey there,
I have a textbox and a listbox. When a user types a number in the textbox, I
want to get
all the records from a MS Access DB but without reloading the page. I now
have something manual
and a user first must press a button to get the listbox filled with records
but I want to have i... more >>
remote debugging
Posted by mark at 7/21/2004 3:10:08 PM
im getting an error message
Error While trying to run project unable to start debugging on the web
server the debugger is not properly installed. run setup to install or
repair the debugger.
Ive tried re-registering the components to no avail - whats the appropriate
steps to take ?
mark
... more >>
how to add events to custom control
Posted by TIBM at 7/21/2004 2:39:02 PM
Hi. I'm not getting any answers in buildingcontrols, so I'm gonna try here.
I've written a custom control derived from System.Web.UI.WebControls.ListControl. The control is taking in a dataset and renders HTML with radio buttons (the result is similar to a RadioButtonList). I would like to add ev... more >>
response.redirect (this page?)...short and sweet way to do this?
Posted by darrel at 7/21/2004 2:25:36 PM
I have a 'cancel' button that should reload the current page. Ie, reset the
page back to it's initial state.
Is the best way to do this to simply have the event handler for that button
redirect the page to itself?
If so, is there a short-and-sweet way to write that out? Or do I need to
firs... more >>
I can't see a functions between classes
Posted by Pepehammer at 7/21/2004 1:49:16 PM
Hi guys!
I got two classes, class1 and class2.
I'm trying to call a function defined in class1 from class2, but I get the
following error:
BC30451: Name 'WriteString' is not declared
How I can solve this issue?
Thanks a lot!
... more >>
Printer Friendly
Posted by Bob Johnson at 7/21/2004 1:36:55 PM
Some sites offer a separate "printer friendly" version of their pages.
1. What are they doing to their HTML to ensure that it prints out in a way
that looks good - and pretty close to what shows up on the screen?
2. How can I send such a page to the user's local/defualt printer?
Thank You!... more >>
Is vs is not
Posted by Thomas Scheiderich at 7/21/2004 1:23:25 PM
I have the following code:
****************************************************
while (objDataReader.Read() = true)
if(objDataReader(0) is System.DBNull.value) then
else
response.Write("In While loop return from sp_textcopy - " &
objDataReader(0) + "<br>")
end if
... more >>
Not getting all data from Stored Procedure.
Posted by Thomas Scheiderich at 7/21/2004 1:09:32 PM
I am trying to get the identity of a row I add in my stored procedure. I
have tried all kinds of ways to get it passed to my ASP.NET page. It works
fine when I run it from Sql Query.
Here is the asp.net page:
****************************************************************************
*
... more >>
Getting Windows Username
Posted by Jonathan Dixon at 7/21/2004 12:37:33 PM
I am developing an intranet and was wondering, when a user logs on is there
a way to get the username of the windows account in asp.net.
I have tried the following but they return the worker process username e.g
DOMAIN\ASPNET
Can somone suggest a way or provide some code the get the username... more >>
validation controls
Posted by Stephen at 7/21/2004 12:11:58 PM
Hi,
the validation controls dont work on Netscape or Mozilla and only on
Internet Explorer
why? How do i correct this problem?
Thanks
... more >>
handling activex events
Posted by Felipe Garcia at 7/21/2004 11:51:17 AM
i have some old asp pages that uses activex controls. At the moment, my
company are converting all of these old asp pages to asp.net. So my question
is, there is a way to handle activex events in the asp.net code behind.
<SCRIPT FOR="WEBDECODER1" EVENT="onaction" LANGUAGE="VBScript">
dim myacti... more >>
Shared Assemblies and web.config config serctions
Posted by Sam-I-Am at 7/21/2004 11:33:15 AM
Hi all
I have a common shared assembly in intalled in the GAC: =
myco.myprod.common.dll
I have set a reference to this assembly in a asp.net web application. I =
have config sections in my web.config like the following:
<configSections>
<section name=3D"Configuration" =
type=3D"myco.... more >>
Using a .NET dll in the same way as an ActiveX control in a webpage
Posted by Mombiatch at 7/21/2004 11:32:53 AM
I've got an application whereby I need to make calls to a .NET Class Library
in the same way that I would make calls to an ActiveX control from a
webpage, using the <object id="CLSID, etc tag. Is there a better way to do
this than wrapping the .NET Class Library into an ActiveX Control?
Thanks... more >>
Which OleDbType is correct for DateTime field in Access 2000 database?
Posted by sincethe2003 at 7/21/2004 11:19:34 AM
Which OleDbType is correct for DateTime field in Access 2000 database?
... more >>
Need help improving authorization
Posted by AndiV at 7/21/2004 11:11:25 AM
Each of my intranet page (windows authentication) needs to validate user's
roles stored in the database. Currently, I retrieve the the
User.Identity.Name property, then query the database for user's roles
everytime a page is loaded, which is very inefficient.
I think a more efficient approach ... more >>
Session State not working
Posted by rkmoray NO[at]SPAM aol-dot-com.no-spam.invalid at 7/21/2004 11:09:31 AM
For some reason, I cannot get sessionstate to work
here is my config file area
<sessionState mode="InProc" timeout="20" cookieless="true"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="Provider=SQLOLEDB.1;Password=;Persist Security
Info=True;User ID=;Initial Catalog=;Data ... more >>
ASP.NET and frameset
Posted by Goran Djuranovic at 7/21/2004 10:56:23 AM
Hi everyone,
I have an ASP.NET application with NT authentication turned on. The default
page is an .HTM page with the frameset in it. Frameset contains 3 frames
(top, left, main), and each of those frames calls different .ASPX page. Now,
the problem is that the user gets prompted to login to th... more >>
Line number on error message?
Posted by Tom Kaminski [MVP] at 7/21/2004 10:53:31 AM
I'm 99% sure I used to see a line number referenced in my ASP.NET error
messages but sometime over the last couple of weeks the error messages no
longer reference one. Am I imagining things or could something have changed?
--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserver2003/co... more >>
detecting SSL or not
Posted by Brian Henry at 7/21/2004 10:53:25 AM
Hi,
I have a web site i want to be SSL (we already have the cert and everything
from verisign) but i want port 80 to redirect to the ssl connection 443
(HTTPS) so if they go to the site at http://site it will determin hey im not
ssl and redirct to https://site how would you do this? thanks
... more >>
access error
Posted by mozart at 7/21/2004 10:50:13 AM
i'm do folow access database conection:
"DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.Mappath("Banco/BancoEvento.mdb")
but, this return error:
"Command was not prepared."
what is do?
... more >>
Translate Custom UserAgent String
Posted by mupetcom NO[at]SPAM tiscali.dk at 7/21/2004 10:37:16 AM
Hi'
From a database I collect a lot of UserAgent strings (e.g.
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322;
..NET CLR 1.0.3705)"). I would like to get these string translated to a
object like the System.Web.HttpBrowserCapabilities (aka.
Request.Browser in ASP.NET).
... more >>
LoadControl in Global.asax.cs
Posted by weeerob NO[at]SPAM hotmail.com at 7/21/2004 10:30:42 AM
I want to user the Page method LoadControl inside the Global.asax.cs
but when I instantiate a page and try it I get the following error...
System.NullReferenceException: Object reference not set to an instance
of an object. at System.Web.UI.UserControlParser.GetCompiledUserControlType(String
v... more >>
validator problem
Posted by ronaldo at 7/21/2004 10:20:59 AM
I an writing a shopping cart application using ASP.NET/VB.Net.
I generate several text box(es) programmatically.
Each textbox store the quantity of the item that the customer want to =
buy.
Therefore,I create a validator for each text box.
As you know ,a shopping cart should have a "remove" bu... more >>
Referencing Binaries (Copy Local False) without GACing
Posted by Shikari Shambu at 7/21/2004 10:09:35 AM
Hi,
Is there a way for a web application (ASP.NET) to reference binaries and
use it without having copy local set to true or GACing the binaries. If yes,
how would I do it.
TIA
... more >>
how do you stop the asp worker processing errors
Posted by newsgroups NO[at]SPAM bestmail.us at 7/21/2004 10:02:38 AM
Where are the templates for the asp.net error pages stored? I am
catching all errors but sometimes I still get the orange asp error
page.
I looked at machine.config but I didn't see any error handler which I
could overwrite. I don't want my customers to see the aspxerror path
in the URL either.... more >>
Custom controls and innerHTML
Posted by Frédéric Mayot at 7/21/2004 9:59:28 AM
Hi,
I would like to create a custom control to encapsulate my header, footer and
menu (a kind of frameset).
So, in my aspx page, I would like to write something like this:
<cc:Frameset>
<h1>something</h1>
<a ...>
<table>
...
</table>
</cc:Frameset>
I don't want to cr... more >>
Dynamic control on aspx page, dynamic location
Posted by Chris Thunell at 7/21/2004 9:54:26 AM
I have an aspx web form with a table that i'm sending via response.write...
in one of the cells i would like to put a dynamically created server
control. The amount of rows is variable... so i could have 10 rows /
controls. How do i create a server control that goes into the appropriate
grid c... more >>
version numbers
Posted by Josh at 7/21/2004 9:46:09 AM
is it possible to put a version/build number into the main dll for a web
site?
... more >>
Updating data bound listbox
Posted by VB Programmer at 7/21/2004 9:24:14 AM
I have a listbox which is data bound to a query that incorporates several
tables.
I want to be able to update the listbox with new items (from another
"master" listbox), remove existing items, etc... then update the db with the
new contents of the listbox after the user clicks on a Save button... more >>
How can I translate this from classic asp?
Posted by Fabrizio Maccarrone at 7/21/2004 9:02:23 AM
Hallo,
I'm trying to migrate from classic asp to asp net.
How can I write this instruction in classic asp, using a command object, to
asp net?
===========================================
'....................
Set cmd = Server.CreateObject("ADODB.Command")
cmd.CommandType =... more >>
image saving
Posted by Viktor Popov at 7/21/2004 8:59:15 AM
Hi,
I' like to ask if someone kows how could be saved an image filepath in DB
instead the whole IMAGE using ASP.NET/S#/MS SQL?
Let's say we have:
PicturesTBL
----------------
ID INT
PIC IMAGE
Could be use PIC VARCHAR(50) or something to save the filepath and to store
the ... more >>
Best practice design for a large asp.net app
Posted by Andy Fish at 7/21/2004 8:57:34 AM
Hi,
I am about to commence the design of what will turn out to be a fairly large
asp.net web app, and I am looking for any good advice and resources (books,
web pages) concerning how best to structure it.
I would consider myself an experienced software designer and technical
architect - I c... more >>
Model Window
Posted by Mariame at 7/21/2004 8:49:19 AM
Hi Everyone,
Ho to open a model window???????????
Regards
... more >>
Custom Validator Control - newbie
Posted by Angela at 7/21/2004 8:23:03 AM
Hi
I am having trouble writing a custom control for validation.
I have a really long form with loads of textboxes that I want a custom
control to validate for 'required' and 'range of 0-9'
That's so I can drag and drop my custom control and pass in properties:
controltoValidate and error... more >>
ItemStyle from DataGrid
Posted by Paul King at 7/21/2004 6:44:12 AM
Hi there,
Im trying to setup an ASP DataGrid to format my results in a clear manner.
I have 3 fields to bring back into the grid, these are Date, Venue and
Comments.
However I would like to restrict the width of the comments records to a
certain value - can this be done?
Regards
Paul
... more >>
literal Databinding???
Posted by Tim::.. at 7/21/2004 6:33:01 AM
Can someone explain how I create a databinding to a Literal control! I tried doing it as shown below but the reader won't read into the control.
Thanks
...::CODE::..
Dim Myconn As New SqlConnection(ConfigurationSettings.AppSettings("strConn"))
Dim cmd As New SqlCommand("Pag... more >>
Custom Error messages
Posted by helen NO[at]SPAM helephant.com at 7/21/2004 5:57:18 AM
I've created a custom error page for an ASP.NET application. I'm
wondering if there's anyway for my error page to find out what actual
exception was thrown? I'd like to be able to display different error
messages for different exception types in the hope that I'll be able
to give the users enoug... more >>
Binding data to a text box
Posted by chris at 7/21/2004 5:18:03 AM
I have a question which I hope will have an easy answer. I created a webform with one textbox and a button. The button creates a connection to sqlserver, a data adapter, a dataset and querys the databse for a single returned value. All this works fine. Now how do I bind the returned value to the tex... more >>
MS Access OLEDB connection problem
Posted by RML at 7/21/2004 4:45:03 AM
Hi,
I have an ASP.NET app which opens a MS Access database using the Het 4.0 OleDB provider. My development code abd database live on my D drive. Under .NET's Server Explorer I created a connection to the Access database and used this connection in my OleDBConnection object. When I run the ap... more >>
Fetching Data Through a DropDown
Posted by Kate Hudson at 7/21/2004 4:40:01 AM
I'm creating a Web Form that has a lot of controls. The first control is an HTML DropDown that contains IDs populated through an ADODB Recordset object. I would like to dynamically fetch data in the remaining controls based on the ID selected in the DROPDOWN. It does not happen with the SERVERCHA... more >>
Image compression
Posted by William Ortenberg at 7/21/2004 4:34:50 AM
I want to display an image....smaller than its original size, but
maintaining the original proportions. Is this possible?
Thanks in advance.
... more >>
How to maintain Text Format?
Posted by Miguel Dias Moura at 7/21/2004 3:48:56 AM
Hello,
I created a page with one form and 10 Input Text fields.
The Form data is added to an Access Database when "OK" button is
pressed.
One of the Form's Input Text has more than one line.
The user uses this to write its Curriculum Vitae.
The Curriculum Vitae is inserted in the MEMO typ... more >>
How to handle save situations in asp.net?
Posted by Daniel Walzenbach at 7/21/2004 3:25:01 AM
Hi,
I have a Website which allows users to input data. After they finished entering data they can click a button to save their input. Problem now is, that I have no possibility to visualize that the page is being saved and when it is (hopefully) done saving.
I thought about a modal window being ... more >>
App works locally, bombs remotely
Posted by John at 7/21/2004 12:43:13 AM
Hi
I have a very simply app with a single web form with a single button on it
and has the following code;
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Response.Write("Hello world!")
End Sub
This works fine on my local win... more >>
Cell(0) and Control(0)
Posted by Tim::.. at 7/21/2004 12:16:03 AM
Hi,
I keep getting the following error in my code:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index
I presume it is because I have the wrong control number but am not 100% sure! How do I work this out?
Thanks
...::CODE... more >>
ToolBox Greyed Out
Posted by John H at 7/21/2004 12:13:35 AM
One of my co-workers is having problems with .net. (vis studio 2003) Her
toolbox is greyed out so she can't add controls to a web form. This happens
even when she starts a new project.
Any ideas? Or should she reinstall?
J
... more >>
|