all groups > asp.net > june 2004 > threads for tuesday june 1
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
sqlDataReader skipping first row in loop
Posted by branton ellerbee at 6/1/2004 11:22:58 PM
I am looping through a datareader and building a table. However, no matter
what the resultset, the datareader skips the first row of data, then builds
the rest of the resultset.
I have seen this occur in a lot of different places since using .Net.
HAs anyone else found this problem before?
... more >>
variable scope problem
Posted by Lerp at 6/1/2004 10:56:59 PM
hi all,
If I have a variable declared outside the page_load sub and all other subs
on my page, and I assign a value to that variable within a sub why can't I
access this value in the second sub if I declared it page-level?
Cheers, Lerp
... more >>
Events and Delegates
Posted by Veronica Jacobs at 6/1/2004 10:16:56 PM
Does anyone know of any good online articles that describe how events and
delegates work in .NET? Specifically, I'm looking for examples and/or
tutorials of how they're used in custom server controls.
Thanks.
V.J.
EncryptaSoft
www.encryptasoft.com
... more >>
Web application defined?
Posted by Ian at 6/1/2004 9:06:17 PM
Hi there,
I have been learning c# for a while now, although mainly the language and I
am little confused about the completed picture.
I am creating a website, part of it is standard html files, some are aspx
files without any code behind files but inline coding and others are proper
aspx fi... more >>
ASP.NET, Problem with CDO.Message Object
Posted by amit at 6/1/2004 8:51:56 PM
hi,
while making a code for sending mails
when I do SmtpMail.send, it gives an error " Could not access CDO.Message
Object"
This only happens when I try and communicate with outside domain, i.e if i
specify the Yahoo id or hotmail id etc in the list,
I have specified the name of our ex... more >>
Working with ENUM
Posted by Andrea Williams at 6/1/2004 8:48:20 PM
I'm working with C# and I'm setting up some ENUM's I have a data and
Business layer. I'm declaring a common enum for the Data Layer. The UI
layer references the Bus layer and the bus layer references the Data layer,
but I would like to have the enum exposed to all three. Is there a way to
tri... more >>
Explain Initialization...
Posted by clintonG at 6/1/2004 8:40:24 PM
Taking MCAD practice exams questions will ask where to "initialize
controls" or "initialize this or initialize that" but the answer is
never the
Page_Init event -- always Page_Load.
There are also questions that will ask something like how to "modify
the display of the page before it loads" b... more >>
Remove all session keys except one
Posted by Fredrik Rodin at 6/1/2004 7:46:47 PM
Hi!
I want to basicaööy run a Session.Abandon() on logout but keep one session.
In order to do this I'm iterating through my session collection by runing
the follwoing code:
Dim iSessionCount As Integer = Session.Count - 1
For i As Integer = 0 To iSessionCount
If Session.Conten... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
update checkbox values
Posted by Mike at 6/1/2004 7:08:14 PM
I have an update page with Checkbox's, how can I get the value of the
checkbox and update the db table correctly?
heres the snippet i'm trying to run and its not working
strSQL = "update table1 set " & _
if chActive.checked = true then
"active='Yes'
end if
why will this not work?
... more >>
debugging asp.net application
Posted by Rea Peleg at 6/1/2004 6:23:34 PM
Hello everybody
I think i did everything that was said in the book but still can not jump
from ie events into breaking point in the event handler code behind it( in
the aspx.vb file):
1)I set ie to enable script debugging
2)I set the project to enable asp.net debugging
3)web.config encludes... more >>
handling single quotes??
Posted by SStory at 6/1/2004 5:55:02 PM
How can I handle the user entering single quotes like in
Bob's mini mart?
If I use command objects will this no longer be an issue?
I guess that would mean no simple adhoc SQL statements right?
like SELECT name from WHATEVER
would need a command object with
"SELECT @NAME, etc.
and... more >>
only upload *.xls files...
Posted by smen at 6/1/2004 5:51:02 PM
hiye, how can i make my upload box to only accept *.xls files
thanks in advance
smen... more >>
Need more help on UserControl
Posted by Lau Lei Cheong at 6/1/2004 5:48:59 PM
Hello,
I'm writing a usercontrol that contains a property named "disabled". It
is set to false by default but there is also another button in the
usercontrol that'll set it to true.
On the main form a number of them are displayed. During the On_Load
event, 1) It'll check to see if t... more >>
ASP.NET Problem with Default Page
Posted by Michael McGuire at 6/1/2004 5:31:05 PM
I have a very strange problem occurring on a couple of servers
I have an ASP.NET application written in C# running on IIS 5.0 with Windows 2000 Server. This is the first ASP.NET application running on these servers. There are actually 4 servers that this application has been installed on. The a... more >>
Every ASP.NET application - a multithreaded windows app?
Posted by Pavils Jurjans at 6/1/2004 5:20:04 PM
Hello,
I wanted to get some light in the subject. As I develop ASP.NET
applications, it's necessary to understand how exactly the server-[multiple
clients] communication happens. It seems like initially application is
"sleeping", and it is not loaded in the memory. Then, after very first
requ... more >>
if statement question
Posted by me NO[at]SPAM privacy.net at 6/1/2004 5:09:06 PM
is there anything like a SQL IN statement
where x in ('123','456',789')....
available in an IF statment in aspnet?
I've got a number of possibilities for a session variable to be set equal
to, and want to avoid calling this routine if it's one of these reports. I
didn't want to have a 20... more >>
Get all the server controls in the form
Posted by Grey at 6/1/2004 5:08:49 PM
Is it possible to get all the server controls in the form?? I want to =
set disable to all the server control in the form, but I want don't want =
to do that in client script for some reason. Is it possible to do that =
in server side? How-to??
Million thanks... more >>
Question on building Web Custom Controls
Posted by alkamista NO[at]SPAM lycos.com at 6/1/2004 4:52:55 PM
The 'Render' method of a Web Custom Control takes an argument 'output'
of type System.Web.UI.HtmlTextWriter. This HtmlTextWriter renders any
content in the 'Render' method.
I am trying to render the content of my control in ANOTHER method.
When I try to create a new HtmlTextWriter in that meth... more >>
nested dropdownlist loses values - only in one instance
Posted by bax NO[at]SPAM kleinbuendel.com at 6/1/2004 4:44:44 PM
I have a page that has two copies of the same control in it. The
control is:
BorrowerControl
the two references to it in the page are
bControl1
cobControl1
The control contains a dropdownlist that is populated from xml. I only
bind this data on page_load, not on subsequent postbacks ... more >>
Adding eventhandler to control
Posted by Neven Klofutar at 6/1/2004 3:48:22 PM
Hi,
How can I add an even handler to a control that is not situated on the main
page (it's situated in the repeater).
How do I rewrite this to make it work ?
Thanx, Neven
---------------------------------------------
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click)... more >>
web config not working
Posted by Chris Kennedy at 6/1/2004 3:38:52 PM
I created a web app on my local machine and it works fine. I physically copy
it to a virtual directory and get a Server Error in '/' Application. I try
to change the web.config file to display the errors but it doesn't do
anything. This is the first time we have used .net on a production server s... more >>
datagrid update command
Posted by abdoly at 6/1/2004 3:26:05 PM
i wrote a code to update datagrid with the datagrid updatecommand but i cant get the updated values after being update
that is the code
private void DataGrid1_UpdateCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
TextBox temp
temp=(TextBox)e.Item.Cells[0].Controls[0... more >>
user.isinrole in user control
Posted by Somyos Jinkow at 6/1/2004 3:26:01 PM
why ? i use User.IsInRole in user control (file.aspx). I use ASP.NEt code
behide.
... more >>
Static classes with static members
Posted by Ben at 6/1/2004 3:25:44 PM
Do static classes with static members persist between page hits in asp.net?
I'm seeing some very weird behavior and that might explain it. I'm not
really sure the best way to test it, so I thought I'd ask :)
TIA,
Ben
... more >>
Get the same selected date from the calendar two consecutive times
Posted by mg at 6/1/2004 3:21:02 PM
When I click any date in System.Web.UI.WebControls.Calendar (C# WebForm), the SelectionChanged event handler fires. If I next click on the same date again, this event handler does not fire, so I can't get the selected date directly from the calendar on two successive attempts
How can I get this ... more >>
JSTL to C# conversion?
Posted by steve at 6/1/2004 3:06:14 PM
Has anyone converted a JSP app with JSTL to C#?
Microsoft's converter (JLCA) seems to basically ignore JSTL tags.
Any help would be appreciated.
thanks -
- steve
... more >>
Temporary ASP.NET Files Location?
Posted by localhost at 6/1/2004 3:05:07 PM
I want to determine within my code-behind only the location of the
current tem directory for ym ASP.NET files. For example, the latest
web app build on my system shows:
"c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\testapp\97e6075d\ca93f565\assembly\dl2\d5f616ee\9e1... more >>
ERROR TRYING TO PEN ONE APPLICATION
Posted by Gina L. Hernandez at 6/1/2004 2:59:44 PM
Hello:
we have one application in Visual.NET when we published it using the
IIS, I could browse it like locqal host, but when trying to use the IP
adress, I couldn't do ig, so we created another IP adress for the
application. Now I can see the application using the IP address, but when... more >>
DTPicker Control
Posted by Janaka Wijayakoon at 6/1/2004 2:30:07 PM
Hi Everyone,
I have added a DTPicker control to my web form. Its working fine with all
the work station where that control is registered (Computers where vb
runtime is installed) and dipayls a blank image on other computers.
Please help....
Thanks 'n Regards
Janaka
... more >>
Sharing User Controls
Posted by Fawad at 6/1/2004 2:29:04 PM
I have built a asp.net web project with site wide user controls.
These controls will be used as the top and bottom of every page we
make.
I have the project (which is basically 1 vb class file, 2 user
controls, and 1 aspx page) in VSS now.
THE QUESTION: How do I allow users to pull downloa... more >>
System Error &H80070057&
Posted by aa at 6/1/2004 2:20:28 PM
Why when I trying to use trim or replace method of the string datatype
variable, i am getinig the error
System Error &H80070057&
... more >>
format phone number
Posted by Mike at 6/1/2004 2:16:12 PM
I need to update a table with a phone number and have the phone number like
(800)555-1212
how can I put ( ) around the area code in the update process?
... more >>
Special Row between Header and Data in a DataGrid
Posted by Eddie at 6/1/2004 1:56:31 PM
Hi all,
How may I add a row between my datagrid header and rows for data ?
I would like to add a textbox under each datagrid column for a "filter" on
the field...
In others words, I need my header, my filter (textbox) and then all rows
from my source...
Any ideas ?
Thx
... more >>
Updating cookie
Posted by VB Programmer at 6/1/2004 1:54:25 PM
I have a cookie that is set by an ASP page. I can read it fine in my ASPX
page, but the update does not seem to work. Any ideas? Here's the code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
' Get the cookie value
... more >>
ASP.Net Application Set up
Posted by Jim Heavey at 6/1/2004 1:51:09 PM
I am trying to figure out what permissions should be granted when creating a Vitual Directory. The default is "Read" and "Run Scripts". When would I grant access to "Execute" and/or "Write"? Execute says ISAPI applications or CGI, I know I have no CGI, but I am not sure what an ISAPI application ... more >>
c# first, then aspx?
Posted by Robert Blackwell at 6/1/2004 1:37:40 PM
I'm learning cs with a friend, and our ultimate goal is to create dbase
driven webpages. We are coming from php backgrounds.
I currently have Learning .net
... more >>
Background Image for Web Form
Posted by RCAM at 6/1/2004 1:01:11 PM
How can I establish a background image for a Web Form? Currently, it inherits my Body color and overrides the tables background image
... more >>
ASp.NET caches assemblies in the GAC
Posted by enrico sabbadin at 6/1/2004 12:53:38 PM
Hi,
I noticed that ASP.NET caches .NET assemblies installed in the GAC ..
calling HttpRuntime.UnloadAppDomain() unfortunately doesn't seem to help ,
likely because the ASP.NET appdomomains are
loaded using the MultiDomainHost model which shares the assemblies in the
GAC..
only restaring the ... more >>
External command can't find user created *.dll on C#.NET
Posted by jason at 6/1/2004 12:46:08 PM
I'm trying to run an external command-line file using user create
C:\DLL\*.dll files as following code
Process.Start("c:\test.exe"
The test.exe has no problem when I run on the dos prompt as I se
path, C:\DLL, on system variable
Thanks for your hel
... more >>
authentication
Posted by Ivan A. Gavrilyuk at 6/1/2004 12:36:59 PM
Hi.
How can I use authentication (forms) only for some pages on my web site. For
example I do not want to users enter login/password for start page etc.
Thanks.
... more >>
authentication
Posted by Ivan A. Gavrilyuk at 6/1/2004 12:35:30 PM
Hi.
How can I use authentication (forms) only for some pages on my web site. For
example I do not want to users enter login/password for start page etc.
Thanks.
... more >>
Creating a pop-up window
Posted by Steve Caliendo at 6/1/2004 12:28:31 PM
Hi,
In the Page_Load sub, can someone tell me what code to place to create a
pop-up window?
Thanks,
Steve
... more >>
Forms authentication
Posted by Ivan A. Gavrilyuk at 6/1/2004 12:24:19 PM
Hi.
How can I use authentication (forms) only for some pages on my web site. For
example I do not want to users enter login/password for start page etc.
Thanks.
... more >>
Cannot trigger the ASP.NET page
Posted by Grey at 6/1/2004 11:32:27 AM
I have the following code statement
btnDelete.Attributes.Add("onclick", "if (confirm('Confirm to remove =
this User Account ?')) =
document.location.href=3D'DeleteUserAccDetail.aspx;'");
Why can't I trigger the DeleteUserAccDetail.aspx page when I choose YES =
from the confirmation alert b... more >>
Platform Independent Forms/Programs with ASP.NET
Posted by ibeetb at 6/1/2004 11:27:33 AM
If I develop reports with an application that the user does not have.....for
example, Excel or more specifically, if I develop a report with Excel 2003
and the user is still using Excel 97 (2003 is NOT backwards compatible with
many features of 97), and I put this report on the web via asp.net, w... more >>
Rendering user control to a string and events in it
Posted by Alan Mendelevich at 6/1/2004 11:26:50 AM
Hi,
I'm trying to render control stored in ascx file to a string. I succeed with
the main part but events (at least OnLoad) doesn't fire (or aren't
automatically wired to Page_Load() method in the control). Here's what I do
(simplified):
in a script that renders to a string:
-------
C... more >>
how to delete 'Temporary ASP.NET' folder?
Posted by Jason Shohet at 6/1/2004 11:20:35 AM
I don't know what this folder does, but in c, winnt, microsoft.net,
framework, v1.1.4322, its there.
I'm getting an error on one of my web sites saying that 'art.global' is
defined in multiple places, using definition from c:... Temporary ASP.NET
Files \ ... \artbargains.dll. (Artbarg... more >>
option strict disallows late binding reading from web.config
Posted by Karl Lang at 6/1/2004 11:14:24 AM
Hi
I've created a new configuration section in Web.Config to hold the
connection string for my database. If I have Option Strict On I get a
message "Option Strict On disallows late binding" when I try to retrieve the
string. Now I'd rather not turn off option strict but I'd also prefer to
have ... more >>
System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
Posted by Hozi at 6/1/2004 10:56:08 AM
I am getting the below error when asp.net tries to parse the .aspx file. The funny part is that the error only seems to be happening when viewing the page throuh IE 6 and not Netscape browsers. I am not sure exactly what is throwing it off, especially in the form tag
Has anybody seen this happen... more >>
Readings style sheets.
Posted by ashish at 6/1/2004 10:28:05 AM
Hi all,
I am trying to create a utility where users can view style class and its
properties in some sort of tree control or something, are there any .net
classes which can help me read a style sheet file and fill in some sort
of structure ?
any help or pointers would be appreciated ..
... more >>
two seperate ASP.net Web apps to share one ascx file
Posted by ericlangland NO[at]SPAM hotmail.com at 6/1/2004 10:11:43 AM
I have a header server(.ascx) control that I want to use with all my
existing seperate web apps. These web apps are configured as seperate
web apps in IIS but when I try to build my solutiuon referencing an
..ascx that lives outside the application I get a failure.
Is there any way to have a g... more >>
Display confirmation alert box in ASP.NET
Posted by Grey at 6/1/2004 10:08:25 AM
I can used the RegisterOnSubmitStatement to set the confirmation alert =
box, i.e. RegisterOnSubmitStatement("submit", "return confirm('Delete =
Page?');"). But this confirmation box prompted out from two command =
buttons as I have two command buttons in the form, delete command and =
print c... more >>
Textbox retains value when EnableViewState = false
Posted by JollyK at 6/1/2004 9:48:10 AM
Hello all,
I have always been having this issue and wondering what the solution is.
When I set the enableviewstate property to false for a textbox, the textbox
always retains its value after a postback occurs. Why is this? I want the
textbox to become empty after postback. How can I do it with... more >>
More flexible programs for the design of a page
Posted by Devin at 6/1/2004 9:21:04 AM
I am using Microsoft WebMatrix to write my ASP.NEt pages, and one functionality that that seems to lack is the ability to make these pages look nice. Is there any program out there like Frontpage, that allows to you edit and be more flexible in your design of ASP.NET pages with out running the risk ... more >>
Wrong Button.OnClick() for TextBox
Posted by Lenard Gunda at 6/1/2004 9:14:55 AM
Hi!
I have an ASP.NET page with multiple TextBox fields and buttons. When I
press the <enter> key in a TextBox, the page postbacks, and one of the
buttons get fired (OnClick). Now certain TextBoxes trigger one particular
button on the page (this is the first button on the page, so probably tha... more >>
Response.redirect, but in another instance of browser
Posted by DotNetJunkies User at 6/1/2004 8:34:55 AM
How can I dispay a web page in another instance of IE? Response.redirect replaces the current page, but I need to direct my user in a new browser instance.
---
Posted using Wimdows.net NntpNews Component -
Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports ... more >>
I can't modify web.config
Posted by Tayo at 6/1/2004 7:41:07 AM
I can't make changes to my web.config files. Even if I try using notepad, the system says that the file in held by another process. Please hel
Tayo... more >>
query string
Posted by Jorge Ribeiro at 6/1/2004 7:16:03 AM
hell
I've an ASP.Net page that, by the action of one submit button, redirects from one Web form to another passin
in the query string one value that will be processed in the later web form
So far so good
My question derives from the fact that, because I'm using portuguese keyboard layout and l... more >>
Passing data to parent from child in different domain
Posted by Reinhold Mannsberger at 6/1/2004 6:21:02 AM
Hello
I want to pass data from one page to another, more specifically I want to pass data from a child page to a parent page
My parent page (parentpage.htm) does
----
window.open("childpage.htm", "_blank"); // calling a local pag
----
My client page (childpage.htm) does
----
window.opener... more >>
How to get the width and height of a image by its given URL?
Posted by Laser Lu at 6/1/2004 5:11:02 AM
I want to get the pixel size of a image file, which is specified by its URL. The problem is how to load the image file by a URL, and then how to get its size? I'm looking for any useful advices.... more >>
Export transformed XML to Excel
Posted by NAllen at 6/1/2004 3:46:02 AM
I have a a report that I want to be opened by Excel. It is a simple HTML table
I have set Response.ContentType = "application/ms-excel". I have produced the HTML table by transforming SQL Server XML to HTML by using an asp:xml object and an XSL transform
The page opens in Excel but does not di... more >>
emailing in batch... should i?
Posted by smen at 6/1/2004 2:06:05 AM
hiye, i've got a list of distributers around 300++ and i need to mail each of them and i want performance
should i
a. loop through it all via stored proc or trigger and send the mail using sql mai
b. using vb.net and send the mail through .ne
any way besides looping
smen... more >>
Need help for treeview in datagrid
Posted by Shalin Parmar at 6/1/2004 1:41:01 AM
hello
I am a new bee in asp.net. I want to make a forum in my site which shows message posts and its total replies. So I had put treeview (IE Web Controls) in datagrid. I need help for that. How can I set my code so that I can get every row of datagrid and its treeview with events
Pls help me. i... more >>
|