all groups > asp.net > november 2003 > threads for monday november 24
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
Problem with refresh after delegate event fires. c# and asp.net.
Posted by George K at 11/24/2003 11:30:44 PM
Hi, i have a very irriting problem that i have written a short piece of code
to demonstrate. The problem is that my aspx page is not fully refreshed
after an event, which is delegated to an ImageButton during runtime, is
fired. Any suggestions would be great. This code is the c# behind a webfor... more >>
Inline coding in ASP.NET using C#
Posted by Hassan Latif at 11/24/2003 11:29:33 PM
My problem is....
When I switch to Language="C#" in an ASP.NET page for
inline coding, the editor does not support dynamic
language syntax check. For example if the Language is set
to vb, and a dim statement is typed, it is highlighted in
blue color, but in setting the language to C#, doe... more >>
Please!!! Need help with WebUI.Panel
Posted by Jim H at 11/24/2003 11:16:32 PM
Let me start by saying that this whole project is a C# project and I don't
know ASP. I am posting to this group because of a suggestion by someone in
a response in the C# group.
I have a web application which has a WebUI.PlaceHolder on it. I have a
single custom Output rendering control that... more >>
User Session issue with ASP.NET Forms authentication & Windows 2003
Posted by Pete at 11/24/2003 11:08:19 PM
Hi,
Hope one of you guys can help me. I've got a site that's been running
just fine for the last couple of months that uses Forms Authentication. I
have two methods of login on the site, a login.aspx page that does redirects
& a bit on the default.aspx page that adds a sec cookie. Users have ... more >>
Visual Studio throws UnauthorizedAccessException when debugging
Posted by R Warford at 11/24/2003 7:40:08 PM
Visual Studio throws an UnauthorizedAccessException when I attempt to debug
my ASP.NET application. The error message refers to what appears to be a
temporary DLL created by Visual Studio. The error occurs if I make a
change to HTML code. If I force a recompile of the solution, the error
... more >>
asp:HyperLinkColumn question
Posted by Maziar Aflatoun at 11/24/2003 7:23:23 PM
Does anyone know how I can using <asp:HyperLinkColumn> have the same caption
and point to different URLs? (where the url is id=1,2,3,4,5)
Thank you
Maz.
... more >>
Discovering which handler is being used for request?
Posted by jeffyjones NO[at]SPAM hotmail.com at 11/24/2003 6:43:34 PM
Here's something kind of out there. I'm doing some "stuff" in
global.asax's Application_OnAcquireRequestState event. I have some
other non-traditional file extensions mapped to the asp.net process
(like .jpg to check that I'm not being bandwidth leeched). Is there an
easy way to see in Applicati... more >>
Calling script name from codebehind
Posted by Stefan Barlow at 11/24/2003 6:35:11 PM
I have a mechanism that performs a server transfer to another page that uses
the same codebehind class if an alternate page URL exists in the application
variables.
My problem is there is an endless loop because I cannot find the REAL script
name calling the codebehind. Request.ServerVariable... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Repeater
Posted by Jim Heavey at 11/24/2003 6:10:16 PM
Hello, I am trying to use the repeater and I have been successful, but I
have a few questions.
1. Can I control how many times it repeats accross the page?
2. Can I control if it repeats across or down the page.
3. If I want to print somthing like Field1 "/" Field2 where both Field1
and ... more >>
Datagrid question
Posted by Maziar Aflatoun at 11/24/2003 5:48:57 PM
Hi everyone,
Here is my problem. I have a datagrid that I binds to a table with the
following fields.
PID
FirstName
LastName
In my datagrid I display FirstName and LastName along with a edit option
(Don't want to display the PID in my datagrid). I have also enabled sorting
on it as w... more >>
sorting Specialized.NameObjectCollectionBase
Posted by V. at 11/24/2003 5:46:10 PM
Hi,
I need to sort the object
System.Collections.Specialized.NameObjectCollectionBase based on one
property of the special object. Is there an easy way to do this?
Thanks
Vicky
... more >>
How to improve the asp.net application's performance?
Posted by hb at 11/24/2003 5:27:11 PM
Hi,
I have a asp.net web application written in C#. The application is backed
by a SQL Server 2000 database. At current time, it's very slow. I guess
there
are problems on asp.net coding, stored procedure coding and database
design.
Would you please tell me the right steps to find out thos... more >>
Runtime error: Invalid attempt to read when no data is present
Posted by Matthew Louden at 11/24/2003 5:25:38 PM
I want to read how many records in the table, and insert a record with id
field which increment the counter by 1. However, I had the following runtime
on Dim s As Integer = CInt(dr("t")). Since "t" (I want to represent the
count, but just a tempoary variable, not a field in table) doesnt exist in... more >>
Cannot load the classes..
Posted by BASP at 11/24/2003 4:58:43 PM
I have created some classes with a namespace "TestLibrary"
in VB.NET and try to used it in my web site. However, when
I use the "Import TestLibrary", there is an error
saying "Compiler Error Message: BC30466: Namespace or
type 'TestLibrary' for the Imports 'TestLibrary' cannot be
found.
... more >>
Re: advance content management system
Posted by Patrick Santry at 11/24/2003 4:49:06 PM
DotNetNuke is probably the biggest community out there for .Net open
source portals. You can download the application from
http://www.dotnetnuke.com, there are several resources available that you
can find on DotNetNuke.com and on the ASP.Net forums.
"Lynn" <MarryLynn@yah00.c0m> wrote in ... more >>
Cache Questions
Posted by Zeljko at 11/24/2003 4:22:29 PM
Hi,
I was playing with the cache class (caching data, not fragments or
pages). It seems to be a very usefull feature, but I didn't manage to
find an explanation on how it works behind the scene. Except being
plain curious about it, I have a few concrete reasons for wanting to
know that, like:... more >>
Passing asp.net form data to a new browser window.
Posted by Souri Challa at 11/24/2003 4:15:27 PM
Hi all,
Is there any way to pass a large amount of data from an asp.net form to
another browser window opened through client script ? (i.e without using
sessions ).
Here is my scenario.I've a datagrid in a user control on my webform. when I
click a button on my webform, it should displa... more >>
ASP style in .NET
Posted by piyush.bhatt NO[at]SPAM htcinc.com at 11/24/2003 4:13:00 PM
Hello,
I remember reading somewhere that using ASP style in ASP.NET is not
recommended.
For example, there is following situation:
<% If x = y %>
Some ASP.NET controls
<% End IF %>
V/s.
<panel id=mypanel runat=server>
Some ASP.NET controls
</panel>
And then code behind can ... more >>
How to stop closing Browser Window ?
Posted by microsoft.public.dotnet.framework.adonet at 11/24/2003 4:05:13 PM
Hi,
How can we stop closing the browser window if user presses alt+f4?
thanks,
Rohit,
... more >>
stored procedure
Posted by nicholas at 11/24/2003 3:58:48 PM
Anyone can help me with creating a stored procedure that is only executed
when the form is submitted?
So, I have a form that should inserts values in a table. This goes with a
stored procedure. But ofcourse the value should first be filled in the
webform, and for this I have to prevent the f... more >>
Authentication/Automatic Redirect?
Posted by Donald Williamson at 11/24/2003 3:56:23 PM
Hi
Hope someone can help me with authentication and how the redirects work. I'
ve already tried searching previous posts but didn't really find anything.
for I have a page that checks to see if the user has logged in. If not, it
redirects them to the login page for authentication. After au... more >>
Server.Transfer
Posted by Russ at 11/24/2003 3:53:55 PM
Does server.transfer only works for pages that are in the root folder of an
application?
I tried some code that looked like this:
Server.Tranfer("./Subfolder/Mypage.aspx");
Is it not possible to transfer to a file in another folder?
... more >>
dynamically adding table rows and cells...
Posted by Rob Meade at 11/24/2003 3:42:54 PM
Hi all,
I'm desperately trying to get this to work and I just cant do it - new to
ASP.net - probably the reason!
I'm using visual studio for this - I have this in the html page :
<asp:Table id="Table1" runat="server"></asp:Table>
there is other code too but I believe this to be the rele... more >>
SQL get count(*) from items... no rows returned error
Posted by Pikarde at 11/24/2003 3:18:58 PM
I made a search page that will display items matching the users input.
It will display 8 items per page. So paging is a must.
I'm migrating the page from asp to asp.net
in asp it's very easy to call an sql statement as followed " select
count(*) as allitems from items where sku=' " & request... more >>
showModalDialog
Posted by kgs at 11/24/2003 3:04:18 PM
is it possible in jscript to display a modal dialog
without the close X button on right top.
Thanks!!... more >>
Block server.transfer on Page Refresh
Posted by brian at 11/24/2003 3:01:11 PM
Hello
I have a Server.Transfer from Page A to Page B. When a user presses 'Refresh', I don't want Server.Transfer to be executed again. What is the best way to trap this? I don't want to burn a Session variable for this issue
Thanks - Brian... more >>
Read file from ASP.NET on the mapped network drive
Posted by Michal Valent at 11/24/2003 2:52:36 PM
Hello,
if I try to read a file on the mapped network drive,
this error apears:
Logon failure: unknown user name or bad password.
How to set up permissions for IUSR_MACHINENAME
on the mapped network drive?
Thaks
Miso
... more >>
Validate Changed Data Before Submitting
Posted by Johnny at 11/24/2003 2:50:08 PM
Hello,
I've read somewhere that you can validate form data
before actually submitting it, similar to what validation
controls would do. For example, I have a form that has 2
textboxes. I populate the 2 textboxes with values from
the database. I also have an update button that will
upd... more >>
Why the reformatting
Posted by Lloyd Sheen at 11/24/2003 2:48:18 PM
Why does the VS IDE have to reformat the HTML all the time. I am so tired
of adding changes to the HTML then after switching views and then returning
to the HTML view all the items have been reformatted to some other standard.
Perhaps old notepad HTML coders like to see long unreadable lines of ... more >>
Bug: System.Web.UI.HtmlControls.HtmlInputControl - Type = Password
Posted by Marco Scheel at 11/24/2003 2:47:39 PM
Hello NG,
i think i found a bug. I've programmed an application that uses a HTML Input
textbox. The HTML type is "Password". The content is marked with "*". Thats
fine. I change the runat tag to server. Now i try to fill the control value
an nothing happens. try example at bottom.
i tried s... more >>
Re: SelectedIndexchanged won't fire
Posted by yyt at 11/24/2003 2:32:52 PM
I am stuck here .. trying to get the SelectedIndexchanged for the
dropdownlist to
work.
the dropdown list is db-bound and have set the autopostback to true. When
the application runs, the ddl gets all the data etc. But if the user selects
an item from the list, IE throws a JS error in the stat... more >>
XML and Database
Posted by momo at 11/24/2003 2:25:28 PM
Is there a way to import an XML file into a database like MSSQL or MS Access
using ASP.NET?
... more >>
Cache object
Posted by RA at 11/24/2003 2:18:28 PM
Hi
I use Cache for storing information between pages. Is the Cache shared for
the current session or for the whole application? If its shared for the
application then I can't use it for moving data between pages - then is
there other way beside using the session object?
Thanks,
Ronen
... more >>
Mental Block - probably easy answer...validation summary
Posted by Rob Meade at 11/24/2003 2:15:42 PM
Hi all,
I have a login page which has username and password fields, a login button,
and 2 validation controls (one for each field) - currently I have controls
to display to the summary if the items missing etc.all working fine...
However, when the user logs in I fire off to a stored procedur... more >>
Site Statistics
Posted by Paps at 11/24/2003 1:53:03 PM
I build a class for implementing site access statistics but I cannot track
for html pages, how can do this ?
thanks
Paps
... more >>
Dropdownlist default value
Posted by Aymer at 11/24/2003 1:49:37 PM
Scenario: i have a drop down list control in my form. i
am binding it with a dataset. that dataset contains the
value 1, 2, 3, ..., 10. so when the dropdownlist control
is loaded, it contain the values 1, 2, 3, ..., 10.
Problem: How do i create a default value for the
dropdownlist? ... more >>
Why the Id of the user control gets changed when used in aspx
Posted by dpattabi NO[at]SPAM saipeople.com at 11/24/2003 1:48:20 PM
Hi guys!!!!!!!!!
Can anyone help me out in this. I have .ascx file with one
textbox control in it. I am using it in my .aspx file. What happens is
i am giving the id of textbox control in ascx as ID="text1" when i try
to view the source once the page is loaded i can see the id as
"ctl4_tex... more >>
writing to an Excel file using ASP.Net
Posted by Jeff Hamilton at 11/24/2003 1:41:12 PM
I have several ASP.Net pages which allow the user to view
the content in Excel. To do this I am using the
line 'Response.ContentType = "application/vnd.ms-excel"'
in the Page_Load event. For Win 2K machines running IE
5.0 this does not cause a problem, however for machines
running Win XP a... more >>
Paging against cached dataset
Posted by ALPO at 11/24/2003 1:40:30 PM
ANy good examples of paging against a cached dataset. Our
datasets will be cached in viewstate.... more >>
Whidbey Webproject error
Posted by Sankar Nemani at 11/24/2003 1:40:09 PM
Hi
I am unable to create a web projetc using whidbey. When
I choose "New Web Site" option from File menu, I get this
error saying "Default.js or Default.vbs not found in
C:\Program Files\Microsoft Visual Studio .NET
Whidbey\Web\WEBPROJWizards\VB\Webs\Application\Scripts\1033
"
I get thi... more >>
Redirect when using Windows (Basic) Authentication?
Posted by Dave at 11/24/2003 1:36:35 PM
Hi,
Is there anyway to mimic forms authentication's loginUrl
and RedirectFromLoginPage functionality using Windows
authentication?
We are developing intranet sites using basic
authentication and we want to always redirect a user to a
default 'splash' or welcome page that is set to anon... more >>
Declaring variables - best practice?
Posted by Rob Meade at 11/24/2003 1:33:29 PM
Hi all,
New to .Net - still finding my feet...quick question...
In one of my functions I have about a dozen variables being declared at the
top - the first thing within the function, about 2 of these may or may not
be used depending on a couple of IF...Then's further down the page...
What... more >>
Passing Objects
Posted by Jeremy at 11/24/2003 1:15:20 PM
How do I pass class object references between ASP.NET webforms ?
... more >>
Refreshing Loading Frame from ASP .NET
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 11/24/2003 12:57:33 PM
I am sure this is simple, but I cannot find it.
I have a frameset with two frames. The top frame is a form to be
filled out. The bottom frame is the resultset. In the top frame when
I hit submit, it calls the submit function in my vb .net. What I also
want to happen is for the bottom frame... more >>
Handling arrays in request.querystring (c#)
Posted by Matthew Thompson at 11/24/2003 12:47:21 PM
I am developing an application which allows users to choose multiple
text sections from a list, displayed as a CheckBoxList, for printing.
The sections are being passed to a page using the QueryString and as
such I am getting a URL similar to the following created...
http://localhost/doprint... more >>
Convert gif to jpg
Posted by Ignacio Marcos at 11/24/2003 12:45:19 PM
Hi all. I need to convert files on my server from gif to
jpg format. I tried with the thumb function, but it does
not work (on the line thumb.Save(Response.OutputStream,
Imaging.ImageFormat.Jpeg)). Anybody can help me, tanks a
lot.... more >>
Accessing page variable from control
Posted by Gerald at 11/24/2003 11:38:24 AM
Hi,
I have got a page called page1.aspx and the code-behind file.
In that page1.aspx. I declare a web control ctrl1.ascx and the code-behind
for that web control.
Page and web control are both working ok.
Now I declare a public string variable called "sMessage" in the
"page1.aspx.cs" c... more >>
Date formatting
Posted by Leszek at 11/24/2003 11:37:26 AM
Hello,
I believe there must be somwhere in .NET a method to easily deal with the
following situation:
1. A user enters a date (myDate) in a format dd/mm/yyyy
2. A method checks if the myDate is properly formatted
The method might look like this:
isCorrect = IsDateCorrect(myDate, "dd/mm/yyy... more >>
events on page will not fire
Posted by Brent Burkart at 11/24/2003 11:18:36 AM
No events on my page will fire. I created a button to test if anything
happens at all. When I click on it the onclick event does not fire. This
is the same for all events on the page.
Any ideas?
Brent
... more >>
ASP.NET Question - Wait Messages...
Posted by bhauver NO[at]SPAM certegy.com at 11/24/2003 11:11:57 AM
I am writing an ASP.NET application which runs a Crystal
Report and then displays the results with the Web Form
Viewer. (This works ok). However, since these reports
take a couple of minutes to run, I would like to display
a 'please wait' message on the browser until the report
is ready fo... more >>
Binding a DataList to an ArrayList of objects
Posted by Stefan Landgraf at 11/24/2003 10:42:57 AM
I try binding a DataList to an ArrayList of objects but keep getting the error:
DataBinder.Eval: 'espod.myClass' does not contain a property with the name Name
Heres the code:
<asp:DataList id="DataList1" runat="server">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"Name") %>
... more >>
Continue execution after calling Context.ApplicationInstance.CompleteRequest()
Posted by sabys NO[at]SPAM hotmail.com at 11/24/2003 10:41:10 AM
We have a requirement where we need some kind of asynchronous behavior
in an ASPX page.
The page receives a POST request from a client and it needs to
immediately respond back to the client with a custom acknowledgement
message and release control of the client http pipeline.
The aspx page ... more >>
B2B application
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/24/2003 10:15:55 AM
Hello Guys,
Can anyone point me to nice tutorials which describe the
various aspects of developing a B2B application?
Thanks in advance!... more >>
Page Caching?
Posted by John M at 11/24/2003 10:12:51 AM
Hi,
I have inherited the maintenance of an application written for ASP.Net that
uses an IHTTPModule class to log requests for .htm web pages to a database.
On our LAN the web app functions properly.
Once deployed to our client, the web app does not function properly. In some
cases
(pages a... more >>
Spaces in a drop down list
Posted by Eric Sabine at 11/24/2003 10:04:31 AM
I am filling a drop down list from a dataset. The resultset contains data
like this
Joe Smith Accounting
Mike Collins Engineering
Joe Walter Engineering
etc.
The text contains purposely inserted spaces, but when it renders in html,
the spaces are removed. They ch... more >>
Monitoring a Web Page request Thread?
Posted by Elizabeth Harmon at 11/24/2003 9:58:17 AM
hi All,
I dont know if this is possible, so i am asking
Is there a Way to monitor a connection when it is fetching on a web page? I
am providing a status Bar and process to my users so they can see something
is happening?
I would like to do a while loop as in
i+=1
Do while ConnectionS... more >>
text gets cut off when printing an asp.net datagrid
Posted by adiel_g NO[at]SPAM hotmail.com at 11/24/2003 9:44:29 AM
Hello everyone. The problem is when printing, the text gets cut half
way and prints the other half on to the next page when printing using
internet explorer and an asp.net datagrid. I am sure there must be a
simple fix to stop the text from getting cut in half like this when
using the asp.net ... more >>
Please help with this error handling:
Posted by Ivan Demkovitch at 11/24/2003 9:23:33 AM
Hi!
I'm using webservice to display weather on my webpage.
Sometimes this XML webservice times out (or just takes too long) and my
webpage does not load (Request timed out)
Regular error handling doesn't help here.
I wonder what needs to be done to avoid this problems. I don't ming remove
... more >>
IIS / Forms authentication problem
Posted by Ralph Soons at 11/24/2003 9:15:40 AM
Hello,
We have developed an ASP.Net application with forms authentication. When the
login time of the user expires, the user will be redirected to a inlog form.
We have implemented this functionality already for several projects, but for
our current project something strange occurs:
Sometim... more >>
smaller problem, Response.write funnys
Posted by Fraggle_Rock_1 NO[at]SPAM yahoo.com at 11/24/2003 9:12:19 AM
within my reading out of data from a repeater sub ...
If i put
response.write(lstitem.text)
it outputs the text from the listitem that is being looked at
if i put
dim str as string
str= listitem.text
I get a compiler error
BC30469: Reference to a non-shared member requir... more >>
SQL Server Reporting Services with ASP.NET
Posted by Mark at 11/24/2003 8:59:01 AM
I just read an article online about SQL Server Reporting Services. Any
sense of whether this functionality can be embeded in an ASP.NET web
application? The article made it sound like you'd have to go to a separate
web page in order to view the reports ...
http://www.sqlmag.com/articles/inde... more >>
Web Application begginer
Posted by grzybek at 11/24/2003 8:58:52 AM
Hi,
I have simple question regarding ASP .NET working together with C#.
I don't understand excactly how it works.
When I should write code in ASP and when in C# ( behind-code )
For example I created form in C# . aspx ( user testbox and password
textbox and button ) and
how can I send paramet... more >>
Setting values for a textbox in client javascript
Posted by Robert Storrs at 11/24/2003 8:41:32 AM
I need to set the value of a asp text box in javascript.
<asp:TextBox id="txtUserValue" runat="server"
>test</asp:TextBox>
I have tied:
function setValue(valueData) {
alert(valueData);
document.Analysis_UserEnt.txtUserValue.Value = valueData;
document.Analysis_UserEnt.txtUserValue.... more >>
web controls do not show
Posted by Kiran Kumar at 11/24/2003 8:37:34 AM
Hi all,
I have created a web application using ASP.NET in C#. I
have created a virtual directory under wwwroot and
published all the aspx and config files in the new virtual
root, and copies the code behind file in the bin folder
created under the virtual directory. I have also restarted... more >>
Getting VB6 dll files in a ASP.NET project.
Posted by Charles at 11/24/2003 8:31:58 AM
Hello,
I need to use a dll file (with many classes inside) that
was written in VB6 in a ASP.NET web app. I added the dll
file in to the references section of my project.
Everything seems to be fine until I run the web app. I
get an error message, "System.IO.FileNotFoundException:
T... more >>
How to automate DLL deployment for P/Invoke?
Posted by Hugh Williams at 11/24/2003 8:25:43 AM
I have a Visual Studio solution that includes two projects:
1) an unmanaged C++ project that produces a Win32 DLL
2) a C# web service
I want to have the build process for the web service copy the Win32 DLL to
the web service's /bin directory so that some P/Invoke calls will work.
Unfortunat... more >>
Repeater question. Textboxes lose info
Posted by Fraggle_Rock_1 NO[at]SPAM yahoo.com at 11/24/2003 8:10:15 AM
I have a repeater with controls added at run time. the <template> also
contains a <asp:textbox that is made visible on some repeater
elements.
when I come to read the text info out it has disapeared. The read is
done on a button click.
I can read the selected items from the other controls i... more >>
Best/Cheapest "Server" version for ASP.NET servers?
Posted by VB Programmer at 11/24/2003 7:43:03 AM
I have a server that is serving up ASP.NET pages (on an intranet). The
server is running W2K Professional SP3. Sometimes I get "Too many people
access this site" error. People have told me that this is because of W2K
Pro limitations and that I have to upgrade to the Server version.
1. Whic... more >>
Custom Error Messages...
Posted by Nick Wright at 11/24/2003 5:10:26 AM
Hi,
I'm trying to set up, what I thought was a simple custom
error message. I'm trying to trap 'Access Denied'. My site
is using windows authentication, 10 users have access...
The customer errors web.config bit is set up...
<customErrors mode="On"
defaultRedirect="Errors/AccessDeni... more >>
best practices
Posted by david at 11/24/2003 1:52:16 AM
i am a little confused on the best pratices for the
implementation of a basic web page which needs to display
varing controls and data. What i am tring to do is create
a asp.net web form/s which will display a search bar and
the top and dynamically change the data in the panel
underneath. ... more >>
message boxes
Posted by Mike P at 11/24/2003 1:15:32 AM
I want to do a redirect to another page which is conditional on the user
clicking OK or Cancel on a message box. Can anybody tell me how do
bring up the message box and then write some code to respond to the
users input?
Any help would be really appreciated.
Cheers,
Mike
*** ... more >>
|