all groups > asp.net > december 2005 > threads for wednesday december 7
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
Newbie Question: Deleting from object data source in ASP 2
Posted by damiensawyer NO[at]SPAM yahoo.com.au at 12/7/2005 11:43:25 PM
Hello all,
I am playing around with the new object data source control. I have
successfully managed to select, insert and update records via the
object, however am having trouble deleting. It seems that the primary
key (au_id) is getting passed through to the object as "nothing". Can
anyone s... more >>
How to request querystring
Posted by Bob at 12/7/2005 11:34:51 PM
I'm a Visual Studio 2005 beginner and trying to make a dataset to query a
newsstory. The url to the story looks like this news.aspx?ID=1.
I'm using Access DB and I made a query there which looks like this
SELECT articles.ArticleID articles.Titel, articles.Story
FROM articles
WHERE articles.A... more >>
Problems after converting to ASP.Net 2
Posted by Urs Vogel at 12/7/2005 10:43:00 PM
Hi
After VS 2005 converted my ASP.NET project, it doesn't compile and gives me
this one and only error:
"It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as... more >>
User Control web form in asp.net
Posted by sridev at 12/7/2005 10:37:01 PM
i am new to ASP.NET with CSharp.
I am having an application, Which has a web form as Home.aspx.
In that page i loaded a user control web form (Insertclient.ascx) in
the
page load.Now i have a next button in the Insertclient.ascx, When i
click the next button i should load an other usercontrol w... more >>
Date/time with minutes and seconds optional?
Posted by Randall Parker at 12/7/2005 10:18:51 PM
I'm using this:
MyDateTimeStr = MyDateTimeVal.ToString("MM-dd-yyyy hh:mm:ss tt");
in C# to convert what I read from a form submit.
What I want is something more flexible where the minutes and seconds are optional.
How to do that?
I want to able to specify several variations as all leg... more >>
SQL Connection Timeout
Posted by David Lozzi at 12/7/2005 9:26:27 PM
Hello,
I have a website I'm developing that will query a SQL database for basic
lists. If the database is unavailable, the site will continue to function as
a static site. The problem I'm running into is that when the SQL server is
unavailable, it takes a while for the page to load. I'm ass... more >>
Drill Down in Crystal Reports
Posted by Naseem at 12/7/2005 9:07:49 PM
I am using CR in ASP.NET , I am able to show drill down graphs where
grouping is done on single column from result set of sql query, is it
possible to achieve drill down by grouping on multiple groups?
-Naseem
... more >>
Changing GridView data in code
Posted by cpnet at 12/7/2005 8:56:37 PM
I have searched for this, but I'm not having much luck. I know in my .aspx
page, I can use <%# Eval(...) %> to render values from my SqlDatasource into
my page. But, Eval doesn't support the formatting I want. (I'm pulling a
description field from the database, and if it's more than 57 charact... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
what kind of error is this?
Posted by micky at 12/7/2005 8:00:16 PM
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonat... more >>
Could not load file or assembly 'App_Web_tod59ga8' and similar
Posted by Eric Falsken at 12/7/2005 7:42:58 PM
Eric Falsken <eric@db4o.com> wrote on 04 Dec 2005:
> craigkenisston@hotmail.com wrote on 19 Nov 2005:
>
>> I'm working in the migration of an asp.net application in 1.1 to 2.0.
>> I'm new to this application, just worked with that some days.
>> Today, I decided to open the project in VS.2005... more >>
open vbs file without prompting File Download message
Posted by kim at 12/7/2005 7:15:03 PM
GOOD morning,
I try to open xx.vbs in <href="./xx.vbs"></hef> but it pop up the file
download mesage. How can i disabled it?
I try another solution like this :
set ws = createobject("Wscript.shell")
set oexec = ws.exec("<%=server.mapPath(./xx.vbs)%>")
But it give error "the path/xx.vbs is... more >>
How secure is this?
Posted by Jeff at 12/7/2005 6:22:32 PM
Using ASP.NET 1.1
Suppose I put the following code in an aspx code-behind's Page_Load() event
procedure...
if ( ! VerifiedSomething()) {
Server.Transfer("../NoDice.aspx");
Response.End();
}
How secure is this page... in the case that the VerifiedSomething() Boolean
method returns... more >>
subdirectory is using old version of .net
Posted by Abraham Andres Luna at 12/7/2005 5:41:20 PM
hello everyone,
i set the default website to use 2.0
but a sub directory is still using 1.1
does anyone know why this directory would use 1.1 instead of inheriting from
its parent and use 2.0
... more >>
Help!
Posted by Paul Smith at 12/7/2005 5:37:17 PM
I have managed to populate a DropDownList with the fields from a database.
I have managed to capture the users selection - postback.
How do I now use this selection as the parameter for a query which will
return other fields from my database table for the DropDown choice?
I have a query w... more >>
Debugging external classes
Posted by Brian Bischof at 12/7/2005 5:12:30 PM
I'm having troubles getting the debugging process to work consistenly for
external classes. I got it to work once and then I turned it off. But now I
can't get re-enabled. Here is what I'm doing. If someone could tell me what
I'm missing that would be great.
1. Create an external class and ... more >>
Stored Proc not Outputting
Posted by David Lozzi at 12/7/2005 4:57:53 PM
Hello,
I have a proc as displayed below. When I try to run it from ASP.NET I get an
error.
CREATE PROCEDURE [dbo].[cp_AddSession]
@SID as int,
@EID as int,
@DID as int,
@StartTime as varchar(10),
@Duration as int,
@Title as varchar(50),
@Location as varchar(50),
@Description as text,... more >>
installing release version
Posted by param NO[at]SPAM community.nospam at 12/7/2005 4:55:29 PM
Hi all, I have a web server running an older beta version of the .net 2.0
framework redistributable package. Are there any documented steps to
un-install that and re-install the newer version? I dont have any other
products like VS etc. installed on it. Just the framework.
TIA!
... more >>
Is this the best way to read the web.config file? XPath didn't work ;-(
Posted by Alan Silver at 12/7/2005 4:41:39 PM
Hello,
I have a need to read the web.config file from another web site. I am
trying get the value of the "theme" attribute of the "pages" node.
I initially tried to do this by loading the file into an XmlDocument and
using SelectSingleNode with a path like
"/configuration/system.web/page... more >>
Calling external file
Posted by Gerald at 12/7/2005 4:24:05 PM
Hi guys,
I want to be able to call a external exe from an aspx page.
I saw two options:
- creating a vbs file to call via Wscript.
- Calling directly the exe.
I have failed so far to do both.
Solution 1: I have a vbs file that does everything I need. It works perfect
when called from c... more >>
Firefox ASP.NET 2.0 Client-Side Validation
Posted by Andre at 12/7/2005 3:30:48 PM
Hi,
I have read at many place that .Net 2.0 was suppose to support
client-side validation in non-IE Browser. But i've try a very simple
validation, and firefox is unable to run it, it works only in IE.
Do i have to make something special to make it work or the problem is
still pr... more >>
The "Web Site Administration Tool" in ASP.NET 2.0 is missing for remote sites in VWD
Posted by RCS at 12/7/2005 3:26:58 PM
All,
When I create a website locally, I have that little Administration tool (the
little icon in the Solution Explorer - or under Website | Web Site
Administration) - but when I connect to a 2.0 webhost (and the rest of the
site compiles fine under 2.0) - I don't have that option.
More s... more >>
Persisting Label/Select Box Control values changed from client side during Postback
Posted by Server Control at 12/7/2005 3:06:32 PM
Hi,
I have a datagrid(within a user control) that has label controls. I
have added hidden fields in the datagrid alongwitht the label control.
I do some client side editing with javascript and somehow want to reset
the label value through javascript? I could grab the id of the row that
had the ... more >>
comments within a web control
Posted by Sue at 12/7/2005 2:39:03 PM
Anyone know how to add comments within a datagrid or asp:table in the HTML
page? I can't find anything that works.
thanks,
Sue... more >>
Share session between secure and non-secure applications
Posted by Joe at 12/7/2005 2:06:05 PM
I have an application which runs in a non-secure environment. I also have an
application that runs in a secure environment (both on the same machine). Is
there any way to share the session data for this?
Most of the site allows the user to add things to a cart (non-secure), once
they choose... more >>
Session variables disappear in relation to a file upload
Posted by Matt Jensen at 12/7/2005 1:55:25 PM
Howdy
I've got a rather strange issue occuring.
I used forms based .NET authentication, although I'm also setting some
session variables when people login.
However, I've found when people use one of my webform pages which includes a
button that pops up a window where you can upload files,... more >>
How to access a parent page method while in a user control.
Posted by Steve Kershaw at 12/7/2005 1:35:01 PM
I have this web page that has on it a user control. I have a need to
access a method that resides in the parent web page from within this
user control. It seems that there should be a way to do this!
Thanks in advance for your help.
Steve
... more >>
DataList DataBind - NullReferenceException
Posted by Craig at 12/7/2005 1:28:03 PM
This is killing me, I've been trying to figure this out for 2 days.
When I click on the linkbutton, it executes the GetData(int) method to set
the DataSource. The FAILURE is when it tries to call databind
(sender.DataBind();
in NeedList_ItemCommand method). The error message is at the ... more >>
ICO to GIF? (transparant)
Posted by Edwin Knoppert at 12/7/2005 1:17:53 PM
I'm trying to convert an icon handle to GIF.
Something like:
Public Function GetImageFromIconHandle(ByVal hIcon As Int32) As Int32
Dim ico As Icon = Icon.FromHandle(hIcon)
Dim x As New Drawing.IconConverter
'x.ConvertTo(ico,typeof(System.Drawing.Imaging.ImageFormat.Gif) )
End Function
x.C... more >>
most unbelievable phenomenon
Posted by Oleg at 12/7/2005 1:11:01 PM
Here's what happening.
On 'page1.aspx' I redirect to 'page2.aspx':
Response.Redirect("page2.aspx", true);
On 'page2.aspx' I'm redirecting to 'page3.aspx':
Response.Redirect("page3.aspx", true);
When page 'page3.aspx' 'Page_Load' completes it
also calls 'Page_Load' of page 'page1.asp... more >>
Absolutely strange inconsistent behavior occuring when a user clicks an ASP.NET button.
Posted by Mossman at 12/7/2005 1:00:43 PM
Hello,
I will discuss at a high level what is happening on an ASP.NET web page
I developed a year ago in ASP.NET using Visual Studio 2003 and
currently support.
I have an ASP.NET web page that is broken out into two sections. One
section is where a user enters the main infomation around a ... more >>
Should one convert to ASP.NET 2.0 now
Posted by Lenn at 12/7/2005 12:38:03 PM
Hello,
There are several production applications running on a web server. .NET
framework 2.0 has been installed on the server, eventually new products will
be built again 2.0 and deployed to the web server.
My question is should existing applications be converted from 1.1 to 2.0
framework.... more >>
Best way to proceed
Posted by Jeff User at 12/7/2005 12:27:32 PM
Hello all
I need to build a web form that will allow user to enter database
table column definitions. Each row on the form would contain column
name, data type (chosen from a drop down list), size (if applicable)
and other wonderful attributes. I will then take this input and build
a CREATE tab... more >>
Accessing the PostedFile object of a multipart/form-data post
Posted by Abe Simpson at 12/7/2005 12:23:49 PM
Hi all.
I am using a 3rd party ActiveX control to upload files to the web server
using the multipart/form-data format (described in RFC 1867). In regular
ASP, I have to use another 3rd party component, such as AspUpload, to
capture the files. In .NET, we have PostedFile, but I can' figure o... more >>
I just don't get dynamic loading of controls
Posted by Dave A at 12/7/2005 12:21:16 PM
I just don't get this...
If I need to dynamically load controls into a web page I simply need to =
go PlaceHolder1.Controls.Add(new Button()); or similar. However =
when I need to dynamically load a web user control into a web page then =
if we use the same syntax it will appear to work b... more >>
Deployment Questions
Posted by Fred at 12/7/2005 12:02:53 PM
Have I missed something, or have MS made two changes in ASP.NET 2 which make
it much more difficult to use?
Firstly, compiling a web app. seems to generate, among others, two files
named app_code.dll & app_code.dll. Does this mean one can no longer install
more than one application in the s... more >>
Forbidden - how?
Posted by Axel Dahmen at 12/7/2005 12:02:14 PM
Hi,
in one of my pages I want to return "403 Forbidden" to the client depending
on some logic in my .aspx code-behind. So I set "Response.Status = 403". But
apparently IE seems to ignore the status and displays the page as usual.
When I cancel the output using Response.End(), nothing is disp... more >>
getting then session ID
Posted by PJ6 at 12/7/2005 11:45:32 AM
Is is possible to get the session ID in JavaScript when using ASP.NET in
cookieless mode?
The reason I ask is that one of the functions I want to perform using remote
scripting (AJAX) is a page location redirect. When the session is cookieless
I want to respect the session ID contained in t... more >>
debugging problem
Posted by jojo at 12/7/2005 11:37:31 AM
I just installed VS 2005 professional edition on a computer with no
previous versions of asp.net or vs. When I run my website with 'Start
Debugging' I get the following error: 'Unable to attach. The binding
handle is invalid. Do you want to continue?. The page does display
when I click yes b... more >>
Master page update
Posted by BigSam at 12/7/2005 11:29:02 AM
I have updated my master page to reflect some different formatting. When I
open one of the pages that uses the master page, the change isn't reflected.
How do I tell the child page the master has been updated? Or have I gone gone
awry with something else?
Thanks in advance... more >>
Position Controls
Posted by Lee at 12/7/2005 11:24:42 AM
Hello all,
I'm having a really hard time understanding how I can postion controls
and tables on a page. I've tried using CSS, but it doesn't seem to
work, at least how I *think* it should work.
For instance, I created a Master page and a Table for its layout. I
chose to use the templ... more >>
How to tell TextBox.Text is null or not
Posted by Henry Lee at 12/7/2005 11:21:24 AM
Hi,
I want to tell if the .NET textbox.text control on the web page has been
input or not
So I write
If TextBox.Text <> "" then
.....
End IF
But you know it does not work , the error
"'text' is not a member of 'String'."
How to do it properly ?
Thanks for any input.
Henry
... more >>
DropDownList - Add
Posted by Andre at 12/7/2005 11:11:55 AM
Hi,
I'm using the DataSource and SqlDataSource to insert value in my
dropdownlist, but i want to add a -- Please Select -- at the top of the
list, but can't find a way to make it.
<asp:DropDownList ID="ddTown" runat="server" DataSourceID="SqlDataSource1"
DataTextField="idTown" DataValu... more >>
C# to VB help required
Posted by Jon Paal at 12/7/2005 10:56:38 AM
Trying to convert this to VB and need some help. Standard converters not accepting the code.
major problem is on the last line of code text
thanks for any help -
------------ C# code ------------------
public Global()
{
this.PreRequestHandlerExecute += new EventHandler(Application_PreReques... more >>
Image with link in a gridview?
Posted by Carlos Albert at 12/7/2005 10:49:38 AM
Hi everyone,
Is there a way to make a column that has an image with a hyperlink on it?
Cause I know how to make a hyperlink column, and a image column, but not how
to mix it both...
Tnx!
... more >>
DataList & Anchor!
Posted by Adam Knight at 12/7/2005 10:37:28 AM
Hi all,
I have a datalist..whose content is editable.
I am using a link button to place a data list item in edit mode.
What i am after is some way i can cause the page containing the data list,
to scroll to the respective list item being edited
when the edit event is raised.
You would u... more >>
Adding paging to a Gridview Control bound to DirectoryInfo.GetFiles()
Posted by pittster NO[at]SPAM hotmail.com at 12/7/2005 10:07:44 AM
Hi,
I've bound a Gridview control to the GetFiles method
Here is a code snippet:
DirectoryInfo objDi = new
DirectoryInfo(Server.MapPath("./somepath"));
FileInfo[] arrFileInfo = objDi.GetFiles();
GridView2.DataSource = arrFileInfo;
GridView2.DataBind();
The... more >>
data grid help
Posted by nullref at 12/7/2005 9:26:02 AM
Hello.
I am wondering about the ability of the data grid for being able to maintain
state of data when paginating.
I am trying to figure out if I can use the grid to enable editing of data
that is paginated in the grid but that doesn't save the updates with every
pagination action. Can ... more >>
How can I pass form values to another websites
Posted by KFactor at 12/7/2005 9:19:15 AM
Is it possible to pass form variables to a page on another server using
response.redirect?
Or is there a secure way of passing sensitive information from one site to
another such as a userID?
I would like to avoid using the querystring.
This is what I would like to do:
When a user clic... more >>
Failed to start monitoring file changes
Posted by Joe at 12/7/2005 9:14:29 AM
I'm getting the following error when trying to call a page on a secure
server. I'm not doing any impersonations or file access of any kind. The
page is using PayPal and I'm wondering if PayPal has something to do with
this. We had to register an api certificate on the server using
WinHttpCer... more >>
XML in an .ahsx file
Posted by Lloyd Dupont at 12/7/2005 8:07:17 AM
I'm using a newsgroup/blog/mailing list/forums all in one provider.
After some negociation they would let me display the web interface of my
newsgroup with a special template.
This special tempalet could be provided as a dynamic XML file.
I'm thinking of using a ".ashx" to generate it, is i... more >>
worker process recycle event?
Posted by Martin Olson at 12/7/2005 7:40:03 AM
Is there a way to trap an event when the worker process is recycled within
an asp.net application???
thx,
mo
... more >>
<compilers> 2.0
Posted by WebBuilder451 at 12/7/2005 7:05:01 AM
After conversion my web.config flaggs this element as an invalid child of
compilation. The solution runs ok. however, when i makes a change that causes
an error on compile this will get flagged by the compilier.
Is there a listing of items that need manuel cleanup after conversion?
--
tha... more >>
adding masterpages to upgraded site
Posted by WebBuilder451 at 12/7/2005 7:02:02 AM
Is there a good way to add master page functionality to an upgraded site. 1.1
vs32003 to 2.0 vs2005. So far i get some unusual errors when i try to apply
to existing pages.
and im getting some odd errors
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m g... more >>
ASP.NET 2.0 ObjectDataSource caching
Posted by Oldman at 12/7/2005 5:45:02 AM
Is there a way to manually expire the cache for an objectdatasource?... more >>
ASP.Net 2.0 and ASP.Net 1.1
Posted by papaja at 12/7/2005 5:31:31 AM
Hi,
Is it possible to install and run asp.net 2.0 and 1.1 side by side?
Or, is it enough to install framework 2.0 only? Are they compatible?
... more >>
Q: start and end date
Posted by JIM.H. at 12/7/2005 5:27:03 AM
Hello,
How can I find start date and end date of a month from month name in c#? So
for example if February is selected from a dropdown list for this year I
should set 2/1/2005 and 2/28/2005?
Thanks,
... more >>
Using ASP.NET 1.1 on a machine with 2.0 installed
Posted by Jon Skeet [C# MVP] at 12/7/2005 3:49:49 AM
I've recently run into an issue with a webapp running under ASP.NET
2.0. It runs fine under ASP.NET 1.1, and everything still works with
both versions installed so long as I manually select ASP.NET version
1.1 in the MMC. However, I'd rather do it in a configuration file or
something similar - i... more >>
ImageButton.Click Event calling a method
Posted by Mark at 12/7/2005 3:14:03 AM
I am assigning a dynamic imagebutton on a page and then assiging it a Click
event with the following code, to pass the string "test" to the DeleteDetail
method
testImgBtn.ID = "imgBtn" + loopnumber;
testImgBtn.ImageUrl = "imgs/delete_16.gif";
testImgBtn.AlternateText = "Delete this detail";... more >>
How to add radio buttons into datagrid
Posted by Li Pang at 12/7/2005 2:47:02 AM
Hi,
I want to know how to add radio buttons into a datagrid control.
Thanks... more >>
auto Session check
Posted by rony_16 NO[at]SPAM 017.net.il at 12/7/2005 2:28:59 AM
hi ,
i want to override the object session in class page , because i want to
check the Session["UserName"] automaticly in WebForm , without writing
"if" in evry page .
i know that i need to make a new class Lib and inharite from "page" .
but should i write in the fuction "public override Http... more >>
2 javascript questions
Posted by Jeff User at 12/7/2005 2:27:33 AM
Hi
Sorry if this is kind of long, it is myhope that it is clear and
staright forward.
I am totaly new to javascript.
I figured out this much.
First, I wanted to clear the contents of a label on the form when the
user clicks the submit button (btnCreate).
Here is what I have
In page_Loa... more >>
Master pages and server control ID - asp.net 2.0
Posted by Dorte at 12/7/2005 12:31:02 AM
Hi,
I use master pages for ensuring a consistent layout on my app.
I need to add client side functionality to my server controls. I do this in
page_load (server side) like this:
DropDownList1.Attributes.Add("onchange", "Test();");
I add a javascript function ("Test") to the page that c... more >>
Why am I getting two different session ID's?
Posted by hxc98 NO[at]SPAM yahoo.com at 12/7/2005 12:27:23 AM
I have a web farm consisting of multiple servers running exactly the
same asp.net application, with names like www1.domain.com,
www2.domain.com, through wwwn.domain.com. When I visit www1, I could be
brought to www2 by clicking one of the links on the page. But after the
transfer to www2, I got... more >>
|