all groups > asp.net > november 2004 > threads for thursday november 4
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
n-tier input and exceptions
Posted by headware NO[at]SPAM aol.com at 11/4/2004 10:26:55 PM
I realize that when making a web application, performing input
validation in the browser is good because it prevents postbacks.
However, input checking that goes beyond making sure a value exists or
that it's not alphabetic when it's supposed to be numeric is arguably
best left to the business t... more >>
How To maintain Session state without cookies
Posted by Oscar Onorato at 11/4/2004 9:51:53 PM
This is a multi-part message in MIME format.
------=_NextPart_000_00A0_01C4C2B8.7EE19320
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello colleagues: =20
Somebody know that good alternatives I have, in addition to the cookies, =
to mainta... more >>
Autentication dialog
Posted by Ricardo at 11/4/2004 8:53:30 PM
How can I make an autentication dialog, to get a user name and a password???
[]s...
... more >>
binding to a dropdownlist in a datalist
Posted by Dufus at 11/4/2004 8:47:48 PM
Hi,
Is it possible to bind to a dropdownlist programmatically when it is inside
a datalist? How?
... more >>
ASP.NET Identity for Win 2003
Posted by Mori at 11/4/2004 8:14:02 PM
I had a working WebService on my WinXp machine. I was using Windows
Authentication for database access. The App and Database are on same machine.
MachineName\ASPNET has execute permissions to the stored procedures.
I moved the app to a Win2003 serverwhich also has SQLServer 2000 installed. ... more >>
Multi-browser appearance problem
Posted by Luis Fajardo at 11/4/2004 7:52:05 PM
I'm expiriencing a basic HTML appearance problem with ASP.NET. Following a
couple of sample tags to ilustrate my problem:
<asp:TextBox id="txtWidthIssue" runat="server" Width="100"></asp:TextBox>
<asp:DropDownList id="ddlWidthIssue" runat="server"
Width="100"></asp:DropDownList>
Browser ... more >>
Can someone help me? (code here)
Posted by Marek at 11/4/2004 7:32:54 PM
Hello gurus!
I wrote a code in VBS, that will check, that current user is in one from
three groups.
But i don't know how asimilate it with asp.net.
This page will be a bridge between 2 - main menu and report page.
Tomorrow to the 8 a.m. i must do this, but i don't know how.... Can someone
he... more >>
Imaging in ASP.Net
Posted by Robin at 11/4/2004 7:23:26 PM
I am using a separate aspx page that renders the graphics output to the
response.outputstream that takes a value from a session variable. In the
page that calls the image generation page twice setting the session variable
before setting the imageurl it displays both images but using the value set... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
no permission to write to xml file.
Posted by Asha at 11/4/2004 6:59:03 PM
greetings, i have no permission to save my xml value into the xml file how
can i over come all this. i've already right clickon the folder and file to
make sure that its not in read nly mode. any other alternatives?... more >>
asp.net version
Posted by Random at 11/4/2004 6:41:26 PM
I installed the asp.net 2.0 beta (Whidbey), and have been happily exploring
it's features. Now, however, and this is just recently, my .NET 1.1 web
applications will no longer keep running on the 1.1 installation. Yes, I
select ver. 1.1 from the ASP.NET tab in IIS, but the setting will no lo... more >>
Who kill session?????? .net drive me nuts
Posted by rc at 11/4/2004 6:31:03 PM
I have web application.Whenever problem occures, write to a log file.
Unfortunately, it killed the session as well.
My sample files is in attatchment, please have look.
First time, when click button,it prints
before log =0001
after log=0001
If you click again:
before log =
after log=
I pu... more >>
ASPNET_WP memory usage...Leak ???
Posted by Richie at 11/4/2004 6:15:15 PM
Folks,
We have an intermittent error in our asp.net application which is driving us
all crazy.
In our app, we need to view the reports frequently. Now once every week,
what happens is when we want to view these reports, it shows this error
saying "Invalid Field name". The EXPORT method has ... more >>
How to reference Session variable in module?
Posted by Paul W at 11/4/2004 6:13:37 PM
On .aspx pages I can do simply: myvar=Session("myvar").
However, this gives a syntax error when I try and do it in a VB module. I've
tried System.Web.SessionState.HttpSessionState("myvar") but this doesn't
work either. Can someone please help?
Thanks,
Paul.
... more >>
How to assign event to dynamically generated asp:button?
Posted by hb at 11/4/2004 5:59:31 PM
Hi,
When I add an asp:button (ex: id=btnLog) on home.aspx,
I need to create btnLog_Click() event in home.aspx.cs,
and also link this event and the button in OnInit() method
by adding:
this.btnLog.Click +=new System.EventHandler(this.btnLog_Click);
Now, I need to generate some asp:button ... more >>
html tag, runat server - cant find required properties!!???
Posted by Milsnips at 11/4/2004 5:53:24 PM
hi there,
i have a <TD id="cell1" runat="server"> tag in my page which i want to set
either a backgroundImage or a Class, but neither of these properties appear
in the VB code when i type "cell1."
Any help on this issue?
thanks,
Paul.
... more >>
How to specify redirect url after login
Posted by Justin at 11/4/2004 5:52:01 PM
I am using forms authentication and I need to specify a different URL that
the login page redirects to after successful login. e.g. admin/default.aspx
not default.aspx
Thanks, Justin.... more >>
DataGrid: Bind to an Enumerator of object[]'s
Posted by Angelos Karantzalis at 11/4/2004 5:36:17 PM
Hi guys,
I've an Enumerator of object arrays that I need to display on a DataGrid.
Unfortunately, after I set the DataSource to the Enumerator, and call
DataBind(), the DataGrid picks up & displays the public properties of the
object[] instance :(
I'm not able to specify in advance how big ... more >>
Unable to validate data!!!
Posted by .::wireless::. at 11/4/2004 4:55:45 PM
Hi all,
Does anybody know what could be the reason of the following error?
Thanks.
Server Error in '/' Application.
--------------------------------------------------------------------------------
Unable to validate data.
Description: An unhandled exception occurred during the execut... more >>
Question about radio buttons.
Posted by Ken Varn at 11/4/2004 4:38:14 PM
This is probably a simple question, but I am new to this so bear with me.
I have a ASP.NET form that has a checkbox and a 2 radio buttons. When the
checkbox is checked, the 2 radio buttons are enabled using javascript. When
the checkbox is unchecked, the 2 radio button are disabled with javas... more >>
Not So Basic Question.....
Posted by bgesterbrooks NO[at]SPAM landolakes.com at 11/4/2004 4:13:20 PM
ok I am rather new to the .net framework. I come from a J2EE
background. I am not a java snob though =-) I happen to like both
platforms.
At any rate I came accross a simple problem that I was left unsure how
to handle. I need 2 forms on a aspx page. I know that this has been
addressed in len... more >>
AutoEventWireUp Usage with Example
Posted by prem at 11/4/2004 3:36:10 PM
Hi ,
Any one please give me the Usage with example for
AutoEventWireUp PageDirective.
Regards,
Prem.
... more >>
508 compliant (i.e. accessible to the people with disabilities)?
Posted by fm NO[at]SPAM newsgroups.nospam at 11/4/2004 2:15:02 PM
We would like to consider using ASP.NET for our portal development. A
requirement is that the pages are 508 compliant.
http://www.section508.gov/index.cfm?FuseAction=Content&ID=3
All I have been able to find on the net is a KB article that says a
framework rollup now has the grid producing... more >>
Creating Attribute/Calling Server VB.NET Function
Posted by Anonymous at 11/4/2004 1:38:03 PM
Here's my problem.
I'm using a TreeView that doesn't have dblclick as an attribute. So I
attempt to create an attribute for that but using below code:
Me.tvEntities.Attributes.Add("onclick", "ExpandNode()")
This is code for ExpandNode() in client side:
<script language="VBScript" ru... more >>
Session-Object for more than 1 user control?
Posted by Frank Schumacher at 11/4/2004 1:36:28 PM
Hi NG,
I have another problem with User controls. Thanks to your help I was
finaly able to create a Control, which is doing what I want it to do.
But now I want to add more than one User-Control to my WebForm.
Unfortunatly, my UserControl is using the Session-Variable to store some
value... more >>
onClcik with IF Condition
Posted by RA at 11/4/2004 1:12:58 PM
Is it possible to add an attribute for onClick event with an if condition.
For example. If button is enabled then popup a message "Button Enabled" and
if it is disabled popup message "Button disabled"?
... more >>
What is client startup script?
Posted by Harry Smith at 11/4/2004 12:58:22 PM
While reading the documentation on IsStartupScriptRegistered, there is a
reference to "client startup script" as "Determines if the client startup
script is registered with the Page object."
What is meant by "Client Start Script"?
Thanks,
Harry
... more >>
IIS Compression
Posted by Just D. at 11/4/2004 12:43:45 PM
All,
I know that some versions if IIS like in Advanced Server are supporting a
run-time compression, and we can enable and use it. What are requirements
for the client side browser to work with compressed web site? Do all
browsers support this compression? For example is we work from Window... more >>
passing data from a page to another page that's open by the browser?
Posted by coli NO[at]SPAM rocketmail.com at 11/4/2004 12:42:44 PM
Hi, I'm thinking of having a main page which lists people. Then you
can select a person via a hyperlink, which would open up a new window
to let the user select a organization off a list.
The problem is how do you pass the selected data back to the original
page which is still open?... more >>
Lookup Data
Posted by Demetri at 11/4/2004 12:29:02 PM
Hello,
I have a page with a datagrid. The datagrid has a column called Employee
Name. This column is for display purposes. However, in edit mode (including
making additions) the user will need to be allowed to lookup an employee.
Therefore, in edit mode there will need to be a textbox. Th... more >>
Opening a Page in a New browser
Posted by sumaira.ahmad NO[at]SPAM gmail.com at 11/4/2004 12:28:42 PM
Hi,
I would like to know if this is possible and how?? Please help..
I have an ASP.NET Web application..
In an aspx page within the application I have a hyperlink whose
NavigateUrl property is set to some other aspx page such as
NewPage.aspx.. When i click on that hyperlink it takes me to the... more >>
Error: A page can have only one server-side Form tag.
Posted by VB Programmer at 11/4/2004 12:20:23 PM
I only have 1 set of <FORM> tags in my HTML file, but I keep getting this
error. Any ideas?
***********
A page can have only one server-side Form tag.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more inform... more >>
Find and HTML Element
Posted by Jim Heavey at 11/4/2004 12:09:03 PM
If I have an HTML element, say a <p> tag with and ID="Fred", how do I find
that element? I want to set the Style attribute to "hidden", how do I do
that?
Thanks!!!... more >>
Add User Controls in base class
Posted by Andrea Williams at 11/4/2004 11:58:11 AM
I have a Base class from which every page inherits. I would like to keep my
navigation Menu on every page and would like to add it to the site globally
from my base class instead of adding it to each page. Does anyone know of a
tutorial on how this could be done?
Thanks in advance!
Andrea
... more >>
sending mail without smptserver
Posted by Pascal Cloup at 11/4/2004 11:47:44 AM
Hello,
I just want to send an e-mail from my windows form application without
specifying SmtpServer.
On my computer, when i specify my smtpserver, SmtpMail.Send( aMail ) works
fine, but without specifuing SmtpMail.SmtpServer, the message is never
sent.. I tried various things like SmtpMa... more >>
Tracing......
Posted by Harry Smith at 11/4/2004 11:31:54 AM
My Web application is going to production. It may through some error in the
production which is hard to reproduce. How to keep the production
environment in a such a way that I can trace back what went wrong.
I am using VB.Net to create the ASP.Net application using .Net Framework 1.1
Thanks for... more >>
click events not working after deployment
Posted by Phil Townsend at 11/4/2004 11:30:14 AM
This is wierd. I have a small app which I have developed on my local
machine. Everything works flawlessly. However, when I copied it to the
live server, and compiled it, there is no response from a button that
logs a user into the site. Since I do not have admin rights to the live
server, I cann... more >>
Strong name a ASPX web Page --- Question
Posted by geeksgk NO[at]SPAM yahoo.com at 11/4/2004 11:21:16 AM
Hello,
Can anyone tell me how to strong name a web page?
Thanks
Gopal... more >>
stack Trace....
Posted by Harry Smith at 11/4/2004 11:15:49 AM
Can anyone show me the documentation on how to read the Stack Trace? When I
get the error it is not possible to identify which line exactly thrown the
error.
Thanks,
Harry
... more >>
Urgent!!!!! Remove Items from a <Asp:Listbox> thru javascript
Posted by Sileesh at 11/4/2004 11:04:07 AM
HI
Does any one know hot to remove selected items from a Listbox.
Any sample code?
Thx
Sileesh... more >>
Can I place a User Control (not Web Control) in IE
Posted by DotNetJunkies User at 11/4/2004 10:54:23 AM
I have created a User Control (a Pareto Chart) using C#. It works great in .Net Windows Apps, but I also need to use it in a Web Application (to view in IE). Everything I read on this seems to be talking about Web Controls (although the terms "Web Control" and "User Control" seem to be used int... more >>
How to start with ASP.net
Posted by M Smith at 11/4/2004 10:48:24 AM
I'm new to .net so forgive me if this is a dumb question, but what do I need
to start writting in ASP.Net? I have written asp pages before using Visual
Interdev. I have Visual Basic .Net 2003 Standard edition that I have
recently started playing with. I'm running on a Windows 2000 machine with... more >>
creating gantt control : can you use html?
Posted by Dan Nash at 11/4/2004 10:42:03 AM
Hi peeps
I need to use a Gantt charting display in my project. Unfortunately, the
client has no spare cash for such frivolities as buying controls, so I'm
going to have to write something. So I want to write it as a control, so I
can reuse all my hard work.
My question is.. can controls ... more >>
SQL Server and ASP.net timeout problems
Posted by Jim at 11/4/2004 10:30:01 AM
Group,
I have a Web application sitting on a staging server that is using SQL
Server 2000 as its data store, and I can run the application flawlessly.
Now, when I copy the project to my localhost and run the application, using
the same SQL Server, I keep on receiving a SQLException Timeout... more >>
Urgent!!!!!!!! Adding Items to <Asp:ListItem> thru Javascript
Posted by Sileesh at 11/4/2004 10:19:08 AM
Hi
I have an aspx page which has 2 listBoxes A n B and a Button . Items in A is
ynamically added when page is loading. And Listbox B is empty.
Now my problem is to add selected items from ListBox A to ListBox B when i
click on the Button in javascript.
Doesanyknow how to dothis. Sample... more >>
Refreshing a datagrid at predetermined intervals?
Posted by Tom at 11/4/2004 10:06:39 AM
I have an ASP.NET web page coded in VB.NET (2003). That web page has a
dropdown box on it which is loaded during the page_load event. When the user
drops this down and selects a data item, the code reads the database (based
upon what they selected, of course) and then loads the appropriate data ... more >>
Append DataSet To Existing Table
Posted by Wayne Wengert at 11/4/2004 9:49:05 AM
I am using VB ASP.NET. In my page I convert an uploaded XML file to a
dataset as follows:
Dim ds1 As DataSet = New DataSet
ds1.ReadXml(strPathName, XmlReadMode.Auto)
Now I want to append all the rows of ds1 to an existing table in an SQL
Server database. I know I can do things like loopi... more >>
Cancel a Response.Redirect
Posted by Tim at 11/4/2004 9:49:04 AM
Hello,
Is there a way to "cancel" a response.Redirect? For example, in the code
below, could I insert anything in the Catch statement that would cancel the
redirect and resume flow after the try-catch?
Try
Response.Redirect(strPage)
Catch ex1 As Threading.ThreadAbortException
ex1 =... more >>
adding a reference
Posted by Tim Mulholland at 11/4/2004 9:45:04 AM
I'm having a problem getting the ASPEmail library that my host uses loaded
into the references section of my local project.
I've downloaded the library and placed it on my work computer and my home
computer.
On my work computer, when i add it to the project as a reference, it coems
up with
(Na... more >>
greater then / less then
Posted by Mike at 11/4/2004 9:33:03 AM
Why can I not compare 2 numbers?
what i have is this:
dim T as string = "101"
dim W as string = "99"
if T > W then
response.write("T is greater")
end if
if the numbers look like this is doesn't compare them. if they are both over
a 100 it works, and if they are both under 100 it ... more >>
Recursively Iterate All Form/Panel Controls On A Page
Posted by Dan Sikorsky at 11/4/2004 9:28:42 AM
How do you recursively iterate thru each collection on each form on a web
page and find each web control?
--
Thank you kindly,
Dan Sikorsky BAB, BScE, MSC
... more >>
Mutex exception
Posted by Dominik at 11/4/2004 9:28:05 AM
After going productive a few days ago, we had a very strange exception on of
our loadbalanced productive servers running a Microsoft Content Management
Server ASP.Net application. As this exception is not thrown by our
application but a general one I would like to post this here. Any clue what... more >>
Retrieving "Username" from FormsAuthentication
Posted by kevgibbo NO[at]SPAM hotmail.com at 11/4/2004 9:15:31 AM
If i did set cookie like this:
FormsAuthentication.SetAuthCookie(username, False)
How can i retrieve the username in another page ?... more >>
Pop Up dialog box
Posted by Manny Chohan at 11/4/2004 9:04:09 AM
Hi guys, I am using VB .NET. I have a function in codebehind which validates
the user credentials against stored data in database. How can i cause the
script to pop up dialog box when login fails. I know we can set the label
text and visibility to true. However is it possible to cause dialog b... more >>
ASP.NET Emailing
Posted by John Smith at 11/4/2004 8:49:33 AM
Server: Windows 2000
..Net Framework: v1.1.4322.573
I have created a class in asp.net that sends out an email message. It used
to work on the live server but now it doesn't? I never made any changes to
the application. So, I tried using the application from my machine
(development server) ... more >>
Do I need to DataBind twice?
Posted by Andy Fish at 11/4/2004 8:40:37 AM
Hi,
I have a repeater nested within a repeater. After databinding the outer
repeater, I loop through the items and databind the inner repeaters, also
setting the inner repeater's ItemCommand event handler at the same time.
I have disabled viewstate for performance reasons.
Now, say the ... more >>
disable validation controls
Posted by Andy G at 11/4/2004 8:34:39 AM
Quick question. I have numerous validation controls on a web form. I also
have a cancel button on the web form that
Response.Redirect("previouspage.aspx"), but when you click the button all of
my validations fire off and display my Validation Summary. How do I disable
the validation controls ... more >>
nested datagrids
Posted by alnur.ismail NO[at]SPAM scotiabank-dot-com.no-spam.invalid at 11/4/2004 7:58:32 AM
Hi all,
Is it possible to have a nested editable datagrid in an editable
datagrid? So far I've created an editable datagrid that contains a
usercontrol of an editable datagrid and the user control works fine
but when you go to edit the parent datagrid i get an error when
.DataBind() is called... more >>
height of printed line for a certain font size
Posted by John A Grandy at 11/4/2004 7:30:20 AM
i am creating asp.net web-forms that the user prints from internet
explorer
what is the proper equation to determine line height in inches for a
certain font size ?
for example , for a 12 pt font , this is my calculation :
line height = ( 12 pts / line ) * ( 1 inch / 72 pts ) = 1/6 "
h... more >>
Editcommancolumn in datagrind in asp.net
Posted by venkat_chellam NO[at]SPAM yahoo.com at 11/4/2004 7:18:21 AM
I have a question.
I have datagrid in asp.net page. grid will be loaded some information
on page load. One column of the grid is editcommandcolumn type with
edit, update and cancel options.
I don't want the edit button(linktype) to be enabled for all the rows.
Bases on some information, ed... more >>
Running page and displaying data
Posted by Vishal at 11/4/2004 7:15:34 AM
Hello,
I have an aspx page, which does certain tasks - like
reading from the dbase, creating files comparing records
etx. Now when this page runs, it obviously returns when
the page is finished. However I would like to show the
current status of whats going on. Otherwise it looks like... more >>
Session object question!
Posted by Tony at 11/4/2004 5:28:01 AM
how do I check if the data in the session object is null before extracting it.
The following throws an error if the Session object has not already been
created.
string str = System.Web.HttpContext.Current.Session["abc"].ToString();
Thanks
... more >>
Sharing state variables between web applications
Posted by W Akthar at 11/4/2004 5:11:08 AM
Hi,
I need to pass session state variables across different
web applications. Firstly is this possible and secondly
can someone show me how please??
... more >>
calling class method
Posted by huzz at 11/4/2004 3:52:01 AM
I am trying to create instance of class and and call a method of this class
that creates a global variable which is available in anywhere in the page..
Here is what i am doing.. but i am getting build error message as shown:
C:\Inetpub\aspnet\intranet\bs\request.aspx.cs(45):
'intranet.depa... more >>
LoadViewState datagrid
Posted by Nergal at 11/4/2004 3:51:58 AM
LoadViewState is taking a long time on a page, the bigger the dataset the
longer the wait and also it takes longer on remote server than local host.
EnableViewState is FALSE and when I examine the viewstate size for the
datagrid in trace it is ZERO.
But the view state string is very long :... more >>
Drag n Drop
Posted by Ramesh Chawla at 11/4/2004 3:33:01 AM
Hi,
I have to implement the functionality like 'drag n drop' in asp.net form. It
is like, a table will be shown to the user at the client side. the first and
last column of the table at the client is bound to some data. This data is
made to be darg n drop. The drag and drop should be implemen... more >>
How to format Date Inside DataColumn
Posted by Raed Sawalha at 11/4/2004 2:34:10 AM
Hi There,
How can I format a date inside a data column? I have been looking around but
can't find any information on it.
Regards
c.Controls.Add(New LiteralControl(dataR(dataC.ColumnName)))... more >>
Showing some activity while caching a database
Posted by Kenneth P at 11/4/2004 1:39:04 AM
Hi,
While you cache a db you should be able to show some activity to the user.
The caching might take a while if the database is big, so to prevent the user
from turning into another site with better speed, you should show the user
some activity progress (progressbar) in the best case, seco... more >>
Exam 70-315: Developing Web Applications with Visual C#.NET
Posted by Tina at 11/4/2004 1:25:02 AM
Hello,
I'm currently preparing for the exam 70-315. I'm using the Self-paced
training kit "Developing Web Applications with Microsoft Visual C#.NET", but
I find it rather difficult.
I have programming experience in Lotus Notes and I have developped several
'basic' websites, but .NET and C#... more >>
Suppressing the URL in a asp.net app
Posted by Kenneth P at 11/4/2004 12:55:02 AM
Hi,
I've seen many Internet sites that suppress the URL or show the same URL all
the time your moving around different pages. You'll only see the real page
with it's path in the statusbar way down on the page.
How is that done in asp.net?
I have an example on this, in sweden, stockholm ... more >>
HowTo: Dynamically Add Custom Controls?
Posted by David Freeman at 11/4/2004 12:54:41 AM
Hi There!
I'm having trouble dynamically adding custom controls. My custom controls
does not use code-behind but only <script /> block for programming. So as a
result, I don't need to compile my custom controls to dll for them to work.
But I wonder, if I don't compile to dll, can I still d... more >>
|