all groups > asp.net > october 2006 > threads for tuesday october 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
Simple Validation Problem Using Regex
Posted by Phillip Vong at 10/3/2006 11:19:45 PM
I'm using VS2005 programming in VB.Net.
I have a simple aspx page. In the Insert mode, I have a textbox with a
simple RegularExpressionValidator set to not accept more than 1000
characters. I'm using the expression ".{1,1000}" w/o the quotes and I
thought this would work. The DB table fo... more >>
Auto Refresh ASPX Page
Posted by jack-e at 10/3/2006 11:06:41 PM
How do I auto refresh a page a particular time of the day?
... more >>
How to get the data from an ObjectDataSource in a custom control
Posted by Rolf Welskes at 10/3/2006 10:22:06 PM
Hello,
I have an ObjectDataSource which has as business-object a simple array of
strings. No problem.
I have an own (custom) control to which I give the DataSourceId and in the
custom-control so I get the ObjectDataSource. No problem
.....
ObjectDataSource src = .... //is ok i have it... more >>
positioning dynamically created controls
Posted by Smokey Grindel at 10/3/2006 9:20:13 PM
I have a web control library that of course renders custom html... I want to
place what it outputs into a div on the page.. how do I tell it to place
this dynamically created custom control into a div? so its placed in the
correct location on the form? thanks!
... more >>
IE and ASP.NET
Posted by marie.422 at 10/3/2006 8:15:16 PM
I am using ASP.NET 2.0 to build websites.
We have had a couple of customers experiencing problems with IE and editing
their site (with CMS). The error received from IE is 'Internet Explorer has
encountered a problem and needs to close. We are sorry for the inconvenience.
' Very vague! I have n... more >>
Basket Question
Posted by Samuel Shulman at 10/3/2006 7:43:32 PM
I want to allow customer to 'Add to Basket' even if they are not logged.
Once they log the content of the basket will be saved for the future
Next time they may add other items to the basket before they log and then
they may log
What is expected at that point?
Merge the content of the b... more >>
How to get the line number of an exception?
Posted by Rotsey at 10/3/2006 7:20:51 PM
Hi,
Am trying to be able to the line number of an exception.
The stack trace is not showing it.
rotsey
... more >>
asp:menu problem
Posted by Bruno Alexandre at 10/3/2006 6:44:29 PM
Hi guys,
I have a Menu component that I'm using the itens collection (via properties
menu) to populate (i'm not using any DataSource, or populating on the fly
using code).
my question is How can I disable some menus on the fly?
I already used
Protected Sub mainMenu_DataBinding(ByVa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
RequestValidation
Posted by Shahriar at 10/3/2006 6:30:01 PM
Hi -
I have the following lines of code
Response.Cookies("test1").Value = "<bad data>"
Response.Cookies("test2").Value = "this is a test"
TextBox1.Text = Request.Cookies("test2").Value
It triggers the error
"A potentially dangerous Request.Cookies value was dete... more >>
Width
Posted by shapper at 10/3/2006 6:26:21 PM
Hello,
I am starting a new Asp.Net 2.0 web site.I am looking for a fixed width
web site.
I notice that CNN is using a 875px fixed width web site and Yahoo a
950px width web site. And many other web sites are using widths higher
then 800px.
My question is:
What do you think of moving... more >>
Array
Posted by shapper at 10/3/2006 6:21:15 PM
Hello,
Could someone tell me how to create an array of strings?
Thanks,
Miguel
... more >>
Re-use the EditItem template
Posted by JP.Gantlin at 10/3/2006 6:00:38 PM
Can i store this template somehow so I can reuse this in a lot of different
pages?
Thanks a lot
... more >>
Sign on to Outlook Web Access
Posted by Vince Varallo at 10/3/2006 5:51:02 PM
Hello everyone,
Is there any way to create a single sign on solution that can authenticate a
user and then store the credentials and pass them to outlook web accees?
Essentially we want the first web page to ask the user for the user name and
password and the second page to give the user op... more >>
Help with IIS AND ntfs
Posted by Chris at 10/3/2006 5:14:01 PM
Hi,
I uploaded my site to my internal IIS 6.0 Windows 2003 Server but I get the
error when I try to access it
The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from
a directory that does not allow programs to be executed.
-----------------... more >>
Migrating Completly to Ajax..Suggestion Needed!
Posted by Von Shean at 10/3/2006 4:24:02 PM
I have a website that i have migrated VS 2003 to VS 2005. I have done
some work like adding master pages and making rest of the pages as
content pages.
However, now i want the site to be completly Ajaxed.
I have a asp.net 2.0's menu control in my master page. I need the
ContentPlaceHolder s... more >>
No fields in FormView
Posted by Uriah Piddle at 10/3/2006 4:16:05 PM
Hi,
I have a FormView where nothing gets rendered past the opening
<ItemTemplate> tag. The FormView Header renders but nothing else. If I put
garbage in an Eval statement, no errors are raised and the page loads but,
of course, with no data in the FormView. If I put a div inside the
ItemT... more >>
How do I position a label just below a datagrid that changes size?
Posted by tom c at 10/3/2006 3:10:02 PM
In ASP.Net 1.1, I have a datagrid on a form. The height of the grid
can vary with the number of rows loaded into it. I want a label to
appear just below the datagrid. I need the position of the label to
change as the size of the grid changes so it is always just below the
grid. How do I do ... more >>
Production server fails to load page (works locally)
Posted by mwallis76 NO[at]SPAM gmail.com at 10/3/2006 3:08:51 PM
I am in the stages of pushing up web app to a production server and I
am running into an error that I cannot seem trace down. I have a page
that allows one to change their password and runs just fine locally but
fails to load remotely (receive the famous XML Parsing Error: no
element found erro... more >>
Visual Studio.NET 2003 Starter Kits
Posted by rodriguez at 10/3/2006 2:34:55 PM
Hi,
Yes, I'm one of the lonely ones who hasn't upgraded to VS2005.NET.
Does anyone know where in MSDN, the code for the Starter-Kits for
VS2003.NET? It seems like MSDN is very nicely ignoring VS2003.NET and
the old .NET 1.1 framework.
Thanks Ahead,
Allan
... more >>
problem databinding a dropdownlist within a repeater
Posted by Milsnips at 10/3/2006 2:14:54 PM
hi there,
in ASP.NET 1.1 - debugging i can see that the dropdownlist item within the
repeater is being populated and i do "droplist1.databind" but when the page
loads there is no data.
on top of page i declare "public DL as new DropDownList"
What i'm doing is the following: on the page ... more >>
Expire Pages in Browser?
Posted by Chris Davoli at 10/3/2006 2:12:02 PM
How do you expire pages so that the user can't hit the back button on his
browser in Internet Explorer? I've tried the meta tag in the header that has
an expires = 0 and also in vb.net Response.Expires = 0. Neither of these work
in IE. What will expire pages so there are no pages to go back to... more >>
Can't create simple login page using asp:login control
Posted by Sasquatch at 10/3/2006 1:59:44 PM
I'm having trouble creating a simple login page using the asp:login
control. I followed some instructions in a WROX book, "Beginning
ASP.NET 2.0," and the instructions are very straight forward, but it
won't work for me. Here's what I did.
1. Created a new folder named "testlogin"
2. Turn... more >>
Debug javascript in VS2005
Posted by Dinh Bao Tuyen at 10/3/2006 1:45:59 PM
Hi everyone,
I can't debug javascript in VS 2005. In my VS2005, I can't find Script =
Explorer in menu. Can u help me???... more >>
Format date
Posted by Guy Cohen at 10/3/2006 1:28:42 PM
Hi all
I am trying to figure out how to format a date to dd/mm/yyyy and
FORMAT(mycolumn,'DD/MM/YYY') does not work.
(Format is not recognized)
TIA
Guy
... more >>
Is it OK to put carriage returns in web form HTML view ?
Posted by Tony Girgenti at 10/3/2006 1:27:36 PM
Hello.
When i look at a web form in design view, i have the option to view the
HTML. Some of the HTML code is in one long string and hard to read.
Is it OK to put in carriage returns and blank lines in the HTML so that is
is easier to read ?
I'm not talking about changing the HTML code... more >>
get the base url in the code behind?
Posted by David Thielen at 10/3/2006 1:21:02 PM
Hi;
I need to get the base url (what pages in my app are added to to make the
complete url). To do this when I have a request object it's a piece of cake -
I use http://www.davidthielen.info/programming/2006/10/base_url_in_an_.html
But I have an event handler for my HttpApplication. In tha... more >>
Referencing a LinkButton in javascript
Posted by DanG at 10/3/2006 1:14:37 PM
Hi
I used to have an ImageButton in my datagrid, and referenced the
control in the javascript with:
var fld = document.getElementById('datagrid__ctl2_btnEdit');
alert(fld); //returns "[object]" >> Good
I changed the ImageButton to a LinkButton, but the javascript doesn't
work anymore.
v... more >>
how to compartmentalize asp .net markup
Posted by mattdaddym NO[at]SPAM gmail.com at 10/3/2006 12:38:42 PM
Hi all,
I have an asp .net 2.0 form that will kick off an email on submit. I
started with a super long form and then moved to a series of steps
(like a wizard) to make the user interface less cluttered. I'm happy
with the front end, but not my markup code. I have many, many steps for
the form... more >>
Help with validators
Posted by Chris at 10/3/2006 12:34:01 PM
Hi,
I have a few validators (RequiredFieldValidators) on a page. It works great
the user clicks the submit button, the problem I have is when the user goes
to the page and then tries to leave the page without clicking the submit
button the validators are executed, preventing the user from lea... more >>
Rich Text Editing, designMode, and Javascript (again)
Posted by Erik at 10/3/2006 12:15:18 PM
I've found several posts discussing this, but I'm still stumped.
Pasted below is the HTML for a simple aspx file I created in a 1.1
environment. My goal is to give my users a rich text editor, and then
have the HTML submitted to the code behind as a form variable so I can
manipulate it any wa... more >>
datalist button use
Posted by chris at 10/3/2006 11:33:01 AM
I have a ecommerce app where I display products in a datalist (datalist1).
I've added a button (bthSavetoCart) to the list. When the button fires I want
to post that line of info. Any tips?
Do I use 'ByVal e As DataListItemEventArgs' (I'm using VB.net). If so how do
I pick out the line tha... more >>
Get in queue for file open
Posted by ivan.svaljek NO[at]SPAM gmail.com at 10/3/2006 11:30:58 AM
I'm trying to create a procedure that will take a subset of data from
sql server and store in an xml file.
The problem is that the xml file is read on every session/page refresh,
so there is a possibility for collision, since there is a function in
global.asax that refreshes the xml file every x... more >>
A couple small FireFox quirks...
Posted by Charlie NO[at]SPAM CBFC at 10/3/2006 11:26:34 AM
Hi:
In FireFox and Netscape, images show placeholders while downloading. I
don't like the way this looks. Is there any way to make it like IE where no
placeholder is shown while image are downloading?
Also, asp.net imagebutton shows pointer cursor rather than hand cursor in
FireFox and... more >>
Web hosting suppliers move to ASP.NET 2.0
Posted by Guy at 10/3/2006 11:26:12 AM
When I checked a few months ago, hosting a web site on a shared server
platform with ASP.NET 1.1 was not a problem and was costed at about
$300 (CAN) a year.
There was confusion as to the date where ASP.NET 2.0 would be
available, commercialy. Anybody has any information as to when 2.0
might ... more >>
Unable to debug website on Vista RC1
Posted by Torben Laursen at 10/3/2006 10:28:57 AM
Hi
I have a website that I can debug just fine in VS2005 on WinXp.
But when I move the website to a Vista computer and hit F5 inside VS2005 the
website starts but I cannot debug it.
I have tryed the same on my WinXp and here it helped to delete all temporary
internet files, but that has n... more >>
Export datagrid to Word, force page break
Posted by Erik K. Schindeldecker at 10/3/2006 10:06:02 AM
Good Afternoon,
I am exporting a series of datagrids to Microsoft Word, and cannot figure
out how to force a page break between each datagrid. Does anyone know of a
character or command I could use with Response.Write to force a page break
between the datagrids?
Thank you,
Erik... more >>
RSS Feeds
Posted by sck10 at 10/3/2006 9:12:45 AM
Hello,
I am trying to learn how to consume RSS feeds and downloaded the example
from the MSDN site:
http://msdn.microsoft.com/coding4fun/xmlforfun/simplerss/default.aspx?print=true
However, I am getting the following error at:
rssData.ReadXml(rssFeed.GetResponse().GetResponseStream())... more >>
Not Rendering properly in FireFox
Posted by Charlie NO[at]SPAM CBFC at 10/3/2006 9:09:25 AM
Hi:
I have some Custom server controls (validated textboxes) in a panel on a
form. In Firefox, it looks all hosed up. Also, pictures show place holders
while loading. What are my options for getting things to look right in
firefox?
Thanks,
Charlie
... more >>
Error: Option strict disallows late binding
Posted by Adotek at 10/3/2006 9:03:57 AM
Hi All,
I've just converted a solution from .Net v1.1 to v2.0, by allowing
Visual Studio 2005 to do the conversion.
Since doing so, I am getting a compilation error as follows:
"Option Strict On disallows late binding."
This references line 1, which is my page directive:
<%@ Page Lan... more >>
Control Declarations Disappear from ASP.NET 1.1 to ASP 2.0
Posted by Mike at 10/3/2006 8:39:01 AM
I've just begun converting some websites from ASP.NET 1.1 to ASP.NET 2.0.
I'm consistently losing web control declarations when converting aspx pages.
All declarations like this disappear and I need to re-type them manually...
Protected WithEvents hrFile As System.Web.UI.HtmlControls.HtmlAnch... more >>
Web.Config GroupSections
Posted by Jon at 10/3/2006 7:47:01 AM
Hell all
From the below group in web.config, how would I get the EnvName key?
Thanks all,
Jon
<environment>
<LOCL
EnvName="Local Machine"
DBConnection="Persist Security Info=False;Data Source=BCTS_DEVT;User
ID=BCTS_ACCESS;Password=BCTS;"
EMailTo="" />
etc etc... more >>
Writing to the IIS log
Posted by Spondishy at 10/3/2006 7:08:58 AM
Hi
I'm developing some custom logging for our internal MI team. I was
considering developing a HTTPModule that sits in the pipeline and uses
the AppendToLog method.
Is there any better way of doing this, or is this method OK?
Thanks.
... more >>
How to embed javascript in an ASP.NET 2.0 web page?
Posted by Keithb at 10/3/2006 7:01:32 AM
My application has several check boxes included one labeled "All" and
another labeled "None." How can I incorporate javascript that will detect
that the "All" or "None" checkbox was changed and then change which other
check boxes are checked without making a round trip to the server?
Thanks... more >>
Cache dependency based on file folder?
Posted by Keithb at 10/3/2006 6:57:41 AM
Is there any way to create a cache dependency based on a folder in the
server file system? My application needs to drop a table in the cache if any
files are changed in a server file folder or its subfolders.
Thanks,
Keith
... more >>
Gridivew Summary of all columns
Posted by vaarsa NO[at]SPAM gmail.com at 10/3/2006 6:45:55 AM
Hi,
I need to populate a gridview. The Gridview will have columns for 52
weeks, and I need to populate a total for all the individual 52
columns. Can anybody explain me how to do it as I am fairly new to this
..net. The values for xxx and yyy will be populated from the database
and I need to ... more >>
DAL or BLL? How to implement objects
Posted by Nemisis at 10/3/2006 6:33:03 AM
Hi everyone,
i am creating my own DAL and BLL, and i am not using typed datasets.
My problem is that in my DAL i have a Save method whos signiture looks
something like:
Save(ID as integer, name as string, .......
Within my BLL, i call then same method (the business layer version)
som... more >>
How to get Focus on one Button,if two buttons exists on the same f
Posted by Ravindra at 10/3/2006 6:06:02 AM
Hi,
I am Ravindra,presently doing a project in asp.net.
The Login page of my Web Project consists of two Buttons.
If user enters his username and password and clicks on enter button of
keyboard,
the Signin button is to be submitted not the other button.
... more >>
How to get Focus on one Button,if two buttons exists on the same form
Posted by ravindradonkada NO[at]SPAM gmail.com at 10/3/2006 6:03:50 AM
Hi,
I am Ravindra,presently doing a project in asp.net.
The Login page of my Web Project consists of two Buttons.
If user enters his username and password and clicks on enter button
of keyboard,
the Signin button is to be submitted not the other button.
... more >>
official alternative to ajax
Posted by codefragment NO[at]SPAM googlemail.com at 10/3/2006 5:25:33 AM
Hi
I have asked this on the official asp.net forums but no luck so
thought I'd try here
Assume you have a page with a filter control and a grid view and many
other controls on it. When the filter changes you want the gridview to
change but nothing else. In particular all you would like to... more >>
GridView: cannot get data from dynamically created Textbox
Posted by JaM at 10/3/2006 4:06:21 AM
Hi all,
I have created a gridview vith dynamic textbox columns (they are in
variable number, it depends on what things I select from database)
aspx code:
__________________________________________
<asp:GridView AutoGenerateColumns="false" ID="GridView2" Runat="server"
>
<Columns>
</Col... more >>
Bidning a Systems.Collections.Generics.Dictionary to a dropdownlist
Posted by Ily at 10/3/2006 3:00:49 AM
Hi
I have a collection of person objects that are added to a dictionary,
each items is added with a unque key. Each person object has a first
name property, and a last name property
My problem is I want to bind this to a dropdown list so that the
DataValueField is set to the ID of the Perso... more >>
DropDownList DataBinding firing twice. Please help!
Posted by hwiechers NO[at]SPAM gmail.com at 10/3/2006 3:00:38 AM
I have two drop down lists on a page. Each one is hooked up to a
separate SqlDataSource. The second data source has a ControlParameter
set to the selected value of the first drop down. When I set the
SelectedValue of the first drop down in Page_Load, the DataBinding
event of the second fires twi... more >>
Captcha images!
Posted by Varangian at 10/3/2006 2:45:50 AM
Hi all,
wanted to ask about Captcha image! When should I used it? When there is
free text box to be filled? Should I use a Captcha when I have a page
with only click buttons? Can a bot "click a button"?
Sorry for asking some foolish questions.. I don't this is maybe not
related to asp.net b... more >>
ViewState is late when building own Controls with different subcontrols
Posted by Rolf Welskes at 10/3/2006 2:44:48 AM
Hello,
the problem seems simple
I have an own webcontrol
one property is
public bool IsEdit
{
get
{
...
}
set
{
...
}
//then there is CreateChildControls()
override void CreateChildControls()
{
if(IsEdit)
... more >>
Problem in accessing sites having ajax
Posted by Alok yadav at 10/3/2006 12:29:02 AM
I have an open IP and on that IP our main application is hosted. it uses
ajax. in web.config file i have register ajax handlers.
there are also other sites or project on that IP. now my problem is that
other ASP.net projects throws error and take my web.config file as thier
web.config. thi... more >>
Problem deploying ASP.NET v1.1 web site
Posted by Andrew Chalk at 10/3/2006 12:23:23 AM
I have created an ASP.NET v1.1 web site that runs fine on my development
machine.
To deploy it to another XP computer I copied the whole of the web site to a
directory on that computer and converted the target directory to a virtual
directory. When I attempt to access the site's home page o... more >>
|