all groups > asp.net > may 2005 > threads for monday may 23
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 2 Beta 2 JavaScript bad rendering
Posted by Alejandro Penate-Diaz at 5/23/2005 11:46:21 PM
Hi. I was handling key events nicely using some Javascript on my apps using
something like this:
this.txtUserName.Attributes.Add("onkeydown","if((event.which && event.which
== 13)||(event.keyCode && event.keyCode ==
13)){document.Form1.cmdLogin.click();return false;}else return true;");
th... more >>
Change Font Size in Edit textbox for Datagrid?
Posted by Blaine at 5/23/2005 11:36:03 PM
Pulling my hair out here!
I have a datagrid with a number of bound columns (NOT template columns).
When choosing to Edit, the textboxes appear, but the font is not the same as
the original text (i.e., 8pt Tahoma).
Anyone know how to change the Font size when the Edit box appears?
I've tried ... more >>
Cannot Create new VS Web Project
Posted by TimC at 5/23/2005 11:27:55 PM
I hope someone can help - I am getting desperate!
I have promised to do some work for someone developing an ASP.NEt
application.
I have VS Studio 2002 installed on my pc which is running XP-Pro (and
therefore IIs 5.1) and have instannled .Net framework v1.1.4322.
I canot create a new web ... more >>
Understanding event order ???
Posted by serge calderara at 5/23/2005 10:59:26 PM
Dear all,
I am trying to understand postack event ordering. for that I have a web form
with a text box, listbox and button server controls.
Then I add a response.write in eaxh control event changed.
When I run my application I proceed in following order :
First I change a text in the tex... more >>
free ebooks
Posted by A.J at 5/23/2005 10:14:45 PM
could you please give me links of "free ebooks" regarding vb.net and
ado.net
... more >>
DropDown not populating?
Posted by Patrick.O.Ige at 5/23/2005 9:00:02 PM
Doing the simple DropDown List binding using the method NextResult()
But its just not populating ..
what am i missing
Its populating the 3 DropDwonList but no Data?
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Not IsPostBack Then
Dim sql... more >>
Extra space in database when data is entered
Posted by voidfill3d NO[at]SPAM yahoo.com at 5/23/2005 8:32:57 PM
I have a problem with ASP.NET and entering data into a MS SQL database.
I have the following
code and what happens is the data gets into the database, but with one
extra space at the end of
the entry. Is this preventable with something other than a trim in my
stored procedure? I know thi... more >>
Counting selected items on CheckBoxList
Posted by rbscheer NO[at]SPAM my-deja.com at 5/23/2005 8:09:35 PM
Hi.
Is there any way to count how many items are selected on a CheckBoxList
control without iterating throug the items? I have a For...Next loop
that only needs to be taken into action if the CheckBoxList control has
at least one selected item.
Thanks,
Robert Scheer
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Hash Passwords
Posted by Shapper at 5/23/2005 7:19:20 PM
Hello,
I created a login system and I my passwords are being hashed.
I need to check if everything is working so I need to generate some
hashed passwords to replace the actual passwords I have in this moment
in my database. How can I do this?
I have the following data in my database:
U... more >>
ValidateRequest
Posted by d k via .NET 247 at 5/23/2005 7:05:03 PM
How do you handle the HttpRequestValidationException?
I don't want an error page to appear, a repost and an error message. Is there another alternative to handle this if ValidateRequest id set to false?
--------------------------------
From: d k
-----------------------
Posted by a user f... more >>
my table updates but the view that uses it does not
Posted by Norm via DotNetMonster.com at 5/23/2005 6:13:17 PM
How do you get a view to update when a table it uses is updated? I am using
asp.net, C# and MS SQL.
Thanks in advance - Norm
--
Message posted via http://www.dotnetmonster.com... more >>
Newbie question: Adding records without data binding in c#?
Posted by DC at 5/23/2005 4:45:48 PM
Is there an wasy way to ADD a record to and access database using
asp.net without getting involved in databinding my form to the database?
Esentially I want the form to be edited by a user and on the button
click subroutine will verify the fields add the record to the database.
Any eample ... more >>
DateTime.Now
Posted by Shapper at 5/23/2005 4:09:36 PM
Hello,
I have this code line:
Dim ticket As FormsAuthenticationTicket = New
FormsAuthenticationTicket(1, tbusername.Text, DateTime.Now,
DateTime.Now.AddMinutes(30), True, reader.GetString(0),
FormsAuthentication.FormsCookiePath)
And I get this error:
Name 'DateTime' is not declared... more >>
Programmatically edit/create Theme
Posted by jjack100 NO[at]SPAM gmail.com at 5/23/2005 4:04:46 PM
In asp.net 2.0 you can apply custom themes based on a user profile,
etc. And you can change the theme programmatically, etc. But how do you
edit or create a theme programmatically? I am working on a content
management system where the user needs to be able to select fonts,
colors, etc. Right n... more >>
Variable Scope / Visibility / Caching Problem
Posted by Steve Wark at 5/23/2005 3:51:18 PM
If I create two aspx pages, place three text boxes (working with VS .net
2003 and web form controls) and a button on both forms.
On the first page, the button is set to use the "onClick" to open the second
page using Window.Open with the values being passed to the second page by a
global varia... more >>
Export DataGrid to Excel
Posted by Bidarkota at 5/23/2005 3:49:33 PM
Hi,
I have a DataGrid in which there are some images and Data are displayed and
in the webform.asp page i am using some stylesheets. when i export the
datagrid all the images are also exported to datagrid and it is giving an
alert that following stylesheets are missing when i export it. can... more >>
"HTTP redirect request failed"...solution but why?!
Posted by GreggTB at 5/23/2005 3:44:32 PM
I've been working on what appears to be a cursed ASP.NET project....so
many things have gone wrong that Murphy would be proud. ;-)
Anyway, I shut down the project in VS.NET at one point this afternoon
and when I tried going back in, I received the following message:
"The web server reported ... more >>
"Previous page" ?
Posted by TR at 5/23/2005 3:23:14 PM
In an "Abandon Changes" button on my UserPreferences.aspx form, I'd like to
redirect back to the page the user was on before coming to the
UserPreferences form. It could be any one of my web app's pages with a link
to the UserPreferences page in its topmenu. (I'm testing for stale session
tokens... more >>
SessionId doesn't appear in the Request.Uri, why?
Posted by Hope Paka at 5/23/2005 3:15:58 PM
I have enabled the session to be without cookie. It adds the session id to
the url. But the problem is, i can't take the session id part from the
Request.Url.
Taking session id is not my purpose. I know, i can take it from the
Session.SessionId property.
I have used Request.Url.LocalPath... more >>
Calendar Controls and Open Parameters
Posted by KJBaham at 5/23/2005 3:09:52 PM
Hi, I've created many MS Access databases that report info from a DB2/400
system here, and I am trying to learn to put these into web applications.
I am using the following walkthrough as a guide to create an application in
visual basice.
http://msdn.microsoft.com/library/en-us/vsintro7/ht... more >>
SelectedItem.Value
Posted by Martyn Fewtrell at 5/23/2005 3:08:54 PM
I want to update a database record with a number of fields - doesn't sound
to difficult at this stage!
I have a system to select the correct record from the database and load the
data into a form across a number of text boxes and a single drop down list
(the idea being that the text boxes c... more >>
Retreiving data in datalist from Codebehind
Posted by kaczmar2 NO[at]SPAM hotmail.com at 5/23/2005 2:30:56 PM
I have a page that uses a DataList control, and I need to get at the
data in the codebehind. I have done it in the HTML side of things with
the following command:
<%# DataBinder.Eval(Container.DataItem, "BodyItemName")%>
But how would I access this in the, say, "ItemCommand" event?
Thank... more >>
Persistent ViewState
Posted by Sven Jacobs at 5/23/2005 1:34:33 PM
Hello everybody!
Imagine a form with several TextBox WebControls and two buttons "New" which
should clear the form and "Save". On reloading or leaving the page which
holds the form the TextBoxes should be cleared so I've disabled the
ViewStates of these TextBoxes by setting the EnableViewState... more >>
Emailing attachments
Posted by MW de Jager at 5/23/2005 1:28:46 PM
I am sending an email with attachments from a dotnet ASP application. If I
send an email it works fine if the attachment is located in a folder on my
pc, which is open to all users on that PC, it usually works fine. If I try
to send something form My Documents, the file cannot be sent. Why ... more >>
ASPX Page not Rendering on IIS6
Posted by Vai2000 at 5/23/2005 1:23:20 PM
Hi All, I recently installed Win2k3 web edition of OS on a m/c. I moved some
of my existing ASPX on it with xcopy. To my surprise none of the ASPX Apps
are able to render. I am getting the Generic IE Error Page where it asks you
to connect to Internet Via the Tools/Connection/LAN etc...
I tried ... more >>
HELP: intercept request and redirect before page is laoded
Posted by super todd at 5/23/2005 1:20:41 PM
user launches:
GET http://www.somewhere.com/someVirtual
we need to intercept and redirect to:
http://www.somewhere.com/handler.aspx?virtual=someVirtual
Any ideas how? The key here is that the virtual is removed and passed
as a parameter to my aspx page somehow. and that all request ha... more >>
Preview User Controls
Posted by UJ at 5/23/2005 1:19:35 PM
I inherited a lot of code from somebody who had done lots of User Controls
(which I'm grateful for) but it would be nice if I could see the visual side
of the object. Is there any way to load the object other than writing a page
that loads the object?
TIA
Jeffrey.
... more >>
Preview a .html file and a .swf file
Posted by UJ at 5/23/2005 12:56:04 PM
My web page will have a couple of links to html and swf files and I would
like to show previews of those items to the users. In .asp it used to be the
<OBJECT> tag. Is that still the easiest way to do it? And if so - can
somebody direct me to some documentation because it's all more that I see... more >>
windows control in aspx page
Posted by Mike D at 5/23/2005 12:48:10 PM
I have a windows control in an aspx page. It receives data from some serial
hardware on the client. How do I get this data to an aspx page so that I can
post it to the server? I will need to post an instrument id to the server
and return some data to the usercontrol.
How is this done??
... more >>
Do you know good zip (compress files) control?
Posted by ×™×•× ×™ גולדברג at 5/23/2005 12:31:20 PM
Hi,
Does anybody know some good free control to zip
file (compress files to zip library)?
Thanks.
... more >>
clientside history question and Server.Transfer
Posted by TR at 5/23/2005 12:29:43 PM
When the page posts back to itself (e.g. the code-behind on a button click
event) the page URL is added to client-side history. Is there any way to
use codebehind and not insert the aspx page's URL into browser history?
Thanks
... more >>
Invalid RSS created by ASP.NET page
Posted by henrybranson NO[at]SPAM hotmail.com at 5/23/2005 12:18:01 PM
I'm trying to create an RSS feed that is written dynamically by an
ASP.NET page. I know there are several ways to do it, but the quickest
for me was to follow the Scott Mitchell tutorial at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspnet-createrssw-aspnet.asp.
... more >>
dynamic controls
Posted by Paul W at 5/23/2005 12:13:12 PM
i have some dynamic controls that i add to a webform (actually, i dynamiclly
build a table and add the controls to cells). some of these controls are
HtmlSelect controls with the multiple property set to true.
i have figured out how to loop through the controls on the form and find the
one i... more >>
Webform Newbie
Posted by DCSTech at 5/23/2005 11:45:29 AM
I have a form with a button on it. Can anyone give me an example of how to
show another webform when I click the button.... more >>
Simple jscript error!
Posted by Nad at 5/23/2005 11:33:57 AM
Hello,
I simply added an html button and textfield on an ASP.NET web page. Then on
the onclick event of the button I try to display a text on the textfield but
I get a script error. Here is the whole html contect of the web page:
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERAT... more >>
Running a script from C#
Posted by MW de Jager at 5/23/2005 10:44:43 AM
I am running a script from C#, but I need a returnvalue to be passed back to
my code.
I am currently using RegisterStartupScript, but this does not allow me to
receive anything back from the java script. Any ideas on how to do this?
Kind regards
MW de Jager
... more >>
Upload or download more than one files at the same time
Posted by david at 5/23/2005 10:41:09 AM
Can we upload or download more than one files at the same time via the web
form interface?
Thank you for any help.
David... more >>
record lock and win32 X ASP.net apps
Posted by cFleury at 5/23/2005 10:38:03 AM
Hi,
I have read somewhere about record lock contention problems in between an
ASP.NET/ADO.NET application and a win32/ADO application, basically I’m
re-writing the win32 app in asp.net and would like to be able to concurrently
run both apps against the same MS-SQL database, is there a pro... more >>
Data blocks to going away in 2005 ?
Posted by Sukh at 5/23/2005 10:30:45 AM
Hi,
If we start using data block, then how much code we hv to migrate in
VS2005 ?
Is it worth going with MS data bolck now ?
Thanks
Sukh
... more >>
Web Custom Control default rendering
Posted by kurt sune at 5/23/2005 10:29:03 AM
I have quite an annoying error.
I have created a web custom control.
When I put it on a web page I do not get: "The control's default
rendering, which is simply the name of the control followed by its ID,
appears in the Design view. "
Instead I get only the small little green arrow. I d... more >>
inline images for emails
Posted by William F. Robertson, Jr. at 5/23/2005 10:28:24 AM
Anyone have any reference for adding a image inline into a email body, using
the System.Web.MailMessage? If not MailMessage, then anything else would be
nice.
ie using the cid and embedding the image with the email
Thanks,
bill
... more >>
HashTable
Posted by vinay at 5/23/2005 10:17:29 AM
I am getting the data in a HashTable.
Q ..
Can i bind Hashtable to Datagrid ??
If not..
To which object the HashTable should be converted so i can bind it to
DataGrid ??
Thanks
--
http://pathidotnet.blogspot.com
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
------------... more >>
order of event firing
Posted by Dan at 5/23/2005 10:17:26 AM
I have an aspx page with a form on it. There are a couple of textboxes and
an ImageButton. The page is loaded from another page using Server.Transfer.
When I click on the ImageButton, the Page_Load event immediately fires on
the codebehind page and then click event fires. When this happens... more >>
asp .net / sql database / search function
Posted by mattmerc NO[at]SPAM bellsouth.net at 5/23/2005 10:15:04 AM
Hi all,
I've searched around on this topic but haven't come up with anything
that matches exactly what I am trying to do. I have an ASP .net
application running over a SQL database. I need to allow users to do a
"free text" search on some of the SQL data. I'm thinking there must be
code out t... more >>
Binding datagrid to unknown columns
Posted by Julia at 5/23/2005 10:13:46 AM
Hi
I have a class Document which contains ArrayList of properties
I want to bind the document to a datagrid,in such a way that I would be able
to control
which properties are being displayed.the properties to be display are stored
in XML file.
what is the best way to do it?
Thanks in ... more >>
web application login help
Posted by Mohan at 5/23/2005 10:11:17 AM
Hi all,
I am having a problem implementing forms authentication for a web
application. I have a login screen and any unathorized user is directed
to the login screen. The problem is that the login screen keeps
refreshing even if i enter the correct credentials.
using a database to verify t... more >>
Enabling Users to Download MDB or XLS File (then save or view)
Posted by PB at 5/23/2005 9:58:17 AM
I need to enable users to download data in either an Excel file or an Access
database (MDB file).
The data they need exists in a SQL Server database: the XLS or MDB file does
not actually exist at the time the users request it.
My initial plan is that when users request their data, they wi... more >>
Log File
Posted by Smitha Patel at 5/23/2005 9:16:12 AM
I am writing all my application activity to a log file(ASCII file).
1. How to append the data to a log file? I do not want to open the entire
file and add one line of log data to the file. My file will be in mega bytes
and it is a performance issue to load the entire file to memory and write
o... more >>
help with Form Authentication
Posted by Mohan at 5/23/2005 9:15:05 AM
Using Form authetication to grant users access to a web application. If
I go to the default webpage it shows the login screen but if enter a
specific page in the application, it allows access instead to
redirecting to the login screen. I am not sure how to avoid this. Below
is the code from the ... more >>
INI or Any Other File..... ?
Posted by Smitha Patel at 5/23/2005 8:50:39 AM
In a VB.Net based desk top application which is the best design to store
initial value settings?
Is it still the old INI file or something.config file? I am using
..NetFramework1.1. What is the professional way of doing in .Net based
desktop application.
Thanks,
Patel
... more >>
controls at runtime. C#.net
Posted by maneli badakhshan via .NET 247 at 5/23/2005 8:03:16 AM
Dear members,
my problem is the following:
I have some question type sentences in a web application, and i want to create a button and a text box near some of these questions at runtime.
now, i have created them, using a place holder, and now i want to use the data which will be entered into t... more >>
how to copy an entire object
Posted by Joao Dias at 5/23/2005 6:55:08 AM
Hi, I am almost new here and a newbie in ASP.NET and .NET in general.
How can I make just that ?
I have tried at least 5 different ways of doing that and I just can't:
I have a data-bound Datagrid in a Web form, wich I want to save because when
I display it, I manually truncate some values (... more >>
database access
Posted by cFleury at 5/23/2005 6:51:16 AM
Given this 2 computers the first (ServDBSTest) running IIS and MS-SQL and the
second (SQLBACK) running only MS-SQL and with both databases having the user
“fleury†with “administrator†privileges, I can only access a database that
exists in the SAME computer as the web server (ServDBS... more >>
asp.net calander application
Posted by eakmeemana NO[at]SPAM gmail.com at 5/23/2005 6:35:53 AM
does some one know a full calander control,full-screen event calendar
application with a monthly view, weekly view, daily view etc. I need it
to list events that occur on the different dates. The user brings up
the monthly view calendar, clicks on an day on a certain day, and it
brings up the sc... more >>
Include file for code behind vb page for .aspx page
Posted by David Jones at 5/23/2005 6:33:01 AM
I have some code repeated in many page_load methods in an ASP.NET app.
I have buttons that are enabled or disbaled depending upon the state of a
variable in the session.
Is there a way to put that code in a file and just include it in all of the
files;
...or is there a better way?
Thx
--
... more >>
owc 10
Posted by fabien at 5/23/2005 6:26:06 AM
hello,
how can I to make to have the standard icon of graph active with chart of
owc10?
... more >>
Recommandation for third party datagrid
Posted by Vinny Vinn at 5/23/2005 6:21:09 AM
can anyone recommened a third party datagrid (web control) that can do the
basics like sorting, editable...,as well as the more advanced such as
charting (create a chart out of a the idata in the grid).
TIA,
Vinny... more >>
Help - Registered Javascript not executing
Posted by John Walker at 5/23/2005 6:09:03 AM
Hi,
On my Webform my ASP:Button does not execute the Javascript code which is
'added' to it on the page load, and I'm trying to figure out why. Please
take a look at my code and the error message and see if there's anything
obvious here:
'------ Here's where the javascript is registered a... more >>
AutopostBack properties ??
Posted by serge calderara at 5/23/2005 6:06:04 AM
Dear all,
I am newbie in asp.net, I am preparing it for my MCAD and MCSD exams.
I get my exam for VB.Net under Windows application word where events was
clear for me, and now start to be hard to follow the pylosophie of asp.net
events firing.
The first one I face to is to trap the event w... more >>
How to redirect after the download starts
Posted by Hitesh at 5/23/2005 5:56:02 AM
Hi,
I am having a requirement where in user can click on a link and the download
popup appears and then user should be redirected to a congratulations page.
We didn't bother whether the download is successful or not but as soon as
user clicks on the download link the popup appears, and the... more >>
Multiple Postbacks with DropDown list
Posted by Patrick Olurotimi Ige at 5/23/2005 5:27:59 AM
Populating some Data to a DropDown control (after postback)i would like
to display the result in a TextBox
and if possible be able to EDIT and Update the Data populated..
What i really want to do is depending on the user i would like to
populate some number code to a DropDown control and selec... more >>
HTTPHandler
Posted by vibs at 5/23/2005 5:21:02 AM
Is it possible to get the contents of a target page in the HTTP handler. If
yes, can somebody tell me the method to call in the handler or point me to
some resource.
Thanks
Vibs... more >>
How can I perfect the look of my asp.net site?
Posted by Andy at 5/23/2005 4:25:22 AM
Hi,
I've been looking at many sites, such as www.idunno.org and
www.developerfusion.co.uk , and these sites seem to have a very professional
look about them. Alas when I create my sites, though funcioning properly, the
look and feel leaves alot to be deserved.
I'm after a layout where there ... more >>
Webforms Datagrid Sorting/Paging...
Posted by saleek at 5/23/2005 3:03:09 AM
Hi,
I am trying to figure out why my datagrid has stopped firing the page and
sort commands.
Scenario:
I originally had template columns in my datagrid and had set up custom
bi-directional sorting as well as paging of the datagrid records.
It worked fine. Then I decided to be clever ... more >>
VSS web.config multiple.
Posted by yurps at 5/23/2005 2:51:42 AM
Hello I have a couple of developers working on a web app.
They all need to be able to change their local copy of the web.config
file to run against their local databases. The copy in VSS needs to
point to the main application database. But only one copy of
web.config can be check-out at once, ... more >>
where is my user control?
Posted by Andreas.Knudsen(AT)bekk.no at 5/23/2005 2:01:02 AM
Hi
I've added a MyUserControl called MyUserControl1 to my aspx page.
the user control fires an event MyEvent which I want the page to handle.
I want to be able to write (in the codebehind: MyPage.aspx.cs)
MyUserControl1.MyEvent += someDelegate
the problem is that I have no handle on th... more >>
Loading aspx/ascx
Posted by Michel at 5/23/2005 12:43:01 AM
Hi folks,
Little questions:
I need to load different aspx and ascx files, depending on user settings.
The files are all identically (the pages contains the same asp components) ,
except some layout elements can differ (html tables, images, ... can differ.
Is there a way to overwrite the... more >>
|