all groups > asp.net > january 2005 > threads for monday january 17
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
Adding event attributes to checkbox's in CheckBoxList
Posted by darkpeace at 1/17/2005 11:26:35 PM
Okay i'm at my wits end. I've tried every which way to add a simple
onClick even to checkbox items in my code behind :
example:
Protected WithEvents chkSample As
System.Web.UI.WebControls.CheckBoxList
....
For Loop i = 0; i++ here
Dim item As ListItem = New ListItem
item.text = "C... more >>
accessing user defined utility functions
Posted by nzanella NO[at]SPAM gmail.com at 1/17/2005 11:16:14 PM
Hello,
I need to access some user defined utility functions from within
my ASP.NET pages. I wonder whether there is a way to do this. I
do not want to use inheritance. I just want to be able to call
some code contained in a .cs file (C# file) from within several
..aspx and .ascx page without ... more >>
MVP's clarify - Registry List - Weird or Normal ???
Posted by techmaccoy NO[at]SPAM yahoo.com at 1/17/2005 10:29:23 PM
I am trying to access a entry under HKEY_Current_USER/Software.
In My code it List seven subkeys under there. Actually there are lot
more and the entry i wanted to access in seen in the Registry, but not
listed in my code.
I checked under the HKEY_USERS Key there are many users listed. and
ea... more >>
test
Posted by bob at 1/17/2005 9:53:33 PM
Hourglass while Loading
Posted by Greg Cyrus at 1/17/2005 9:36:13 PM
I have created a small ASP.NET-WebApplication with some pictures and a
WebUserControl.
When the application is accessed (over IE) - the static items - such like
pictures - do get displayed really fast - but the compiling and rendering of
the WebUserControl takes some seconds.
How can I s... more >>
Online development of ASP.net pages
Posted by S0ck3t NO[at]SPAM yahoo.com at 1/17/2005 8:39:19 PM
Are there any websites that enable you to develop and test ASP.net
pages ONLINE?
I am currently travelling and without access to the same computer.
Consequently I am using Internet cafes with all the locking down that
entails. I would ideally like to use Visual Studio, Microsoft Access
with m... more >>
Bulletin/Message Board Question
Posted by Patrick Olurotimi Ige at 1/17/2005 8:09:42 PM
Hi All,
Can anybody forward me a free Bulletin/Message Board built with
ASP.NET!
Any other resources would be appreciated...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Way to stop server action after javascript alert
Posted by Maverick at 1/17/2005 7:59:02 PM
I have a javascript checking on a search button which is used to check if the
dummy value is inputted before the search button is clicked.
===============================================
butSearch.Attributes.Add("onclick", "if (document.forms[0],txt_dummy.value
== '') alert('Please input dummy... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Classic asp
Posted by bob at 1/17/2005 7:59:00 PM
Is there a English news group that anyone knows of that does classic asp
rather then ASP.net?
or can we post them in here too.
thanks
hb
... more >>
ActiveX DLL and VB .NET
Posted by Mohit Gupta at 1/17/2005 7:33:03 PM
How do I create an ActiveX DLL using VB .NET.
I created a new Project "Class Library" type in VS .NET using VB .NET as
choosen language. I added simple class "Class 1"
Public Class Class1
Sub New()
End Sub
Public Function getString() As String
return "Testing"
End Funct... more >>
ASPNET can't write in event log on win XP
Posted by Stephane at 1/17/2005 7:03:04 PM
Hi,
I'm sorry, this question is also posted in dotnet.framework, I don't know in
which newsgroup my question belongs to...
I'm trying to write in the event log and it looks like it's any of my
applications which are called by ASP.NET that are having trouble with event
log. Here's the
e... more >>
Way to look up index for Cell in datagrid
Posted by Paul at 1/17/2005 6:26:39 PM
Is there a way to look up the index for cells in a data grid. I do not
like hard coding numbers into my programs (other than 0 or 1)
Sub DisplayBoundColumnValues(sender as Object, e as
DataGridCommandEventArgs)
Dim bc1 as String = e.Item.Cells(1).Text
Dim bc2 as String = e.Item.Cells(2).Text
... more >>
Server.MapPath fails in Session_End event
Posted by Andy Fish at 1/17/2005 6:07:12 PM
Hello,
I've found that if I try to do a Server.MapPath() in the Session_End event,
it fails with an exception.
is this right? any simple way to work round it?
is there any documentation that says what you can actually do in these
global.asax routines? - I've found out that Context is se... more >>
Question about passing aspx pages into methods
Posted by Jim Bancroft at 1/17/2005 5:37:09 PM
I have a .Net component I'm experimenting with that has a method like so:
public void CTest(System.Web.UI.Control myPage)
{
DataGrid myGrid= (DataGrid)
myPage.FindControl("DataGrid1");
foreach (DataGridItem item in myGrid.Items)
/... more >>
sessionId is reused after calling session.abandon
Posted by Andy Fish at 1/17/2005 5:22:23 PM
Hi,
I have an asp.net application that is using Forms Authentication and
maintaining http session state using cookies in the normal way.
when the user clicks the logout button I do this:
Session.Clear();
Session.Abandon();
FormsAuthentication.SignOut();
Response.Redirect("D... more >>
Customerrors in web.config question
Posted by Ron Weldy at 1/17/2005 5:03:00 PM
I am working on a website that someone else has set up. They have a
web.config file with a customerrors element that points the error handling
to a special aspx page.
<customErrors mode="RemoteOnly" defaultRedirect="/customerrors/500.aspx">
<error statusCode="404" redirect="/customerrors/... more >>
Null DB fields causing an error
Posted by Justin at 1/17/2005 4:25:02 PM
Below is the code I am using to display a list of values from a table row the
problem is some of these columns may be null. Currently when I execute this
code I get the following error: "Cast from type 'DBNull' to type 'String' is
not valid."
This error is caused by the null values. How can... more >>
ASP. NET and COM+
Posted by Luis Esteban Valencia at 1/17/2005 4:24:04 PM
I have created a simple COM+ server object using .NET (C#)
I want the COM+ component to connect to a database and i want to use the
user and password inserted in the Identity TAB in Component Services
Console.
When I use the component display the error.
-------------------------------------... more >>
How to have a value from DropDownList.selectedItem on the Client Side?
Posted by Julius Fenata at 1/17/2005 4:19:34 PM
Dear all,
I have created client-side scripting to trigger event onChange from
code-behind, like this:
DropDownList1.Attributes["onChange"] = "GenerateArticleID()";
At the script on Windows Form, I added this function to have the value of
DropDownList1
<script language="JavaScript">
... more >>
FindControl() usage
Posted by MattB at 1/17/2005 4:17:31 PM
I have a datagrid that has some controls (TextBoxes and DropDownLists)
that are created dynamically at runtime. I've got the generation working
ok, but now I need to see what was entered or selected in those controls
once the form is submitted.
I've tried using FindControl unsuccessfully li... more >>
sp 2
Posted by wylde13 at 1/17/2005 3:48:29 PM
I recently posted about having problems with my service pack 2. But I
have found a solution. There's a software called the Full Throttle
Patch. It's actually an internet booster but it solves the SP2 issues
because it gives you an unlimited number of sockets to use on the web.
My speed tripled ... more >>
Writing style sheet code from a sub
Posted by Kenneth P at 1/17/2005 3:01:05 PM
Hi,
I'm developing asp.net (vb) apps in VS.NET 2003, and I'd like to know how
you can write style sheet code in a sub in an .aspx page that when it's
rendered as html/text/css code in the .aspx page.
The idea is to programmatically write style sheet code that dynamically goes
into every ... more >>
Submit form to another website fails to redirect
Posted by AndrewWithy at 1/17/2005 2:57:03 PM
We have an aspx page that is submitting a form that redirects to a 3rd party
website to take a payment from the customer. We have had 19 instances over a
3 day period where the user never made it to the 3rd party site but were
redirected back to the page that was submitted. These 19 instance... more >>
Trouble with sqlCommand
Posted by Eduardo Rosa at 1/17/2005 2:55:26 PM
I can't undertand why that's don't works, can somebody help me?
thanks a lot
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error... more >>
Disable brower Back button
Posted by Waldy at 1/17/2005 2:42:48 PM
Hi there,
is it possible to disable the browser back button, or trap
the event and stop it?
... more >>
asp.net HttpwebRequest problem
Posted by roseta radfar via DotNetMonster.com at 1/17/2005 2:31:33 PM
hello,
I want to use HttpWebRequest to redirect to a url and pass parameter to that url. it seems that the parameter is passed but the page is not redirected. can you help me to see how I can do that? I thought as passing parameter it will redirect it but it seems that it is not redirected and ju... more >>
Can I access global assembly cache on user machine with asp.net?
Posted by budhA at 1/17/2005 2:29:20 PM
Hi,
Is it possible to access global assembly cache on user's machine from
asp.net web page.
The user will download assembly, wich will be installed in gac.When he opens
the web page I need to add control from that assembly to a page.
I can host win control in web form but it must be on server... more >>
Unable to open web project. A rogue colon ':' is appearing in the
Posted by greg s at 1/17/2005 2:27:05 PM
Hi,
I have done a lot of searching on this and I am yet to find a real answer.
I am receiving the common 'Unable to open web project .... ' error, only
with a slight difference. Visual Studio 2003 seems to be inserting a ':'
character into the URL. So the URL it is trying to locate the pro... more >>
open page and set session var. with one click
Posted by ACaunter at 1/17/2005 2:05:09 PM
Hi all,
I'm having a little problem here.. my code is:
Session("test") = Button46.Text
Button46.Attributes.Add("Onclick", "opennewpage()")
i have this code inside the button click, which means that it needs 2 clicks
to take place. becuase the first click sets it and the... more >>
Button events do not fire *bug*
Posted by Mark Broadbent at 1/17/2005 1:55:18 PM
I initially posted a problem in the aspnet.webcontrols and have now found
why the problem existed. Just thought I'd post this to see if this was
perhaps a known issue.
Scenario: I have a simple webform project that was created on one machine
and transported to my work machine. The form has... more >>
Example of streaming Excel to browser for download
Posted by David Reynolds at 1/17/2005 1:51:05 PM
Does anyone know how I could stream Excel to the browser for download without
saving the file somewhere first. I wasn't sure how I would go about it.... more >>
Showing a Exchange 2000/2003 resource calendar on a webpage
Posted by Rolf Barbakken at 1/17/2005 1:30:59 PM
We have a need for showing the calendar belonging to a resource in Exchange
2000 (soon 2003).
Anyone have a any pointers to information on how this could be done?
Thanks.
--
_________________
Rolf @ Questus ans
... more >>
dynamically adding controls to a datagrid
Posted by MattB at 1/17/2005 1:10:38 PM
Hello. I'm creating a page to edit a person's record (name address, etc)
using a DataGrid. I want the fields that can be edited to be created at
runtime based on a list of columns in web.config. This is working fine,
and I can add a control (TextBox or DropDownList) dynamically for the
user ... more >>
Credit Cards
Posted by Arne at 1/17/2005 1:03:02 PM
What would be a good component for processing credit cards?
(I am not using commerce server.)
Would I need to encrypt the credit card column in the database?... more >>
Sharing style sheet and javascript file
Posted by Aaron Prohaska at 1/17/2005 12:49:47 PM
Does anyone have an idea how to share common include files like a
stylesheet or javascript file across multiple web projects in vs.net?
Regards,
Aaron... more >>
Passing Data From HTTPModule to ASP.NET Page Instance
Posted by Michael S. Jones at 1/17/2005 12:45:09 PM
I am thinking through a framework for logging, authentication, etc. that
requires the system to look up quite a bit of information from a database.
Is there an easy way to pass information that is retrieved in an HTTP Module
to the executing page instance in ASP.NET? For example, I would l... more >>
TextBox inside a DataGrid
Posted by Simon at 1/17/2005 10:56:47 AM
Hi
I have a datagrid with a TemplateColumn where I have put inside a TextBox
without databinding with the data source.
The TextBox is used to type a number for each row of the datagrid.
I have set the AutoPostBack property of TextBox to true and I have raise
TextChanged event to make some ... more >>
Can I use ASP .NET 2.0 Controls with Framework 1.1 ???
Posted by Fabricio Sperandio at 1/17/2005 10:55:36 AM
Hi everyone,
could you help me please? I am looking for an ASP.NET pager to use with
Access datasources. I've found some examples on how to build a pager control
on the net but most of them just work with SQL Server. I know that ASP.NET
2.0 has a Pager Control that works with the AccessData... more >>
Receive server error while downloading file using Response.BinaryW
Posted by Jocelyn Duhaylungsod at 1/17/2005 10:09:05 AM
I have been getting the following server errors sporadically while
downloading excel, csv or xml file.
Internet Explorer cannot download <file name> from <IP address>
"The server returned an invalid or unrecognized response" /
"The connection with the server was reset"
I'm using Response.... more >>
Dynamic Delegates.
Posted by Mark Broadbent at 1/17/2005 9:54:45 AM
I had a requirement to code dynamic delegates, so they attach detach from
the button as needed ... then after time realised that the button is not
retaining it's click handlers. To circumvent this I am saving a enum value
to viewstate to tell the load event what delegates handlers to attach on... more >>
javascript dopostback fails
Posted by DSipp at 1/17/2005 9:51:04 AM
First, I am not a developer. My company works with a partner. This partner
has a web app that we interact with. All of my systems can connect and login
to this site. When we select an issue link, the system does a "doPostBack"
operation. Some of my systems have no issues and work fine. Others ... more >>
Multiple pages for Location tags?
Posted by tshad at 1/17/2005 9:40:40 AM
Can I set up multiple pages in the same Location tag? I thought I saw
somewhere that I could. I tried the following, but it doesn't work.
***************************************************
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.... more >>
Serialization Question
Posted by Ethem Azun at 1/17/2005 9:31:04 AM
Hi,
I have a collection class called Printers that implement the ICollection and
IEnumerable. This class contains a private ArrayList that holds the Printer
objects. The printer class is a serializable class that contains only the
public name attribute.
After serialization, I want to ge... more >>
Optional variables in a function
Posted by et at 1/17/2005 9:18:20 AM
I have the following function that uses an optional parameter, and it sets a
default, as the program says I have to. Yet it doesn't pick up the default
value. Why is this, what am I doing wrong.
Public Function SelectQuery(strTbl as string, arr as ArrayList, Optional
SortCol as string = "... more >>
Getting runtime control ID
Posted by Roger at 1/17/2005 9:14:34 AM
Hi:
I'm trying to place the control ID of an Hyperlink inside a client-side
javascript function. Anyone know how to do this?
Roger
... more >>
Default submit button
Posted by Alex at 1/17/2005 9:10:24 AM
I realize that when you push enter on a form in IE it submits the page
causing a postback that pretty much does nothing. I have a data control
that dynamically builds textboxes based on a listbox setting. I added
the following line to my pale load event to get the search button to
fire when the ... more >>
Localhost not using security
Posted by tshad at 1/17/2005 9:09:11 AM
I have my pages set up with forms Authentication on my XP.
If I use localhost vs 10.0.0.25, it doesn't go to the logon page.
For example:
http://localhost/development/staffing/viewPositions.aspx
does not go to the logon page.
http://10.0.0.25/development/staffing/viewPositions.aspx
... more >>
Itemplate viewstate
Posted by Amine at 1/17/2005 8:57:06 AM
Hello,
I am trying to create textbox control dynamically into a datagrid.
I do not know the number of columns until run time so I thought I could use
template columns dynamically and add them into the datagrid.
This works fine, but on post back all the data in the datagrid disappears.
Any id... more >>
datagrid column question
Posted by Jon at 1/17/2005 8:50:13 AM
I want to add a tooltip to my datagrid rows, but only for one of the
columns. I figured out how to add a tooltip for each row, but I only want a
tooltip for one column of the row. How would I accomplish that? Thanks!
... more >>
ASP.NET/VB Get Windows Login (not ASPNET user)
Posted by SirPoonga at 1/17/2005 8:33:44 AM
I have been trying to figure out how to get the user login name of the
user using an asp.net page. This is for an intranet. I got as far as
doing something like this:
Dim wpMain as WindowsPrincipal
wpMain = new WindowsPrincipal(WindowsIdentity.GetCurrent())
Label1.Text = wpMain.Identity.Nam... more >>
BC30466 again - what am I missing or doing wrong?
Posted by c9groups NO[at]SPAM fastmail.co.uk at 1/17/2005 8:06:06 AM
Hi,
Relative newbie to .Net but experienced with classic ASP. I am trying
to create a simple business object to contain commonly used functions.
This is what I have done:
1 - Created a simple vb file containing:
Imports System.Data.SqlClient
Imports System.Web.HttpUtility
Namespace My... more >>
Close a window then cause some server code to run if user hits can
Posted by louise raisbeck at 1/17/2005 8:01:03 AM
I have this scenario (simplified)
function addnewdata () {
check for partial match already in db for information entered by user
if (partialmatch succeeds) {
open new window aspx page (using javascript) with a datagrid of these
partial match records (by doing a sqlcommand using some query st... more >>
Web site database - Access or SQL Server?
Posted by Selden McCabe at 1/17/2005 7:45:58 AM
I'm developing a web site which might have 200 or so simultaneous users.
The current design has an Access database providing various information.
I've read that Access supports no more than 66 simultaneous users.
However, I'm using ADO.Net, which only connects when it needs some
information, ... more >>
access lock problem
Posted by (rbutch NO[at]SPAM coair.com) at 1/17/2005 7:28:17 AM
hey guys - any insight into why a web application works fine with access, when i'm developing it and using local host.
yet, when deploying it on a remote machine, access has a variety of complaints concering locks
"couldnt lock file" is one.........."could not use";file already in use"
any ideas... more >>
Proper DataBinding
Posted by Luis Esteban Valencia at 1/17/2005 7:19:11 AM
Hi,
the following code displays a search result in a datagrid and is working
without problems. But I think the way I have done is not correct especially
databind(). could anyone help me to rearange it?
Sub grdProfilesResult_Edit(ByVal sender As Object, ByVal e As
DataGridCommandEventArgs)
... more >>
datarepeater + checkbox
Posted by jose at 1/17/2005 6:57:50 AM
when insert a checkbox in a datarepeater throw this error:
Specified cast is not valid.
... more >>
Button the only legal PostBack control?
Posted by gg.20.johnsmith2005 NO[at]SPAM spamgourmet.com at 1/17/2005 5:16:21 AM
As it is now apparently illegal in the UK to produce a website which
is inaccessible to the disabled, which includes the
JavaScript-disabled and images-disabled, am I right in thinking that
the only ASP.NET postback capable control which is now of any use is
the Button control? The LinkButton is... more >>
appsettings in web.config hangs aspnet_wp
Posted by Robert Pfeffer at 1/17/2005 4:33:02 AM
Hi,
I have a rather unusual problem.
I have a very simple ASP.NET application, basically hello world type.
I created it with Visual Studio 2003 and am running it in debug mode.
It runs fine until I put the <appSettings> section in its web.config file
or machine.cfg.
After that the... more >>
DataGrid - adding an extra header...
Posted by saleek at 1/17/2005 2:51:02 AM
I was wondering if there is a way I can add an extra header to a datagrid?
I found this solution on the internet - but it seems quite old and didn't
work for me.
http://www.dotnet247.com/247reference/msgs/13/69744.aspx
It recommends the following:
Private Sub DataGrid1_PreRender(ByVal ... more >>
Place for Initialization in a Web User Control
Posted by Kiran at 1/17/2005 1:45:43 AM
Hi,
Can someone tell where can I initialize my variables in a web user control
Thanks
Kiran
... more >>
User control
Posted by sara at 1/17/2005 12:57:02 AM
Hi to all
i have a apx page with two button
btn1 load webUserContol mycontrol.ascx and it's ok
btn2 get certain property from mycontrol.ascx but when i click btn2
mycontrol.ascx disapper
any idea... more >>
|