all groups > asp.net > january 2006 > threads for thursday january 12
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
caching data that survive an appl restart
Posted by tin at 1/12/2006 11:19:01 PM
hi, i need to cache data in memory for a web appl, which takes up to 1 GB
ram. and i don't want it to load everytime the appl restart (changing other
code files/replacing other dll etc). and i also want to avoid doing any
deserialization/mashalling etc.
basically i just like the speed of ... more >>
Bind TextBox!
Posted by Adam J Knight at 1/12/2006 8:32:20 PM
Hi all,
I am assuming there may be a number of ways to bind a text box to a db field
using c#.
My current approach is: txtPostCode.Text =
rdrInstitution["PostCode"].ToString();
Can anyone let me if there is a generally accepted method for databinding a
textbox using c#.
Cheers,
Ad... more >>
3-Tier Binding Problem ?????????
Posted by Dave Johnson at 1/12/2006 7:44:22 PM
In a 3-Tier application, once upon a while comes the need for binding
objects or usercontrols from other objects, example binding a
usercontrol in the Presentation layer from a Business Layer Object,
My problem:
I have a Dynamically Rendered WebUserControl that it needs some
properties that... more >>
File Download
Posted by Jatin at 1/12/2006 7:41:02 PM
Hey Guys
I have a web application that allows users to download files. But the files
are not hosted on the webserver. The files are stored on external servers and
are referenced by a URL/URI. Since my application restricts the number of
downloads for the file per user, i cannot show the user ... more >>
Excluding a directory from build.
Posted by Norman Crandall at 1/12/2006 7:23:12 PM
I have a directory with about 20,000 other directories and files in it. I
need it in the root directory of the web application in order to write to
it. However, when I need to build the application. It takes forever. The
directory does not have anything in it that needs to be built. How can ... more >>
Seeking examples of screen scraping....
Posted by Jim at 1/12/2006 6:52:25 PM
I want to extract data from several websites that I visit daily. I'd like
to condense the info into a single web page that I can visit (instead of the
multiple websites I have to visit now to get the same info). There are no
open APIs or webservices for these websites that I am aware of.
... more >>
Inserting a default ListItem in DropDownList Control
Posted by Ami Schreiber at 1/12/2006 6:40:02 PM
I want to insert a default null ListItem with the text "choose an item ..."
in my DropDownList control. I have seen similar postings here regarding this
issue but all of them seem to focus around having to populate datasources,
datatables etc. and then bind the DropDownList in the codebehind o... more >>
My boss so cheap!! Our ASP.NET only have 256MB only! How to release request used memory when Page Unload() event raise?
Posted by ABC at 1/12/2006 6:39:46 PM
My boss so cheap!! Our ASP.NET only have 256MB only! How to release request
used memory when Page Unload() event raise? If not release memory and wait
session time out, it will make very very slow.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to handle Master Page events in Content Pages?
Posted by dezza at 1/12/2006 6:33:02 PM
Hi,
I am developing a web application that is a series of pages, rather like a
wizard.
Because all of the pages basically have the same navigation, and require the
navigation buttons in the same part of every screen, I have put the
navigation buttons on the Master Page.
The Content Page... more >>
Error: 'CreateUser' is not a member of 'Membership'
Posted by VB Programmer at 1/12/2006 5:45:53 PM
I am getting this error: error BC30456: 'CreateUser' is not a member of
'Membership'.
What does that mean? Here's my code. It seems correct (no squigglies,
etc...)
' store it in db
Dim result As System.Web.Security.MembershipCreateStatus
Try
... more >>
pie charting
Posted by a NO[at]SPAM b.com at 1/12/2006 5:32:55 PM
anyone got any links/code/ideas on how to do pie charting?... more >>
What is the database "standard" in 2.0?
Posted by VB Programmer at 1/12/2006 4:54:13 PM
If you want to store custom tables in ASP.NET 2.0, such as Products,
Companies, Shopping Carts, etc... where is the standard place to put the
tables? I want to link it to the user/membership tables. BUT, is it "ok" or
the standard practice to go ahead and use the ASPNETDB.mdf to store your ow... more >>
How to specify the password for access database file while using AccessDataSource? <eom>
Posted by nicholas at 1/12/2006 4:46:48 PM
Parse-ing Strings
Posted by Martin Eyles at 1/12/2006 4:06:40 PM
Hi,
I am getting a string passed back from a web form in the format
name1:variable1;name2:variable2...
I would like to split this up into several variable, such that the variable
names are name1, name2 etc. (I actually know what these names are) and the
values of the variables are variab... more >>
FormsAuthentication.SignOut() and User.Identity
Posted by Mark Olbert at 1/12/2006 4:03:05 PM
FormsAuthentication.SignOut() removes the authorization ticket from a user (and the user's roles), but does not change the user's
identity.
I need to be able to either revert the user to the "totally unauthenticated" state, or change his identity to a different state
after SignOut().
Unfortu... more >>
Trouble with Javascript when converting 2003 webproject to a 2005 project using Master Pages
Posted by Friso Wiskerke at 1/12/2006 3:44:30 PM
Hi All,
We've got an VS.2003 ASPNET (VB) webproject which we would like to convert
to VS.2005 so that we can make use of the Master Page feature. Converting
the initial pages to 2005 is not such a problem (some minor errors) but we
run into trouble when we're trying to insert a converted pa... more >>
Website config tool asp.net 2.0
Posted by fabian at 1/12/2006 3:43:28 PM
Hello, I am probably in the wrong forum but any direction would be
appreciated. I recently installed the distributable for asp.net 2.0. I
notice that with 2.0 the wizards (1.0, 1.1) are no longer in the
control panel but instead accessed through a website configuration
tool. I know that it can b... more >>
Validation being applied to user controls (2005)
Posted by Mantorok at 1/12/2006 3:31:43 PM
Hi
I have a user control on a form and it contains a CustomerValidator which is
used only to validate controls contained within that user control.
However, when I submit on the page itself it validates that user control's
validator.
Is there any way to avoid this?
Thanks
Kev
... more >>
Issue with ASP.NET 2.0 Global asax
Posted by Alexandre at 1/12/2006 3:25:45 PM
For some odd reason I have notices that every time I refreshed a page
in my browser ( same session ) ASP.NET called : void
Application_Start(object sender, EventArgs e)
I am absolutly confused since nothing in my code resets the
application.
the session variables seem to be untoutched.
doe... more >>
Question about string
Posted by Diffident at 1/12/2006 2:49:03 PM
Dear Bruce,
Can you please explain me how compiler would be able to optimize "+" for the
below code?
The reason why I did not want to use string concatenation was that I wanted
it to be a single string object in an effort to reduce memory consumption.
But if I use "+" does not that consu... more >>
Timeout expired
Posted by Chakravarti Mukesh at 1/12/2006 2:44:14 PM
Hi all,
I have put some queries on the page that takes too much time to execute.
Thus at the time of peak load it gives the following error.
Server Error in '/ge' Application.
--------------------------------------------------------------------------------
Timeout expired. The timeout perio... more >>
XMLHTTP question
Posted by Dave H at 1/12/2006 2:19:08 PM
First..
What object (on the client) should I be using these days?
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
or
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
or maybe something different?
I have some browsers that can't do this correctly. I'm doing:
--client---... more >>
Help: ASP.Net broken (tried usual suspects...)
Posted by Mike at 1/12/2006 2:18:46 PM
Of course, I have a delivery today...
All of a sudden ASP.Net is no longer operating properly:
- Serving of non-ASP.Net pages works fine
- Trying to use ASP.Net (acessing page from browser, or new/load VS 2003 web
project) results in
- "normal-sounding" pre-load of .Net and my DLL. (Ye... more >>
DataGrid Columns Spannig More Than One Column
Posted by Chuck Foster at 1/12/2006 2:11:11 PM
I have a datagrid and I want 3 columns to share the same column header. I
have ColID, ColName, and 3 Hyperlink columns that need to have
AdminFunctions as their header. Anyone know how to accomplish that?
Thanks in advance for any help!
Thanks,
Chuck Foster
... more >>
vs2005: domain trust relationship problem
Posted by musosdev at 1/12/2006 2:10:02 PM
Hi guys
I've got the following error on a project which is running locally on a
vs2005 machine (built in webserver), trying to connect to my win2k3 server
active directory.
the error is...
System.SystemException: The trust relationship between this workstation and
the primary domain f... more >>
Issues with multiple website development on Windows 2000 pro box
Posted by Steve Mauldin at 1/12/2006 1:54:46 PM
I have three websites that were developed by using the same code in .net.
They are all located under wwwroot on my desktop running windows 2000
pro.because Windows 2000 pro only supports a single Default Web Site I have
to switch the IIS path to test the code on my own box.
Once I boot up, I c... more >>
Visual Web Developer 2005 and .Net 1.0 framework?
Posted by Marcus at 1/12/2006 1:34:30 PM
Hello,
I work on an asp.net 1.0 site that has been up and running for the past
year or so. There are no immediate plans to upgrade to 1.1 or 2.0 any
time soon. Are there any light weight IDEs that I could provide to
someone who is not familar with .Net so they can do basic edits of text
on so... more >>
Inheritance of controls & pages
Posted by Ryan at 1/12/2006 1:31:03 PM
I'm developing a fairly large application in ASP.NET 2.0. In this
applicaiton, I have a combination of .aspx and .ascx pages and controls, each
of which has code-behind files which do my application logic to generate the
interface.
I would like to create a "master" class which would contain... more >>
ASP.NET 2.0 menu: where to set alternate text for "^ up one level
Posted by dpomt at 1/12/2006 1:06:03 PM
When the ASP.NET menu is rendered on downlevel browers, the text "^ up one
level" is displayed.
Any ideas how I can change that text? I did not find a property for the menu
control where I can change it.
Dieter... more >>
Question on string
Posted by Diffident at 1/12/2006 12:34:02 PM
Hello All,
I have a string of around 150 characters.
string test = "asjhdkashdkjahsdjkhaskjdhaskjdhasjdhasd........."; //(upto
150 characters)
I want to split the above string into multiple lines in IDE while declaring
it so that it is more readable. How can I do that?
I do not want... more >>
using the HtmlInputFile
Posted by nes at 1/12/2006 12:22:12 PM
Hi all,
For uploading files i am using the HtmlInputFile. Now I want to do
things with it. First I want to give the button a specific style an
second when a postback happens I don't want the selected file t
disappear from the HtmlInputFile.
Now on the web I found the next thing:
<html>
... more >>
asp.net cookie timeout
Posted by krithika.sridhar NO[at]SPAM gmail.com at 1/12/2006 12:13:39 PM
I want my asp.net application to create a non persisitent cookie that
will timeout after 20 minutes.
I want the cookie to expire when the bowser is closed AND timeout if
the user has been inactive (sliding expiration)
How can I accomplish this?
If i set the expiration time on the cookie, it... more >>
Debug not debuging?
Posted by Carlos Albert at 1/12/2006 12:10:52 PM
Hello group,
I have a weird problem with VS2003 & VS2005 using both ASP.NET 1.1 and 2.0,
that is that 90% of the times I hit debug, doesn't debug anything, just runs
as I was releasing. Sometimes it works, one or two pages, or even the same
page after a postback, just stop debuging.
Didn... more >>
File System Watcher Changed/Renamed event
Posted by Stephen at 1/12/2006 12:10:31 PM
Hi all,
I am stuck with a problem and wanted some guidance. I am using
FileSystemWatcher to monitor a folder "C:\Temp1" and updating "C\Temp2" say
somthing happens in Temp1, I want to update Temp2
Say I create "Text.txt" in Temp1, in the created event I check for whether
"Text.txt" is present... more >>
Need Step by Step guide for setting up IIS 6 for ASP
Posted by BookerW at 1/12/2006 12:02:03 PM
Can someone point me in the right direction.... more >>
WebControlLibrary vs ClassLibrary
Posted by Poobalam at 1/12/2006 11:59:16 AM
Hi,
I just got VS.NET 2005. It has a new template called
WebControlLibrary. I normally use ClassLibrary to build my business
logic and use that dll into ASP.NET project. However I'm assuming I
can use WebControlLibrary to build the business logic dll and use it
with ASP.NET. What is the m... more >>
Problems with ASP.NET 2.0 menu with Safari
Posted by dpomt at 1/12/2006 11:01:01 AM
Hello,
I am using the ASP.NET menu control and I have two issues when the page
containing the menu is displayed in Safari on Mac OS X:
1) The menu is not dynamic. Why (it seems that Safari is treated as
downlevel browser)?
2) I run into the "DynamicMenuStyle" bug (see
http://weblogs.asp... more >>
disabling html validation does not seem to stck
Posted by Nalaka at 1/12/2006 10:29:55 AM
Hi,
I suddenly started getting a lot of errors from html validation (some CSS)
so I followed the following instructions to disable it.
If you'd rather not have these types of HTML validation errors show up in
your error-list, you can disable this functionality by selecting the
Tools->Op... more >>
Application Performance Question
Posted by Darren at 1/12/2006 10:27:52 AM
This is a theoretical question, meaning I don't have any specific code
to show.
On a large ASP.NET 1.1 application what is the best way to populate a
forms data fields if you expect a large load? A large load meaning
over 200 users hitting the site 24/7. The goal is to not overload the
web ... more >>
hash.web is denied
Posted by c676228 at 1/12/2006 10:20:04 AM
Hi,
I have met this problem for many times, I don't how to fix it, the only
thing I can do is to restart the computer. Here is the case:
Sometimes when I change the behide class code, and then rebuild, then when I
open the .aspx page, the following error message comes up.
Access to the path... more >>
Problem Retrieving Values from CheckboxList nested inside Datalist Control
Posted by Mike at 1/12/2006 10:15:27 AM
I have a Datalist control on my page that I have binded to a table of
available categories. In the Item Template I have a CheckboxList control
bound to the products available in each Category. I need to pull out of the
page which products the user has selected.
I have bound the products t... more >>
Send Email with MAPI
Posted by madfisher at 1/12/2006 9:56:03 AM
Hi,
I am trying to send an email with MAP via C# and ASP.NET. This is what
I'm doing.
MapiSession1 = new MSMAPI.MAPISessionClass();
MapiSession1.UserName = "OutlookProfileName";
MapiSession1.Password = "pass";
MapiSession1.LogonUI = false;
MapiSession1.SignOn();
MapiSession1.NewSession =... more >>
Secure Sockets Layer (SSL) Version...
Posted by John Smith at 1/12/2006 9:15:04 AM
How to find generlly "Secure Sockets Layer (SSL)" version for a given page?
Not through program.
John
... more >>
Change Textbox format when Validation fails in GridView
Posted by Walter at 1/12/2006 8:31:47 AM
I have a GridView using Template columns. In my EditItemTemplate I am using
CompareValidators to check data types. When validation fails, I would like to
change the border of the textbox in question.
I thought I could loop through the ValidatorCollection during the
RowUpdating event but co... more >>
Referencing other web projects within Visual Studio 2005
Posted by MattBell at 1/12/2006 8:31:36 AM
We have built a core component set of pages, master pages and other controls
that we want to re-use in a number of different web applications. Is there
anyway to make a reference to a web project and re-use these components in
other projects without adding the existing items to the new projec... more >>
Error - System.Data.OleDb.OleDbException: Could not use ''; file already in use. - please help
Posted by Learner at 1/12/2006 8:24:37 AM
Hi there,
I am trying to access the access database sitting at
OleDbConnection oleConn = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Crystal
Reports\\Samples\\Database\\xtreme.mdb");
and create a crystal report u... more >>
Help on configuration file ???
Posted by serge calderara at 1/12/2006 7:51:09 AM
Dear all,
I am building an ASP 1.1 application based on a n-Tier architecture.
I have my datalayer class that need to read the connection string of my sql
server database from a configuration file as it can be located anywhere.
Do I have to add a web.config file within my class library proj... more >>
Q: go though a dropwdownlis items
Posted by JIM.H. at 1/12/2006 6:57:05 AM
Hello
I have TextBox1 and TextBox2 and Button1 and Button2. I also have
DropDownList1.
Now, when I click Button1 I want to concatenate “TextBox1 - TextBox2†and
add this item to DropDownList1.
If I have clicked Button2 I can to go though DropDownList1 and see what
items are there.
... more >>
Converting Image to ImageButton
Posted by Varangian at 1/12/2006 6:38:39 AM
Hi there experts,
Is there a way to convert a System.Drawing.Image to an ImageButton.
Maybe using ChangeType I don't know!
Thank you
... more >>
helper function gives case error when called during datagrid binding
Posted by bhavin30 NO[at]SPAM gmail.com at 1/12/2006 6:37:22 AM
Hi Guys,
I have a quick question. I think code will explain it the best.
This is what I am doing for one of the columns during databinding on my
grid:
<asp:TemplateColumn>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Font-Size="11px" Font-Names="Verdana"
HorizontalAlig... more >>
querystring pros and cons, help?
Posted by CharlesA at 1/12/2006 6:36:02 AM
Hi folks,
I'm having a discussion with my colleague about how to go about passing data
from one aspx page to another
example
On the main page I have a whole list of relationship managers with a
hyperlink that says 'customers' in each row for each manager and the
hyperlink contains a paramet... more >>
Sending Email with SMTP Virtual Server
Posted by madfisher at 1/12/2006 6:35:53 AM
Hi,
I am trying to send email via a ASP .NET page using the local SMTP
virtual server. My mail items go in the Queue but do not get sent out.
Can this be done this way, or do I need a true email server to send
email?
Any help is appreciated.
Marcus de Leon
... more >>
Internet Explorer progress bar finishes prematurely
Posted by DC at 1/12/2006 6:23:14 AM
Hi,
in our ASP 1.1. webproject some pages take 10 Seconds to load but the
IE progress bar does indicate a completly loaded page immediatly. This
looks to the end-user as if the click was ignored.
Any idea on what may cause this behaviour would be great, TIA
DC
... more >>
Trouble with sitemap and roles in ASP2
Posted by chris.rust NO[at]SPAM microfocus.com at 1/12/2006 5:33:24 AM
Has anyone else had any trouble setting up a sitemap view to be
filtered by roles?
We've put a cust role provider in place, and we can verify that it's
only being called once for each connection, and is returning the
correct roles, but...
When we specify a role on the top sitemapnode that r... more >>
time zone in wep application.
Posted by Marlon at 1/12/2006 5:20:04 AM
What is the best way to deal time zone difference in Wep application.
Is there a best pattern and practice for this?... more >>
Run 'cmd.exe' from aspx page
Posted by anandjoshi77 NO[at]SPAM gmail.com at 1/12/2006 4:12:39 AM
Hi All,
I have a Asp.Net web application (code behind C#).
On one page I need to run "cmd.exe" from that page.
I can see that the "cmd.exe" is present in the task manager, but the
console window is not opening.
As I can not process further unless that window is opened, I'm stuck.
I'm trying to... more >>
moving to visual studio 2005
Posted by NH at 1/12/2006 3:57:02 AM
Hi,
I have a VS 2003 asp.net 1.1 project hosted on a windows 2003 server. I want
to move it to asp.net 2.0 and VS 2005.
Do I need to install VS 2005 on the server first and then on my development
PC and then upgrade the app from my development PC?
Thanks... more >>
Copy hyperlink to clipboard
Posted by Philbox at 1/12/2006 2:40:03 AM
Hi,
I work in asp.net and i want to copy an hyperlink to the clipboard.
If any one can help me?
Thanks
... more >>
mystery!
Posted by Lloyd Dupont at 1/12/2006 2:14:13 AM
I have a Control like that
=3D=3D=3D
public class BlogMonthList : Control, IPostBackEventHandler
{
protected override void Render(HtmlTextWriter writer)
{
writer.WriteLine(" <a href=3D\"{0}\">{1}</a><br/>",
Page.ClientScript.GetPostBackClientHyperlink(this, =
"add... more >>
CheckListBox MouseOver
Posted by Vidds at 1/12/2006 2:09:02 AM
Hi ALL,
Can any one give me a solution to handle mouse over event of each of the
Check Box Control in a CheckListBox Control.
Thanks in advance
Regards
Vidds... more >>
Get client name
Posted by libero familymac news at 1/12/2006 12:21:10 AM
Hy!
sorry for my bad english...
i'm developping web forms in c# and i have to take the client machine name
I try with server variables ( request.servervariables ) and with
request.hostname() hostaddress()
dosn't work because ( i think ) in lan we don't have a dns server then
methods ... more >>
|