all groups > asp.net > march 2006
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
checkbox bind with 0 = checked?
Posted by Maarten at 3/31/2006 11:05:42 PM
I have a bound-checkbox. The database value = 0 but the checkbox got
checked?
Why is that?
What value should be in the database for being not checked then?
tia
... more >>
Cache dataset
Posted by New at 3/31/2006 9:42:51 PM
Dear all,
I would like to cache dataset in client side to reduce the workload of
the network when the client access the same page. What kind of object in
ASP.NET can serve this purpose ? Thanks.
Best Regards,
David
... more >>
Best way to display a label with text from db?
Posted by Kees de Winter at 3/31/2006 9:36:44 PM
Hi,
If I want to display some text value coming out of a database on an aspx
page (on a label), do I really have to create a connection and command
object etc. all manually (such as in the code below) or is there an easier
way (asp.net 2.0, VS 2005) ?
Thanks for your help!
Protected ... more >>
Session state issue
Posted by prof_martin at 3/31/2006 8:18:01 PM
Hi,
I'm using .net 1.1. I have ASP.Net appl, shopping cart ,with dataset on
sesion. Dataset here to store all selected items, sesion timeout 120 mins.
Problem is, I got report that: user A select 5 items then close browser,
other user B go to the website it will show 5 items directly. Mor... more >>
Custom Error Problem
Posted by dave_93_98 NO[at]SPAM yahoo.com at 3/31/2006 6:08:18 PM
Hello,
I am trying to use my apps global.asax and web.config to log an error
message and move to a custom error page. This works great locally but
does not work on a Win2K3 server (it redirects to the error page but
does not log the error). Here is the relevant code -
-- web.config --
<c... more >>
Prob Creating PDF with Adobe 7.07
Posted by GaryDean at 3/31/2006 5:33:52 PM
( First, I'm using .net 1.1 and, yes, I posted this problem on the
Adobe Forums but that won't do any good because they have very poor support)
In the code pasted below, MyReport is a Crystal Report object. this code
works with all Adobe readers except for the new 7.07. If the clien... more >>
Umlaut in the Params of an ASP.NET page
Posted by Reinier at 3/31/2006 5:23:03 PM
Hi all,
When I try to get the parameter from an ASP.NET page, all characters with a
umlaut disappear. So when I request the following URL:
http://www.MyWebsite.com/MyPage.aspx?Name="Müller"
and I use the following C# code:
string Name = Request.Params.Get("Name");
then the variable Nam... more >>
Which account for my app pool?
Posted by Fariba at 3/31/2006 5:13:38 PM
Hello All,,
I am just wondering what account usually people put their application pools
under? Low privilage or high privilage account?
If we put our application pools under low privilage accounts ,then
developers have to use impersonation to get enough permissions required to
get their cod... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Missing file error ?
Posted by Henry Lee at 3/31/2006 5:02:09 PM
hi,
I try to use some ADO.NET 1.1 code in the Visual Web Developer 2005
express. So I add these namespace in web.config
<add namespace ="System.data"/>
<add namespace ="system.data.oledb"/>
but after that . the webpage will show error like
The type or namespace name 'data' does not ... more >>
1.1 Button Event not being recognized
Posted by jw56578 NO[at]SPAM gmail.com at 3/31/2006 4:55:26 PM
I make a test page: test.aspx
i put one button on the page
i compile
i access the web server by Http://servername
click button, event fires and "testing button not working" appears on
the page
i access the web server by http:// hostheadername
click button, nothing happens
what the heck i... more >>
ASP.NET 2.0 -- Page_Load called multiple times
Posted by amitku NO[at]SPAM gmail.com at 3/31/2006 4:30:36 PM
I am working on a web site and whenever someone arrives at the home
page, I'm trying to track this by inserting some values into my
database.
I do so from the Page_Load function. Unfortunately for some reason,
for each person entering my website, I get 3 entries in my database!
I've been... more >>
Export to Tab Delimited Text File
Posted by David Lozzi at 3/31/2006 4:27:18 PM
Howdy,
I need to export some data to tab delimited text file. I was hoping to
simply convert my datagrid to it, but I can't seem to figure out how. Here's
what I got in the page header.
Response.ContentType = "text/plain"
Response.AddHeader("Content-Disposition",
"attach... more >>
grideview's OnRowUpdating event not fire
Posted by wei at 3/31/2006 3:02:02 PM
Hello all
this is problem I worked a few hours without answer,
this is my gridview control-------
<asp:GridView ID="gview" runat="server"
Width="710px" AutoGenerateEditButton =true OnRowUpdating ="OnRowUpdate"
AllowPaging ="false" AutoG... more >>
Migrating from 1.1 to 2.0
Posted by Stuart Quinn at 3/31/2006 2:49:59 PM
Is there anything special I should know about migrating my website from 1.1
to 2.0?
I was just planning to add new pages to a project in 2.0, and then copy the
1.1 pages over one by one.
Does that sound like a good approach?
Is there an easier way?
Thank you very much.
... more >>
Find URL in a string
Posted by Mike Kansky at 3/31/2006 2:38:53 PM
Is there a built in function in .NET to find URL in a string so i can format
it as <a href="url" ?
useful for Forum Posts and other human entered text.
... more >>
ASP.NET 2.0 - Loosing session information
Posted by cyndi_r2000 NO[at]SPAM yahoo.com at 3/31/2006 2:12:43 PM
Hi Everyone:
I have a web application running on .NET 2.0 under IIS 6.0 and users of
this application seem to be loosing their session randomly - we havent
been able to identify any pattern, except for warnings in the event
viewer that say "A process serving application pool xyz terminated
un... more >>
Email Attachment from Web Page (without saving to HD)
Posted by dave at 3/31/2006 2:10:03 PM
Is it possible to upload a document (from asp.net page file upload control)
and attach to an email message without saving to the hard drive?
thx
dave... more >>
Finding a SubString within a String
Posted by Badass Scotsman at 3/31/2006 1:43:17 PM
Hello,
Using VB and ASP,NET I would like to be able to search a STRING for a
smaller STRING within, based on the characters which appear before and
after.
For example:
String1 = " That was a tasty burger"
How can I return the word Tasty, by referencing the word "a" and
"burger"....... more >>
VS2005: ASP.net forms designer: Intellisense
Posted by Martin Robins at 3/31/2006 1:42:10 PM
I have created an inherited control based upon the GridView control, however
when I use this control within the VS2005 ASP.net form designer I can no
longer access the intellisense for the base control (technically it is now
in a new namespace instead of the original "asp").
I know I can cr... more >>
passing a string from the server to client side javascript
Posted by Lyners at 3/31/2006 1:41:04 PM
Hello all,
I have an ASP.NET website where one of my pages contain javascript that is a
check to see if anydata within a datagrid has changed. My problem is that it
takes a considerable amount of time to populate the array in the javascript
after the datagrid is populated.
What I am thinki... more >>
String was not recognized as a valid DateTime.
Posted by hodgesp at 3/31/2006 1:23:09 PM
I have a Datagrid that I'm trying to use to update a SQL table. The grid
works and I get the EditCommand to work. When I make a change to a
field, I get a date error. I was getting invalid cast error, but I
changed my Update script. All the scripts I found seem to work up to
that point. What ... more >>
Newbie Question About Setting Table Column Width
Posted by Robert W. at 3/31/2006 1:04:02 PM
I'm new to web programming so please excuse my ignorance. With that said ...
I've added a 2-column, 3 row table to control the placement of everything on
the web page. The first row contains the header and spans the entire width.
The last row contains the footer and also spans the entire w... more >>
GridView SelectedIndexChanged value
Posted by sck10 at 3/31/2006 12:55:53 PM
Hello,
Iin my ASP.NET page, I have a Gridview and a FormView control on it. The
FormView control will display
the detailed data depending on the value from the GridView's SelectedValue.
How do I capture the SelectedValue?
--
Thanks in advance,
sck10
Parameter for the FormView
<Sele... more >>
How do you get the IP address of a computer using ASP.net?
Posted by Progman at 3/31/2006 12:51:57 PM
How do you get the IP address of a computer using ASP.net?
I tried Request.UserHostAddress and it does not work.
I get
Request for the permission of type
'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
It s... more >>
Filter SQLdataSource
Posted by simonZ at 3/31/2006 12:24:08 PM
In gridView I have dropdown list :
<asp:GridView ID=3D"GridView1" runat=3D"server" =
AutoGenerateColumns=3D"False" DataKeyNames=3D"ProductID" =
DataSourceID=3D"SqlDataSource1">
<Columns>
<asp:BoundField DataField=3D"ProductID" HeaderText=3D"ProductID" =
InsertVisible=3D"False"ReadOnly=3D... more >>
Newbie-ish Question about Building Reports from a Datamart
Posted by Gummy at 3/31/2006 12:21:22 PM
Hello,
I am not brand new to .NET, but I'm still a beginner.
We have an Oracle database that nicely compacts (cubes) the data we need
(think mini-data mart). Unfortunately, this data is currently placed in
about 20 different huge Excel sheets for distribution. Ick!
What I woul... more >>
Page Re-Direct On Session Timeout
Posted by Ed at 3/31/2006 12:18:02 PM
I am using Form Authentication with the new authentication controls in
ASP.NET 2.0. I would like to be able to check to see if the user's session
has timed out and redirect them to a page to allow them to re-login in.
I don't want the page to be the same as the login page, since I would like to
... more >>
How to? AutoGenerateSelectButton manually
Posted by eric.olstad NO[at]SPAM gmail.com at 3/31/2006 12:13:27 PM
A GridView control in ASP.NET has the option to Auto-Generate the
select button (which is a link that calls __doPostBack which I presume
does a post-back to the server). Is there information on how to
generate this __doPostBack function manually?
The motivation is simple. Using the same __do... more >>
help about unxpected ";"
Posted by david at 3/31/2006 11:34:03 AM
My web form worked fine before. Today I found three buttons do not work,
including a close button with ID btnClose. I use
btnClose.Attributes.Add("onClick", "window.close()")
in codebehind in VB.
The IE error message on the bottom after page loading:
line: 165
Char:44
Error: unexpected ... more >>
using sa with SQL 2005 problem??
Posted by Les Caudle at 3/31/2006 10:34:20 AM
I un-installed SQL 2000 developer's edition and installed SQL 2005 developer's
edition in mixed mode security with the exact same sa password. I then
attached my old databases.
Even thought the web server is located on the same machine, I can no longer us
the sa user/pass in my connection st... more >>
Error handling for html/image resource
Posted by walter at 3/31/2006 9:52:03 AM
Hi there, I created a httpmodule to handle the exception globally. The only
catch is that it cannot catch any 404 error from html or image.
So I wish someone here could share some lights on this question .Appreciate
any inspiriting thought.... more >>
Using server-side OCX control with ASP.Net Web Service
Posted by las NO[at]SPAM labapps.com at 3/31/2006 9:48:08 AM
(Originally posted to framework.aspnet.webservices, but I am casting a
larger net and trying again)
I am using a library supplied by a third-party vendor. Although the
library has no UI, the vendor supplies it as an .OCX control.
I need to utilize this library in an ASP.Net Web Service. My... more >>
Reference A var on Master Page from User Control
Posted by Michael at 3/31/2006 9:30:03 AM
I have setup a public variable in the Master Page "code-behind-file". Now I
would like to set that value from the UserControl, but I can't seem to find a
way to do this. Does anyone have any ideas? I'm basically trying to set it up
so that I can keep the User infor (userid, ect) in the Masterp... more >>
debug CodeBehind
Posted by js at 3/31/2006 9:26:15 AM
hi, I'm working on the DNN asp project. I want to modify a control called
"urlcontrol.ascx", the original declaration is: <%@ Control language="vb"
AutoEventWireup="false" Explicit="True"
Inherits="DotNetNuke.UI.UserControls.UrlControl" %>
and from the source code package, I found the sour... more >>
Error when trying to access User Control
Posted by ticars NO[at]SPAM gmail.com at 3/31/2006 9:12:39 AM
I'm getting a weird error when trying to access a user control from
within a base page during runtime. Here's what I have:
I have a master page with a user control on it. I then have a few
webforms that provide content to the master page. All of these
webforms inherit from the same basepage... more >>
Datasets - Cloning problems
Posted by P K at 3/31/2006 7:48:03 AM
Hi,
I have 3 datasets
d1Main is the main dataset having rows.
I loop through rows in d1main and any row failing validations is moved to
d2Bad dataset. I had to clone d2bad as d1main and then add failed row to
d2bad
so d2bad is created out of d1main.
Now comes d3good. any records val... more >>
TreeView control for web form in .NET1.1?
Posted by david at 3/31/2006 7:48:02 AM
I do not know if there is a treeView control for web form in .NET 1.1.
I know there is IE Webcontrol package which has the treeview control for
..net 1.0. I have tested it in .net 1.1 before. It did not work. About the
status of it now? Is there any alternative for TreeView control for web form... more >>
graphical display
Posted by bazzer at 3/31/2006 7:32:34 AM
im doing an ASP.NET web application for booking cinema tickets online.
for one part of it i need to show a graphical display(very very basic)
of seats in a particular screen of the cinema. it would need to show
seats that are already booked and, also, allow seats to be
selected(booked) by clicki... more >>
Problem: GET/POST/ViewState and swapping CLIENT IP address in one session
Posted by Tony at 3/31/2006 7:15:31 AM
I would really appreciate it if anyone has any thoughts on this one -
it's driving us mad.
We have a web site which is using ASP.NET 1.1 and which is load
balanced across two web servers with IP affinity. It generally works
very well. We have set enableViewStateMac="false" and to be sure we
h... more >>
passing exception messages from a dll to a client
Posted by Sridhar at 3/31/2006 7:12:02 AM
Hi,
I have created a web application. I have a data access dll to interact
with database. I added this dll as a reference to the web application. Now
let's say if I am calling a function in data access and if it throws
exception (like cannot find stored procedure), how do I retrieve that... more >>
ftp from ASP.Net 2.0
Posted by sparty1022 at 3/31/2006 6:48:04 AM
I believe that I have spent days looking for a "HOW TO" on developing an ftp
process from an ASP.net 2.0 page that utilizes a "FileUpLoad" control.
Can I not just call the "SaveAS"(ftp_site, username, password + filename)
method? If I can't do this someone please point me in the direction of ... more >>
how keep the values of JavaScript variables unchange when page pos
Posted by david at 3/31/2006 6:38:04 AM
My question is how to keep the values of JavaScript variable unchanged when
the page is posted back to the server?
Problem: The JavaScript is used in HTML for computing in aspx web page
(form) design. When the page is posted back to the server, the values of
JavaScript variables are initial... more >>
JavaScript: how to keep the variable values when page posted back
Posted by david at 3/31/2006 6:35:01 AM
I write JavaScript for client side computing in HTML file in ASPX design.
However, I found that the variables declared in JavaScript are initialized
again when the page post back to the server. Therefore, after that, the
computation would be wrong. My question is how to keep the values of the
... more >>
adding linkbuttons at run time?
Posted by bazzer at 3/31/2006 6:04:07 AM
hey,
i have an ASP.NET webform linking to a microsoft access database. at
runtime, i need the application to add x linkbuttons to a panel. x will
be the number of entries under a certain field in one of the tables
from the database, which can vary each time.
i just cant get my mind around how... more >>
WebRequest using the wrong credentials
Posted by cashdeskmac at 3/31/2006 5:44:03 AM
I have used impersonation to assign all logged in users an account to access
a folder on a network share. However, when they try to access this folder,
they are doing so as the machine user, not the identity they are logged in as.
Any ideas?... more >>
Check Image is over another Image
Posted by Varangian at 3/31/2006 5:14:47 AM
Hello
is there a way to check if an image is over another Image ?
thanks
... more >>
Allow anonymous access only
Posted by cashdeskmac at 3/31/2006 5:04:02 AM
Is it possible to allow only anonymous users access to the contents of a
folder, rather than all users?... more >>
QUERY: JavaScript vs. ASP.NET Web/Server Controls
Posted by dhruba.bandopadhyay at 3/31/2006 4:56:48 AM
Is it possible for JavaScript to access the DOM of ASP.NET Web/Server
Controls?
For example, I have a legacy HTML forms, controls, etc. If I conver
all
my HTML into Web Controls (by adding runat="server & id="") then will
this affect my JavaScript code that accesses/modifies the DOM of th
p... more >>
current date?
Posted by bazzer at 3/31/2006 4:20:40 AM
hey,
can anyone tell me how i would go about getting the current date to use
in an ASP.NET web form for visual basic.NET 2003 please?
... more >>
Big problem: all button controls just stopped working
Posted by Aahz at 3/31/2006 4:14:34 AM
I have big asp.net , c# project with many buttons and image buttons
that suddenly stop firing, when you click on button form -nothins
happen.
What strange that in Firefox they are still work fine, but not in IE.
When I create another project buttnons work without problems so it
seems my pro... more >>
|