all groups > asp.net > march 2006 > threads for tuesday march 28
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
Load Balancing
Posted by RahulBose at 3/28/2006 11:03:16 PM
I am trying to implement Load Balancing but facing some problems:
A Web farm usually consists of 2 or more computers, orchestrated by
some form of load balancing. Consider my scenario:
1. I have an Intranet site say www.intranet.com
2. I arrive at a load balancing machine
3. This machine re... more >>
ASP.NET 2.0 Include Files
Posted by Kevin at 3/28/2006 10:52:38 PM
Am a newbie to ASP.NET and have jumped right into 2.0.
I have a static menu (using the menu control) for just 3 pages on a 20 page
website.
I would like to put all the code in one place, as it will make maintenance
very easy.
In the good old ASP days I could use <#include ...>
What is th... more >>
how to copy session
Posted by joe at 3/28/2006 9:53:02 PM
how to copy session
e.g
dim m_ds as dataset = Session("d")
but when i change the m_ds, it also change the session... more >>
Why have the difference between web.config and app.config
Posted by ad at 3/28/2006 9:48:56 PM
When I add a connection string by wizard in a WebApp , the wizard add the
connection string to web.config like
<add name="MyDataBase" connectionString="Data Source=.\SQLEXPRESS;Initial
Catalog=xxxx;.....
But if I add the same connection string by wizard in a class library
project, the ... more >>
want to create custom control using graphics
Posted by rushikesh.joshi NO[at]SPAM gmail.com at 3/28/2006 9:24:02 PM
Hi All,
I want to create a webcontrol which will generate a bar (bar chart). I
have done some graphics code in my ASPX page and it's working fine, but
how do i create a Custom Control or User Control for same (custom
control is prefarable).
Below is my code of ASPX page which is working fin... more >>
image field and sqldatasource
Posted by yefei at 3/28/2006 8:58:43 PM
I need to display images in a SQL database using a gridview
I search some examples, what they did is very simple
add an image field, then set the folowing properties
<asp:imagefield dataimageurlfield="LastName"
dataimageurlformatstring="~\Images\{0}.jpg"
alte... more >>
File upload - receive side only
Posted by Pavils Jurjans at 3/28/2006 8:54:53 PM
Hello,
I have the following setup:
The page that contains the form with file upolad HTML control resides on
another server that doesn't have ASP.NET available. It may well be just
static HTML.
I need to program the "receiving side" of the upload. Preferrably, I'd be
happy with soultio... more >>
DBConcurrencyException not firing
Posted by niju at 3/28/2006 8:19:16 PM
Hi all,
I am using following code to update database; I am running two
instances of the application and updating the same record. However,
DBConcurrencyException doesn't fire. Is there something I am missing
in the code?
DataRow[] _err = null;
DataSet dsGetChanges = _nodeDataSet.GetChanges(... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
HOWTO: Select records from aspnet_Users in a SqlDataSource Control
Posted by Dan Sikorsky at 3/28/2006 7:24:39 PM
I've tried to set the SELECT command in a SqlDataSource control for a
FormView to read the aspnet_Users table but get an exception saying I don't
have permission. How can I resolve this?
--
Dan Sikorsky, MSCS BSCE BAB
... more >>
Data Source in ASP.NET 2.0 Verses System.Forms
Posted by Hoffmania at 3/28/2006 6:25:03 PM
I must be missing somthing ....
The new form designer in VS 2005 allows for drag and drop of compnents
from the data sources tab. With this functionality one can almost
'magicly' create standard windows form CRUD apps from Object or Web
Service Binding just by dranging and droping the 'Details... more >>
aspx website templates
Posted by Rene at 3/28/2006 5:42:57 PM
Anybody knows if there is a place where I can download website templates
done using Visual Studio 2005?
I ma not looking for anything fancy just your general layout such as
navigation bar header space and a place to write content.
The reason for this is because I would like to have a websi... more >>
sorting and paging in gridview
Posted by yefei at 3/28/2006 5:41:11 PM
i have a grid view, with two hyperlink fields declared decratively, and
few bound fields added dynamically in my code
i have enabled the sorting and paging for the gridview, and also
declared sort expression programmatically.
but when i rendered the grid view and click the column header, the
gi... more >>
the easiest question for any one of you!
Posted by eyekoola at 3/28/2006 4:40:20 PM
can anybody tell me what do i have to do to start working with ASP.NET
.... .NET framework 2.0 ... some developing tools...? which is best and
why...? (i curently work with ASP through dreamweaver)
Thanks!... more >>
Make sitemap dependent on master page
Posted by mike at 3/28/2006 4:30:42 PM
I'm using ASP.NET 2.0 and IIS 6
I've got a business with 2 sites requiring separate intranet info.
Currently, I have 2 separate intranet sites set up in IIS. This leads
to having to double up on shared pages which I'd rather not have. Both
sites use a master page and a Menu control bound to a ... more >>
Date Formats of Date in Database
Posted by Martin Eyles at 3/28/2006 4:03:23 PM
Hi,
I am trying to extract a date from a database, and display it in
yyyy-mm-dd hh:mm:ss format on an ASP.NET webpage. I have been using the CStr
function to turn this into text, but this doesn't give me enough control to
get the right date format. Can anyone suggest a solution?
Thanks... more >>
what is the difference between code inside a <script> tag and code in the code-behind file?
Posted by keithb at 3/28/2006 4:01:59 PM
What is the difference between code that exists inside the <html><script
runat="server" > tag and code that exists in a code-behind file?
Thanks,
Keith
... more >>
DropDownList Selecting item
Posted by Derek Vincent at 3/28/2006 3:40:02 PM
Using Visual Studio.net 2003 to create an aspx web form I am having a
problem selecting an item from DropDownListBox with id= ListBoxStudies.
I can see the items from the bound database table but when I click on an item
the selected item stays at itemindex 0. What must I do to have the
itemi... more >>
ASP 1.1: DataGrid - Showing/Not Showing Buttons
Posted by Ray Booysen at 3/28/2006 3:33:22 PM
Hi all
I have a collection of Invoices that I bind to a datagrid. Some of
these invoices have been processed and you can tell this via a property
in the invoice class called DateProcessed. If an invoice has been
processed I do not want a button to display for this invoice but all
other ... more >>
Web part Chromes (Borders and Headers)
Posted by Victor Daicich at 3/28/2006 3:13:27 PM
Hi there guys!
I'm trying to customize the webparts borders and I'm heading some trouble.
I need to make a frame for the webpart (header-footer and border) with some
images , so I'd need to create like a table arround the webpart. The best
would be to customize the chrome, but I don't thin... more >>
How to detect in a javascript function that the page is about to postback
Posted by tarun.kataria NO[at]SPAM gmail.com at 3/28/2006 3:10:01 PM
Hi all,
In my ASP.NET application, I am trying to detect in a javascript
function, which is triggered by the event onbeforeunload, that if the
window is getting closed beacuse its a post back or if the user has
clicked the X button of the browser. Is there a way in javascript to
know that a ... more >>
use same DetailsView for multiple purposes?
Posted by Dabbler at 3/28/2006 2:55:02 PM
In some cases I would like to allow a user to select a row from a GridView to
update in another page using a DetailsView form (passing the key in
QueryString).
In other cases I would like to use the same DetailsView form to allow
general edit/insert/delete functions with Paging=true.
I ... more >>
AJAX and ASP.NET?
Posted by Brian Henry at 3/28/2006 2:54:32 PM
Are there any good tutorials or examples of how to use AJAX with ASP.NET?
thanks!
... more >>
Unit testing tools?
Posted by Diffident at 3/28/2006 2:53:02 PM
Hello All,
Can anyone please suggest me a good unit testing tool. I have seen NUnit but
not sure on how I can use it to test my methods which involve session
variables, viewstate variables, textbox values.
I understand that NUnit is more suitable for OO methods which take set of
paramete... more >>
Cannot get past Object Reference Error
Posted by danielle.m.manning NO[at]SPAM gmail.com at 3/28/2006 2:37:34 PM
I have a question about a problem I am having with attempting to port
some old ASP code to ASP.NET.
We have a dll out there which we downloaded which creates GUIDs for
session management. In ASP, the function looks like this:
Function getGuid()
Dim sessionDUID
... more >>
Cannot get past Object Reference Error
Posted by danielle.m.manning NO[at]SPAM gmail.com at 3/28/2006 2:37:18 PM
I have a question about a problem I am having with attempting to port
some old ASP code to ASP.NET.
We have a dll out there which we downloaded which creates GUIDs for
session management. In ASP, the function looks like this:
Function getGuid()
Dim sessionDUID
... more >>
HELP: Convert 1 ASP page to ASP.NET
Posted by Dhruba Bandopadhyay at 3/28/2006 2:37:11 PM
I need help converting a ASP page to ASP.NET. I have a ASP page that is in
the form of:
<% Sub Start() Call DrawPage1() Call DrawPage2() End Sub
Sub DrawPage1() %>
<!-- Full HTML code for a independent page 1 -->
<% End Sub
Sub DrawPage2() %>
<!-- Full HTML code for a independent... more >>
How to declaratively set page property in aspx file?
Posted by walter at 3/28/2006 2:33:02 PM
Hi there, in our e-commerce site, we have a page base class that implements
several new properties , as you can imagine, the property will be set to
different value on each page which inherits from the base. Of cause you can
easily access these properties thru code-behind or <script runat=ser... more >>
NEWB stuck (ASP.NET 2)
Posted by Scotchy at 3/28/2006 2:27:02 PM
Hi all,
Env : ASP.NET 2 (& VB.NET)
How in heck can I rebind a DropDownlist that is contained in an Insert
Template in
a Formview control.
I want to have the dropdown list requery the datasource each time the user
has selected from it, as the underlying SQL selects a list of rows that h... more >>
Setting up a new tier in a 3-tier system?
Posted by Steve Kershaw at 3/28/2006 2:08:04 PM
I've never done this before. I need to set up a business layer tier in
a 3-tier system. How is this done? Is there any resources I can access
to help me?
Thanks so much for your help.
Steve
... more >>
What layer will I validate a CSV file in?
Posted by KMZ_state at 3/28/2006 2:08:01 PM
We have a debate here. We are receiving a CSV file specified by the user and
need to validate the contents, writing the "good" records to the database and
displaying the "bad" records to the user. One developer wants to loop
through the CSV file right on the web layer (ASPX) and then only pa... more >>
Concatenating two databinding expressions - how??
Posted by sydney.luu NO[at]SPAM gmail.com at 3/28/2006 12:46:34 PM
Hi,
I want to assign two data values in the CommandArgument property of the
LinkButton object.
This works
CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Arg1")%>'
but this does not work
CommandArgument='<%#DataBinder.Eval(Container.DataItem,
"Arg1")%>,<%#DataBinder.Eval(Contai... more >>
CLick Command not working
Posted by Shahid Juma at 3/28/2006 12:40:39 PM
Hello,
This is really an odd and weird problem that I am having.
I have a basic page with drop downs and using the fieldvalidator and
validatorsummary to ensure that the user selects an item from the list.
I have a button which has an event (click) that does some operations.
The event nev... more >>
Browser Differences
Posted by SStory at 3/28/2006 12:19:20 PM
I make a page that looks good in IE/Avant, but the font size is really big
in FireFox and the textboxes don't stay at their specified widths.
Is there a way to get these 3 main browsers to display consistently by still
using the web controls? (this is VS 2003)ASP.NET question.
TIA,
Sha... more >>
Please someone me with this - Dll error
Posted by momo at 3/28/2006 12:17:22 PM
Hello Guys,
I have a bit of a problem, I created a Dll called SecureQueryStringDll.dll
and I had the dll put bin folder of my application first and it did not work
so I then put it in the bin folder of c:\inetpub\wwwroot and it still does
not work. Here is the error I get from it:
temporary... more >>
Temporary location for large POSTs
Posted by mikehixson NO[at]SPAM gmail.com at 3/28/2006 11:52:31 AM
Hi,
As I understand ASP.NET 2.0 caches large POSTs to disk when the POST is
greater than 256 bytes by default. The default location for the cached
data on my machine is following:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\<appName>\<tempFolder>\<tempFolder>\uploa... more >>
Newbie to C#
Posted by Bishop at 3/28/2006 11:44:55 AM
I just started a new asp.net job and all the current source is C#. I'm
experenced with vb.net and have been able to convert C# code when needed.
The problem I'm having is that it looks like the previous developer kept all
the source code on the production web server and made changes when need... more >>
How to make the short date format without time showing
Posted by Henry Lee at 3/28/2006 11:43:44 AM
hi , all
In ASP2.0 , the date object always showing like "3/27/2006 12:00:00 AM"
How to remove "12:00:00 AM" and only make it shows "3/27/2006" ?
Thanks very much
Henry
... more >>
Cache problem?
Posted by Kevin at 3/28/2006 11:33:30 AM
Hi,
I've uploaded my website to the hosting, and every time that join to the
website the images are downloaded again.
Is problem of machine.config or top level web.config ??
How can i solve this?
Thanks!! =)
... more >>
Dynamic casting
Posted by Matt Weaver at 3/28/2006 11:28:00 AM
I'm trying to setup a sub that would assign the properties of a
webcontrol based on data in a table. I've setup a routine which looks
like this:
Private Sub SetObjectProperty(ByRef obj As Object, _
ByValPropertyName As String, _
ByVal PropertyValue As String)
... more >>
Session variable is lost between ASP & ASP.NET pages
Posted by glenn at 3/28/2006 11:26:01 AM
Hi folks,
I must be missing something here. I have an ASP page that I create a
Session variable in as follows.
Session ("name")="Joe"
In an ASP.NET page in the same project and the same session, I call the
Session variable as follows:
Dim str As String
str = Session("name")
When... more >>
Help with Dll
Posted by momo at 3/28/2006 11:00:05 AM
Hello Guys,
I have a bit of a problem, I created a Dll called SecureQueryStringDll.dll
and I had the dll put bin folder of my application first and it did not work
so I then put it in the bin folder of c:\inetpub\wwwroot and it still does
not work. Here is the error I get from it:
tempor... more >>
How to use DataRelation to perform in-memory joins?
Posted by Matthi at 3/28/2006 10:18:29 AM
How can I perform in-memory sql joins on dataset's, and have the result
in (perhaps) a DataTable?
Thanks
... more >>
Convert VS 2005 to VS 2003
Posted by Stephen at 3/28/2006 9:24:12 AM
Hi,
has anyone converted code from VS 2005 to VS 2003?
Thanks,
Stephen
... more >>
GAC'ing an assembly
Posted by Diffident at 3/28/2006 9:18:02 AM
Hello All,
I am trying to add an assembly to GAC but having difficult time figuring out
the concept of GAC. This is what I am trying to do....
1. Installed NUnit framework whose DLL ("nunit.framework.dll") I need to add
to the GAC so that I can use it from multiple applications.
2. Used ... more >>
Best practice for using connection throughout page?
Posted by jeremystein NO[at]SPAM gmail.com at 3/28/2006 9:09:17 AM
When I drop a SqlConnection on the web form designer, it's created in
InitializeComponent. I'd like to use this connection in my Page_Load
method, but I don't see anywhere that it's opened. Do I need to open
it myself? If so, should I close it also, or will I be interfering
with databound con... more >>
Stupid Validator Question
Posted by seanmayhew NO[at]SPAM gmail.com at 3/28/2006 8:38:22 AM
I want the little "*" error message that displays next to a text box of
my validation to display when the page loads NOT on the button click so
that the user knows what fields are required BEFORE the try to save the
form.....Im sure this is obvious but I could not find the answer any
help greatl... more >>
Text Value in a TextBox inside Datagrid
Posted by ismaelf NO[at]SPAM gmail.com at 3/28/2006 8:28:11 AM
i have a textbox in a template column in a datagrid, it displays the
initial value of the row, but when i change it remains with the
original value (it doesnt get the new value..)
i fill the CartTable programmatically with rows from a database binded
datagrid..
i cant figure out what is wroooon... more >>
Session Not Started .Net 2.0
Posted by Neil at 3/28/2006 7:51:02 AM
Hi,
I've recently upgraded a .Net 1.1 solution to .Net 2.0, everything seems to
work ok unless I do a re-compile. Whenever I do a re-compile the first time I
access the web page the session doesn't appear to be created, i.e. the
session start event isnt' fired in the global.ascx.cs. My app ... more >>
Can you evaluate a databinding expression?
Posted by sydney.luu NO[at]SPAM gmail.com at 3/28/2006 7:48:01 AM
Hello,
See part of the code shown below. I would like to know, without
hooking to an event
called ContentRepeater_ItemDataBound, is it possible to evaluate this
databinding expression
and based on the condition, create a LinkButton immediately follows
this data and before
this <TD> ends? ... more >>
Invalid postback or callback argument.
Posted by Ray Stevens at 3/28/2006 7:41:46 AM
Anyone see this error that appears to have cropped up with the RTM version
of .NET:
BASE EXCEPTION:: System.ArgumentException: Invalid postback or callback
argument. Event validation is enabled using <pages
enableEventValidation="true"/> in configuration or <%@ Page
EnableEventValidation="t... more >>
Regex help
Posted by Chris at 3/28/2006 7:27:05 AM
I'm new at using Regex, and I'm using VB.NET.
I can't seem to get this to work. I'm replacing matched items in a text file.
The format is v (upper or lower) and then 4-5 integers.
I'm trying (many variations of):
'Replace version
newText = Regex.Replace(contents, "(\bv)([0-9]{4,5})", VersionN... more >>
1->n relation display question
Posted by Guy at 3/28/2006 7:27:04 AM
I'm a little bit confused as what is the bes way to achieve the following:
I have 2 database tables, table 1 product en table 2 image. For every
product record there can be 0-1 or more image records.
My question:
What is the best way to display the product record with the respective image
r... more >>
web.config login problem
Posted by Andrew at 3/28/2006 7:27:02 AM
Hi,
I have a default.aspx which allows the user to choose between module Admin
and module B. When the user clicks either one, he will be redirected to a
FormsAuthentication login page. The problem I have is that currently, users
of one module are able to access the other since I have only 1... more >>
Invalid path or file name
Posted by MikeD at 3/28/2006 6:51:02 AM
Hi,
I'm accessing a FoxPro database via ole db using Reporting Services Data
Extensions and ths works fine on my local report server. However, when I
deploy the report to the live report server I'm getting the error 'Invalid
path or file name'
The FoxPro database is on a separate server ... more >>
Deleting Problem
Posted by clickon at 3/28/2006 6:29:01 AM
I have set up a GridView control bound to an SQLDataSource control.
Depending on which option a user selects in a DropDownList Each datasource is
a sethe select command retrieves a list of key/value pairs from a spefied
table. I am using a select query in the form of
SELECT PrimaryKey AS... more >>
Atlas 2 way interaction
Posted by amit NO[at]SPAM c4ppy.net at 3/28/2006 5:58:29 AM
Hi.
I want to implement a right click context menu using Atlas for a web
app.
The page will list some usernames.
Right clicking on a username needs to send the user name to a
webservice, which then returns a list of available options for that
user to be displayed in the right click menu.... more >>
error when dataset returns a null value.
Posted by Andrew at 3/28/2006 2:56:02 AM
hi,
I got an error when the dataset returns a null value.
eg.
string a;
a = (string)ds.Tables[0].Rows[0][2];
How do I handle this error ? Thanks.
regards,
andrew
... more >>
Help on simple databinding ???
Posted by serge calderara at 3/28/2006 12:55:02 AM
Dear all,
I have 2 tables from which I create a simple data relation:
Table1 has a field name ID which is retrive from a database
Table2 has fields ID and Name which is retrived from database
I have build a datarelation from Table 1 to Table 2 on field ID, so far so
good
Base on that my d... more >>
VS crash after debug
Posted by Trapulo at 3/28/2006 12:00:00 AM
Very often my VS2005 pro crashes after a debug.
I run ASP.NET debug, and all works well. Then I stop it, and all it's also
ok. Then, when I try to edit some code, it crashes and I need to kill it,
restart, reload project, etc.
it seems that the problem is with vb compiler integration, but I'... more >>
Record count required when using GridView and ObjectDataSource
Posted by J055 at 3/28/2006 12:00:00 AM
Hi
I'm trying to get an instance of UserLists to persist after it's been used
by the GridView. I understand from the documentation that The
OnObjectCreated event allows access to the instance. I have a TotalUsers
property which is initiated when the GetUsers method is called, however it
i... more >>
How to access the property of master page
Posted by RedHair at 3/28/2006 12:00:00 AM
I have a base page class A which inherits System.Web.UI.Page class
then a aspx page B inherits class A and have a master page C.
There is a property D (a string variable) in the master page C.
How can I access the property D from the base page class A?
PS: I know how to use reflection to acc... more >>
What methods can export excel file from stored procedure with parameters which input from web form?
Posted by ABC at 3/28/2006 12:00:00 AM
What methods can export excel file from stored procedure with parameters
which input from web form?
... more >>
How to convert VB.Net code to ASP.Net ?
Posted by Luqman at 3/28/2006 12:00:00 AM
How to convert VB.Net code to ASP.Net ? Is it possible or is there any tool
for that ?
Best Regards,
Luqman
... more >>
Setting hidden fields from event handlers for control.
Posted by Harshal P at 3/28/2006 12:00:00 AM
Hello,
I am settings hidden field value from the DayRender event hadler of the
asp.net calendar control, when i try to read the value of hidden field from
javascript, the value is empty string. If i do the same (setting hidden
field value) from Page_Load(), then the same is reflected in t... more >>
|