all groups > asp.net > march 2004 > threads for thursday march 11
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
Bug with DataGrid that is rebound on every request
Posted by Dave Reed at 3/11/2004 11:06:06 PM
Most of the time you bind a datagrid when it's not a PostBack. The DataGrid then uses ViewState to remember all the data to rebuild it on subsequent postbacks. Thats great when it is expensive to grab the data, like running a sql query might be
If you've ever done a View Source on a page with a bi... more >>
Session VS. Cache
Posted by Robir at 3/11/2004 10:43:37 PM
When is it better to store a small amount of data (say a very small DataSet
or a couple of short string variables) in the Session vs in the Cache
object. I've had it recommended to store such things in the Cache and to
simply stay away from the Session as a general rule. But as far as I know,
st... more >>
Downloading file from aspx page -- change file name?
Posted by Brandon Potter at 3/11/2004 10:12:52 PM
Simple question --
I have an ASPX page that accepts the ID of a document in the query string to
be downloaded; however, the file is not in the web application and has to be
read from another directory.
Furthermore, I need to be able to check some session variables to make sure
the user has ... more >>
AddHandler problem
Posted by Shawn at 3/11/2004 9:03:58 PM
Hi.
I'm trying to add an event to a DropDownList from my code, but so far I
haven't been able to do it right. The DropDownList is inside a DataGrid. The
reason why I'm not adding an onSelectedIndexChanged attribute in the html
code is because not all of the DropDownLists in the DataGrid is to ha... more >>
Does Framework 1.1 fix this issue?
Posted by George Hester at 3/11/2004 8:41:43 PM
http://support.microsoft.com/?scid=3Dkb;en-us;315158
or not? Thanks.
--=20
George Hester
__________________________________... more >>
How to Call EXE in WebForm
Posted by Arron at 3/11/2004 7:06:24 PM
I would like to use WebForm(aspx) to Call WinForm
(test.EXE) in the same computer.
The test.exe will create a new Excel File immediately.
This is my code:
Process.Start("c:\test.exe", "")
When I run the code,The Task Manager Add a new process
named "test",but not thing happens.It do not a... more >>
System.Drawing.Image.FromStream and PDF.
Posted by Hung Tran at 3/11/2004 6:28:43 PM
Hi
I use the same code to store jpg/gif and pdf into SQL database.
The code below should display them, it works with jpg/gif but not pdf, I
get "invalid parameter used" error.
Any Idea ?
Hung Tran
----------------------------------
System.IO.MemoryStream MyStream;
MyStream = ne... more >>
gridlayout or flowlayout
Posted by Nikhil Patel at 3/11/2004 5:41:35 PM
Hi all,
If I know that the size of the browser window is going to be fixed, can I
use gridlayout?
Thanks...
-Nikhil
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Using CallByName with asp.net
Posted by Olivier at 3/11/2004 5:24:51 PM
Hi,
I have a web form displaying 5 web usercontrols.
Each usercontrol contains a 'Save' linkButton. Each usercontrol has a =
panel as container.
One panel is visible at a time.
From my form, I'd like to ba able to execute the Save button's code by =
using CallByName.e.
Is it possible? H... more >>
Session Variables in Modules
Posted by Gary at 3/11/2004 5:19:10 PM
I just tried to use a session variable in a module and it doesn't recognize
Session. We can't use session variables in modules?
Thanks,
G
... more >>
Debug ASP pages with Visual Studio.net?
Posted by Raterus at 3/11/2004 5:13:04 PM
Hello,
I know I can debug ASP pages with visual studio.net, there is an option for
that under project properties/configuration properties/debugging of an
"asp.net" project.
That's where my question comes in, the only way I've figure out how to debug
asp pages, is to have an asp.net project ... more >>
how to refresh\reload parent window....
Posted by May at 3/11/2004 5:12:35 PM
I now this is not strictly a asp.net question but how do you refresh the
parent window of a child browser window?
The child window was displayed using javascript 'window.open' etc....
I have tried the following in the child window when a specific action
happens but the parent window does not... more >>
Bind CheckBox
Posted by Robir at 3/11/2004 4:55:07 PM
I'm implementing a DataList that includes textboxes and check boxes in a
table in the ItemTemplate.
The following line in the HTML results in the error
[System.InvalidCastException: Specified cast is not valid] when I go to run
the project.
<td><asp:CheckBox id="chkIncluded" runat="server" Ch... more >>
Validation Expression help (for expression that works on server but not client)
Posted by Brad at 3/11/2004 3:58:38 PM
I need a regular expression + jscript guru. The validation expression
below is for a RegularExpressionValidatior on a password input. It works
perfectly on server side validation and in a utility I have to test Perl
compatible
expressions (Regex Coach). However it fails on the client side...... more >>
Tools
Posted by Brad Markisohn at 3/11/2004 3:52:40 PM
I have a PC application (OS is Win XP Pro) that controls complex hardware
via the PCI bus. We've written the app using VB.Net; but, recently the
client has asked for remote access to data and remote control of the
hardware config. parameters via web pages. This will include
bi-directional tra... more >>
Loading UserControl dynamically and settings its custom properties on the fly?
Posted by richardwangler NO[at]SPAM hotmail.com at 3/11/2004 3:41:53 PM
Firstly I am not using codebehind. All code is in the aspx and ascx.
I have a main.aspx page with the following web control;
<asp:placeholder ID="DynamicUserControl" runat="server" />
In the page_load of the main.aspx I dynamically load the usercontrol;
DynamicUserControl.Controls.Add(L... more >>
Request.ServerVariables question
Posted by Andrea Williams at 3/11/2004 3:31:30 PM
I'm using this to get what browser with which the user is browsing.
System.Web.HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"]
How come when I browse with Netscape 4.7, I get this:
Mozilla/4.72 [en] (Windows NT 5.0; U)
It doesn't tell me that it's netscape, only the version ... more >>
Redirect Delay
Posted by Big E at 3/11/2004 3:20:22 PM
I'm using ASP.net. I have a piece of code that does a
Response.Redirect("website.aspx")
I want to be able to do the Redirect after 5 seconds of hitting that piece
of code.
I don't want to use MetaTags or JavaScript.
Does the Reponse.Redirect have any delay properties.
Thank you
... more >>
asp + soap
Posted by Lord Brett Sinclair at 3/11/2004 3:03:00 PM
Hello everyone
With VB, on an aspx page, I need to access some webservices APIs.
I found some example in VB6 using MS XML library components :
Dim HttpReq As New MSXML2.XMLHTTP40
dim strRequestXML as string
strRequestXML= fill out the request xml document here
HttpReq.open("POST", "http:... more >>
Multiple DLLs for a single Website ?
Posted by Patrice Scribe at 3/11/2004 2:39:05 PM
Any guidance available for this. I know it will be easier in Whidbey but for
now we'll have a single site made up of distinct modules.
What are the options ? :
- single DLLs (not that conveniant when mutiple modules are under revision)
- mutliple DLLs AFAIK not supported by VS.NET but likely p... more >>
DropList SelectedItem
Posted by Tim at 3/11/2004 2:28:02 PM
Yesterday this worked.
Today, on my web forms when they are posted I am getting errors with the
SelectedItem properties on droplists.
Specifically, the following:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the... more >>
DataGrid in a placeholder control
Posted by Mark at 3/11/2004 2:27:08 PM
I've created a datagrid programatically, and added it a placeholder control.
The datagrid contains an edit button for each record. I need to capture
this event some how. However, seeing as the placeholder control appears to
nuke its contents (the DataGrid) on postback, I can't seem to capture
... more >>
A couple of Data Grid questions
Posted by mklapp at 3/11/2004 2:06:07 PM
1. Can the columns of the grid be accessed by the name of the data column they represent (e.g.Columns("StudentId"))
2. Can automatically added columns be accessed programmatically at all
3. My grid is populated by a dataset returned by a web service so data source and data member are set at r... more >>
Any issues and storing XmlDocument in Session Object?
Posted by SamIAm at 3/11/2004 1:47:01 PM
Hi All
I need to store some xml during a users session. I need to perform
modifications to the xml throughout a user's session. Instead of storing in
as a string and loading up an XmlDocument every time I need to make modi, I
thought I would rather store the XmlDocument itself.
Are there an... more >>
Shared VB.NET modules
Posted by Bruce Parker at 3/11/2004 1:36:10 PM
When a web application is first started and it uses a Module block, are global variables unique to the Request thread? What about a class module that declares shared variables. I created a test application and it appears to be unique to each Request. If this is a true statement is there a disadva... more >>
How do you append a QueryString to the DefaultRediret?
Posted by Rhino at 3/11/2004 1:26:15 PM
I have an error procedure that handles all errors produced by my
application. This procedure is responsible for logging the error
information in my SQL database. I have modifed the DefaultRedirect in the
web.config to display a custom error page to my users. Once the error
information has bee... more >>
How Are Objects Created from Inner Properties?
Posted by Mark Olbert at 3/11/2004 1:16:58 PM
I'm having trouble with a custom webcontrol I've written. It successfully persists information about
a control property to some inner property tags, but when the aspx file is parsed to create the
control, an exception is thrown from deep in the bowels of the Framework.
The exception states tha... more >>
Best way to store const values
Posted by elainsun2000 NO[at]SPAM yahoo.com at 3/11/2004 12:55:16 PM
Hi all,
Is there the best way to store lots of constant values(like error
messages) in asp.net application -- i mean soemwhere that other
persons(who is not a programmer or developer) can change those values
and still can run the application without recompile? Please don't tell
me web.config ... more >>
show data datagrid from two table
Posted by Selen at 3/11/2004 12:47:41 PM
Hello,
My problem is that I want to show data in datagrid from two table.I have two
table tb_Eqp_Main and tb_Equipment they have a relationship with EqpNo...
I use da.Fill(dataset,Table name) but I dont know What must I write to
TableName...My code :
strConn="server=(local)\\sql2000;database=... more >>
Components
Posted by ruca at 3/11/2004 12:27:31 PM
I think that with .NET FrameWork we no longer need to register our external
components with "regsrv32.exe ...". For what I know the information of
ASP.NET components aren't keeped in Registry. In this way, I can copy
components from one server to another without register and they will be able
to... more >>
Using ASP.NET with MS SQL 2000 and IIS on another Server
Posted by Tony Riv at 3/11/2004 12:24:12 PM
My web app works locally, but after copying the project over to our intranet
server, I get the following error when my SQLConnection tried to connect to
the SQL server...
Login failed for user 'DEVELOP\IUSR_DEVELOP'
I have set the above user up, on the SQL database, and checked the
permission... more >>
ASP SITE with SQL Server--best way to backup?
Posted by SStory at 3/11/2004 12:22:00 PM
I'm sorry if this is the wrong place to post this question. I also posted
in SQL Server area... but since it involved ASP.NET on a host site and SQL
Server, thought appropriate to ask both groups for a good solution...
ideas...
I have written a SQL DB, and ASP.NET website for a client. The c... more >>
Opening anoter .aspx window from the parent .aspx main project using C#
Posted by Microsoft at 3/11/2004 11:37:37 AM
I need to open a login window. So I designed another .aspx window and am
trying to get it to come up but I don't know the command(s) todo so.
Thanks in advance
... more >>
UploadValues doesn't load server controls
Posted by .Net Developer at 3/11/2004 11:29:23 AM
I'm using the UploadValues method of the WebClient to post
values to one of my .aspx pages. My expectation is that
the page will recognize the posted values and populate my
page controls, but it doesn't.
For example, I have a textbox server control whose id
is "FirstName". When I post a... more >>
Can my ASP.NET dev workstation see remote SQL server?
Posted by Timo at 3/11/2004 11:18:35 AM
I would like to develop my ASP.NET application against a SQL 2000 database
residing on another server, rather than against the SQL server installed
locally. We're using Windows integrated security. When I'm using Visual
Studio the ASP.NET user belongs to my XP machine's local domain, which is
... more >>
How many people have Javascript turned off?
Posted by George Ter-Saakov at 3/11/2004 11:13:30 AM
Hi.
Is there any public statistic available of what percentage of Users have
JavaScript turned off.
Thanks.
George.
... more >>
HTML Button Not Submitting Page
Posted by Alphonse Giambrone at 3/11/2004 11:09:46 AM
Thanks to info from Steven Cheng I am able to use an HTML button on my aspx
page in order to wrap text in it.
I am using it to delete a record in a database and it works.
My only problem is that I want to include javascript to confirm the deletion
before submitting.
I have a javascript function... more >>
Displaying sort order
Posted by me NO[at]SPAM privacy.net at 3/11/2004 11:09:00 AM
Is there a way to indicate on a datagrid which column the datagrid has been
sorted by?
By default, my customer list is sorted in customer name order, but if they
sort by state, I'd like to indicate it on that column.
SC
... more >>
size limit on datagrid?
Posted by me NO[at]SPAM privacy.net at 3/11/2004 11:07:23 AM
Is there any size limit to a datagrid? I have one that has 11 columns and
around 5,000 rows that I want to display.
Reason I'm asking is that I get a challenge/response type of input if I try
to do anything to this datagrid once it's displayed.
Anyone know?
SC
... more >>
Events don't fire for dynamically loaded control when loaded by an event procedure
Posted by RND at 3/11/2004 11:06:18 AM
If a child control is loaded dynamically during a host page event handler,
the events of that control do not appear to be detected by the host page. If
that same control is loaded in the same way during page_load or page_init,
then the child's events are detectable. Is there any way to change the... more >>
Keyword not supported: 'provider'.
Posted by darrel at 3/11/2004 10:58:46 AM
I'm getting this following error:
------------------------------------------
Exception Details: System.ArgumentException: Keyword not supported:
'provider'.
Source Error:
Line 92: Dim objOleDbAdapter as new SQLDataAdapter(strChk, strConnect)
------------------------------------------
With ... more >>
Problem calling webservice from onUnLoad function?
Posted by James Radke at 3/11/2004 10:50:55 AM
Hello,
I have an asp.net web page (1.l Framework) which has an onUnLoad function
defined in the body.
From this function I want to call a webservice, which I have defined using
the webservice.htc in a div style attribute. I use this webservice call
technique on many other pages without any... more >>
Classed derived from abstract class will not load in designer?
Posted by RND at 3/11/2004 10:50:54 AM
I have this class:
Public MustInherit Class ucBasicListingUserControl
Inherits System.Web.UI.UserControl
Public Event OnDone()
Public MustOverride Sub LoadData(Optional ByVal pstrSignalParam As
String = "")
Public MustOverride WriteOnly Property objListing... more >>
count instances of the Page class
Posted by SteveS at 3/11/2004 10:42:05 AM
Hello all. Is there a way to count the number of instances the Page classes
in a particular moment? I was just trying to think of a way to determine
the total number of people that is on the web server at a particular time.
Or, are there any better ideas?
Thank you,
Steve
... more >>
Setting button text
Posted by chris NO[at]SPAM ctlsoft.com at 3/11/2004 10:36:10 AM
Hi,
I store a button ID in my database, then when the aspx page is loaded
I want to make the caption (text) of said button read something other
than the default.
How can I do this ? obviously I cannot do myreader("buttonid").text =
"xxx"
I tried looping through the controls but can't seem to d... more >>
How get name and/or IP address of PC that requests WebForm
Posted by mg at 3/11/2004 10:26:06 AM
How can I get the name and/or IP address of the PC that requests a WebForm
The request is not made using a hypertext link
I use JavaScript and C#.... more >>
aspnet_wp.exe process hangs
Posted by dbostrom NO[at]SPAM energy-northwest.com at 3/11/2004 10:22:29 AM
First, I am not the developer of this application, merely the system
administrator. The developer is a contractor and somewhat unavailable
at this time.
Environment Microsoft Windows 2000 Server, IIS 5.0, .NET Framework 1.1
(with the hotfix applied).
At random times, the aspnet_wp.exe stop... more >>
Best Learning Tool
Posted by A at 3/11/2004 10:21:12 AM
Hi
Aside from actually trying to write a website in ASP.NET, I am curious what
others have found helpful while trying to learn it correctly (Books,
Downloads, etc). I have downloaded the IBUYSPY to get an idea but am a
little frustrated. After reading some best practices material from
Micro... more >>
Other reasons for a session to end ?
Posted by Steve Caliendo at 3/11/2004 10:16:50 AM
Hi,
I have my session.timeout set to 30. I have a page that can take up to
about 10 minutes to process, and in the meantime they're re-directed to a
"Please Wait" page.
The problem I encountered was that all of my session variables were gone
after about 10 minutes, and so I put a "Stop" st... more >>
Name 'btnPrev' is not declared. How do I do that?
Posted by darrel at 3/11/2004 10:14:33 AM
I'm working on getting paging working for a repeater control.
I'm following the tutorial at:
http://www.sitepoint.com/print/asp-nets-pageddatasource
I'm getting snagged on the following bit of code:
Line 121: btnPrev.Visible = (NOT pagedData.IsFirstPage)
Line 122: btnNext.Visible = (NOT p... more >>
Which size font to use?
Posted by RA at 3/11/2004 9:44:56 AM
Hi is it ok to use the absolute font size or am I better to use specific
font size?
Thanks
... more >>
Image column calling SelectedIndexChanged ? (2nd post)
Posted by Andy Mackie at 3/11/2004 9:03:53 AM
Hopefully a simple datagrid question -
Rather than have a select button column, which appears as a LinkButton, I
want to display images in the column, and clicking the image should call the
SelectedIndexChanged event. How can this be done ?
Thanks,
Andy Mackie.
... more >>
Reading Specific Parts of an XML Document
Posted by Jordan at 3/11/2004 8:59:26 AM
I'm using an xml document as the source for my site's navigation. I have it
working but am curious if I've chosen the best method (performance wise) of
reading this xml document. Becuase this xml file has my site's complete
navigation, I need to "jump around" in it to get to the data I need based... more >>
Is this Possible with an ActiveX Control
Posted by Rigs at 3/11/2004 8:25:58 AM
Hi,
I am wondering if it is possible to access a user's OS (WinXP Pro) from an
ASP .NET web site using an ActiveX control.
The purpose for accessing the OS is to write code that will access the
embedded CD burning software that comes with XP (IMAPI service) so it will
copy files from the us... more >>
How to call server side (VB/C#) function from client side (Javascript)?
Posted by ddt at 3/11/2004 8:01:06 AM
Hi
I have a control in page, how can I call the control's function from javascript (except submit or xmlhttp)
Thanks in advanc
ddt... more >>
Modifying file upload button style
Posted by RJN at 3/11/2004 6:48:36 AM
Hi
I'm using the html input type=file for uploading a file. I'm unable to
change the style of "Browse" button that appears alongside the text box.
So what I tried is I created one more input type = button , aligned the
style of this to overlap that of the "Browse" button of file upload and
... more >>
ImageButton
Posted by J at 3/11/2004 6:45:48 AM
I have to images for my image buttons. One image has a border around
it(background) and the other doesn' t. What I would like to do is when
the user clicks the button swap out the images on the mouse down click
and when the mouse is released put the original image back. How can I
do this?... more >>
SQL connection
Posted by Robert at 3/11/2004 5:51:40 AM
Running ASP.NET 1.1 application on Windows XP Pro.
Trying to connect to a SQL 2000 server as the annonymous
user using a trusted connection.
I keep getting:
System.Data.SqlClient.SqlException: Login failed for
user '(null)'. Reason: Not associated with a trusted SQL
Server connection.
... more >>
Aspnet_wp.exe - Application Error
Posted by miletom1026 at 3/11/2004 4:56:11 AM
I am new to .NET and have been experimenting with ASP.NET and webservices. I have written a small app with just two simple webservices (Hello world-esq) but, when I run the app I get this message on the web server. The app seems to run fine but, I would still like to understand the error
Aspnet_... more >>
Enabling ASP.NET 1.1 in IIS 5.1
Posted by Mike at 3/11/2004 3:56:07 AM
hello
I have Windows XP Pro and IIS 5.1 installed and I have written some ASP pages. Now I'm exploring the possibility of using ASP.NET in our project
I've installed Visual Studio .NET 2003 Enterprise and .NET Compact Framework with ASP.NET 1.1. However, when I try to create a new VB.NET WebAppl... more >>
Datagrid & Bloated HTML
Posted by paul.rogan NO[at]SPAM totalise.co.uk at 3/11/2004 3:03:59 AM
Hi,
I am a couple of weeks into writing an intranet application and am
discovering some big disadvantages to using the DataGrid control.
Basically I have got HTML file being sent to client that are around
600kB!! When running this intranet app over slow VPN link it is not
very quick!!
I am... more >>
'The HTTP redirect request failed.' when attempting to open the Web project
Posted by maryamafzal NO[at]SPAM hotmail.com at 3/11/2004 2:46:55 AM
Hi
I recently upgraded from VS.NET 2002 to 2003 (framework 1.0 to 1.1).
When i tried to open my solution in .NET 2003 i got the following
error:
The Web Server reported the following error when attempting to create
or open the Web project located at the following URL:
'http://localhost/da... more >>
RegEx help needed: How can I group between two tags?
Posted by Andreas Klemt at 3/11/2004 2:13:03 AM
Hello,
how can I group everything between a tag like
<title>xx22yyy</title>
but ONLY word-charactor, NO digits.
Result should be:
Group: xxyyy
Thanks for any help or for any hint where to post this to get help.
Andreas
... more >>
Two Web controls on the same page, with their own validation
Posted by NWx at 3/11/2004 1:51:04 AM
Hi,
I have an ASPX page which contains two custom web controls, and each one
have its own save button, which needs to perform validation.
My problem is, when I try to press save button for a form, even if all child
controls on the web control are validated OK, the page perform validation
for ... more >>
add HtmlInputFile at runtime and read the file after upload
Posted by Anton Sommer at 3/11/2004 1:45:05 AM
Hello folks,
I create a couple of HtmlInputFile controls dynamically at runtime but I
have no idea how to read out the file that could be uploaded from some of
the controls. Just recreating exactly the same controls after postback
doesn't work on Html Controls.
Thank you
... more >>
Need help sending email via asp.net in HTML format...
Posted by pete NO[at]SPAM mediaknack.com at 3/11/2004 1:44:24 AM
I am sending an email using ASP.NET (C#)
Below is the code. - str is a StringBuilder that contains the HTML text.
The email is being sent but it is getting truncated. Anyone have any idea
why?
System.Web.Mail.MailMessage
MailMessage oMessage = new MailMessage();
oMessage.Priority = Mail... more >>
Please help. Run batch file on server from asp.net page
Posted by paulsmith5 NO[at]SPAM hotmail.com at 3/11/2004 1:43:23 AM
Hi,
I'm trying to add a button to an asp.net page that when clicked will
run a batch file on the server. My code which gets executed on the
click event of my button is as follows
Dim ProcessStartInfo As New System.Diagnostics.ProcessStartInfo()
ProcessStartInfo.FileName = "C:\Inetpub\wwwroo... more >>
ASP.NET 1.1 Hangs
Posted by Michael at 3/11/2004 1:21:05 AM
Hi there
I have been experiencing a very strange problem of ASP.NET. What happens is that ,all ASP.NET applications deployed on the server hang every morning. At this time,IIS successfully executes ASP requests
When I restart my machine, it starts working again. Throughout the entire day, it does... more >>
Cannot access a disposed object named "System.Net.TlsStream"?
Posted by Asaf at 3/11/2004 12:54:28 AM
Hi,
When I am doing a POST to a SSL URL I am getting this error on first attempt
"Cannot access a disposed object named "System.Net.TlsStream"."
After the first attempt all works fine, here is the Stack Trace
at System.Net.TlsStream.InnerWrite(Boolean async, Byte[] buffer, Int32
offset, Int... more >>
Can someone be kind to help me. C# to VB. Urgent. Thank You
Posted by Miguel Dias Moura at 3/11/2004 12:33:17 AM
Hello,
i am working on this for some days and i can't figure out what i am doing
wrong.
I have an ASP.net C# page which populates an ASP.net Calendar Control with
events from an Access Database. IT WORKS!
Now i created the same page in VB. I am not being able to make it work. I
get an erro... more >>
|