all groups > asp.net > may 2005 > threads for tuesday may 3
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
web control to many pages
Posted by Just D. at 5/3/2005 10:12:44 PM
Does anybody know an official way to setup one control on many pages, for
example menu? Since we're not having a visual inheritance yet it's not very
easy. One of the possible ways as I see is to copy the html code of this
control manually to all aspx pages and then use some call probably to a... more >>
Cannot implicitly convert type 'object' to 'System.Xml.XmlDocument' Error
Posted by Patrick Olurotimi Ige at 5/3/2005 9:41:19 PM
compiling the code below i get the error:-
Cannot implicitly convert type 'object'to 'System.Xml.XmlDocument'
I'm getting the error on this line:-
myXml.Document = getXML("http://www.crn.com.au/rss.aspx?SCID=9");
Any ideas?
private void Page_Load(object sender, System.EventArgs e... more >>
Best Practice
Posted by Wayne Wengert at 5/3/2005 9:38:28 PM
I am creating an aspx process to read rows from a table, display specific
fields, wait for the administrator (the only user of this process) to decide
what action to take based on the data and then delete the row and move on to
the next one. Each row in that table represents a request by a user f... more >>
sending a file to the client
Posted by Buddy Ackerman at 5/3/2005 9:32:57 PM
I'm sending file to the client (see sample code below) but when I send a large file the user gets a document contains no
data message.
response.contenttype = "application/x-unknown"
myheader = "attachment;filename=order123.zip"
Response.AddHeader("Content-Disposition", myh... more >>
viewstate on controls that are not enabled ?
Posted by Adrian Parker at 5/3/2005 8:27:30 PM
Trying to write a page with several controls on it, some of which, depending
on the process login, are enabled and some disabled. When I click on a save
button to cause a postback event to fire, the controls that are not enabled
don't have their data returned, so in the UpdateClick event, the... more >>
Sessions re-set to logon page
Posted by Paul W at 5/3/2005 8:25:57 PM
Hi - I have a relatively simple asp.net app. If the browser session is left
idle for a while (10+ minutes) when I next do something in the browser that
should move me to another page (either in the same window or in a pop-up)
the page that appears is my logon page!
This happens even when I ... more >>
newbie question (Failed to update database)
Posted by mauricioaglr at 5/3/2005 6:24:04 PM
Please Help,
I am using Visual Web Developer 2005 Express and downloaded the personal
website template. I published it and get the following error:
Failed to update database "..\ASPNETDB.MDF" because the database is read-only.
[SqlException (0x80131904): Failed to update database
"C:\IN... more >>
How to display "No Rss feeds new availabe" when there are no FEEDS
Posted by Patrick Olurotimi Ige at 5/3/2005 6:10:24 PM
I'm using the Function below to get XML feeds
and calling the XML doc in
But if they are no availabe rss feeds i would like to display
"Sorry No Headlines/News at the moment"
Any ideas
page_load like:-
myXml.Document = getXML("http://www.crn.com.au/rss.aspx?SCID=9")
-----------... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
aspx compiled ?
Posted by James_Ptg at 5/3/2005 5:48:13 PM
Hello people,
i begin in aspx (i was Dev. in ASP3 before) and i read (but i dont remember
where) that we can compil aspx page.. and put this compilated page on the
server to run it !
great like that this is protect the inside code ? no ?
so how do that ? (links ?)
thank a lot..
cya
... more >>
web.config problem with compier
Posted by sck10 at 5/3/2005 5:10:55 PM
Hello,
I just installed Visual Web Developer Beta 2 and got the following error
from an application that was created with Beta 1. Any help would be
appreciated:
<compilation defaultLanguage="vb" debug="true">
<compilers>
<compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider,... more >>
class and rutine source
Posted by hansiman at 5/3/2005 5:03:51 PM
I have a event handler takes Class:sub/function as a param for easy
id:
LogError(ex, "Class:Sub")
My problem is that I have to hard code Class:Sub on every call.
Is it possible to have the code send the "current" class and current
sub generically. Something like:
LogError(ex this.class... more >>
URGENT!!!: ASPX Page not served through external access
Posted by robmanger at 5/3/2005 4:37:15 PM
Hi All,
I have a problem (obviously).
I have an C# .NET Web Application installed on a server. This application
goes of and compiles a list of search results and displays them to the user.
The problem is that on SOME searches, I get various errors when looking at
the website via an exte... more >>
Http modules and child applications
Posted by John Dalberg at 5/3/2005 4:30:15 PM
It seems I can't define http modules in the web.config files of child
applications. They need to be in the web.config of the parent app. Is there
any way around this? Because this means I have to consolidate all the http
modules for all the child apps and have them fire up whether they are
n... more >>
Are timers safe for asp.net apps?
Posted by jensen bredal at 5/3/2005 4:25:50 PM
Hello,
I need a timer functionality in my asp.net app. I have dropped the
timer component available on the toolbox of the IDE on global.asax.cx
designer page view and dubble clicked to include the code and event for it .
My first attempt to run the code resulted in aspnet_wp.exe hanging w... more >>
DropDownList selected values
Posted by Dylan Mines at 5/3/2005 4:24:35 PM
Hi
I'm really confused about the behaviour of a drop down list that is
populated from a database table.
The problem that i was getting was the value (selected from my dropdown
list) was always being added to the database as '0' no matter what item was
selected.
To try and debug i wrote th... more >>
Urgent: Custom Control
Posted by James T. at 5/3/2005 4:00:13 PM
Hello!
I am developing a custom server control that inherits from Hyperlink web
control.
I defined 2 new properties - ImageWidth and ImageHeight. My qustion is, how
I can override Render method so if Hyperling ImageUrl is set then add
ImageWitdh and ImageHeight attributes to image.
Th... more >>
Modifying Active Directory with ASP.Net
Posted by Derek Martin at 5/3/2005 3:59:48 PM
This seems to be a common problem in ASP.Net:
Try
Dim mystuff As DirectoryEntry = Session("myDirectoryEntry")
mystuff.Properties("extensionAttribute1")(0) = "yes"
mystuff.CommitChanges()
Catch ex As Exception
label1.Text = "this happens quite a... more >>
How do you set the ALIGNMENT on a textbox and or label?????
Posted by SD at 5/3/2005 3:15:56 PM
Hi,
I can't find how the heck to set the alignment on my textbox to center,
right or left.
Help!
SD
... more >>
Encrypting a query string in URL
Posted by Andy G at 5/3/2005 3:02:38 PM
If users forget there passwords I want to send a link to them through email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want to
a send a url ... more >>
access database not updating
Posted by Gert Albertse at 5/3/2005 2:56:21 PM
When I try to update my access database, nothing get updated. Here is my
code:
<%@ Page Language="VB" Debug="true" %>
<script runat="server">
' Insert page code here
'
Function UpdateCustomer(ByVal ProjectID As String, ByVal ProjectName
As String) As Integer
... more >>
Chat application with ASP.NET
Posted by Fernando Lopes at 5/3/2005 2:53:34 PM
Hi there.
Someone knows how can i do a chat using asp.net?
I want to do an application like that, including multicast and broadcast
messages.
Any help will be appreciate.
Tks.
Fernando Lopes
... more >>
Getting data out of a datasource
Posted by regaliel at 5/3/2005 2:42:09 PM
I am using a datalist control (dlist_myfavorites) and this control is bound
to a sqldatareader source. Datalist is basicly populated by the following sp.
CREATE PROCEDURE [select_favorites_bymguid]
(
@mguid as nvarchar(50) -- member guid id
)
AS
SELECT
cat.acname 'category',
a... more >>
Writing a META tag?
Posted by Rob Meade at 5/3/2005 2:41:58 PM
Hi all,
I have the need to write a meta tag to the page BEFORE it loads...
My page does 3 things based on whats passed through in the query string:
1. Receive a file id and check its valid, display "Retrieving file...please
wait.", redirect to same page with altered querystring
2. Based ... more >>
Page_Load Runs Twice?
Posted by Mike Trebilcock at 5/3/2005 2:22:53 PM
I have setup a number of trace outputs to try and track down an error in a
process within my webpage. In doing so I have noticed that the pageload sub
is running twice, once after the other. Is this a feature or have I done
something?
Mike
... more >>
ASP.NET does strange things
Posted by Gary at 5/3/2005 2:22:03 PM
I have an application that has been working just fine for a couple of years.
It queries a SQL database and returns some formatted data back to the client.
I have a new client, who has a larger database than any of our previous
customers. For example, the query to build the datatable now... more >>
Running daily process on hosted web site
Posted by Steve Richter at 5/3/2005 2:17:20 PM
I am using godaddy.com to host my web sites. I would like my site to
send me an email every day informing me of how many visitors there were
to the site in the last 24 hours.
Which means I need to run a process on the godaddy server that wakes up
every 24 hours and runs the email code.
Is ... more >>
A simple question
Posted by Rudy at 5/3/2005 2:03:03 PM
Hi All!
How do you control what's in the blue title bar in IE. Like for example
"Discussions in dotnet.framework.aspnet - Microsoft Internet Explorer" on
this page. Where do you controll the text for that on a web page?
Thanks!
Rudy... more >>
e.Item.BackColor /highlight rows
Posted by LU at 5/3/2005 1:52:01 PM
A)I build a datagrid based on a calendar date selection.
B)When user clicks a button column on the datagrid I want to highlight this
row. I use the code below to highlight the row.
***** CODE TO HIGHLIGHT ROW
Sub Datagrid_ItemCommand(ByVal s As Object, ByVal e As
DataGridCommandEventArgs)... more >>
Cannot access a disposed object named "System.Net.TlsStream".
Posted by Asaf at 5/3/2005 1:48:32 PM
Hi,
I will continue to post this problem until Microsoft representative will
give the solution to this problem. After all we are paying a lot of money
for Microsoft products and what we get is that a simple task can’t be done
with Microsoft .NET Framework 1.1 after SP1.
The probl... more >>
Checkbox and Java Script Function
Posted by André_Nobre at 5/3/2005 1:47:05 PM
Hi all...
How can I call a java script function when user clicks on my
asp:checkbox control? It's obvious that server control events doesn't
work, because it runs on server.. So, how can i assign a javascript
function to run where there is an onClick event on asp:checkbox?
Thanks,
André... more >>
Active Directory
Posted by Vinay at 5/3/2005 1:36:03 PM
How to create a Custom ObjectClass using System.DirectoryServices using
..NET ??
Also how to create Custom Attributes??
Thanks Vinay
... more >>
Storing application specific information
Posted by kanones at 5/3/2005 1:32:02 PM
I have some data that is been retrieved from a call to sql server stored
procedure that I want to store for a period of time in a web farm
architecture. I want to minimize the calls to sql server as much as
possible. Storing it in application cache will result the calls to be made
if the u... more >>
count controls on a page
Posted by androidsun NO[at]SPAM yahoo.com at 5/3/2005 1:25:22 PM
I have many image button controls on a page. I am trying to find an
easy way to loop through each of the image buttons and add client sided
script to its Attributes collection. I am thinking to use
foreach(ImageButton btnThis in this)
btnThis.Attributes("onclick","bla bla bla");
but it ... more >>
How can I cause a postback in code?
Posted by dee at 5/3/2005 12:50:29 PM
Hi
How can I cause a postback in code, e.g., without clicking on a button?
Thanks.
Dee
... more >>
Disable client browser's Back/Forward button?
Posted by Terry Olsen at 5/3/2005 12:21:23 PM
Is there any way to disable the client browser "Back" and "Forward"
buttons while on my site? Or how would I go about knowing that a page
hit is caused by a back/forward navigation?
I have discovered that my web app is definately NOT Back/Forward safe.
It's really messing with my SQL data big... more >>
Invisibe control problem
Posted by dee at 5/3/2005 12:18:21 PM
Hi
I'm trying to send a value calcutated in a WebForm to a target WebForm.
Staying away form QueryString() I make a hidden asp:TextBox and put
the value in there a ala old asp.
The target WebForm only can retrieve this value when the TextBox control
is Visible.
But this method worked in asp.... more >>
Uploading Files Memory Issue in ASP.NET
Posted by Mahesh at 5/3/2005 12:09:05 PM
Whenever you upload files via HTTP Post, the file is stored in the
memory of the aspnet_wp.exe process, and never deallocates completely
(if you are lucky a few MB gets released). One of the config settings
for .NET processes, allows them to utilize 60% of physical memory on
the server, at which... more >>
Exit Button
Posted by Andre at 5/3/2005 11:50:32 AM
Hi,
I have an application that display users invoice.
On every page i have an "Exit button". Is there a way, if the user click
on "Exit" (to logoff from the system), and after on Back in is browser to
prevent the page to display the informations. So if the user click Exit, no
one... more >>
SQL Session State, Integrated Security, and Impersonation
Posted by Brian at 5/3/2005 11:27:27 AM
Is there any update as to whether or not impersonation can be used with
SQL session state when using integrated security? Are there any work
arounds? For example giving the impersonation account access to the
state database?
I've only found some old information.
Any comments appreciated... more >>
WithEvents Question
Posted by Shapper at 5/3/2005 11:23:45 AM
Hello,
I have an aspx.vb page with this code:
Public Class WebForm1
Inherits System.Web.UI.Page
Protected WithEvents Menu1 As MenuControl.Web.UI.Menu
...
If I have my code in the aspx page itself what the code line "Protected
WithEvents Menu1 As MenuControl.Web.UI.Menu" should lo... more >>
Need help to apply style to drop down list
Posted by Hardy Wang at 5/3/2005 11:19:32 AM
Hi all,
I have a drop down list with some items, and one of the item contains
very long text. I want to limit the width of the drop down itself, but when
I click down arrow to pull down the content, I want to make <option> item
wide enough to show all characters.
<html>
<head>
<style... more >>
Creating an IIS Application
Posted by drjones NO[at]SPAM cls.gr at 5/3/2005 11:13:59 AM
Hi.
I have two questions:
1. How can I create an IIS Web Application with asp or with asp.net? I
have found some scripts that explain how to create an IIS Virtual
Directory, but this is not what I want to do. I already have a directory
and I want to assign an IIS Web Application... more >>
aspx.vb file question
Posted by Shapper at 5/3/2005 11:05:59 AM
Hello,
I have an aspx page which in its script has:
Sub Page_Load(...)
...
End Sub
And 2 functions:
A DataSet Function:
Function dsContent(ByVal page As String) As System.Data.DataSet
...
Return dataSet
End Function
And a function created by me:
... more >>
site Design tool that could manipulate aspx files
Posted by Olivier Matrot at 5/3/2005 10:34:22 AM
Hello,
I'm looking for a tool that is able to manipulate aspx source files
(specifically <asp:datagrid> ) out of Visual Studio. The goal is to give
aspx file to a web designer in order for him to acomodate our corporate web
site design. This tool must know the HMTL rendering of standard ser... more >>
How do I force a postback in the codebehind?
Posted by aaa at 5/3/2005 10:32:58 AM
I am checking if a certain object is null and if it is I need to go back to
ther server and get this object can I force a postback in the code behind
and if so how?
... more >>
Nullable DateTime variables
Posted by Child at 5/3/2005 10:32:08 AM
I have a class object with a couple of datetime variables that are not
required (for example the closing date for an event). I have been doing
some research on usenet history to find that this is confusing to manage and
that in different versions of ASP .Net this is handled differently.
Wh... more >>
Can't install Visual Web Developer 2005 Express Beta 2
Posted by sck10 at 5/3/2005 10:31:17 AM
Hello,
I just un-installed Visual Web Developer 2005 Express Edition Beta - English
and then re-booted my machine. when I tried to install Beta 2, I got the
message that "Setup has detected a previous version".
Any help with this would be appreciated.
--
Thanks in advance,
sck10
... more >>
ASP.NET performance counters not updating
Posted by James at 5/3/2005 10:30:38 AM
Hi
Has anybody had any experience of ASP.Net performance counters not updating.
In the performance monitor application when I try to add the groups ASP.NET
and ASP.NET Applications the counters all show 0. In addition, ASP.NET
Applications does not show any of the ASP.NET instances that a... more >>
a step by step page
Posted by Steve Richter at 5/3/2005 10:24:38 AM
I want my web page to display its contents in a step by step process.
step1: enter a zip code, click the "next step" button
in the NextStep button click event:
- retrieve info that pertains to the zip code
- make a "step2" label visible on the page
- fill the "step2" label with the z... more >>
MCAD/MCSD certificate testing: whats an acceptable exam score rate
Posted by .Net Sports at 5/3/2005 10:15:30 AM
I'd like to take tests for MCAD and MCSD certificates soon, I'm
wondering out of a hypothetical 75 question test for each section (229,
305, etc), what is the acceptable percentage rate that I have to answer
questions correctly to pass the exam.
... more >>
Client Id generation problems
Posted by jw56578 NO[at]SPAM gmail.com at 5/3/2005 10:14:09 AM
I have a reapeater where each repeater item contains several table
rows. The table rows, in turn, contain several child objects. when
everthing is rendered, the client ids are constructed as such
repeatername_repeateritemname_tablerowname
repeatername_repeateritemname_rowchildobjectname
w... more >>
Reading all the rows of a datagrid that is using paging...
Posted by Bob Morvay at 5/3/2005 10:10:57 AM
This should be simple but I am stuck. I am trying to read all the rows of
my datagrid across all the pages. I can read all the rows on the page that
I am on but I can't seem to figure out how to iterate through all the pages.
Can anyone lend some insight. Here is the basic code that I am us... more >>
How to get the total number of rows in a Dataset?
Posted by david at 5/3/2005 8:59:03 AM
For example, I have a dataset, ds.
I would like to the total number of rows in the ds, i.e., the length of
ds.Tables(0).
Thanks
David... more >>
Datagrid right align
Posted by Arne at 5/3/2005 8:01:08 AM
How do I right align a column in a datagrid?... more >>
determine CheckBox's checkedChange status dynamically?
Posted by david at 5/3/2005 7:58:59 AM
I have an array of CheckBoxes which dynamically display in a web form.
How to detect and determine which CheckBox' check status changed? For
example,
Array(i, j) from checked to Unchecked and Array(k,j) from unchecked to
checked.
Thank you.
David... more >>
Dll's = where?
Posted by reez at 5/3/2005 7:41:57 AM
Hi All
Ok two questions for ya...
1. I am assuming that websites cannot be compiled into dll's...why
would i want to do that? Basically i have a master file that i want to
share with other apps on my corporate intranet for consistent look and
feel. I was pointed in the right direction i.e. ... more >>
Timer
Posted by Vinay at 5/3/2005 7:20:13 AM
How to calculate the Interval for Timer Control ??
... more >>
How to write aspx documentation
Posted by Joe at 5/3/2005 7:19:09 AM
Dear all,
I want to learn something about writing documentation before and after
writing aspx, but i have no idea how to write, any idea how to learn... more >>
anchor href as relative path
Posted by Steve Richter at 5/3/2005 7:15:25 AM
can the href= of and anchor be specified as a relative path?
<a href="../stepbystep.aspx">Show the process step by step</a>
I get a "resource cannot be found" error.
( admittedly, I have not checked into this very closely. any brief
answer would help! )
-Steve
... more >>
Method that gets current location in code?
Posted by Nirbho at 5/3/2005 7:00:14 AM
Hi,
I'm newish to C# .Net. I'm doing some error handling in my ASP.net pages.
When handling the error in the catch block, I want to pass through the
namespace of where the error occured.. something like
"application.page.method" - I could hardcode this for every ASP.net page, but
I'm su... more >>
Is VS -2005 doesn't respects ASP ?
Posted by ××œ×™×¨× at 5/3/2005 6:27:18 AM
I have a Web appliction which it mixed with ASPX AND ASP page.
On visual studio 2003 it runs OK.
On visual studio 2005, when it try to execute ASP page,It displays the error:
<---
This type of page is not served.
Description: The type of page you have requested is not served because it
... more >>
Error in Paging
Posted by asad at 5/3/2005 4:27:05 AM
Hello i'm using ASP.NET Datagrid paging but i found and error if i forward to
next page
following errror occur pls tell me to get rid of this error,Thanks.
" Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.... more >>
Microsoft.XMLHTTP ASP.NET
Posted by Tim::.. at 5/3/2005 2:40:03 AM
Can someone please help me with this annoying little problem...
I use to use Microsoft.XMLHTTP in asp to pull html from other websites and
inbed it into my website but for some reason I can't seem to find out how to
do it in ASP.NET???
I did find this example in C# but am not 100% sure it ... more >>
how to "sql query" cached datatable?
Posted by jensen bredal at 5/3/2005 12:18:41 AM
Hello,
I have cahced a datatable object in my application cache.
I know i can use RowFiltwer from the derived dataview.
But what i need is a full blown select statement.
How can this be done on either datatable or dataview?
Many thanks in advance
JB
... more >>
|