all groups > asp.net > december 2004 > threads for tuesday december 14
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
ASP net client validation not working
Posted by Tom at 12/14/2004 11:54:19 PM
I have created a new site, using asp.net c#. My pages contain client
side validation to validate the users input. On my local machine this
works fine, but when I moved my site to the test server, the
validation don't want to execute. If I view source on the page I can
see the java script is crea... more >>
ASP.Net cliet validation is not working
Posted by Tom at 12/14/2004 11:47:13 PM
I have created a new site, using asp.net c#. My pages contain client
side validation to validate the users input. On my local machine this
works fine, but when I moved my site to the test server, the validation
doesn't work. The page posts back without validation.
I'm browsing to the site in I... more >>
Need a powerful grid control...
Posted by PontiMax at 12/14/2004 11:40:22 PM
Hi.
Not sure whether this is the right group but I am looking
for some powerful asp.net grid control. The grid should be
editable, allow some header adjustments (e.g. multi-part
row and column headers) and... it should be fast! ;-)
Seriously: I've bought a grid control that is very
cap... more >>
Storing credit card numbers on hosted website.
Posted by John at 12/14/2004 11:37:43 PM
Hi,
I've always had the opinion that you don't store credit card numbers on a
hosted website database. But it has occurred to me, that perhaps I am over
reacting, and encrypted CC info may be ok. Now I know basic encryption, but
am not confident that I know what I don't know .. you know.
... more >>
Connecting to MySql.Data.MySqlClient namespace
Posted by Kenneth P at 12/14/2004 10:47:05 PM
Hi,
MySql AB released their .NET Native Driver 1 Sept 2004 and I'm trying to
create a connectionstring that works according to their examples, see below
my example
I've installed their connector_net drive.
This is my code:
<%@ Page Language="vb" Debug="true" %>
<%@ import Namespace="M... more >>
Client Side Validation not working
Posted by shajutc NO[at]SPAM hotmail.com at 12/14/2004 10:36:58 PM
I have created a new site, using asp.net c#. My pages contain client
side validation to validate the users input. On my local machine this
works fine, but when I moved my site to the test server, the validation
doesn't execute. The page posts back without performiong the client
side validation.
... more >>
Error: There is not enough space on the disk.
Posted by simon at 12/14/2004 10:15:02 PM
I have encountered this error message, do anyone know what is happening??
Thanks.
Description: An unhandled exception occurred during compilation using the
CodeDomProvider 'Microsoft.CSharp.CSharpCodeProvider'. Please review the
stack trace for more information about the error and where it... more >>
Connection Pooling and the data access application block
Posted by Edward W. at 12/14/2004 9:02:35 PM
I was looking at the data access application block version 2 and considering
what I had read about connection pooling in that to use connection pooling
successfully, you should close your sqlconnections as quickly as possible.
The DAAB doesn't seem to close or dispose of connections. Are peop... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is there a way to load and execute a .aspx file (to render it inside a mail body)?
Posted by Henri at 12/14/2004 8:10:35 PM
I guess I could do that with an .ascx UserControl file using
Page.LoadControl(), but as I want to render a complete page inside a mail
body, loading an .aspx might be nicer...
Any suggestion?
Henri
... more >>
Accessing compiler error messages from web page that runs batch file
Posted by Jon Maz at 12/14/2004 6:50:51 PM
Hi All,
To allow myself to make development changes directly on a remote server
*without* having to compile on my local dev machine and then upload the
dll's to remote, I have created a RunBatch.aspx on the remote which calls a
batch file (myBuild.bat) on the same machine, and this batch file ... more >>
Using IDBConnection how to populate DataGrid in ASP.NET
Posted by karunakar at 12/14/2004 6:35:22 PM
Hi all
Iam trying to connect the SQL & sybase
These dabases need to connect the Same Code
I have littile bit idea of this But iam not able to populate the Datagrid
Using
"IDBConnection" and "IDBDataadapter"
(Connection string is diffrent)
Diffrent database but same code need to excute this ... more >>
About FINALLY clause
Posted by Henri at 12/14/2004 6:28:48 PM
This question is applicable to all the languages, but could someone provide
me with an code example where FINALLY is really necessary.
FINALLY is often used for this kind of code:
Try
....
open a file
read some date
.....
Catch
... dealing with the file error ....
Finally
close the... more >>
Get Page Size and Execution Time - How?
Posted by mid at 12/14/2004 5:55:21 PM
Hello!
Some sites have information about page rendered size and render time. I
could not find anything about this for asp.net pages. I would like to get
this data (option in web.config or something) in order to evaluate
performance issues.
Any samples or directions?
thanks
mid... more >>
Posting one page to another (URGENT)
Posted by Vishal at 12/14/2004 5:19:44 PM
Hello,
I read that its not possible to send one page to
another via the form tag in asp.net - like we did in asp.
However the problem is that I need to send the payment
data from the credit card to the payment server via the
post method. Is there any workaround for that?
Thanks ... more >>
Datagrid Detail Row
Posted by ujjc001 NO[at]SPAM charter.net at 12/14/2004 4:35:52 PM
Hello all-
I am looking for a way to add a detail row to a datagrid.
In theory I would think I would have to somehow, when the selected
index changes, add a div layer, or perhaps make a pre existing div
layer visible (style display = inline, not display = none). Perhaps
the div could be added ... more >>
VS.NET has detected Web Server is running ASP.NET v1.0
Posted by sumit.sengupta NO[at]SPAM gmail.com at 12/14/2004 4:32:37 PM
Hi,
I have tried this and am still getting an error trying to open a ASp
..NET application in Visual Studio .NET.
I still get an error: "VS.NEt has detected the Web Server is running a
version 1.0 of ASp.NET"
I have Windows 2000 Pro, IIS 5.0 and .NET 1.1
I have tried almost every singl... more >>
Default display for a Datagrid
Posted by Kenneth Keeley at 12/14/2004 4:25:39 PM
Hi,
Can I configure what a datagrid will look like if no results are found
for it to bind to. I would like it to say something like "No Results Found
please try again." All I get at the moment is a blank datagrid with the
heads all showing and no results.
Thanks
Kenneth
... more >>
Communicating Between Web Applications
Posted by Sinisa at 12/14/2004 3:12:16 PM
Hello,
Currently I have a very large Web application (1 solution with ~20
projects) that is being deployed on an intranet. A descision was made
to "break apart" the application (into ~20 solutions -- 1 for each
project).
For the most part, this was successful, but it did cause a problem,
wher... more >>
garbage collection
Posted by Bijoy Naick at 12/14/2004 2:50:33 PM
Just wondering if anyone has experienced any issues with garbage collection
in .net. We developed an application using VB .NET; many of the pages made
db calls.
One of the developers forgot to close the connection(s) and DataReader
objects. We found that once the site recieved a large number o... more >>
Datagrid ItemCreated runs too many times.
Posted by Manuel at 12/14/2004 2:47:36 PM
I have a Datagrid with 9 elements. The problem is that when I sort the grid
by a column, it present more columns than there are.
This is my code for the ItemCreated event:
Private pNo As Integer = 0
Private Sub grd_ItemCreated(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls... more >>
URGENT - Show message and redirect to a page
Posted by bnob at 12/14/2004 2:45:47 PM
In a Button clik event I have this code at the end of the event
Response.Redirect("Page.aspx")
But in this event I must show a message before redirect to the
Page.aspx. I use to show Message this
System.Web.HttpContext.Current.Response.Write("<SCRIPT
LANGUAGE=""JavaScript"">" & vbCrLf)
... more >>
Convert Currency
Posted by Vishal at 12/14/2004 2:18:46 PM
Hello,
how can we convert a value from one currency to
another currency in vb.net? Is that possible? I dont want
to use any hardcoded value for the exchange rate. I wont
to get it online and do the conversion. Anybody has done
this before?
Thanks... more >>
aspx pages dont work on win2003-server - newbie needs help
Posted by ASPNET NO[at]SPAM lesje.nl at 12/14/2004 2:18:36 PM
Hi,
After spending several hours reading through help pages I try to turn
to you guys for help.
I have a co-located server (ie my own) with IIS 6.0 and MS Win 2003
installed.
ASP works on that server, as most things do, but now I am trying to
learn APS.NET. So, I am a newbie, on both IIS... more >>
app vars and cache vars
Posted by Jon at 12/14/2004 2:17:48 PM
I have a couple of tables I want to load into a dataset and keep around
pretty much forever, although they will need to be refreshed every so often.
I can either put the dataset into an Application("myDataset") var or I can
put it into the cache, Cache("myDataset"), both are universally avail... more >>
File System Access
Posted by MichaelR at 12/14/2004 2:16:02 PM
I have an ASP.NET application running on the 1.1 Framework on 2 servers just
fine. However, on one server (Windows Server 2003) I'm having a problem.
This particular line of code throws an exception when run through the Visual
Studio 2003 debugger:
objFileStream = New
FileStream(objHttpCon... more >>
unhandled exception
Posted by Mariame at 12/14/2004 2:14:37 PM
Hi everyone
I have a strange problem
I have a web page that works good
This web Page contains four buttons each one opens a new page using
script("<script>window.open('page.aspx')</script>")
when i add to this web page another button, when i click it
it give me the error "unhandled exception"... more >>
adding a blank entry into a combo box
Posted by Craig G at 12/14/2004 2:13:15 PM
i use the following to populate a combo in a datagrid but was wondering how
i would add a blank entry to the top of the combo so that on first load it
has no value selected?
<asp:DropDownList id=cboIntensityAdd runat="server" Width="149px"
CssClass="yarGridCombo" DataValueField="CODE" DataText... more >>
Very simple viewstate question
Posted by Sahil Malik at 12/14/2004 1:57:23 PM
In VS2003 - add a page.
Add a button
Add a textbox.
Set EnableViewState = False for all 3 above.
Put some code behind on Button (anything).
Run the sample - type something in the textbox - hit the button - ..
viewstate is false .. the textbox after postback should contain nothing ..!!
... more >>
References question
Posted by Andy G at 12/14/2004 1:52:01 PM
Although I am fairly efficient with ASP.NET I have found out that JavaScript
is very helpful if not a required tool for developing an ASP.NET
application. I need to buy a book. Is the Oreilly book, JavaScript & DHTML
Cookbook a good book for me? or JavaScript: The Definitive Guide, 4th Ed.,
or... more >>
User Controls and access to members on the calling page.
Posted by Marc Jennings at 12/14/2004 1:48:07 PM
Hi there,
I have an ASP.NET page that includes the following items.
public string s1;
public string s2;
public string s3;
and a User control called TestForm with three text boxes and one
button.
What I want to happen is this.
1) The user sees the simple form, and completes the tex... more >>
'<#% ... #>' code segments in aspx (C#.net)
Posted by Emre Guldogan at 12/14/2004 1:31:04 PM
Is there any resource that lists the functions of asp which are available in
C#.NET or lists the equivalence of these functions in C#.NET. thanks...
... more >>
VS.NET has detected Web Server is running ASP.NEt version 1.0
Posted by Summit at 12/14/2004 1:01:05 PM
Hi,
I have tried this and am still getting an error trying to open a ASp .NET
application in Visual Studio .NET.
I still get an error: "VS.NEt has detected the Web Server is running a
version 1.0 of ASp.NET"
I have Windows 2000 Pro, IIS 5.0 and .NET 1.1
I have tried almost every si... more >>
first load of aspx page is really slow
Posted by z. f. at 12/14/2004 12:15:15 PM
This is a multi-part message in MIME format.
------=_NextPart_000_0049_01C4E1D6.91C0D040
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
Hi,=20
i have a dot-net app.
the first load is really slow, about 4 seconds at least.
next requests are... more >>
compile time comparison 1.2ghz vs 2.5ghz -- not what you might expect
Posted by TR at 12/14/2004 12:12:51 PM
My PC at home is an HP ePC-42 with a 1.2ghz CPU and 512MB RAM. At work, a
Dell OptiPlex GX270 at 2.5ghz with 1GB RAM. Yet my home PC compiles the
identical ASP.NET project much faster than my work PC. At work it can take
over a minute; at home, maybe 15 seconds. I do pretty much the same kind of
... more >>
Setting email using mailto
Posted by tshad at 12/14/2004 12:00:16 PM
I am trying to put an persons email address in a response I am sending
another person.
I can get it to work by doing the following:
message.Body = resumeTop & vbCrLf & vbCrLf & "For Applicant: " &
session("firstName") & " " & session("lastName") & vbCrLf & "Email:
mailto:" & session("... more >>
Container.DataItem and Button
Posted by Vishal at 12/14/2004 11:46:55 AM
Hello,
I have a datagrid and need to show a simple HTML
button in a column. This button contains an OnClick event
and looks like this:
<code>
....
<ItemTemplate>
<input type="button" value="Select"
onclick="Javascript:location.href('bla.aspx?ID=<%#
Container.DataItem("ID")%>')"/... more >>
RegularExpressionValidator help please!
Posted by Lars Netzel at 12/14/2004 11:44:47 AM
Using a RegularexpressionValidator to control that a user types in correct
in a textbox:
The expression I have is this: \d{2},\d{4}
This means the user shall type in something like this "10,2004", This is
supposed to be a weeknumer comma year.
Since there are a maximum of 53 weeks in a ... more >>
URL Rewriting
Posted by Jeti [work] at 12/14/2004 11:37:45 AM
What is the best way? I cant use GAC, only private assemblies...
Do I have to put dummy files in every directory on my site?
eg.
domain/2003/05/default.aspx
domain/2003/07/default.aspx
domain/2004/05/default.aspx
all of the pages above redirects to "page.aspx?year=xxx&month=xx", but the
q... more >>
Tabbing Help
Posted by ACaunter at 12/14/2004 11:31:08 AM
Hi all,
I have set up my tab indexs to go in order 1, 2, 3, 4, 5, 6...
my question is , is there a way to jump from 3 to 6 by pressing a certain
key.. like ctrl + j or something...
and next time maybe tab 1,2,3,4 then jump to 6... by the same "special key
thing" ..
please let me know if y... more >>
asp.net Spell Checker
Posted by ACaunter at 12/14/2004 11:31:07 AM
Hi all,
I was wondering if there is a Spell Checker for asp.net.. i have found a
bunch written in vb.net or c#, but i'm having trouble bringing it over into a
web application from a windows form...
Does anyone know of any good asp.net spell checkers?!?!
thanks for the help!
--
AdamPC@hot... more >>
Sort an XML document using DataView
Posted by Ed Chiu at 12/14/2004 11:19:04 AM
Hi,
I am tring to use DataView Sort ability to sort an XML document, here are my
code snippet:
ds1.ReadXml("c:\temp\catalog1.xml")
ds1.Tables(0).DefaultView.Sort = "ProdName"
ds1.WriteXml("c:\temp\catalog2.xml")
Does not work at all, can someone help?
TIA
... more >>
Accessing an HTML Checkbox
Posted by Craig Andrews at 12/14/2004 11:09:55 AM
Hello,
How do I access HTML CheckBoxs in the codebehind section of an ASP.NET
program?
In the old Interdev days one would:
For i = 1 to Request.Form("CheckBox").Count
if Request.Form("CheckBox")(i)) > 0 then
End If
Next
That throws
Exception Details: System.Nu... more >>
DropDownList in Repeater
Posted by Shaun Camilleri at 12/14/2004 11:08:48 AM
Hi all,
I am creating a DropDownList in a RepeaterControl. After the Repeater is
DataBound in the ItemCreated event (of the Repeater) I bind the DropDownList
to a Table and then try to select one of its value. Here is the code:
If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType =
L... more >>
server.transfer scope
Posted by Craig Banks at 12/14/2004 11:00:28 AM
I have 2 ASP.Net solutions/projects. I want to use Server.Transfer in one
solution/project to call the aspx webform in the second solution/project.
When I try it I get an error message. My call is straightforward:
Server.Transfer("/ServerTransferUtility/Server.aspx")
The call finds my ... more >>
Alignment of Datalist Items
Posted by Ben Arthur at 12/14/2004 10:49:07 AM
Hi All,
I have a datalist which dynamically presents items from the database as
a list. Each row will have different number of items....i have set
repeat columns to 2....the problem I have is the entire row gets aligned
to center, so if 2 rows have different heights(due to different number
... more >>
test for canonicalization issues
Posted by MattB at 12/14/2004 10:48:48 AM
I'm trying to implement this MS "best practice" to test for
canonicalization issues in my web application. I went to
http://support.microsoft.com/?kbid=887459 and pasted their code into my
Application_Start event in Global.asax:
If (Request.Path.IndexOf(Chr(92)) >= 0 Or _
... more >>
Button1_Click from js
Posted by hoz at 12/14/2004 10:34:47 AM
Hi , i have a button . how can i click it through java script ? like below
, but this doesnot work
<script type="text/javascript">
<!--
function Avs(s)
{
iframeWin.document.forms['Form1'].Button2.click();
iframeWin.document.forms['Form1'].submit();
}
-->
</script>
... more >>
computer name to ip
Posted by Frederik at 12/14/2004 10:29:38 AM
Hi all,
Situation:
- 2 computers behind router/switch
- dhcp enabled on router
- computer name 1 = cpuA (WinXP Pro)
- computer name 2 = cpuB (WinXP Home)
- cpuA and cpuB can access each other's resources
- cpuA runs IIS with asp.net website
Problem:
- How can cpuB always get access to t... more >>
drop down control being cleared
Posted by Chris at 12/14/2004 10:13:03 AM
I have on one form a situation where my dropdown fields are cleared upon
clicking on a button or upon return from a show modal window. I've tried
setting the AutoPostBack = "False" and that doesn't work. The textboxes stay
populated with the correct info. All is within a form tag.
example o... more >>
Howto expire a session from another session
Posted by Alfred Tascon at 12/14/2004 10:09:31 AM
I'm trying to stop multiple logins.
I thought the best way would be to expire any existing sessions
(authcookies?) a user might have open whenever he/she logs in.
This would also take care of browser crashes.
I am using Forms Authentication and have not worked out a way to expire a
session th... more >>
applying CssClass to Edit/Update/Cancel button in Datagrid
Posted by Craig G at 12/14/2004 9:55:59 AM
is it possible to apply a style to the button? so far i cant work out how
tried this but it wont work
<asp:EditCommandColumn ButtonType="PushButton" UpdateText="Update"
CancelText="Cancel" EditText="Edit">
<ItemStyle CssClass="yarGridButton"></ItemStyle>
</asp:EditCommandColumn>
Cheers,
C... more >>
Help trimming URL path
Posted by Chris at 12/14/2004 9:31:04 AM
Hi,
I have the follwing url
http://localhost/testsite/test/webform1.aspx?cat=dog
Is there a function available in the request.url object to return only the
webform1.aspx or even /webform1.aspx?
Thanks... more >>
How to read a image of Database?
Posted by Dexter at 12/14/2004 9:30:01 AM
Hello all,
i need to read a image of a SQL Server database, and to show in the
CrystalReport.
Somebody know how to do this?
Thanks.
Dexter
... more >>
Validation
Posted by Neven Klofutar at 12/14/2004 9:09:33 AM
Hi,
Is it possible to show only ValidationSummary, without showing every single
validator control (enable and visible disables validation control, bot it
also disbles it in validation summary) ?
thanx, Neven
... more >>
Parser error
Posted by ST at 12/14/2004 8:23:03 AM
Hi,
I keep getting the parser error, and I have no idea why. I've tried a
number of things including:
1)building/rebuilding about 100x
2)making sure all dll's are in the bin folder in the root of the web app
3)restarting IIS
4)recreating the virtual dir in IIS
5)playing with any and all sett... more >>
code behind/ page inherits?
Posted by Chris at 12/14/2004 7:43:01 AM
Why is it that many reference books list "src" as an acceptable method to
inherit the code behind page but Visual Studio doesn't support it? I've had
trouble using the auto-populated tag so I've started using "src" and my pages
work fine. The only problem is that I loose the Design view becaus... more >>
Web App - Printing client side
Posted by JP at 12/14/2004 7:07:38 AM
Hi,
I need my VB.NET web app inventory system to be able
to print barcodes to the client machine's secondary
(zebra barcode) printer. I've been told this isn't
possible, also that it's possible only w/ Active-X
objects - are either of these true? Any ideas?
Thanks!
JP... more >>
Dynamic DataSet In A DataGrid
Posted by Arpan at 12/14/2004 6:57:20 AM
This is a multi-part message in MIME format.
------=_NextPart_000_002B_01C4E1AA.28132610
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
The following code snippet creates a DataSet on the fly which is then =
passed to a DataView so that the Data... more >>
Help- "cxc" mysteriously appended to aspx page name
Posted by Aimee at 12/14/2004 5:55:02 AM
Help!
The asp.net 1.1 application is running on a Windows 2003 server. One of our
users is unable to use the application. The client machine is running Windows
95 and IE6 Version: 6.0. After the user successfully logs in, he should be
redirected to the home page, which is called Home.aspx. Ho... more >>
Checking if a row exists in a datagrid
Posted by mirth at 12/14/2004 5:52:36 AM
Probably a dumb question but i've been away from dotnet for a while.
If I have a dataset bound to a datagrid and want to add a new row to
it. Is there anyway I can check if that row exists in the dataset
without doing another round trip to the server?
Thanks.
... more >>
Error: Object must implement IConvertible
Posted by Tim::.. at 12/14/2004 5:51:07 AM
Hi can someone please help me with the following error!
I keep getting:
ERROR:
System.InvalidCastException: Object must implement IConvertible.
Line 231: PageID = cmd.Parameters("@PageID").Value
Line 232:
Line 233: Dim myReader As SqlDataReader = cmd.ExecuteReader()... more >>
error trapping
Posted by Mike at 12/14/2004 5:11:05 AM
I have a C# aspx page that calls a C# class file for db access, data, etc.
If one of the "functions" I call in the class has an error how can i pass
that error back to the aspx page and then display it?
... more >>
Web controls declarations in base class
Posted by Chris at 12/14/2004 4:16:06 AM
This may be more of a Visual Studio question but those groups seem to
be full of unrelated stuff so hopefully this might be the right place.
I have a class (no associated aspx file) which handles all the common
startup code for the pages on our website. It is derived from
System.Web.UI.Page an... more >>
Position
Posted by sara at 12/14/2004 3:25:10 AM
How to change the position of webservercontrol at runtime
... more >>
find control
Posted by huzz at 12/14/2004 2:21:02 AM
I have two repeaters in a page... how do i access textbox values of one
repeater from another? for example if i have repeater 1: rptIssue repeater2:
rptReturn
I want to bind the textbox values from repeater1 in repeater2.
Here is what i am donig.. but i can't access the repeater1 controls ... more >>
Passing multiple form references in asp.net
Posted by amahale NO[at]SPAM inbiz.co.uk at 12/14/2004 1:52:09 AM
Hi All,
I am trying to implement paging for datalists on web forms. I have all
the code in a class so that each web form can access that class. The
code works fine when i use a single form. My query is how should I
pass the reference of each web forms to the class so that paging can be
imple... more >>
what's the easiest way to manage "page navigation"?
Posted by Bad_Kid at 12/14/2004 1:48:22 AM
I would like to make a component on page that will know and show allways
"where are you in page hierarchy" -at any moment...
e.g.
Menu_Music -> My_Music -> Choose_Song
What's the easiest way to do that? Any suggestions?
Thanks...
... more >>
How to declare a variable in the global scope?
Posted by Miguel Dias Moura at 12/14/2004 1:37:37 AM
Hello,
I am working on an ASP.NET / VB page and I created a variable "query":
Sub Page_Load(sender As Object, e As System.EventArgs)
Dim query as String = String.Empty
...
query = String.Format("SELECT * FROM dbo.documents WHERE ") & query
End Sub
I need "query" to be global and ... more >>
DataBinder.Eval(Container,"asd")
Posted by hoz at 12/14/2004 1:34:42 AM
hi , I am looking for all functions like in the subject for C#.net. Where
can i find the list of them ?
... more >>
cloning
Posted by AVL at 12/14/2004 1:27:04 AM
Hi,
I've a query in cloning. How cloning is different from creating a new
instance of an object.? I suppose cloning also creates a new object and
copies the exisitng object's data. Where and when should use cloning????//... more >>
Focus
Posted by sara at 12/14/2004 1:07:02 AM
Hi to all
how can i set focus of cursor in certain control
thanks... more >>
|