all groups > asp.net > august 2004
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
Problems with page aspx
Posted by Silvia at 8/31/2004 11:11:01 PM
Hi
I have a windows service that run a aspx page in the url
http://ip/raimserver/ris/cpr002.asxp with user and password and produce an
error:
Time-Out sending request. RIS server can be down. Exception is
:System.Net.WebException: The remote server returned an error: (401)
Unauthorized.
... more >>
Windows webhosting with ASP & DB. Cheap
Posted by Jow Blow at 8/31/2004 10:43:43 PM
HI,
I want to find some cheap webhosting with Microsoft ASP and database
access. I want to use Access and/or SQL DB with ADO.Net. I want to
practice some ASP programming and develop various things.
Does anyone have any ideas who is cheap and reliable?
Thanks
Jow
I can also be reached ... more >>
Can't get line number or compiler error on exception?
Posted by Eric Gibson at 8/31/2004 10:30:03 PM
Hey,
I want to be able to get a sensible exception message that I can actually use to
fix my code using asp.net... I was able to set up the Application_Error event, and
email exceptions to myself, but they only include "Message" and "StackTrace"...
Every email I've gotten includes no infor... more >>
Exception in configuration section handler using a Custom ConfigurationHandler
Posted by murlbrown NO[at]SPAM bellsouth.net at 8/31/2004 9:43:48 PM
Below is what i have as the custom section in the web.config file...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- register local configuration handlers -->
<configSections>
<sectionGroup name="cbsoffice">
<section name="data"
type="CbsOffice... more >>
Registry key not being read
Posted by ph8794 NO[at]SPAM yahoo.com at 8/31/2004 8:08:59 PM
I have an C# assembly that is supposed to read a registry key:
RegistryKey regCurrentUser = Registry.CurrentUser;
RegistryKey regSoftware = regCurrentUser.OpenSubKey("Software",true);
RegistryKey regFamily = regSoftware.OpenSubKey("MyCompany", true);
RegistryKey regApp = regFamily.OpenSubKey(... more >>
Can CR coexist with other CR
Posted by Harry Simpson at 8/31/2004 4:26:47 PM
My app only produces reports when it is the only instance of Crystal Reports
on the server. Otherwise I get the KeycodeV2.dll error - can't find etc.
Remove the other CR engined app and everything works fine.
Any ideas?
TIA
Harry
... more >>
Add an image at runtime
Posted by Thomasa Gregg at 8/31/2004 4:20:00 PM
I have a map that I want to add a pushpin image for each location I have in
a database. How do I go about adding the pushpin image to the x, y
coordinates I have calculated to the map image. I am just not sure how to
add the image at runtime. I am using vb.net and asp.net. Any help would be
... more >>
newbie: I don't want my .aspx and .cs files to have the source viewable by the client
Posted by Seth Broomer at 8/31/2004 3:52:10 PM
I'm creating a C# .net project, for a client. However they only have the
right to the binaries, not the source code. Is there a way to compile it so
that I just give them dll's? or do they need the .aspx pages. I read
somewhere that I could probably make assemblies (excuse my bad terminology)... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
force page refresh with response.expires=0?
Posted by qqq at 8/31/2004 3:51:34 PM
I need a page to be refreshed, even if the user navigates back to it with
the 'Back' button in the browser. I've put "Reponse.expires=0" in the
Page_load event, but the desired refresh isn't happening. Of course it does
refresh if the user hits F5. Why?
(When I do View/Source from the brows... more >>
RegisterClientScriptResource ?? .js w/ whidbey
Posted by Zwyatt at 8/31/2004 3:49:13 PM
Apologies if this is in the wrong newsgroup -- couldn't find one for whidbey
web dev.
I am having a problem using .js file w/ whidbey. Currently I have a .js
file referenced on every page in my website. It works fine when I run the
website in debug mode (F5). Excellent, even.
The probl... more >>
disable lables on client side
Posted by headware NO[at]SPAM aol.com at 8/31/2004 3:45:02 PM
Is there a way to enable/disable a label through javascript?
Thanks,
Dave... more >>
PLS HELP: HTML email = wierd results
Posted by VB Programmer at 8/31/2004 3:41:09 PM
I am sending an HTML mail message in my web app.
When I copy/paste the HTML of the main body into notepad and name it 1.html
it looks perfect. When I receive the email everything looks good except for
the fact that the main table is too wide. Any ideas?
FYI:
Dim mm As New Mail... more >>
Another State Management question
Posted by Nikhil Patel at 8/31/2004 3:40:34 PM
Hi all,
Is there a way to store a value that can be accessed from entire
application during a session? Basically I would want to be able to access
the value from multiple pages and/or requests and it should be removed only
when the session ends. I know I can use Application State. But that wi... more >>
Visual Studio .net template creation
Posted by Brian Barnes at 8/31/2004 3:13:33 PM
I am trying to create a template code behind file for a website which all
pages should be inherited from. This base class however, when I try to view
the aspx page in Visual studio .NET (2002), it gives me the error:
The file failed to load in the web form designer. Plese correct the
follow... more >>
Diff CSS styles for diff INPUT TYPE='s?
Posted by A Traveler at 8/31/2004 3:04:15 PM
I know in a css file, i can declare a style which will apply to a given HTML
tag, specifically, i am looking at an INPUT tag. Is there any way in which i
can create a style section which will apply to a specific *type* of input??
That is, a section which applies only to [input type=text] or on... more >>
Bins and virtuals
Posted by mark.horrocks NO[at]SPAM plymouth.ac.uk at 8/31/2004 2:13:05 PM
Hi,
I am trying to deploy my first ASP.Net app.
The root of the site, http://x.y.z , is at c:\inetpub\wwwroot.
The code executes in a virtual: http://x.y.z/code which is mapped to a
shared drive \\server\pathtocode.
So, my first thought is that the bin should be at
c:\inetpub\wwwroot\bin, b... more >>
datagrid row bolding?
Posted by Jason at 8/31/2004 2:05:50 PM
I have a asp.net datagrid on a webpage that fills itself from Active
Directory.
Is there a way to Bold an entire row (perhaps even increase font size)
depending on a value in the row? That is, if the 'title' field has a value
of "Director", I want to bold the entire row (including name, depar... more >>
how to RegisterStartupScript JS.file
Posted by Stan Sainte-Rose at 8/31/2004 2:03:39 PM
Hi,
I m working on a user control.
I need to use a Js file, I would like to know how to load the js file using
RegisterStartupScript command from the user control.
Also, if I load the same user controls several times in the same webpage, do
I have to check if the js file is still loaded ?
St... more >>
custom http handler -- not reaching the session
Posted by mortb at 8/31/2004 1:57:44 PM
I have written a custom http handler and added it to the web.config file
<httpHandlers>
<add verb="GET" path="ITImageService.axd"
type="ITImageService.ITImageGetter,ITImageService" />
</httpHandlers>
The code for the handler looks like:
public bool IsReusable { get { return true; } }... more >>
Find Control in a nested DataGrid
Posted by Josh at 8/31/2004 1:38:51 PM
Hi Guys,
I have been stuck on this problem for several days now, i have a set of
nested datagrids. Inside the second datagrid i have a dropdown list, a
textbox and a label. I want the textbox to update the label with the value
of the dropdown list * the text box quantity. I am using an onTe... more >>
Save Record With "For Each ctrl In Me.controls" Statement
Posted by crjunk NO[at]SPAM earthlink.net at 8/31/2004 1:01:05 PM
I'm trying to write a piece of code that will programatically save a
record automatically without me having to add a new ' Row.Item("ADD1")
= txtAdd1.Text.Trim.ToUpper ' type command each time I add a new
textbox. I've named all my textboxes in the following format txtAdd1
and I've named all my ... more >>
2 simple questions
Posted by simon at 8/31/2004 12:43:34 PM
I have dataRepeater:
<asp:Repeater ID="repeater1" Runat="server">
<ItemTemplate>
<%# writeLine(DataBinder.Eval(Container.DataItem, "danIme"))%>
</ItemTemplate>
<FooterTemplate>
<asp:Button ID="btnDelete" Runat="server" Text="Delete"></asp:Button>
</FooterTemplate>
</asp:Repeater>
... more >>
.NET (asp:Dropdownlist, javascript)
Posted by Urmal Patel via .NET 247 at 8/31/2004 12:40:38 PM
I have problem with asp:Dropdownlist. I have a dropdownlist control in Page1.aspx and I want to assign value and Text to dropdown list form Page2.aspx from java script function. I am able to assign values to asp:textbox but not asp:dropdownlist
code is as follow when i call this function BindShip... more >>
Need urgent help with asp.net perfromance...
Posted by cwarez NO[at]SPAM megsinet.net at 8/31/2004 12:09:59 PM
Hi,
I have a dedicated server running Win 2003, IIS 6, and ASP.net 1.1
I have 8 ip addresses and under the Default Web Site I created a
virtual directory called "test" so I can test my app. This uses "All
Assigned IPs"
My app is asp.net (C#) and uses MS Access db (JET).
Here is the pr... more >>
how to control media play with asp?
Posted by host28 at 8/31/2004 11:49:47 AM
i want to insert media which plays wav file to asp.but i don't recognize
whether it has finished playing. for i want to continue to play next one.
how to do next?
thanks
... more >>
Change dropdownlist default value
Posted by dw at 8/31/2004 11:40:25 AM
Hello, all. I have a dropdownlist with id "lstStates" that shows all the
states. It has two fields -- abbr and state. The "state" field is the
DataTextField. Everytime the page loads, it shows "Alabama" as the default
state. However, I want it to show something like "< please select >" as the
Da... more >>
controls on a base page not available?
Posted by Peter Young at 8/31/2004 11:22:44 AM
If I inherit from a custom base page, it seems that the controls on the base page are unavailable.
e.g.
public class basePage : System.Web.UI.Page
{
protected System.Web.UI.WebControls.HyperLink HyperLink1;
private void Page_Load(object sender, System.EventArgs e)
{
System.Diagnost... more >>
Session Timeout problem
Posted by Eilsa at 8/31/2004 11:19:43 AM
Dear all,
My ASP.NET page always session timeout within 20 minutes. However, I've set
the following statement at the web.config
<sessionState timeout="400" />
Any alternative solution to extend the timeout period?
Thanks
Best Regards,
Eilsa
... more >>
Always 'localhost' from Request.ServerVariables["SERVER_NAME"]
Posted by L Scott at 8/31/2004 11:19:13 AM
I am wanting to get the machine name that is running IIS. I have code in
the 'Application_BeginRequest' event of the Global.asax and even if I access
the web site from another machine I am always getting 'localhost' in the
SERVER_NAME variable. Any way to get the actual machine name?
LWS
... more >>
ItemDataBound of repeater... Before or after render?
Posted by Darren Clark at 8/31/2004 10:57:15 AM
I am trying to work out how to change some values of data during
itemdatabound.
MSDN states that the ItemDataBound is called BEFORE the render... so any
changes do the data SHOULD work..
however ihave the following example... and it doesnt work at all... the
text CHANGE_Value does not come... more >>
Need help with adding button to a datagrid dynamically
Posted by Mark at 8/31/2004 10:45:01 AM
Hello, I have a need to add a button column to a datagtrid, below is my code
and although it does not produce an error, it also does not work, any help?
I'm hoping that I can capture the button click in the datagrid itemcommand
event but figure having the button show first would be a good thin... more >>
Directory listing
Posted by Todd Lu at 8/31/2004 10:42:08 AM
I am trying to get the directory name instead of the directory and filename.
I am currently using the input type="file" but it doesn't allow me to just
select the directory. Does anyone have an easy solution for this?
Thank you,
Todd
... more >>
session object: simple question
Posted by Nikhil Patel at 8/31/2004 10:20:26 AM
Hi all,
I am using a Session object in my ASP.Net application to store a value of
a Database field. I can access it as ...
int iProposalId = Session["ProposalId"];
The session timeout is set to 20. Now my question is if the session expires,
would the above statement produce any excepti... more >>
enumerate roles a user belongs to ? (seek vb.net sample)
Posted by usenet_daughter NO[at]SPAM yahoo.com at 8/31/2004 10:01:23 AM
I would like to write a vb.asp.net function
Private Function fn_sGetRoles(byval sDelimiter as string) As
String
that simply returns a delimited list of all the roles a user belongs
to.
I did some research, and found a number of solutions, that all seem to
use a WindowsIdentity type ... more >>
Which is correct?
Posted by Nelson Smith at 8/31/2004 9:51:30 AM
In my java script to set the value I am using the following code
document.frmMyForm.txtCustNo.value = "xxxxx"
&
document.frmMyForm.txtCustNo.value = 'xxxxx'
Questions is single quote or double quote is right way coding?
Thanks,
Nelson
... more >>
master pages contentplaceholder
Posted by billy_cormic NO[at]SPAM hotmail.com at 8/31/2004 9:38:09 AM
Hello,
I am using Visual Studio 2005 Beta for the first time and am having
trouble using contentplaceholders. Actually, I am having trouble
declaring them. Here is a snap shot of my master page:
<%@ master language="C#" %>
<html>
<head id="Head1" runat="server">
<title>Untitled Page<... more >>
Best approach for authenticating users for various departments in ASP.Net
Posted by Larry Rekow at 8/31/2004 9:31:00 AM
I created a web application in classic ASP 6 months ago that had a
login page which would only allow certain users to add, update or
delete files from 6 different departments. (Windows 2000 server, NTFS,
IIS5, not using Active Directory. After users are challenged for basic
windows authenticatio... more >>
Automating Outlook 2000
Posted by Matthew MacDonald at 8/31/2004 8:48:41 AM
Hi all,
I'm trying to have an email message automatically generated when a button is
clicked on an asp.net web form. I'm using portions of the sample code from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2000/html/olconAutomatingOutlookFromVisualBasicApplication.asp
to... more >>
Visual Web Developer Express Edition should be free
Posted by John Dalberg at 8/31/2004 8:47:55 AM
I don't know how much Microsoft is planning to price Visual Web Developer
Express Edition. I heard rumors from free to $100.
In my opinion I think it should make it free. The reason is to attract as
many people to .NET and ASP.NET. This includes people who are in the Linux
world using fr... more >>
Deployment Questions
Posted by Wayne Wengert at 8/31/2004 8:39:20 AM
I have an account with an ISP for my web site. I do not have access to the
server configuration controls. I can ask the ISP to designate an existing
directory on my web site as a virtual directory. I use VSNET 2003 to develop
applications and I am trying to understand exactly what/how to "install... more >>
tie validator to a specific submit button ?
Posted by usenet_daughter NO[at]SPAM yahoo.com at 8/31/2004 6:36:40 AM
To use a simple example, if I have a web form with two textboxes
Textbox1 and Textbox2, two Required Field Validators Validator1 (which
validates Textbox1) and Validator2 (for Textbox2), and two buttons
Button1 and Button2, can I specify that Validator1 should only
validate if Button1 is pressed... more >>
Custom control problem
Posted by Mark Goldin at 8/31/2004 6:33:23 AM
Here is a problem I have.
I am modifying my composite control during a day many times.
After every modification I have to remove the control from the form, remove
reference to a dll and place control back to form in order to pick up the
changes.
Is there a way to update instances of the custom... more >>
Regexp only if string is a certain length
Posted by teddysnips NO[at]SPAM hotmail.com at 8/31/2004 3:09:20 AM
I need to validate a text box entry, but ONLY if it is 17 characters,
otherwise I have to ignore it. My regular expression for the
validation is:
^(([a-h,A-H,j-n,J-N,p-z,P-Z,0-9]{9})([a-h,A-H,j-n,J-N,p,P,r-t,R-T,v-z,V-Z,0-9])([a-h,A-H,j-n,J-N,p-z,P-Z,0-9])(\d{6}))$
Can I adapt this to "fire... more >>
WebControl State: ViewState or Request.Form?
Posted by Hadar at 8/31/2004 2:40:25 AM
Hi,
I'm still a little bit confused with how managing a webcontrol state over
postbacks...
Should I use the form's post values to populate the control on the server
side when possible, or should I always use the viewstate mechanism?
For instance, I noticed that the TextBox webcontrol does n... more >>
HOWTO: Include Style Sheet Links in the ASCX Controls?
Posted by Don Wash at 8/31/2004 1:12:46 AM
Hi There!
I'm creating several ASCX Controls and those controls will have their own
CSS Style Sheets. But I don't know how I can link the corresponding Style
Sheet in the ASCX file? Because the style sheet can only be linked in the
<head></head> section of an HTML document, right? So ASCX cont... more >>
XML Control
Posted by Steve at 8/31/2004 12:55:05 AM
I have an XML control on a page which is populated dynamically from an XML
string and then transformed using an external XLST file. This works
perfectly.
Once a user competes parts of the XML form on the page contained within the
XML control, I want to extract the FULL XML content as a str... more >>
User Control Problem
Posted by Roshawn at 8/31/2004 12:36:59 AM
Hi,
I have created a web user control that acts as a numeric pager on my page.
It consists of a repeater controls and an HtmlAnchor control. Of course the
HtmlAnchor is placed in the repeater's ItemTemplate template. Just a note
that the HtmlAnchor control is not set as a server control.
I... more >>
XML open web page
Posted by m3ckon at 8/31/2004 12:31:32 AM
With ASP I used to open a web page using xml and wrote the html to a
string for manipulating.
Can someone give me a rough indication as to how this is done using
..net??
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for i... more >>
Including a file in code behind?
Posted by Mark Harris at 8/30/2004 11:27:55 PM
I have an interesting situation that i could not find a resolution for on
google or msdn, it goes as follows:
The web app i have has about 35 pages, each requires the same code in the
page_load (about 62 lines). If i need to change a single part of that
code, is there a way to do it withou... more >>
.NET C# service error 1053, service could not start in timely fash
Posted by 3dr at 8/30/2004 11:21:07 PM
I am developing a service which I install and run on a number of servers. It
works on most machines I have installed it on, but I always get a 1053,
service will not start in a timely fashion message on one server.
I have reduced the code to almost nothing so as to remove almost all the
pro... more >>
|