all groups > asp.net > june 2004 > threads for wednesday june 23
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
Beginner question re postback
Posted by John W at 6/23/2004 11:59:21 PM
Hello,
I have been wondering that everytime I do a submit on a button/form
(postback) it is using the same webform on the CS, how do I goto another
webform once I have done a postback and processed any code?
When I finally do goto another webform from the postback will all variables
and set... more >>
Application[] and Session[]
Posted by Just D at 6/23/2004 11:35:06 PM
Hi,
How slowly is to work with these objects - Application[] and Session[] ? Is
it much better to create a huge project or some static library and place all
variables/constants there instead of many Session[] objects?
When I removed some of Session[] objects and replaced by another approac... more >>
Global.Asax ?
Posted by WJ at 6/23/2004 9:34:59 PM
I am attempting to use the Global.Asax to store my user's configuration.
Here is the concept:
1. User logs on into the site using Form Authentication.
2. I capture the user Credential, verify it and then assign this Logon ID
(user) a so called User's serverside cookie.
3. My system is configu... more >>
ASP.NET and dynamically loading assemblies
Posted by Michael Gaillez at 6/23/2004 9:03:37 PM
Hi,
I'm using Assembly.LoadFrom(...) in an asp.net application. I use it to
dynamically load webcontrols. It works fine but it tends to slow down my
asp.net application. Anybody who has an idea to solve this problem?
mvg
Michael
... more >>
add web control dynamically
Posted by tangolp NO[at]SPAM yahoo.com at 6/23/2004 8:48:46 PM
I have a web page where I have dropdownlist box with autopostback set
to true. The box has 3 items: 1, 2, and 3. I also have a Placeholder
and a button. Each time the user change the value of the
dropdownlist, I create dynamically one or x text box. Here is my
code...
for (int i = 0; i < ... more >>
Is there a way to insert an existing htm page into body of a mailmessage?
Posted by Mark Sandfox at 6/23/2004 7:52:55 PM
I have created a newsletter that I want to send to a list of 200 users (yes
they all have requested it). I know this can be created line for line using
htmlTextWriter but that is cumbersome at best. Is there a way to simply
insert the page via referencing it into the body of the email. I tried... more >>
LoadControl() method throws virtual path error when attempting to load user control from subfolder.
Posted by Jeremy at 6/23/2004 7:24:09 PM
Everything in my app worked fine - then I moved some user controls to a
subfolder named \ControlTemplates that physically exists directly under the
site root.
Then, at runtime when these lines attempts to load a user control from that
subdirectory:
string templateFileName = @"/Control... more >>
Manage User Accounts via asp.net
Posted by Samuel Shum at 6/23/2004 7:04:15 PM
Greetings, I'm just wondering if there are any objects that I can use in
asp.net to manipulate user accounts (say changing password, enable/disable
user account, setting quota, setting permission, creating folders, etc.),
please note that the server running the web service is NOT a domain
contro... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
stylesheets in code-behind which attribute strings
Posted by pieroM at 6/23/2004 6:54:39 PM
The WebControl class has a Style property
example:
Label1.Style["visibility"]=
((Label1.Style["visibility"]=="hidden")?"show":"hidden");
which strings such as "visibility" can I use ?
for example "bgcolor" or "background-color" ?
Any example around ?
Thanks
... more >>
Upload file size
Posted by Lau Lei Cheong at 6/23/2004 6:51:45 PM
Hello,
Is there a way to determine the size of a file in InputFile control
before it starts uploading(i.e.: wants to determine the file size at
client-side)?
The checking cannot be done on server-side because we'll have to wait
the HttpRequest stream transfer complete before the pro... more >>
DataView Find method - Error: Expecting 2 value(s) for the key being indexed, but received 3 value(s)
Posted by Zenobia at 6/23/2004 5:45:18 PM
Hi,
Below is a bit of code from ASP.NET Unleashed which gives an
error and I can't figure out why. It uses the Authors table from
the standard Pubs database.
The error message is
"System.ArgumentException: Expecting 2 value(s) for the
key being indexed, but received 3 value(s)."
For t... more >>
Exclude directory in Relase mode
Posted by Oleg Ogurok at 6/23/2004 5:10:04 PM
Hi all,
In my web project, I have directory with testing pages that I use for
debugging. I would like to exclude it from the final product.
Is there a way to tell VS.NET not to compile class files that directory in
Release mode?
Thanks.
-Oleg.
... more >>
iis is not rendering my asp.net pages into html
Posted by nabil m at 6/23/2004 5:03:28 PM
hi - i am just starting with .net - i have created my first page usind
webmatrix when i preview my page in my browser on my localhost i see the
code of the page and not the html i see the actucal code but not thrending
of the html -
please help thx
... more >>
parameter ignored for ExportToStream ASP.NET
Posted by radx786 NO[at]SPAM hotmail.com at 6/23/2004 5:00:35 PM
Hello All
I am having a very hard timt exporting crystal report to PDF document
in my ASPX page. I am able to generate the PDF document , but the i
am not able to pass the parameter to the report (Crystal). It looks
like , it completely ignores the parameter i am passing and just
brings all... more >>
Dynamically adding content to selection list in ASP.NET / VB.NET
Posted by EEEdiot at 6/23/2004 4:40:36 PM
Okay,
I know to add content dynamically to web page file you can have
something like the following and it would add a whole bunch of <option>
items for the <select> list. How do you dynamically add <optgroup> items
and <options> under them?
TIA!
In ASPX file:
<%@ Page Language="VB"... more >>
SqlConnections, abstraction etc
Posted by Ben at 6/23/2004 4:33:09 PM
Hi I have a question concerning SqlConnections and when they should be
opened and closed.
Right now I have a database utilities class. I instantiate it when in
page_load and dispose it in page_prerender, which opens and closes class
level sqlconnection.
Now, say I need to run a SqlCommand,... more >>
Manipulate Menubar and Toolbar
Posted by RJDev at 6/23/2004 4:32:51 PM
Hi,
Do yoy have any idee on how to manipulate the explorer browser screen.
I wont to make my web app so the menubar toobar and statusbar are hidden.
The minimize and maximize options need to be available.
All off this from within the codebehind page.
Regards.
RJ
... more >>
Copy file from one location to another the user specifies.
Posted by Thomasa Gregg at 6/23/2004 3:58:12 PM
I am trying to find a way to allow the user to select a folder on the client
machine and then use that information to move a file from the server into
that folder. I am not sure if this is the correct forum to ask this
question. If not please direct me to the correct one.
Any help would be a... more >>
Problem querying LDAP and/or Active Directory
Posted by Andrew at 6/23/2004 3:49:55 PM
Hey all,
Working on revamping our Intranet here and making use of the LDPA, Active
Directory, Directory Services, etc. that .Net provides. I am still fairly
new on this subject, so the problem I have run into I am not sure how to
fix, and really not sure what is causing it.
Here's what is... more >>
Positioning buttons via HTML
Posted by Sun Tzu at 6/23/2004 3:42:54 PM
All,
I'm new to web development, so bear with me. I added to buttons to a
webform, but the second button overlaps with the first. How can I change
the position? Here is the HTML code that Visual Studio rendered:
<asp:Button: id="btnFiles" runat="server" Text="Files"></asp:Button>
<as... more >>
Bubbling
Posted by Brian Shannon at 6/23/2004 3:40:10 PM
Lets say I have the following: 'It's made up
Private Sub cmdHeader_click(.NET info)
AddLog()
Add Header()
Validate()
End sub
Private Sub AddLog()
IF me.test.text = string.empty THEN
EXIT- I WANT TO EXIT THE CODEBEHIND
ELSE
'Do Something
END IF
End Sub
When calling a sub from an... more >>
Image button acting like submit button.
Posted by Russell at 6/23/2004 3:35:57 PM
I have a web page that i am using an image button as my submit button. The
code behind the button works, but when I click enter on the web page,
nothing happens. Can anybody tell me how to get my image button to act as
the default button on the form?
Thanks in advance
Russell
... more >>
ValidatonSummary control not working on an autopostback textbox
Posted by Neo at 6/23/2004 3:26:15 PM
I put a textbox on the page.The textbox only accepts integer value. I also
added a comparevalidator control to check the data entered in that textbox
and a validationsummary control on the page. The comparevalidator worked
find and showed the error message.But page still postback to server.So it
... more >>
How to get the previous page url or name?
Posted by KK at 6/23/2004 3:18:02 PM
In ASP.NET is it possible to get the name of the
previous page? for example,
Page1.aspx
Page2.aspx
From page1.aspx, I do a Server.Transfer(Page2.aspx),
Now within Page2.aspx can I get the name of Page1.aspx
(the previous page who called page2.aspx) ?
... more >>
directx with vb.net
Posted by tanuki at 6/23/2004 3:03:10 PM
Hi all,
would anyone care to share a simple directdraw/direct32 sample/tutorial
using vb.net ?
thanks
tanuiki
... more >>
UML Modeling tools
Posted by shalafi at 6/23/2004 2:47:06 PM
Looking for a good, cheap (preferrably free) UML modeling tool. Used Jumli
in the past, has everything i want but it isnt terribly stable and doesnt
look as if they will have a new version anytime soon.
... more >>
stylesheet problem
Posted by Random at 6/23/2004 2:36:17 PM
Under .NET, why doesn't the "class" attribute seem to apply to elements that
refer to a specific stylesheet reference? I've verified that the stylesheet
is being referenced by creating styles that refer specifically to HTML tags.
But if I want to call on a particular style just using the "class"... more >>
Only the first ListItem is selected in a ListBox
Posted by Raymond at 6/23/2004 2:19:01 PM
I have a WebForm with a ListBox in it. This SelectionMode is set to Multiple.
When a button is clicked, I check what items are selected using:
foreach (ListItem itm in lb.Items)
{
Trace.Write(itm.Text + ": " + itm.Selected);
}
The trace shows that only the first... more >>
Only the first ListItem is selected in a ListBox
Posted by Raymond at 6/23/2004 2:09:04 PM
I have a WebForm with a ListBox in it. This SelectionMode is set to Multiple.
When a button is clicked, I check what items are selected using:
foreach (ListItem itm in lb.Items)
{
Trace.Write(itm.Text + ": " + itm.Selected);
}
The trace shows that only the first... more >>
Session info from classic asp to asp.net
Posted by rkmoray NO[at]SPAM aol-dot-com.no-spam.invalid at 6/23/2004 2:03:33 PM
I am adding on to an existing classic asp app. I need to maintain the
session variables when I move from classic to asp.net.
Any ideas on how to do it?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENT... more >>
debug problem
Posted by Philip Rayne at 6/23/2004 1:52:05 PM
I have copied the contents of my wwwroot\myproject web folder to another
computer to do some work on it. When I set a breakpoint in the code the
debugger is not stopping on it. If I create a new project on this computer
the debugging does work in that project. Has anyone any ideas what I need
... more >>
ASP.NET equivalent to CFQUERY GROUP
Posted by Brent Mondoux at 6/23/2004 1:30:48 PM
Hey everyone,
I'm trying to find the best non-spaghetti code way to do the
equivalent of a ColdFusion CFQUERY GROUP command so that I can display
a FAQ with categories as follows:
-- Example: Begin --
General
- What is Enlighten?
Client Profile
- How do I add a new client?
- H... more >>
PDF's
Posted by Brian Shannon at 6/23/2004 1:20:30 PM
I create some pdf's from crystal reports through .aspx pages. I need the
margins to print out exactly as created through Crystal. lets say my left
and right margins in Crystal are .20. When IE brings up the page it
displays correctly but when printing IE adds on its print margins. And I
can'... more >>
Compare Validator
Posted by A.M at 6/23/2004 1:17:30 PM
Hi,
Can I use compare validator to make sure that the value of two text boxes
are the same?
Thanks,
Alan
... more >>
Calendar Control - Programatically set the calendar to a date range
Posted by Shevek at 6/23/2004 1:05:44 PM
Hi All, Hope someone can help!
I am building an Event Calendar app based around the Calendar
WebControl which builds an SQL string based on the SelectedDates
property which is passed to Page.StartDate and Page.EndDate
properties.
This works nicely and I can select a Day, Week or Month and ... more >>
Using HttpWebRequest
Posted by Roger R. Smith at 6/23/2004 12:46:50 PM
I would like to take some data off an ASP.NET form and then use that data to
post a new form to another web site. I was going to use:
HttpWebRequest, but I want to be able to post the form and follow the form
submission.
Any ideas?
Thanks,
Rog
... more >>
Returning SQL Server Messages to ASP
Posted by Brian Piotrowski at 6/23/2004 12:32:34 PM
Hi all,
Is there a way I can return an SQL server response message through an ASP
page?
Right now when I run a command through the Query Analyzer (such as an
insert, update, delete, etc. statement), I will get a message in the
response window (ie: 1 row(s) affected). What is the variable t... more >>
Checkbox with javascript change - old value in code behind
Posted by Marc Castrechini at 6/23/2004 12:29:30 PM
I have a page that changes an <ASP:Checkbox value based on a user entered
value in a textboxm using client side Javascript.
After my submit is fired the value for the chkMyCB.checked does not get the
latest value of the checkbox.
Does this sound like a posibility and if so how can I force th... more >>
State not preserved in inner controls of ASCX control
Posted by Oleg Ogurok at 6/23/2004 11:54:24 AM
Hi all,
In my page class, I'm loading a user control:
private void Page_Load(object sender, System.EventArgs e)
{
Control c = LoadControl("WebUserControl1.ascx");
Controls.AddAt(0, c);
}
Inside WebUserControl1.ascx I have a hyperlink whose NavigateUrl property is
set at r... more >>
lock the scroll bar position
Posted by Grey at 6/23/2004 11:38:48 AM
I have designed a ASP.NET form with many controls, so it needs to scroll
down with the scroll bar. My question is when I press "add" button in
datagrid(the datagrid was located at the bottom of the form, I need to
scroll down the bar) , the form was postbacked to server and just displayed
the up... more >>
Can TagPrefix be registerd in web.config?
Posted by Bob at 6/23/2004 11:19:23 AM
When putting a custom-made control on the aspx page, it needs a <%@
Register TagPrefix="mymy" Namespace="myNS" Assembly="myAssembly" %>
directive. Is there a way to register the tag once somewhere in the app
(the config file?) so no need to write this in each and every aspx file?
... more >>
Previous Link
Posted by Brian Shannon at 6/23/2004 10:42:14 AM
I have security access to certain pages on my intranet and use sql server to
store the user name and passwords and who has access to what pages.
If a user clicks a link and is not logged in they are redirected to the
login page and once sucessfully logged in they are redirected to the orginal
... more >>
dynamic XML document creation
Posted by Lerp at 6/23/2004 10:12:04 AM
Hi all,
I have a question regarding the best way to build a dynamic XML document
from data stored in my database.
From what I have read so far, I could build a dataset and then use this
dataset to create my XML document once my relations have been set.
Should I use an XMLDataDocument ... more >>
Important developer Information regarding Windows XP SP2
Posted by Kevin Spencer at 6/23/2004 9:49:37 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xpsp2websites.asp
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
... more >>
ASP.Net 2.0 release target date?
Posted by Martin at 6/23/2004 9:30:56 AM
Is it tied to IIS6 & Windows Server 2003?
... more >>
ASP.Net 2.0 themes vs css
Posted by Martin at 6/23/2004 9:10:55 AM
I think it would be good to have an article comparing these 2 technologies,
and explaining why themes are necessary.
I guess it's because css is tied to mark up, where as themes are aligned
with controls and their parameters, which are more sophisticated than
markup.
Martin
... more >>
Webform based on abstract class
Posted by Miguel Núñez Pereyra at 6/23/2004 9:09:39 AM
Hi,
why IDE doesn't render my webform derived from an abstract class which, in
turn, is based on System.Web.UI.Page?
App compiles and works fine except I get a "Type Abstract" error when I try
to open with Web Forms designer.
I can resolve the problem simply cutting off the abstract attribute... more >>
Can you convert this from C# to VB?
Posted by Rob T at 6/23/2004 8:34:42 AM
Hi, I'm trying to convert his line from C# to VB:
System.Drawing.Image _img=
System.Drawing.Image.FromStream(new
System.IO.MemoryStream((byte[])SqlReader["Image"]);
I have this so far:
dim Img as SystemDrawing.Image
Img=System.Drawing.Image.FromStream(new
System.IO.MemoryStream(Conver... more >>
Accessing the index of the iterator in a repeater
Posted by ashubhalerao NO[at]SPAM yahoo.com at 6/23/2004 8:18:13 AM
Hi all,
I have bound an Arraylist of Objects to a repeater.
All the items from the Object display fine on the screen.
Now I need the current index being bound inside the <ItemTemplate>
</ItemTemplate>. If the zeroth element is being bound then I need to
display 0 in a column, if the f... more >>
Break before <form> tag ASP.NET
Posted by Goran Djuranovic at 6/23/2004 7:55:41 AM
Hi all,
How do I get rid of a break (an empty row) before <form> tag in ASP.NET?
I set the "topmargin=0" inside the <body> tag. When I look at the page on a
regular IE, the space is gone, but when I look at it in PocketPC IE, the
space is still there.
I did CTRL+ refresh and reboot few times so... more >>
CheckBoxList Individual Item Detection
Posted by Ryan Scully at 6/23/2004 7:30:02 AM
Hello I have problem with determining exactly what CheckBoxList element is selected using JavaScript code. When I databind to the checkboxlist it renders it on the page and instead of giving each checkbox a value, it gives it a name and does a <label> tag for the Text of the item, and has nothing a... more >>
Rendering of Code
Posted by Ryan Scully at 6/23/2004 7:24:03 AM
Hello I am having a problem with code not being rendered. I have a checkboxlist that is databinded in the Not Page.IsPostBack() sub, and the visibility is set to true/false depending on certain requirements. If the user modifies the page in a certain way then the checkboxlist will be made visible ... more >>
Dealing with NULLs
Posted by angela NO[at]SPAM kaisen.co.uk at 6/23/2004 6:13:29 AM
Hi
I am building a very simple data entry system with many forms and
input textboxes.
When I leave any part of the form empty (it allows nulls) it seems to
touch the field in the DB and the field is no longer NULL.
I have written a script to test for empty textboxes and insert DB.NULL
wh... more >>
Forms Authentication error
Posted by Thomas Scheiderich at 6/23/2004 4:47:22 AM
I am trying to set up forms authentication in my IIS pages.
I have a folder inside of my root folder I am trying to protect and I am
getting an error when a page in the folder is accessed.
The error is:
****************************************************************************
****
Serve... more >>
Unbelievable DataGrid Web Control. (where is productivity?)
Posted by Dimitris Pantazopoulos at 6/23/2004 4:32:01 AM
Hello.
I am trying to do the simplest of things. These are exactly the steps I follow:
1. create an sqlConnection to an SQL Server database.
2. create a DataSource and produce a DataSet to a single table.
3. drop a DataGrid control to a Web Form and bind it to the DataSet.
4. customize the Data... more >>
OnItemCreated Event
Posted by Jim Heavey at 6/23/2004 4:27:02 AM
I have a DataList and I want to add some Javascript to a button in the Datalist. I am guessing that I will use the "OnItemCreated" event to find my control and then load the java script to the button.
The problem is that I can not find the control when I search for it in the event. I am guess... more >>
Static variable interference
Posted by Harald at 6/23/2004 4:03:01 AM
Hi
My question: I use a few static vars in my site and want to know if their values
interfere between ore than one session.
Sample:
First session: static int x = 10
Second session: static int x = 5
If a third session is started does the value of my static remain its value in all sessions, or... more >>
Datagrid
Posted by Sunil Sabir at 6/23/2004 2:25:01 AM
Dear All,
I have one dropdown box,one button and one datagrid in my form.Actually
I want to display items of dropdownbox in the datagrid as soon as I click the
button. But the probelm is I don't know how to do it.And also I am not sure
whether I should ... more >>
Quick question
Posted by Brent Morgon at 6/23/2004 1:30:13 AM
Hello--
Very quick question from a very new ASP.Net developer, or soon to be
developer.. whatever. I've installed the 1.1 Framework onto a W2K Pro box
with IIS 5.0 installed all with default settings. I'm able to run and view
classic ASP pages no problem, but any ASP.Net pages appear to not ... more >>
How to access a named table from a repeater control with the eval method
Posted by georgmayer NO[at]SPAM gmx.de at 6/23/2004 12:54:54 AM
Hi,
In my DataSet, which is bound to a repeater, I have two tables: item
and child:
ds = new DataSet();
itemadapter.Fill(ds, "item");
childadapter.Fill(ds, "child");
How do I access e.g. the item table and the colums in it from my
itemtemplate of the repeater control?
I'v tried the f... more >>
list all css files in a directory and sub directory
Posted by TJS at 6/23/2004 12:49:36 AM
I am trying to list all css files in a directory or its subdirectories, but
cannot get file info. What's missing ?
Dim dir As DirectoryInfo = new DirectoryInfo( server.MapPath("~/css"))
Dim fi As FileSystemInfo
try
For Each fi In dir.GetFileSystemInfos()
If fi.GetType() Is G... more >>
|