all groups > asp.net > march 2006 > threads for tuesday march 14
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
Website does not work without network connection
Posted by Papa.Coen at 3/14/2006 11:49:16 PM
Hi, I have a problem with my website (aspx/c#); I get a 'Server
Application Unavailable' when the host (127.0.0.1/localhost) does not
have an network connection (tcp cable unplugged, on purpose )
I use:
- dotNET 2.0 (!!, Google searches place this behaviour with dotNET 1.0)
- IIS 5,1
- WinXP... more >>
Question
Posted by joe at 3/14/2006 9:46:27 PM
A script on this page is causing internet explorer to run slowly. If it
continues to run, your computer may become unresponsive.
How to disable the popup when a javascript is very slow.... more >>
ASP.NET 2.0 Menu control targets and selecting
Posted by m_hansford NO[at]SPAM yahoo.com.au at 3/14/2006 9:30:00 PM
I have a Menu control that populates from a SiteMap file. It's on my
Master Page and usually loads content pages.
I've got 2 problems at the moment:
- Some of my menu items point to an external web site or to a PDF
document instead of just loading the next internal page. I want these
extern... more >>
Object reference not set to an instance of an object.
Posted by Laura K at 3/14/2006 9:16:53 PM
I have been trying to figure this one out. I really need help. I have
a relationship between two tables - product and colors. I have a
repeater listing the products and then each product has a drop down
with the corresponding colors. However when I try to view the page I
get:
Exception De... more >>
Changing pages
Posted by BobLaughland at 3/14/2006 8:34:14 PM
Hi There,
Just wondering if in ASP .NET 2.0 C# you can change the web page
programatically?
I am wanting to click a button, perform some code in the button click
function, and then change pages.
Thanks,
Peter.
... more >>
Web deployment projects and British pound signs
Posted by Mark Rae at 3/14/2006 8:11:19 PM
Hi,
Suddenly (at least, I think so) when I rebuild a web deployment project in
VS.NET 2005, it strips off British pound signs e.g. £10 becomes 10.
Has anyone else seen this...? Is there a way round it...?
Any assistance gratefully received.
Mark
... more >>
Persist a database connection across postbacks
Posted by Godwin Burby at 3/14/2006 8:10:33 PM
Hi All,
I'm a new comer to web development as well as asp.net. So when
i fired up my first database driven page, i knew i had a problem of not
having a persistent database connection across postbacks. I tried to
piggyback the connection object to application object and it didn't
work. W... more >>
default property ?
Posted by Jon Paal at 3/14/2006 7:55:14 PM
Compiler Error Message: BC30367: Class 'System.Web.HttpContext' cannot be indexed because it has no default property.
how do I create a "default property" ??
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I get asp:ImageField to use a hyperlink?
Posted by needin4mation NO[at]SPAM gmail.com at 3/14/2006 7:52:08 PM
I have a gridview. Do I have to create a datalist if I want my image
to have a link embedded in it? I want to click the image.
Thank you.
... more >>
Response.Redirect triggers Page_Load
Posted by dwclark NO[at]SPAM gmail.com at 3/14/2006 7:42:10 PM
I am having an issue when I trigger a Response.Redirect, the Page_Load
fires on the page where the Response.Redirect was called. From what
I've read, this should not happen and the browser should be sent to
page that was passed in teh Response.Redirect page. The
AutoEventWireup is set to false... more >>
have an answer???
Posted by Neo Geshel at 3/14/2006 5:55:58 PM
I have strip-mined, strip-searched, and completely exhausted the=20
Internet (up to the 30th page on Google, with 100 results per page!!),=20
all without finding an answer to my question AS TO WHY IT IS IMPOSSIBLE=20
TO PROGRAMMATICALLY ADD A BUTTON TO A DYNAMICALLY CREATED PAGE.
Or, to be mor... more >>
Issue exporting DataGrid to Excel
Posted by Kenny M. at 3/14/2006 5:54:20 PM
Hi I'm using the code shown here to export only my DataGrid to Excel.
http://www.c-sharpcorner.com/Code/2003/Sept/ExportASPNetDataGridToExcel.asp
In my page I have two DropDownListBox, two Textboxes, two buttons and the
DataGrid.
Issue Number1
In this line: Response.End(); I receive ... more >>
FindByText not working
Posted by tshad at 3/14/2006 5:08:29 PM
I have a dropdown that gives me an error when I do a FindByText, such as:
Dim temp as ListItem = JobTitles.Items.FindByText("BarTender")
temp.Selected = True
or
JobTitles.Items.FindByValue("BarTender").Selected = True
I get the error:
Object reference not set to an ins... more >>
Double PostBack
Posted by dwclark NO[at]SPAM gmail.com at 3/14/2006 4:55:58 PM
Hi all,
The issue I'm having is when a control is fired and causes a post
back, the page actually refreshes twice. Once as a postback and the
second time is not. I created a simple aspx page with one button and
in the Page_Load section did a
System.Diagnostics.Trace.WriteLine(IsPostBack)... more >>
Security Question.
Posted by Shawn at 3/14/2006 4:38:31 PM
Is it possible to use both Forms and Windows Auth in a Web.Config file for a
single website. We want to use Forms for general auth, but then we want to
use Windows for access to a specific folder.
... more >>
Server Error
Posted by majo at 3/14/2006 4:27:02 PM
Hi,
I had posted this once earlier, but couldnt get my problem solved.
When i run an asp.net application in windows 2003 server with IIS 6.0, it
"SOMETIMES" gives me the below given error. Please note that it gives this
error only ONCE IN A WHILE.
To test if this error has anything to do... more >>
Question about the .net IDE
Posted by Steve Mauldin at 3/14/2006 4:20:59 PM
I am irked about the way the IDE is mangling my HTML. I type it in all nice
and neat like this.
<TABLE width="100%">
<TR>
<TD>
<TABLE width="100%">
<TR vAlign=top>
<TD align=right width=43>
<A href="/Account/... more >>
how to pass arguments to aspx
Posted by alex_glaros NO[at]SPAM hotmail.com at 3/14/2006 4:19:37 PM
How can I pass an argument in this line below?
http://publicdocs.medbd.ca.gov/pdl/mbc.aspx?qtxtLicenseNumber=33287
If I remove this ?qtxtLicenseNumber=33287
and just type 33287 in the search box like a human user, it works fine
Can you please post a working example?
Thanks!
Alex Gl... more >>
Strong naming assembly in an vb aspx project
Posted by job NO[at]SPAM bla.com at 3/14/2006 3:48:07 PM
I put my StrongNameKey.snk in my root foler.
in my assemblyinfo.vb I have:
<Assembly: AssemblyKeyFileAttribute("StrongNameKey.snk")>
I get the error "Error creating assembly manifest: Error reading key
file 'StrongNameKey.snk' -- The system cannot find the file
specified."
???
/M... more >>
Help making css styles work
Posted by keithb at 3/14/2006 3:10:33 PM
My ASP.NET 2.0 application has a User Control that contains a DataList that
is unable to get style information from a style located in a css file in the
themes folder. The user control CssClass and the DataList ItemStyle CssClass
properties are both set to a valid name of a style in a styleshe... more >>
__doPostBack() not generated
Posted by Steve Wonderful at 3/14/2006 3:05:29 PM
I checked the rendered html and found __doPostBack() function was not found
in the html source. Is there a reason? How do I force it to be generated.
The page seems to function properly for post back but I DO need the
__doPostBack() function to post back by a child popup window.
... more >>
interim values
Posted by Jon Paal at 3/14/2006 2:29:49 PM
I am using a custom server control in my webpage which renders some html.
while it creates the html, it develops an arraylist of values. Is there a way to capture the arraylist from the control so it can
also be used on the same web page ?
this needs to happen in the post back.
... more >>
read microsoft access file on windows server 2003
Posted by klynn at 3/14/2006 2:26:30 PM
Hi:
I'm having problems reading a Microsoft Access file from my ASP.Net app on a
Windows Server 2003 machine. The error message:
The Microsoft database engine cannot open the file, <my_file>. It is
already opened exclusively by another user, or you need permission to view
its data.
I've ... more >>
Registration free COM components in the ASP.NET application
Posted by Peter Schargut at 3/14/2006 2:23:07 PM
I want to use registration free COM component in the ASP.NET application.
I found the articel about registration free COM in the windows application:
http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/default.aspx
So I have wrote the manifest file for my COM component and tested this with ... more >>
com
Posted by Peter Schargut at 3/14/2006 1:59:05 PM
Set Minimum Date Calendar Control
Posted by Joey at 3/14/2006 1:51:36 PM
Does anyone know how to set a minimum selectable date in the calendar
server control that come with VS2005?
I do not want to use validators...I want the days before the selectable
period to be grayed out.
... more >>
ASP.NET to WORD Question
Posted by Jesse Johnson at 3/14/2006 1:50:27 PM
I have kind of a complicated issue. I need to be able to have someone come to
our online application and simply hit "Create Labels" from there idealy
Microsoft Word would pop up and all of our records from the SQL Server would
be inserted into a special Avery template. I dont know where to sta... more >>
HELP: Spawning Multiple Browsers Using RegisterClientScriptBlock
Posted by kewl at 3/14/2006 1:33:49 PM
Hi All,
We have an ASP.NET 2.0 (C#) intranet application that needs to spawn =
multiple browsers using RegisterClientScriptBlock. Here's what we got =
so far:
// Go thru each datarow in the datatable
foreach (System.Data.DataRow drReportGroupsDetails in =
tableReportGroupsDetails.Rows)
{
... more >>
HttpHandler Question
Posted by preport at 3/14/2006 12:36:12 PM
So I wrote an HttpHandler that does a bunch of processing then writes a gif
to the HttpContext.
What I want to do is have my handler intercept any requests for *random.gif
How might I go about getting this to work? Of course my handler works
perfect on my dev machine....because I added this... more >>
Events - Daily or Weekly
Posted by BobLaughland at 3/14/2006 12:32:37 PM
Hi There,
I am creating an ASP .NET C# web site.
Just wondering how can I get an event to occur at the same time every
day.
E.G. I want the site to automatically email me every day with the
contents of a log file.
Thanks,
Peter.
... more >>
ASP.NET process identity does not have read permissions to the global assembly cache.
Posted by rrossney NO[at]SPAM gmail.com at 3/14/2006 12:19:44 PM
Please look at the "what I've already done" section of this message
before responding to it: I believe that I've done everything that the
people who experience this error are typically told to do.
I have created an ASP.NET web service that I have running on my
development machine, and am tryi... more >>
Creating image
Posted by Neven Klofutar at 3/14/2006 12:08:55 PM
Hi,
Can anyone tell me how can I create images from data ?
I've seen something similar on some sites while creating account, they
create image containing random created numbers and letters. Is there a
control I can use or can I use some .NET class/es ?
thanx, Neven
... more >>
MLS integration???
Posted by VB Programmer at 3/14/2006 12:02:54 PM
Anyone know how to integrate an ASP.NET website with MLS (multiple listing
service, used by realtors)? I want my site to display housing listings,
etc...
Thanks!
... more >>
pass variable to javascript
Posted by CSharpguy at 3/14/2006 12:01:24 PM
I have a javascript menu in my app, I need to hide certains menu options
based on the credentails of the user logging into the app. How can I hide
menu items on a javascript menu based on log in creditionals?
example:
if the user logged in is a Owner then he would see "wholesale" as a menu
... more >>
Checkbox arrays
Posted by Fred Flintstone at 3/14/2006 11:44:42 AM
I have an app that requires the use of a 2 dimensional array of
checkboxes. I can't seem to assign any values to them. I tried this:
Dim BonusChecks(0, 0) As CheckBox
...and then later when I know the domensions I'll need:
ReDim BonusChecks(x,y) ' (3,3), no error
BonusChecks(0,0).ID = "... more >>
Problem with GridView
Posted by Bruno Piovan at 3/14/2006 11:38:47 AM
Hello,
I'm having a strange problem with gridview, I have a portion of code that
binds data to the gridview:
gvCategories.DataSource = dt
gvCategories.DataKeyNames = New String() {"id_category"}
gvCategories.DataBind()
and I have a RowDeleting event handler that do... more >>
how to pass a web app page reference (specific instance)?
Posted by Rob R. Ainscough at 3/14/2006 11:06:00 AM
ASP.NET with VB.NET using 2.0 framework
I've created a class (myClass) under App_Code specific to my web
application.
I have a method in myClass called Display:
Public Function Display(ByRef aWebPage As Web.UI.Page) As Boolean
Select Case aWebPage.Page.ToString
... more >>
interim values from custom control
Posted by Jon Paal at 3/14/2006 10:08:44 AM
I have a custom server control which renders some html.
I want to capture some interim values generated by the control as it processes the data.
is there a way to capture and retrieve the interim values generated by the control, so they can be used elsewhere in the display
page ?
... more >>
Cannot Create Application.dll
Posted by NerdRunner at 3/14/2006 10:00:22 AM
I am unable to create the application.dll file for my application when
I build my web application. Also, when I look at the configuration
settings, it only allows me to select Debug for my app. Any
suggestions on how to go about building the application.dll file so I
can distribute the applica... more >>
hyperlink in grid
Posted by CSharpguy at 3/14/2006 9:55:52 AM
How can I create a hyperlink in a datagrid were I'm autogenerating the
columns? I need to have a link to the document listed in the grid.... more >>
.NET 2.0 and namespaces in web apps
Posted by Amil at 3/14/2006 9:30:21 AM
I was reading "Rick Strahl's WebLog" and he mentions that in .net 2.0 web
apps, there are no namespaces (I verified this by creating simple web app).
I converted a VS 2003 web app that had namespaces and the VS 2005 still has
them in there. Should I remove them?
I'm also having an issue d... more >>
Theme across multiple projects
Posted by ryan.mclean NO[at]SPAM gmail.com at 3/14/2006 9:08:17 AM
Hi all,
I am new to 2.0 and themes. i would like to make all of my web projects
have the same themes when I create a new project. Is this possible?
Thanks and have a great day,
Ryan
... more >>
Create Web Services
Posted by Federico at 3/14/2006 8:40:56 AM
Hi I want to create a Web Services where I receive a Template DOT word
a file XML and with these I create a Document that a I'll Send as Dime
Attachment.
<WebMethod()> _
Public Function CreateDimeWord(ByVal DotName As String, ByVal
sXML As String) As String
Dim respCon... more >>
downloading file
Posted by roland.groenvynck NO[at]SPAM pandora.be at 3/14/2006 8:37:20 AM
I try to build my first web form application with C#.
I want to program the downloading of a file to the client .
Therefore I can use WebClient.DownloadFile (url, filepath );
I would like that the user is able to select the directory(on his
machine) with a kind of a control ?
How can I... more >>
The new CallBackEventreference
Posted by Varangian at 3/14/2006 8:12:16 AM
Hello there
anyone knows about the new CallbackEventreference?
How does it really work... I made it working through a dropdown list..
I cannot understand how the "string arguments" works... how many
arguments can I pass and in what? how does it relates with the
javascript function"
than... more >>
Ecommerce question
Posted by Brent Borovan at 3/14/2006 7:45:27 AM
Over the next few months our company will be adding ecommerce functionality
to a new web based service we are developing. Customers can sign up for the
service and pay for it either on a monthly basis (where their credit card
will be charged automatically each month) or a yearly subscription.... more >>
Export datalist to Excel - css format is lost!
Posted by staeri NO[at]SPAM gmail.com at 3/14/2006 7:43:22 AM
I'm trying to export a datalist to Excel with this code:
Response.Clear()
Response.Buffer = True
Response.Charset = ""
Response.ContentType = "application/vnd.ms-excel"
Me.EnableViewState = False
Dim sw As StringWriter = New StringWriter()
... more >>
read folder
Posted by CSharpguy at 3/14/2006 7:42:56 AM
I have 2 question
1) I have to read a folder which contains files and show all of the file on
my web page, how can I accomplish that?
2) is it possible to show them in a grid and allow the user to click on the
file name and have the files open?
... more >>
Images Related
Posted by bone_idle31 NO[at]SPAM yahoo.com at 3/14/2006 7:38:42 AM
I have a folder in the web directory with all the images in them
(ex:c:\inetpub\wwwroot\Photographs\l_photos\Elephant001.jpg)and the
image folder is named as "l_photos". Large pictures
Also there is another file identical only difference is i call it as
"s_photos" For thumbnails small pictures.... more >>
How do I capture an event from a control inside a container?
Posted by Ken Sturgeon at 3/14/2006 7:25:23 AM
I have a button inside a panel control. Apparently I can't expect VB to
respond to the button's _Click event. How do I capture the click event?
Thanks
Ken
... more >>
Export Page to Excel. Missing CSS problem
Posted by Server Control at 3/14/2006 7:24:53 AM
Hi,
I want to export an entire Page to excel. If I try to export the page
with Inline disposition:
Response.AddHeader("content-disposition", "inline;filename=abc.xls");
the css and formatting appears properly.
However, if I use "Attachment" type
Response.AddHeader("content-disposition",
"atta... more >>
Caching HTML
Posted by Kenny M. at 3/14/2006 7:18:57 AM
I want to cache a simple HTML page inside mi ASPNET app, how?
--
thks.
... more >>
help on xml response
Posted by AVL at 3/14/2006 7:01:31 AM
hi,
i'm a newbie to dotnet...
I need help on xml responses received from a web service..
How to parse the xml response....sent by a web service..
I dont want to use the proxy object created .net when I add a web service..
I want to parase the Xml response nad request manually..
Which... more >>
Asp.NET Composite Control with GridView, RowCommand doesn't work
Posted by Zule at 3/14/2006 6:58:03 AM
Hi,
I am creating a Composite Control within which I have a GridView. In
this GridView, I have three TemplateFields, the last one being a
template with a LinkButton which is meant to be clicked so I can
capture this event to do something about it. The problem is that in the
CreateChildControl... more >>
DataRowView
Posted by Joe at 3/14/2006 6:32:29 AM
Hello All:
How have you used the DataRowView. I am familiar w/ DataRow (of course!),
but haven't had the need to use the DataRowView. When would you use it?
Thanks.
Joe... more >>
selected items at the top of the listbox
Posted by John at 3/14/2006 6:32:27 AM
I have a listbox that is databound when my form loads. A user
can then select and option using a drop down box. When the user
selects an option the corresponding items in the listbox gets selected.
How can I show those selected items at the top of my listbox. The
issue is when the user selects ... more >>
SSL and user controls
Posted by jacques.m.steward NO[at]SPAM vitalthought.com at 3/14/2006 6:27:37 AM
I want to minimize the amount of SSL traffic on my page so, can I Have
SSL for the Login User Control and Not the rest of the page? How do I
tell if the Login is secure?
... more >>
More Information than just IIS Log Information
Posted by subrato at 3/14/2006 6:21:43 AM
Hi,
I dont know if this is the right forum for this question but I hope
someone is able to answer this for me. I know a lot of information can
be retrieved using IIS Log files. But there seems to be something that
my boss wants me to do. Find a way to implant a cookie on user and get
more i... more >>
Setting property ContentPlaceHolderId for Content control
Posted by Max Paulousky at 3/14/2006 5:55:30 AM
Why I can set MasterPage file programmatically, but cannot set property
ContentPlaceHolderId for Content control programmatically? There are no
limitation in documentation.
It is not logically, IMHO.... more >>
VS is rearranging my html
Posted by Joe at 3/14/2006 5:30:17 AM
Hello All:
Visual Studio constantly rearranges the HTML in my pages. I know that
someone posted how to turn this off. Would someone please repost it?
Thanks,
--
Joe... more >>
Best Practices/Approach to achieve browser compatiblity.
Posted by hangar18 at 3/14/2006 5:10:29 AM
Hi,
Is there any standard approach /best practices to achieve browser
compatibility.
We have a web application which contains both ASP and ASP.NET pages.
We would like to achieve complete browser independance.
Currently we are at a loss on how to approach this issue.
Any guidance will be highl... more >>
Generate an Image from a HTML source
Posted by kloppnr1 NO[at]SPAM gmail.com at 3/14/2006 4:57:44 AM
Hi there,
i'm looking for some code which can generate a screenshot of a Web
Page.
The user will provide the URL and then submit this to the server. The
server then calls some code which extracts the HTML source and
generates an image from that.
Anybody seen this kind of functionality some... more >>
Script Explorer Shows no files
Posted by bzurer at 3/14/2006 4:46:08 AM
I have found many very simple examples of how to debug javascript from
VS 2005 and have to reproduced them exactly. But for some unknown
reason my Script Explorer window shows no files. I have IE configured
properly. Has anyone else experienced this and perhaps found a
solution? I am using the P... more >>
ASP.NET 2.0 - Application level Collection - HELP !
Posted by m00nm0nkey at 3/14/2006 4:41:27 AM
Hello!
I have (hopefully) a very simple question. I need to define an application
level collection variable for an ASP.NET 2.0 web application, and fill it
with data when the application starts.
The collection needs to be defined and filled with data on the
"Application_Start()" event, w... more >>
Problem with ASP.Net version switching: select 1.1.4322
Posted by ben NO[at]SPAM arrayx.co.uk at 3/14/2006 1:44:35 AM
Hi there, I am trying to configure a brand new Windows 2003 server. I
need to move an intranet application onto this server, however, I have
the following problem with ASP.Net.
In the properties for the Default Web Site in IIS, on the ASP.Net tab,
there is only 1 version of .Net available to s... more >>
Regarding AJAX
Posted by aroraamit81 NO[at]SPAM gmail.com at 3/14/2006 1:14:31 AM
I am using AJAX, it works very fine..............
But the problem is my back end aspx page does not get refreshed rather
it picks old values now when I execute the aspx page explictly then the
out put on my page(where AJAX code has been written) gets
reflected.....
What could be done......
... more >>
ASP.NET 2.0 ImageField Upload Image Insert / Update
Posted by JpMaxMan at 3/14/2006 12:00:00 AM
Greetings - I have found very little definitive information on this.
From what I can surmize at some point the ability to update an image in
the gridview using the imagefield was removed from the final version of
asp.net 2.0?
If this is the case, does anyone have any work arounds for how t... more >>
Regular Expression Validator on dropdownlist
Posted by Bas Groeneveld at 3/14/2006 12:00:00 AM
Hi
I want to detect a name in brackets - eg (Bas) - being selected in a
dropdownlist. I intended to use the RegEx validator with ^\(.*\)$ which
should work.
My problem is that the value of the dropdownlist is not the same as the
displayed text (ie it is the ID of the selected item) and the ... more >>
|