all groups > asp.net > may 2006 > threads for thursday may 11
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 projects share code files
Posted by Waldemar Grzywiñski at 5/11/2006 11:59:22 PM
Is possible (like desktop projects 'link file') share code files between web
projects ?
Need I create shared assembly (dll)?
VS 2003.
... more >>
super-newbie question
Posted by PJ6 at 5/11/2006 11:23:24 PM
I'm new to ASP.Net 2005. I installed VS.NET 2005 with everything possible,
have IIS installed... so how do I create a new ASP.Net 2005 project? No
where in the new project dialogue can I see an option to create one.
Paul
... more >>
newbie: gridview problem, please help me!
Posted by Jeff at 5/11/2006 10:17:20 PM
OS: XP pro
IDE VS .NET 2005
ASP.NET 2.0
When running my ASP.NET 2.0 code i get this error message:
"The DataSourceID of 'GridView' must be the ID of a control of type
IDataSource. A control with ID 'SqlDataSource1' could not be found"
I've put a gridview on the asp.net page and as a data ... more >>
how to pass a variable from one file to another?
Posted by Chris at 5/11/2006 9:40:15 PM
Hi,
The first file contains (test1.aspx):
<%@ Page Language="VB" %>
<script runat="server">
Public myvr As String
</script>
<%myvr = "ok"%>
The second file (test2.aspx):
<%@ Page Language="VB" %>
<% Response.Write(myvr)%>
When i run test2.aspx, i get:
"Name 'myvr' is not d... more >>
Regular Expression Validator - Server side validation is not working
Posted by CK at 5/11/2006 9:13:19 PM
Hello All,
I have a page with a text box. It has a required field validator, and a
regualur expression validator tied to it. A valid email is required. When
clientside is enabled it works great. When it's disabled the server side
validation works for the required field, but the server side... more >>
how to pass a variable from test.aspx.vb to test.aspx?
Posted by Chris at 5/11/2006 9:08:23 PM
Hi,
I use code-behind, but how can i pass a variable from test.aspx.vb to
test.aspx?
Test.aspx.vb contains this:
Partial Class test
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
dim lol as string
lol="C... more >>
Sitemap Files
Posted by Chris at 5/11/2006 9:06:48 PM
If I wanted to use two sitemap files with two sitemapdatasource objects how
can I point the different data sources at different sitemap files?
... more >>
typed datasets - dataset
Posted by John at 5/11/2006 8:43:04 PM
In 05, with how the new datasets works, is a datalayer still needed or can i
have my business layer just call the dataset directly and return the data
back to the GUI or do you still need to create a business layer and a
datalayer for all your stored procedures and connection string to the db/... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
problem with HttpWebRequest GetResponse
Posted by bg at 5/11/2006 6:54:06 PM
Hi all.
I 'm trying to automate some of my workflow, by doing some programmatic
"POST"s to an internal webserver via HttpWebRequest. The Code is your usual
straight forward type of thing.
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "POST";
req.ContentType="a... more >>
Session state is not available in this context - webresource.axd ?
Posted by kingski at 5/11/2006 6:51:12 PM
I have a web page (Asp.net 2.0, vs2005) in which there is this construction:
<img src="/pages/showimage.aspx">
In global.asax I access sessions in Application_PreRequestHandlerExecute
event.
When I try to access the page through browser this error is appear:
-----------------------... more >>
Session state can only be used when enableSessionState is set to true
Posted by KevinGravelle NO[at]SPAM gmail.com at 5/11/2006 6:47:45 PM
What is wrong with this picture?
I'm trying to set my shopping cart text on my home page using the
following function that is executed when the class is constructed:
protected string fnGetShoppingCartText()
{
if (Session["Cart"] != null)
{
ArrayList cart... more >>
web menu
Posted by Big D at 5/11/2006 6:27:31 PM
Does anyone know of a good starter menu that has vertical/horzontial
controls. I am looking for something that I do not have to pay for and that
highly customizable.
I like the look and feel of the way MSDN or microsoft sites look.
If you have any links to download please let me know.
... more >>
siteMapNode Question
Posted by Leo at 5/11/2006 6:02:45 PM
I am trying to create a siteMapNode:
<siteMapNode title="Finance & Admin"
However, it doesn't like the "&" in the string. Do I have to use some
escape sequence to make it work?
... more >>
window.showModalDialog, databinding and IsPostBack
Posted by Zak Lomakus at 5/11/2006 5:45:47 PM
[VS 2005/ASP.NET 2.0 question]
Hi,
From my main page (default.aspx) I am calling another .aspx (e.g.
otherpage.aspx) page through Javascript using window.showModalDialog.
otherpage.aspx has a databoud control (webchart), bound to a SQLDataSource.
The first time otherpage.aspx is opene... more >>
How to upload file to SQL Server for Bulk Insert?
Posted by ABC at 5/11/2006 4:15:09 PM
Our environment has two servers, one is web and another is SQL Server. I
can write upload file to IIS. But, I cannot call SQL Server's BULK Insert
statement.
Is there any idea to handle this case?
... more >>
SQL Server 2K5 and VS.NET: Order of Installation
Posted by Jeremy S. at 5/11/2006 3:52:03 PM
I'm about to install VS.NET 2005 and SQL Server 2005 on a new/clean
development machine (XP Pro/SP2 etc).
Is the order of installation important (i.e., which product should I install
first)?
Thanks!
... more >>
Help: Add/Remove/Clear HttpModule in subfolder never work!
Posted by walter at 5/11/2006 2:33:01 PM
Hi , I thought it's simple ,but end up come here for help(as lots of other
times). --I have several HttpModule added in the root thru web.config, but I
want to remove some and add some new ones in one of sub folder. It is not
fancy virtual folder, but simple sub folder. After create a web.conf... more >>
how to use asynchronous calls in asmx
Posted by SenthilVel at 5/11/2006 2:11:15 PM
Hi
Can any one let me know how i can perform a Asychronous calll in a web
service ?
or using a thread in Asmx a better solution than the async call ?
pls send me any link to example, where i can get this answer..
Thanks
Senthil
... more >>
problems updating a date type
Posted by Adam Sandler at 5/11/2006 1:00:04 PM
Hello,
I'm using VWD 2005 and have a grid on the page. In that grid, there's
a column that is of date/time type. Nulls are allowed in this column.
I'm having problems when trying to edit this date column.
I've converted the column to a template and changed the
EditItemTemplate from a text... more >>
Couple of queries...
Posted by Mantorok at 5/11/2006 12:29:12 PM
Hi
1. My connection-timeout in IIS5 is set to 900 seconds, my session timeout
for my asp.net app is 90 minutes - which takes precedence?
2. When an error occurs in my asp.net app I log it to the event-log, however
it never seems to get added on the server - it does work locally when I'm
... more >>
Where did the Build Comment Web Pages too go?
Posted by Velvet at 5/11/2006 12:28:06 PM
In VS 2003 there was a menu item 'Tools' -- > 'Build Comment Web Pages'. Is
that function in VS 2005? I haven't been able to find it, nor is it in
Help.
Thanks!
Velvet
... more >>
Mixing client-side and server-side processing: How?
Posted by Richard at 5/11/2006 11:58:44 AM
Hi All,
I just picked up an ASP.NET "Mortgage Calculator" example with
code-behind from Prosise's 2002 "Programming Microsoft.NET". Works
great. User enters a few values, clicks button, and monthy payment is
displayed.
When I design apps like this, I like to clear out result fields like
... more >>
Problem with IsPostBack
Posted by AspPro at 5/11/2006 11:20:26 AM
What does IsPostBack mean?
... more >>
Return an rss xml feed without using system.io
Posted by jason NO[at]SPAM dive-master.org at 5/11/2006 11:16:39 AM
Hi all,
my asp.net hoster does not provide me with access to
the system.io library, so using a stringwriter as the output
stream to write the XML needed for my RSS feed is
looking very difficult.
Can anyone suggest another way of dynamically creating
and then serving my XML RSS feed withou... more >>
Dynamically set selected item of RadioButtonList
Posted by Groove at 5/11/2006 10:49:32 AM
I've searched numerous threads and posts and can't seem to find a fitting
answer. Hopefully this is simple - it seems very simple.
I'm trying to set a SelectedValue of a RadioButtonList to a value from a db
record upon page load. Yet, when the page loads, the RBL has nothing
selected.
... more >>
using ASP pages along side ASP.Net in VS2005
Posted by Terry Jolly at 5/11/2006 10:44:22 AM
Here's the problem/question.
The goal: run asp pages with apsx pages in the same solution with VS2005 IDE
I've loaded my asp pages into a new VS2005. However the asp pages would not
run. So, I did the following.
Added to web.config:
<httpHandlers>
<add verb="GET, HEAD, POST, DEBUG... more >>
Session management
Posted by Arturo Buonanni at 5/11/2006 10:10:23 AM
Hello,
I'm coding a web application using ASP.NET 2.0 with forms
authentication.
I don't want the same user to log-in twice.
I need to detect whether the user is trying to log-in while another
session for that user is still active.
Is there a way I can prevent this?
Thanks.... more >>
TreeView Control and Custom SiteMapProvider
Posted by dhurwitz at 5/11/2006 9:59:03 AM
Hi,
I have written a custom SiteMapProvider to retrieve site map data from a SQL
Server database table. It works fine when used as the data source for a Menu
control, so I am confident that all the nodes are being correctly populated.
However, when used with a TreeView control, only the f... more >>
Expire all pages when logged out
Posted by momo at 5/11/2006 9:58:29 AM
Hi Guys!
I have a site that allows users to log in and out based and uses session to
access every page. My problem is when a user logout and click the back
button in the browser it allows them to go back and view the content that
they were in before but can not make any new request to the serv... more >>
crystal XI problem
Posted by PJ6 at 5/11/2006 9:58:19 AM
How do I pass paramater values to a report in a Crystal Report viewer?
Paul
... more >>
RangeFieldValidator in ASP.NET 1.1
Posted by Hardy Wang at 5/11/2006 9:52:10 AM
Hi, I have a RangeFieldValidator in my Web Form to validate input of
monetary. I set current thread's culture to "FR-CA", and I tried following
ways
valCost.MaximumValue = (99999.99).ToString("N2");
I get run time error "The value '99 999,99' of the MaximumValue property of
'valCost' canno... more >>
test 2
Posted by Terry Holland at 5/11/2006 9:17:06 AM
nospam test from oe
... more >>
Test
Posted by Terry Holland at 5/11/2006 9:15:19 AM
nospam from outlook express
... more >>
loginview in gridview not rebinding
Posted by Phil at 5/11/2006 8:57:02 AM
I have gridview with a templatefield in which is a loginview. The loginview
displays a delete linkbutton for a specified group only. when a record is
delete the loginview displays the contents of the rolegroup, but the Eval
function in the loginview no longer works (it still works in the
i... more >>
Web Deployment Project
Posted by Chris at 5/11/2006 8:52:17 AM
Does anyone know how to use this tool and get similar results to using the
"Publish" option from the <Build> dropdown?
I want the benefits of Pre-Compilation, but when I use the deployment
project, the results that are sent to the /Release directory, contain a
bunch of unnecessary .resx files... more >>
Singletons in ASP.NET 2.0
Posted by Omega at 5/11/2006 8:47:06 AM
I'm interested in seeing a bit of discussion about using singletons in
ASP.NET 2.0.
Currently I've designed a singleton that gets a reference to it's
single instance stored inside the ASP.NET application object. This is
done to persist and make available live information across multiple
sess... more >>
dataset - table question
Posted by CSharpguy at 5/11/2006 8:46:02 AM
I have a dataset that has 8 tables in it, (table, table1, table2, table3,
....) how can i have each table populate a seperate datagrid on my one web
form without having to put 8 seperate datagrids on my page?
I want 1 grid but have each table populate a grid on my form.
... more >>
Setting values of properties in user controls from the parent form
Posted by Mark Rae at 5/11/2006 8:42:37 AM
Hi,
Just a general quickie on setting properties of user controls from the
parent form.
Let's say I have a user control called note.ascx which displays a datagrid.
That datagrid is populated according to an integer variable in the ViewState
of the parent form.
The code behind (still i... more >>
ASPNET account is missing
Posted by Billy Angers at 5/11/2006 8:25:38 AM
My server is running under Windows SBS 2003. I've deleted some directories
that was containing Outlook Web Access files, it was done few months ago by
mistake. Now I want to use OWA for some distant users. So, I tried the
procedure on the MS website:
http://support.microsoft.com/?scid=kb%3Be... more >>
Move/Copy ASPNET project
Posted by Chaz at 5/11/2006 7:36:03 AM
I need to move several ASP.Net projects/solutions from one development
environment to another. IOW I have to move everything to a new box and be
able to work on it there.
I'm not finding much info on how to best do that.
I'm concerned about the solution files (.sln, etc) being in a separa... more >>
allowDefinition="MachineToApplication"
Posted by Philip at 5/11/2006 7:22:02 AM
Can you clarify use of the Section allowDefinition="machineToApplication". I
have copied the definition from the MSDN documentation further down below.
In this definition it says..."....This excludes Web.config files in virtual
directories or a physical subdirectory in the application..."
... more >>
System.IO.Ports.SerialPort
Posted by Tamir.D at 5/11/2006 7:20:01 AM
is there a way to embed the System.IO.Ports.SerialPort object in my html . so
that the client can access to a device connected to his SerialCOM ?
i tried to wrap the System.IO.Ports.SerialPort in my own component and then
put it in <object> but it doesnt seem to work, any suggestions?... more >>
ASP.NET for non-programmers
Posted by WebBuilder451 at 5/11/2006 6:39:02 AM
I really hope i get an answer to this one!
At the roll-out of 2.0 ,and before, a lot of emphisis was placed on 2.0
being very friendly to the non-programmer. It was said over and over that
CRUD opperations could be performed with little or no vb programming meaning
that a lot of the work nece... more >>
problem with multithreading and Web services method invocation
Posted by abhra.haldar NO[at]SPAM gmail.com at 5/11/2006 6:03:43 AM
Hi:
I have an ASP.NET page which makes a synchronous Web services method
call. At the same time, however, I wanted it to load another page as an
iFrame (i've also tried as a javascript popup window) - this second
page is responsible for polling a DB and continually updating its text
box displ... more >>
.NET Framework becomes corrupt (ASP.NET)
Posted by m00nm0nkey at 5/11/2006 5:31:02 AM
Hello
We have two webservers running an ASP.NET web application on V1.1.4322
However, over the last few weeks, the websites appear to stop working
without reason.
The pages displayed show errors relating to DLLs in the .NET framework
directories.
Running "aspnet_regiis.exe –i" on t... more >>
Error Log
Posted by No_Spam at 5/11/2006 5:17:36 AM
I'm trying to put together a function in a VB.NET Class to handle
errors for my ASP.NET application. I want the function to be able to
write to a log file located on the web server. I tried using the
MapPath method but it is not working. It looks like I'm missing some
references in the class.
W... more >>
Switching to Design Mode in VS2005
Posted by Niall at 5/11/2006 3:55:02 AM
I have converted a vs 2003 solution to 2005 and when I try to switch to
design mode for a user control I get:
Cannot switch views: Validation (Internet Explorer 6): Element 'Style'
cannot be nested within element 'div'
Here is the html:
<div style="z-index: 101; left: 1px; width: 541p... more >>
Date/Time problems
Posted by musosdev at 5/11/2006 3:50:02 AM
Hi guys
I'm having a problem with DateTime.Now.ToShortDateString().
It works fine, but I've got 2 servers (development and production), and
while the production server works perfectly and returns a UK formatted short
date (dd/mm/yyyy), my development server returns the US format (mm/dd/yyy... more >>
daymonthyear question
Posted by joe at 5/11/2006 1:35:02 AM
how to use javascript to get
current year
current month
last day of the current month... more >>
Domain user account running ASP.NET 1.1
Posted by Jason Camp at 5/11/2006 1:33:02 AM
I used the following article to run ASP.NET 1.1 under a domain user identity:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT01.asp
I was able to sucessfully copy a file out to a network share using a ASP.NET
application, but when I updated the password ... more >>
test
Posted by Terry Holland at 5/11/2006 1:13:03 AM
nospam alias from newsreader... more >>
|