all groups > asp.net > march 2005 > threads for wednesday march 23
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
UnauthorizedAccessException
Posted by Bruce at 3/23/2005 11:19:48 PM
I need to read a file within a web service, but am having (apparently)
permissions problems. Code snip is posted below.
When I attempt to open a filestream to read a file, I get an
UnauthorizedAccessException exception.
I have granted full permissions on the directory to IUSR_machineName,... more >>
re-use function
Posted by JB at 3/23/2005 11:00:53 PM
Hello,
I want to us a function on some different pages. How do I have to do
that.
For example, te function is
function test(strText as string)
response.write(strText)
end function
On page 1 I want to display: "thanks for your help" bij issueing the
command
test("thanks for your he... more >>
Link in a DataGrid
Posted by Matthias S. at 3/23/2005 10:59:06 PM
Hi,
I've got a DataGrid displaying ID, Name, Email and Notes field from a
table. Now I'd like to put a Hyperlink under the value in the
name-column (or, if possible, under the complete row) which will point
to a details-page with the value from the ID field built into the link.
Sample:
... more >>
Problem in exporting pdf file from crystal report
Posted by Lasso at 3/23/2005 10:22:50 PM
Hi all,
Im having problem in exporting pdf file from crystal
report. Now I already can show the crystal report but
error when exporting. this is my code:
Dim myReport As USERReport = New USERReport
Dim strExportFile As String = Server.MapPath
("../REPORT/") & "Output.pdf"
... more >>
Object reference not set to an instance of an object.
Posted by Raed Sawalha at 3/23/2005 10:05:02 PM
Hello,
we developed an ASP.NET Application, then our QA Dept make a full QA in all
pages with all possible cases, after deployment and review the error log we
noticed that many of errors which make page to be crashed refered to error
(Object reference not set to an instance of an object.)
... more >>
c# word automation
Posted by Andy at 3/23/2005 9:47:03 PM
I have created a C# Windows form that performs a mail merge, however, I want
to access the resulting document and save it and close word. The code I am
using closes the original document and the data document leaving me no handle
to the result.
I am using
wrdMailMerge.Destination= Word... more >>
Syncing DataGrid BindingContext
Posted by Joe Reggae at 3/23/2005 9:03:44 PM
Hello,
I'm a little weak in understanding concepts surrounding currency and binding
context and appreciate advice in getting some grids to bind (in sync) to
three related tables.
Specifically, I have three tables with one-to-many relations defined in my
dataSet from parent to child and f... more >>
javascript window.open feature.
Posted by Jensen bredal at 3/23/2005 8:03:39 PM
Hello,
i want my aspx page to open minimized with some predefined with and height
and
the always on top feature.
The problem is that IE does not seem to support this. Only nestcape does.
alwaysRaised=1 only works for netscape.
How can i create IE window "always on top"?
Man
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Navigation based on permissions
Posted by Manny Chohan at 3/23/2005 6:29:01 PM
Hi guys, I am working on a project which has about 5-8 different modules and
each module has 3-4 pages with the concept of top and left navigation that
can be controlled based on user permissions for that section.
One solution is XML however it gets messy if you have few permissions in
each ... more >>
Show / Hide Navigation Question
Posted by Patrick Olurotimi Ige at 3/23/2005 5:51:57 PM
On http://msdn.microsoft.com/library/default.asp on the left pane u have
:-Hide TOC and Show TOC
When in Hide TOC it gives the user to see the whole page..
Any samples on how to implement that..
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USEN... more >>
asp.net newbie question
Posted by romy at 3/23/2005 5:50:25 PM
Hi
Starting to study asp.net....
I'm trying to run some .aspx file (For testing)
http://localhost/page.aspx
For some reason the browser doesn't compile and run the script, but just
display as text file.
if page.aspx is blank then filedownload window pops.
(ofcourse the .netframework i... more >>
ASP.NET File Upload problem
Posted by Asshen Shugar at 3/23/2005 5:28:34 PM
Hey.
I was experimenting with file uploading possibility using ASP.NET.
I ran into a problem :(
I can upload small files, but if I try a bigger file it doesn't work...
Anyone who can help me please ?
Thanks.
K.
private void btnUpload_Click(object sender, System.EventArgs e)
{
st... more >>
Class HyperLink and mouseover
Posted by Peter Eriksson at 3/23/2005 5:10:54 PM
I am making a link with the HyperLink-class like this:
HyperLink link = new HyperLink();
link.NavigateUrl = "http://www.page.com";
link.Text = "Some text";
link.ImageUrl="/images/linkimage.gif";
What I would like to do is to show another image for the link on the
mouseover event.
Is thi... more >>
Access problem
Posted by Nitin at 3/23/2005 4:57:30 PM
I use MS Access as the database engine in my site. when I type the exact
path of the data base in the browser I am able to download it(Save/Open file
dialog comes up) e.g localhost/tdata.mdb or example.com/tdata.mdb.
Can anyone help
Regards
Nitin
... more >>
is this possible? adding dropdowns based on a databind to other co
Posted by LU at 3/23/2005 4:23:03 PM
I want to add dropdown boxes based on a databind to a checkboxlist.
I database/databind to a checkboxlist but for each checkbox created I want
to also create a drop down next to it with some predefined values.
so, if my databind creates 5 checkbox items, 5 dropdowns should be created.
... more >>
SQL Date comparison problem...
Posted by darrel at 3/23/2005 4:22:13 PM
I'm grabbing today's date with some ASP.net code:
Dim Today As Date
Today = Microsoft.VisualBasic.Today()
I'm then trying to run a SQL query with the following WHERE statement:
WHERE postdate <= " & Today & "
But it's pulling up records that have a postdate in the future.
A sample:
... more >>
Using a Web Service to Update ASP.NET Web Form
Posted by johnbarry at 3/23/2005 3:31:12 PM
Is it possible to write both an ASP.NET application (with both .aspx and
..ascx files) and a web server that is referrenced by the ASP.NET app such
that a web form or any user controls on the web form are continually and
automatically updated with data from the web service without having to do a
... more >>
Problem With CUSTOM CONTROLS
Posted by GMK at 3/23/2005 3:03:42 PM
Dear all
i'm facing a problem in creating a user control that allows me to set inside
this user control an instance of a dataset and to set an SQLDATAADAPTER.
those 2 controls would be used on multiple pages so i don't want to assign
them manually on each page i want to put them in a control or ... more >>
Sending Mail via Hyperlink
Posted by Ian Kelly at 3/23/2005 3:03:22 PM
Hi All,
Does anyone know how to execute a hyperlink programically? I need to create
and send an email message, but I need to have the default mail editor loaded
and populated with the message details and then have the user click on send.
'Mailto:' would work great if I could get it to fire a... more >>
printing processed orders automatically
Posted by Chris at 3/23/2005 3:01:04 PM
Hi,
I have a web app that users enter orders, then another department approve
the orders. I want to be able to have the processed orders be printed
automatically. How should I go about doing this? Do I have to create a
windows service that checks for processed orders and than print? Or can I ... more >>
Page Caching help needed
Posted by Adrian Parker at 3/23/2005 2:52:44 PM
IE.. Tools -> Internet Options -> Settings Button ->
Check for newer versions of stored pages = Never
If a user changes thier settings to this, then pages are cached in IE.
From what we've found, you have to use the following Meta tags in the HEAD
section to stop it doing it.
meta... more >>
CheckBoxList Control nullReferance Exception
Posted by I am Sam at 3/23/2005 2:27:01 PM
I keep getting the following error message when I try to iterate through a
CheckBoxList control:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more informa... more >>
Triggering ItemCommand with ImageButton in Datagrid
Posted by Lars Netzel at 3/23/2005 2:16:53 PM
Hi
I had a Delete Column in a datagrid that was a Linkbutton. That needed to
change into a ImageButton because of the design demands in the project. Then
how do I trigger the DeleteCommand with that button?
I don't want to have to add a AddHandler in the ItemCreated or ItemDataBound
for ... more >>
Crystal Reports in asp.net - Encapsulating page failed - ERROR
Posted by Phin at 3/23/2005 1:43:46 PM
Hi,
I saw that a few people in the past have been getting the same error
when a user tries to drill down (to a sub-report) on a crytal report
with ASP.NET (but there was no solution posted):
"Encapsulating page failed"
We are using CR 8.5? Any thoughts or a solution?
Please post!
Tha... more >>
access a user control via a "page src=" .aspx page
Posted by digitalego at 3/23/2005 1:01:23 PM
Sorry if the title is a little confusing... Here is the problem.
I am working with a "default.aspx" page that uses a user control I
made:
------------------------------
| default.aspx |
------------------------------
<%@ Page language="C#" CodeBehind="ChartPage.cs"
AutoEve... more >>
Application Start
Posted by Fernando Arámburu at 3/23/2005 1:00:22 PM
Hi , it´s me again.
I will take another way because yesterday I make a question and,
probably I didn´t make myself clear so you didn´t understand my question.
I want to know if there is any way to register a method to the
Application Start event. I know there is one way, in Global.as... more >>
Resize Image in Datagrid
Posted by Steph at 3/23/2005 12:51:06 PM
Hi,
With a database that stores the path of several images, i have:
<ASP:TemplateColumn ...>
<ItemTemplate>
<ASP:Image id="thePicture" ImageUrl=' <% #
DataBinder.Eval(Container.DataItem, "PictureRelativePath") %>' />
</ItemTemplate>
</ASP:TemplateColumn>
.....
I woul... more >>
running .net exe files on the non-.net machines
Posted by lightyears78 NO[at]SPAM yahoo.de at 3/23/2005 12:40:25 PM
Hello
i wrote a small mail sending programm (console project) that works
fine on different pcs where .net 1.1. is installed. unfortunetely our
client does not have .net 1.1 framework installed (and does not intend
to) . any solution to this problem?
is it possible to find the *.dlls that are u... more >>
Authentication in ASP.NET
Posted by Shapper at 3/23/2005 12:15:50 PM
Hello,
I am working on a web site and I need to create a login page.
I am using a Microsoft SQL database to hold my usernames and passwords.
I think I should use authentication in web.config.
Well, can someone help me out with this and also send me some links.
I never did something like... more >>
Help please!
Posted by Grant Boettcher via .NET 247 at 3/23/2005 12:01:45 PM
I have search results from a SQL query using three parameters @keyword, @groupData, @actionData. I want to display the results in a string "Your search for KEYWORD and GROUP and ACTION have returned the following:"
How do I set up my stored procedure to pass these? something like this? do I even ne... more >>
How can I bind two forms?
Posted by Steven at 3/23/2005 11:52:40 AM
I'm using C# as code-behind for my aspx pages. How can I bind pages..
so that both the pages can use the functions, variables, controls .. between
each other.
eg., if I declare function scope() in page1, I should be able to use it in
page2 and vice-versa. same with variable also..
Any hel... more >>
Using debug and release bin directories for asp.net project
Posted by Mark Murphy at 3/23/2005 11:29:01 AM
Hi,
I would like to keep my release and debug dll's separate in a structure as
follows:
/myapp
global.asax
home.aspx
/bin
/debug
myapp.dll
/release
myapp.dll
If I do this and rebuild my solution, the rebuld works but executing from
the ide results in a... more >>
setting src. of flash (client side stuff)
Posted by Steve at 3/23/2005 10:50:53 AM
I'm trying to change the src of a flash movie in my asp.net page.
I'm getting the element fine w/ javascript and setting the src property, but
the player isn't showing the correct movie.
Is this possible?
When I right click on the movie, it says "movie not loaded"
Any ideas?
Steve
... more >>
ASP Code not working on ASP.Net Page
Posted by selena NO[at]SPAM selenabil.com at 3/23/2005 10:47:21 AM
I have created 2 ASP pages that gives users the option of switching
back and forth between French and English. They click on the word
English and it converted the text to English and the French link
converts the text to French. In the ASP page with the form on it there
is an includes file po... more >>
Error TemplateEdition
Posted by PawelR at 3/23/2005 10:38:21 AM
Hello group,
I'm new in asp.net and have one question about edit value in dataGrid.
In my project I have file Mod.aspx with:
<P><asp:datagrid id="dgRabaty" runat="server" AutoGenerateColumns="False"
OnEditCommand="rabatEdit" OnUpdateCommand="rabatUpdate"
OnDeleteCommand="rabatDelete" OnCa... more >>
Error in EditTemplate
Posted by PawelR at 3/23/2005 10:37:32 AM
Hello group,
I'm new in asp.net and have one question about edit value in dataGrid.
In my project I have file Mod.aspx with:
<P><asp:datagrid id="dgRabaty" runat="server" AutoGenerateColumns="False"
OnEditCommand="rabatEdit" OnUpdateCommand="rabatUpdate"
OnDeleteCommand="rabatDelete" OnCa... more >>
Searchable ComboBoxes
Posted by Craig G at 3/23/2005 10:27:51 AM
for months we have been dabling round looking at various 3rd party
comboboxes that allow the user to type text into the combobox as a search
mechanism
what we've found is that the likes of OpinatedGeek comboboxes do seem to
work for exacrtly what we want to do but only if you use IE! if i try ... more >>
How to compact Access database using ASP.NET
Posted by Oded Dror at 3/23/2005 10:23:20 AM
Hi there,
I have a Guestbook.mdb file on my website and I would like to compact this
file by using Compact.aspx file with Button click
How do I do that ?
Thanks,
Oded Dror
Email: odeddror@cox.net
... more >>
Datagrid Verticle Header is this possible? How?
Posted by Roger at 3/23/2005 10:17:32 AM
I would like to make my column header go verticle instead of horizontal. Is
this an easy task in asp.net. (Actually using Visual Studio.net 2003).
thanks,
Rog
... more >>
Firefox Rendering
Posted by Loui Mercieca at 3/23/2005 10:03:48 AM
I have a several web pages written in asp.net with IE in mind. However,
using firefox they are rendered really badly. After some searching i found
that the only way is to use the proper html tags only, or redirect to
another page if the user is not using IE. However since the web pages are
a... more >>
calculated column in datagrid question
Posted by Kurt Schroeder at 3/23/2005 9:51:03 AM
can you populate a colmun in a data grid with a calculated value and can this
be done on databind?
I have a datagrid that is populated with a shopping cart. This data comes
from the database. I have a quantity and price that i'd like to calculate in
a function and show as a line total. Wha... more >>
How to create PDF file in C# without using 3rd party component?
Posted by Hongbo at 3/23/2005 9:48:47 AM
Hi,
I'd like to create PDF file with tables in ASP.NET application in C#
without using any third party component.
I did some search online and only found the following link:
http://www.c-sharpcorner.com//1/PDFFileGeneratorPKS.asp
The code was published by Pramod Kumar Singh. His code
did... more >>
arraylist to datatable
Posted by gane kol at 3/23/2005 9:11:05 AM
Hi,
I have a code that creates a datatable from an arraylist, but i am getting
an error in casting in
for (int intRow = 0; intRow < alLCPlist.Count; intRow++)
{
DataRow drow = dtLCPack.NewRow();
int intColCount = dtLCPack.Columns.Count;
ArrayList arrlRow = (ArrayList)alLCPlist[intRow]; ... more >>
Dynamic Events from Dynamic Controls on a User Control - Guess What? Broken!
Posted by mytestemailaccount NO[at]SPAM gmail.com at 3/23/2005 8:49:11 AM
Hi,
Hope you can help.
I am relatively new to all this but would appreciate the groups help.
The scenario:
I am c# and asp.net to create a web application. The web page contains
a user control (.ascx).
This user control DYNAMICALLY loads the controls it is to show from an
XML file.
... more >>
Newbie: Is it possible to set <body> attributes via code behind?
Posted by charliewest at 3/23/2005 8:41:03 AM
I'm sure it's possible, but it hasn't occurred to me "how" to set the values
of the <body> tag via code-behind. I am currently setting the onload event in
the body tag of an ASP.NET web form using old-fashion asp type <%.. code...
%> blocks.
This "spaghetti-scripting" is difficult to manag... more >>
<allow roles ...> does NOT work ???
Posted by (cmrchs NO[at]SPAM yahoo.com) at 3/23/2005 7:53:02 AM
Hi,
I can't make <allow roles...> to work in web.config
I'm logging on as 'Administrator' and try to access a site for which the IIS-authentication method is set to 'Integrated Windows' only
Following are the web.config-entries of the site :
<authentication mode="Windows" />
<authoriz... more >>
problem installing asp.net
Posted by coltrane at 3/23/2005 5:43:53 AM
I am trying to install asp.net on a win2k box running iis5.0. I have
downloaded and installed the .Net Framework 1.1. I cycled my system and
web server( just for the hell of it). When I try to create a Visual
Basic ASP.Net Application I get the following error:
>>
"Visual Studio .Net has detec... more >>
Displaying a datagrid X rows at a time
Posted by quanga NO[at]SPAM gmail.com at 3/23/2005 5:42:35 AM
Hi-
I have a datagrid that in some cases can be several thousand rows in
length. What I'd like it to do is have the data pushed to the browser
after every, say, 100 rows or so. Kind of a "response.flush" effect--
at a certain recurring point in the process, take what we've got and
send it to ... more >>
Regular Expression / Required Field Validator
Posted by John . at 3/23/2005 5:41:56 AM
I am using the Regular Expression Validator control to validate a
correct email address. But, at the same time I would like to make it a
required field.
I tested by using just the regular expression validator expecting a
message to be displayed but it let me submit the form. Do I have to use... more >>
Control the size and position of a popup window.
Posted by Jensen bredal at 3/23/2005 12:15:08 AM
Hello,I lunch a popup window from an aspx file .
The javascript uses window.open .
The problem is that the height parameter appears to have a limit and i
cannot go below that limit.
code below:
function Openwindow( postBack)
{
popUp = window.open('AfMedarbejder.aspx' ,
'test... more >>
Q - How do I persist members variables/properties on Page level?
Posted by Usenet User at 3/23/2005 12:00:00 AM
I know I can use ViewState for member fields and variables declared on
Page level to persist between postbacks, for example:
private const string FormModeTag = "_FormMode_";
private string FormMode
{
get
{
object formMode = this.ViewState[FormModeTag];
if( formMode != null )
{
... more >>
WYSIWYG Editor ?
Posted by Arsalan at 3/23/2005 12:00:00 AM
How do they make WYSIWYG editor in the browser ? I've seen couple of website
using them, but how do they make a WYSIWYG editor in the browser ?
... more >>
2 ways to write code in asp.net
Posted by Jignesh Desai at 3/23/2005 12:00:00 AM
There are essentially two ways that you can write code for an ASP.NET
application.
Inline code Style
---------------------------------------------------------------
<html>
<script language="vb" RUNAT="server">
Private Sub Page_Load()
Response.Write("This is Inline ASP.NET Applicatio... more >>
|