all groups > asp.net > december 2005 > threads for monday december 12
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
Why recordset going to second table in dataset?
Posted by nospam NO[at]SPAM nospam.sss at 12/12/2005 11:35:45 PM
I am using the Enterprise library and did an executedataset to retrieve
results into a dataset. I noticed that the result went into the second
table in the table collection of the dataset instead of the first table.
ds.Tables[0].Rows.count = 0 <--- why?
while
ds.Tables[1].Rows.count had the n... more >>
Templated User Control & intellisense
Posted by Frédéric Mayot at 12/12/2005 10:10:40 PM
Hi,
I built a very simple templated user control but unfortunately, the template
"Content" is not recognized by intellisense and it says that my component
"SubForm" is not supposed to contain anything.
Any idea ?
Thanks
SubForm.ascx-------------------------
<%@ Control Language="C#" AutoE... more >>
Raising events
Posted by Dave A at 12/12/2005 9:35:29 PM
I am developing a somewhat complex component at the moment and coincidently
I am also reading the Framework Design Guidelines book.
After reading the section about event raising I have re-written the way my
component raises events to follow the Framework Design Guides verbatim; ie
(object s... more >>
I'm tired to write MapPath("") for every System.IO operation...
Posted by Burganovsky at 12/12/2005 8:47:59 PM
Hi!
I'm new in aspnet, and i'm already tired to write MapPath("") for every
System.IO operation, where (in config maybe) i can set once, that cwd =
server root path, not winnt\system32\?
I mean f.e. this:
File.OpenRead ("logo.gif") <- this file is in application server root
directory i.e.... more >>
Slideshow Control
Posted by Michael Tissington at 12/12/2005 8:46:25 PM
Any one know of a slide show control ?
Have something like the following
< 1 2 3 4 ... >
[Image]
--
Michael Tissington
http://www.oaklodge.com
http://www.sqlview.net
... more >>
Add Reference
Posted by Robert Zurer at 12/12/2005 8:02:01 PM
My first ASP.NET 2.0 app.
I added a reference to a class library containg the types I want to as a
source of data to populate my pages. The dll and all the dlls it uses appear
in the newly created bin folder.
I add the using directive to the page and try to call the type but I keep
gett... more >>
Current Recordset does not support updating.
Posted by barret bonden at 12/12/2005 5:24:52 PM
(closest newsgroup I could find)
Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the
provider, or of the selected locktype.
/asp_data3_add.asp, line 30
<%
'Dimension variables
Dim adoCon 'Holds the Database Co... more >>
Access is denied error when using COM
Posted by Ayoa at 12/12/2005 5:20:11 PM
I have a COM Component (VB6) which i am trying to use in my ASP.Net App. I
have already successfully used it in a c# windows app. But when i attempt to
use it in my ASP.net app it throws an "System.UnauthorizedAccessException:
Access is denied" exception on the initialisation line.
i.e. PMe... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Get e-mails from POP3
Posted by Shimon Sim at 12/12/2005 4:41:27 PM
Is there a way to get e-mails with attachments using .NET 2.0?
If not does anybody knows a component that can do this?
Thank you,
Shimon.
... more >>
Accessing control in Wizard..?
Posted by James T. at 12/12/2005 4:32:19 PM
Hello!
Could somebody provide me a sample how I can access a Button control in =
Wizard StepNavigationTemplate?
Thanks!
James... more >>
Validators Raising ClientScript Errors (VS2003)
Posted by Axel Dahmen at 12/12/2005 4:15:47 PM
Hi,
I've added a couple of validators to my page. Now I get a couple of Runtime
Errors when I load the page (I have "Show client-script errors" enabled in
IE6):
"A Runtime Error has occurred. Do you wish to debug? Line: ... Error:
Expected ';'"
This shouldn't happen. Adding the validator... more >>
Where is can set an aspnet unix-like cwd analog for whole application?
Posted by Burganovsky at 12/12/2005 3:45:01 PM
Hi!
I'm new in aspnet, and i' already tired to write MapPath("") for every
System.IO operation, where (in config maybe) i can set once, that cwd =
server root path, not winnt\system32\?
I mean f.e. this:
File.OpenRead ("logo.gif") <- this file is in application server root
directory i.e. ... more >>
ASP.Net 1.1 not Responding???
Posted by EDOnLine at 12/12/2005 3:16:34 PM
Ok, I'm stuck. Yes, I'm fairly new to this but I thought I had a better
understand of how things work. So I need some help, please!
I'm setting up a test box to use while modifying a dll that runs our home
page. It's a XP Pro box, IIS 5, with ASP.Net 1.1 installed. Same setup I
used whe... more >>
Authentication login screen appears on both frames of the framset
Posted by dana lees at 12/12/2005 3:02:39 PM
Hello,
I am developing a C# asp.net application.
I am using the authentication and authorization mechanism, which its timeout
is set to 60 minutes.
My application consists of 2 frames - a header frame and a main frame.
When i enter the application, i see the login screen on the whole screen... more >>
Complex form creation in ASP
Posted by Matt at 12/12/2005 2:47:02 PM
Ok, I'm a recent convert to .net, currently developing with VS2005. I've had
a lot of success using GridViews, dataviews, and so on. So much easier than
Interdev... However, I have a custom form I need to create that will insert
record from user input, and I cant do it that I know of with an... more >>
Response.BinaryWrite fires twice
Posted by Sridhar at 12/12/2005 2:37:04 PM
Hi,
I am trying to display a pdf file on the web. It is working fine but the
Page_Load method is running twice before displaying the page. Here is the
code that I am using
Private Sub ReadPdfFile(ByVal strFilepath As String)
'Create WebClient Object
Dim objWebClient ... more >>
Operation must use an updateable query ..
Posted by Jim in Arizona at 12/12/2005 2:32:22 PM
I've been using an example out of a book to be able to edit the rows in a
database. I am getting the following error:
========================================================
========================================================
Server Error in '/' Application.
-------------------------... more >>
OT: Yahoo! Customer Care contact
Posted by Jose Fernandez at 12/12/2005 2:18:08 PM
Hello.
This is a desperated email because I'm in a very desperate situation.
Suddenly, 4 days ago, i tried to sign in my 10 years old yahoo account and
found it was accepting my password. I went to Forget password section and I
can't remember the answer to my secret question... in 10 years I ... more >>
newbie quest about System.Timers.Timer
Posted by Dave Hagerich at 12/12/2005 2:17:49 PM
I have an ASP.Net v1.1 page with C# code-behind, that after a period of time
I want the page to transfer the user to another page on the server. So I
create and setup a timer and pass to it a delegate to be used for the
elapsed event. This all works fine and after the interval is up the elapsed... more >>
Visual Studio hangs while debugging. Please help!
Posted by Martin Odhelius at 12/12/2005 2:17:06 PM
Hello,
I have a very fustrating problems while debugging ASP.NET applications.
When I am debugging and stepping thru code (with F10 or F11) Visual
Studio some times suddenly just stop responding and the only way get it
up and running again is to kill the aspnet_wp.exe process. When the
de... more >>
ASP.NET Login control bug or SQL 2005 bug?
Posted by RedEye at 12/12/2005 2:13:25 PM
Hello,
I have been working on an ASP.NET application for the past 2 weeks and
everything has been going fine. I am using the ASP.NET login controls to
handle user logins and I'm using SQL 2005 Workgroup Edition for the backend.
The problem I am have is for some reason the login control wil... more >>
How to know - IIS Compression
Posted by vsr at 12/12/2005 2:11:02 PM
I wanted to know in the application whether IIS Compression is enabled or not
and switch the code accordingly, is there any way to track whether
Compression is enabled or not in vb.net program.... more >>
Can I force a file to be saved instead of opened?
Posted by SL at 12/12/2005 1:49:49 PM
Hi - when sending a file to the browser, is there a way to set up the
response headers such that the user is forced to save the file, with no
option given to "open" it?
Thanks for any info,
Sheryl
... more >>
definition for term
Posted by rodchar at 12/12/2005 1:27:02 PM
hey all,
Given:
An HTTP handler is the endpoint that responds to requests made by an ASP.NET
Web application.
What does the term endpoint mean in lamen's terms in this context?
thanks,
rodchar
... more >>
Access Parent Page function from User Control
Posted by David Lozzi at 12/12/2005 1:17:47 PM
Hello,
I have a user control that saves data. When the data is saved, I need to
call a function in the parent page from the user control to initiate
something else. I know I can set it up so that the save button is in the
parent page and calls the save function of the user control and then ... more >>
browser specific themes and web.config
Posted by quist at 12/12/2005 1:17:02 PM
Is there a way to specify browser specific themes in the web.config like you
can in the page declaration of a content page?
If you can't there and you can't in the master page, then you have to
declare them for every content page, and that does not seem very efficient.
If there is no way... more >>
Problem in authentication using asp.net for a webpage
Posted by NITIN MUNJAL at 12/12/2005 1:13:48 PM
I am trying to implement a simple way to authenticate users before
entering my webpage. I have two textboxes one each for username and
password. On the button click I call the function authenticate() which
is written below. It queries to an access database db.mdb which has 3
fields id, usernames... more >>
Problem adding attributes to DataListItem..
Posted by J'son at 12/12/2005 1:04:01 PM
Guys,
I have created a custom class that derives from DataList so that I can
add some custom client side functionality into each new item row
(<td>). Heres the class in its simplest form:
public class MyDataList : DataList
{
public string MyValue1 = "alert('Hey there!');";
p... more >>
Email format issue
Posted by Jon at 12/12/2005 12:48:42 PM
I am sending an email from my site , but the formatting of the email is all
wrong when the user gets the email. I'm just sending plain text as the
body. The problem is that line returns do not seem to be carried over to
the email.
I am doing the following:
strVar = "Line 1" + Environme... more >>
Script to tell if .Net is installed or not.
Posted by Rene at 12/12/2005 12:42:48 PM
Our company provides two downloads for our program, one includes the .Net
and the other does not. The problem is that the most of the times the user
has no idea if he or she already has the .Net installed on their local
computers or not so they are never sure if they should take the time to
... more >>
Include gridlines when printing
Posted by John 3:16 at 12/12/2005 12:27:05 PM
Hello...
I have an .aspx page that has a grid control.
It works fine but when you print.. the gride
lines only show on the 1st page.
Has anyone experienced anything like this or
can anyone shed any light on this.. ?
thanks in advance,
bob.
... more >>
How to trap WebPart closed event?
Posted by Michael at 12/12/2005 12:19:07 PM
Hi,
Is there a way to write some code to do some stuffs after a WebPart has been
closed? I want to store the state of the WebPart in the user's profile so
that I can determine if a particular WebPart is "visible" or not from other
Web pages.
Thanks,
Michael
... more >>
SSL - How-to?`
Posted by Edwin Knoppert at 12/12/2005 12:12:40 PM
Sorry, for most of you this could be trivial..
To me it's not.
We want to test a website being set to SSL.
We have several apps, we ONLY want ONE app being set to SSL.
The things i am running against:
1) RequireSSL="true" in web.config did not notify me about i have to use
https:
<auth... more >>
reading pdf files from a folder and place it in the sql server dat
Posted by Sridhar at 12/12/2005 12:08:04 PM
Hi,
I need to read a pdf file which is on my hard drive and put it in the sql
server database. Once placed in the sql server, I again need to read that
file from the database and display it on the web? Is it possible? Could you
please provide some links where I could find the information?... more >>
"Hidden" Web Server Control
Posted by Mike Labosh at 12/12/2005 12:04:50 PM
I'm a middle tier (dll / MTS / COM+ / Extensions) guy and I'm a bit rusty on
the GUI part of ASP.NET
I have a web form that a user uses to cycle through records in the DB to
review unmatched items and assign / fix them.
I need the WebForm to contain the identity key from the SQL Server tab... more >>
Formatting
Posted by Evan Camilleri at 12/12/2005 11:47:10 AM
In ASP.NET using
<%# DataBinder.Eval(Container, "DataItem.R") %>
I need that if DataItem.R = 0 then nothing (not even a zero) will be
displayed.
... more >>
Server setup for .NET ver. 2.0
Posted by Bill at 12/12/2005 11:46:05 AM
Ok, so we have a server running Win 2003 Server, and IIS 6.0. We have
successfully worked projects from this server using VS 1.1 on remote
development machines. We want to get started using VS 2005 against this
machine. We installed the .NET Framework 2.0 but were unable to get it to
work... more >>
New ASP.NET 2.0 Design Templates
Posted by tdavisjr at 12/12/2005 11:30:51 AM
These are some great samples MS has released. They are great to learn
from on how to do cross browser xhtml page layout using ASP.NET 20 and
Visual Web Developer.
See link:
http://msdn.microsoft.com/asp.net/reference/design/templates/default.aspx
... more >>
Deloying an ASP site
Posted by Andrew Chalk at 12/12/2005 11:28:21 AM
I have developed an SP.NET v1.1 application on my development machine. I
want to deploy it to another server on my LAN. Both systems run XP SP2. What
do I have to do to accomplish this?
Thanks.
... more >>
Newby question: How do you handles arrays with functions?
Posted by Blue Streak at 12/12/2005 11:18:58 AM
Just some basic questions because none of my reference manuals cover
this explicitly:
1) If you want have an argument as an array of integers would this
be the correct declaration?
Function foo(bar() as Integer) as Integer
...
End Function
2) If you wanted to *return* an array... more >>
ASP.Net 2.0 Configuration files.
Posted by Ashish at 12/12/2005 11:18:53 AM
Iam using a couple of external (other than web.config) configuration
files for my project , and i want their behavior to be like that of
web.config file ( the application should track changes and reload if
required),
is this possible in the new ASP.Net 2.0 ?
thanks... more >>
Help with User Control, please.
Posted by Joe at 12/12/2005 10:46:02 AM
Hello All,
I am developing a webform which creates ArrayLists of people's names and
addresses (the values are retrieved from an xml file) and dynamically drops a
user control onto the webform and populates it with the required names. Once
the user selects a name, the webform will then drop... more >>
Threading, using APPLICATION objects
Posted by John Cosmas at 12/12/2005 10:43:54 AM
I need to execute some threads that load items into my APPLICATION object. I
haven't figured out how to do that when I fire off a thread on a page, that
takes its time and loads data into the APPLICATION level object which will
be used later. Here is an example code I've used to fire it off.
... more >>
DataFormatString in GridView does not work??
Posted by Hardy Wang at 12/12/2005 10:32:03 AM
Hi, I have a GridView control in my web form (ASP.NET 2.0)
<asp:GridView ID="gvReport" runat="server" AllowSorting="True"
AutoGenerateColumns="False"
Width="100%">
<HeaderStyle CssClass="ItemCaption" />
<RowStyle CssClass="Line" />
... more >>
Variables in the HTML part of a web form...
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 12/12/2005 10:30:19 AM
The DBA team at the office controls the naming conventions for the database
structure, but their naming convention are rather tedious. So typically I
create a global module that I use as a mapping file to create constants with
more appropriate field and table names and map them to the table and ... more >>
security for AJAX-style function calls
Posted by PJ6 at 12/12/2005 9:58:47 AM
I have AJAX-style calls that will require a user's login for permission
checks. I might have been OK with the login ID rolled into a session
variable, but now I'm faced with calling my AJAX functions with the login,
which would be pretty easy to hack.
I was thinking on a successful login at... more >>
Connection String how to...
Posted by Jacek Jurkowski at 12/12/2005 9:58:29 AM
<configuration>
<connectionStrings>
<add name="Northwind"
connectionString="Data Source=localhost;Integrated
Security=SSPI;Initial Catalog=Northwind;"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>How to access "Northwind" from the c# ... more >>
MS Access can't open file
Posted by semesm22 at 12/12/2005 9:27:02 AM
hello all, i am using asp.net with IIS on a Windows XP machine to open
an Access database, and i know that this topic has been posted on forums
hundreds of times, but i can't find an answer that works..
here is the problem, i m opening the database with OleDBConnenction and
OleDbCommand...but ... more >>
BC30451: Name 'Container' is not declared. -- Solved
Posted by justengland NO[at]SPAM gmail.com at 12/12/2005 9:26:22 AM
Ok After spending why to long on this problem I found out that I was
infact stupid.
the problem was that I needed to add a # sign
This is wrong
<% DataBinder.Eval(Container.DataItem, "CustName") %>
this is correct
<%# DataBinder.Eval(Container.DataItem, "CustName") %>
its that simple... more >>
VS2005 table cell split functionality
Posted by Nalaka at 12/12/2005 9:20:29 AM
Hi,
How come, there is no "split cell" functionality in vs2005?
Makes life a little difficult without this.
Nalaka
... more >>
Virus Scanning to be uploaded files
Posted by Ask.NET at 12/12/2005 8:33:02 AM
Hi,
We are developing a Web application which helps users to uplaod files. We
want to ensure that the files are scanned for viruses when uploaded.
What is the best way to acheive this? We do not want to use the command line
utilities of Virus Scanners to acheive this.
Thanks in Advance.
... more >>
ASP.NET 2.0 system requirements
Posted by Base64 at 12/12/2005 8:24:03 AM
Hi.
I have found a ton of information on VS.NET 2005 system requirements and how
to deal with migration from 1.1. to 2.0 but I could not find any info on what
issues exist (if any) when wanting to run 1.1 and 2.0 ASP.NET apps on the
same server (are there issues with IIS, the .NET runtime e... more >>
Trying to delete from datatable
Posted by Mark at 12/12/2005 8:14:05 AM
Hi - I have a datatable, held in a session variable - I want to delete
all items in a particular category, but my code doesn't seem to delete
them - although the delete method is run:
Function delCat(ByVal Cat as integer)
objDT = Session("Cart")
Dim i as Integer
Dim test as Integer
... more >>
Things only work in development machine not in "REAL" web server
Posted by TCB at 12/12/2005 8:05:18 AM
Hi,
There are a couple of things that are bothering me, any help on these is
greatly appreciated. This is using ASP.NET 2.0
1. I am sending email in my web app, using a simple form here is the code:
Dim MyMailFrom As New Net.Mail.MailAddress("portal@xxx.com",
"Portal XX.com"... more >>
Using Global Variables in HTML of Web Form
Posted by rlrcstr at 12/12/2005 7:39:02 AM
The DBA team at the office controls the naming conventions for the database
structure, but their naming convention are rather tedious. So typically I
create a global module that I use as a mapping file to create constants with
more appropriate field and table names and map them to the table and ... more >>
BoundColumn single DataBind equiv but not in a single row?
Posted by Randall Parker at 12/12/2005 7:12:00 AM
Is there a way to group a bunch of controls not in a row but to do a single DataBind
to the group?
Is there some sort of equivalent to asp:DataGrid that is not row-oriented? Even for
just a single database row? I'd prefer an approach for doing multiple rows of
database data but not in a gri... more >>
How to view trace output?
Posted by mjaaa NO[at]SPAM blueyonder.co.uk at 12/12/2005 6:58:59 AM
I am using lots of try/catch blocks and doing
System.Diagnostics.Trace.WriteLine(e) for the exceptions... how do I
view the trace now, as I know there are definately some exceptions
happening?
... more >>
FreeTextBox question
Posted by svein.erik.storkas NO[at]SPAM gmail.com at 12/12/2005 6:24:54 AM
How can i remove the last line in FTB, it is the "Design" - "HTML"
buttons i mean.
I have downloaded the last version, 3.1.1 and use it on asp.net 1.1,
and i have managed to remove all i want, except theese two buttons in
the bottom.
Can anyone help me with this one?
... more >>
application keys in web config (no taking new ones?)
Posted by RobKaratzas at 12/12/2005 6:20:04 AM
hi Folk
this is frustrating as heck...
1. new keys are only showing 'Nothing' as their value...
2. VS.NET: rebuilding everything, restarted IIS, no bad XML, ...
3. old keys are still showing values (and can change and is reflected).
4.another developer just looked at this with me and we're ... more >>
Receiving xml problem
Posted by Danny at 12/12/2005 4:59:02 AM
I am working on a project in which a number of client applications will be
posting xml documents as a byte array to an ASP.NET page on our web server. I
am trying to simulate the process and run into problems.
Sending code:
ASCIIEncoding encoding = new ASCIIEncoding();
... more >>
HttpContext.Current.User.IsInRole
Posted by Julia at 12/12/2005 4:56:03 AM
Hi,
In my asp.net app I am using this code:
FormsAuthenticationTicket ticket =
new FormsAuthenticationTicket(
1,
lcred.UserName,
DateTime.Now,
DateTime.Now.AddMinutes(ldExpiration),
false,
lsRoles
);
lsRoles is a string with all roles (separated with "|").
When I later u... more >>
Role based security
Posted by John at 12/12/2005 4:48:31 AM
Hi
I need to implement role based security for my app. If possible I would like
to use as many of the built-in controls login, create user etc. as possible.
I would also like to use SQL Server to store users/roles information. The
app will be hosted on a public web host.
My question is; ... more >>
Binding controls with datasourse
Posted by Roby Eisenbraun Martins at 12/12/2005 4:16:02 AM
Hi,
(ASP .NET 2005)
I have a datasource set with select and update commands. I would like to
bind each field from the datasource to a textbox. Just like a dataset.
Is it possible?
How can I easy bind controls to a database and change some fields?... more >>
Where is my project's assembly/dll
Posted by Ed Staffin at 12/12/2005 3:56:03 AM
Ok, so I upgraded my aspx app from vs2003 to vs2005. Now when I look in my
bin directory under c:\inetpub\wwwroot\MyApp\Bin, I can't find the compiled
code-behind. My dll used to be called "EnvisionWeb.dll". I searched my whole
drive for it and found nothing. Did they rename the dlls? I don't ... more >>
Hosting WinForm control loacted on different Web Server than the ASP.net application
Posted by Hercules Dev. at 12/12/2005 3:17:50 AM
hi all,
I developed a winform control and succeeded in hosting it in my ASP.Net
application, I used the default way which is installing my winform
control in the same directory of my ASP.Net application and referencing
it in my code this way:
<object id="_container_OBJECT" width="100%" he... more >>
CheckBox unchecked status detection in DataGrid Template Column
Posted by Javier at 12/12/2005 1:55:32 AM
Hi Everyone,
I have a dynamic checkbox in a datagrid that uses the ITemplate interface
and has the checkchanged event wired up. When the checkbox is checked, the
event
event handler that handles the event gets called, however when it is
unchecked, it does not fire. Is this by design, or ... more >>
How to parse the input stream of http request?
Posted by Aaron Guo at 12/12/2005 1:52:02 AM
i want to upload a very large file throught http request. on server side , i
add a http module to handle the upload request. and i can get the entire data
stream by HttpWorkerRequest.
i wonder that how to parse the entire data stream? i do not know what the
data format there is.
thanks ... more >>
asp treeview
Posted by thomasp NO[at]SPAM msala.net.net at 12/12/2005 1:06:39 AM
I am using VS2005 to create my first asp.net web page. I am using the
treeview to display some information. I need to know how to add a button
next to some of the nodes. I assume this is the only way to add an ability
to do something beside open the node. Hope this makes sense.
Thanks
... more >>
Rewriting a URL that does not point to a file
Posted by DC at 12/12/2005 12:57:46 AM
Hi,
I need something that rewrites a URL like
myserver.com/parm1/val1/parm2/val2
to
myserver.com/default.aspx?parm1=val1&parm2=val2
Tha typical Module seems to be capable of rewriting paths that point to
a file only. TIA for any ideas.
Regards
DC
... more >>
|