all groups > asp.net > november 2004 > threads for wednesday november 10
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
Page data caching
Posted by Mark at 11/10/2004 11:50:31 PM
I'm adding data to the cache with this code:
HttpContext.Current.Cache( "Categories" ) = GetCategoriesFromDB
The problem is wheneveeeer I modify the database, the cache doesn't change
quickly enough. I looked at using a SQL Severer trigger to clear it by using
a cache trigger dependency.... more >>
How to create virtual directory to hold assemblies?
Posted by Siegfried Heintze at 11/10/2004 10:46:57 PM
I ran Internet Services Manager to create a virtual directory whose physical
path was C:\InetPub\wwwroot\SIGNITEK_PRIVATE. Since this notebook is not
exposed on the network, I gave the virtual directory write and browse
permissions in addition to the defaults of read and execute.
I then creat... more >>
How to Stop Long Numeric to Scientific Conversion if Transfering data from DataGrid to Excel.
Posted by RSB at 11/10/2004 10:45:50 PM
Hi Everyone,
i am using the following code to transfer a DataGrid to Excel File.
Every thing works ok beside the long numerice value like 0000121900000000
gets converted to 1.219E+11.
how can i disable that conversion?
Thanks for the Help
RSB
public static void DataGridToExcel(DataGr... more >>
Sharing GIFs (assets) Amongst Multiple Apps
Posted by RC at 11/10/2004 10:42:58 PM
I wrote a Web app and someone else now wants a copy of it (and run it on the
same server)... and eventually others may want copies as well. Rather than
copying all of the gif/assets to each app's folder structure I was wondering
what I can to to enable all copies of the application on the server ... more >>
reading the DB vs. reading a text file...performance preference?
Posted by Darrel at 11/10/2004 10:22:25 PM
I've been working on a fairly simple CMS for a fairly small site. Each page
is a DB query to grab the content for the page.
I also have some ancillary content that isn't specifically associated with
one specific page. For instance, the page footer, which is the same on every
page.
The au... more >>
What should one bind data to to display only one record?
Posted by Darrel at 11/10/2004 10:08:51 PM
I use repeater controls and attach a dataset to it to create a list of
records.
When I want to display just one record, what should I bind the data to? I
can use a repeater, but it clutters the DESIGN view just for one record. Is
there a generally accepted 'best option' for what control to ... more >>
Highlighted Row in Edit,insert Mode(Datagrid) - Question -
Posted by Patrick.O.Ige at 11/10/2004 9:57:02 PM
How can i higlight a row when i click on Edit,insert or Update modes when
using a Datagrid?
Any ideas?
... more >>
determine IP of hosting web-server
Posted by John A Grandy at 11/10/2004 9:53:08 PM
programmatically, how to determine the IP of the web-server running the
web-app's code ?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to bring multiple properties between postbacks?
Posted by Davids at 11/10/2004 9:50:23 PM
in my small hangman web project I have a Hangman class which has some
methods and properties (int GuessAttempts, string[] GuessedLetters etc..)
which change as the game goes on... Best of all would of course to be able
to save the whole class and then load it up again after postback. I
under... more >>
multiple forms on single page?
Posted by Davids at 11/10/2004 8:51:46 PM
this was impossible to implement on old ASP, is it the same for .Net?
... more >>
Page directive of classes of ASP.NET 2.0 projects?
Posted by Martin Rosén-Lidholm at 11/10/2004 7:50:11 PM
In ASP.NET 2.0 (using VS.NET 2005 beta 1), you can define an available base
class in the web.config file.
I can also define the available base class for a class by using the Inherits
attribute of the page directive of the class at hand, since I want different
view classes to inherit from di... more >>
finding the header item in a datagrid
Posted by GaryB at 11/10/2004 5:32:58 PM
The datagrid.items collection only appears to have data rows in it. for
Instance...
dim myItem ad dataGridItem
myItem = myGrid.Items(0)
returns the first data row of data.
How can I access the Headertext and footer text? The docs say ...
" A DataGridItem represents an item (row) in a ... more >>
how to redraw only part of the page?
Posted by Bob at 11/10/2004 5:06:00 PM
I have a page with a search section on top (which hastwo dropdowns, a text
box and a search button), the search result would show up below in a table.
Since the dropdowns contain large amount of data, I'm hoping that when the
page is posted back to query for results, the top part can stay without... more >>
Can't see datagrid's html source
Posted by John Dalberg at 11/10/2004 4:59:51 PM
I have a weird problem. I have a webpage that displays a datagrid with data
but when I use IE to view the html representation, the source has no table
source for the datagrid. I used Opera, Mozilla and Firefox and they showed
the html source for the datagrid just fine. I thought IE might be cor... more >>
RequiredFieldValidator in a Datagrid
Posted by Patrick.O.Ige at 11/10/2004 4:49:07 PM
Can i have a RequiredFieldValidator in a DataGrid textbox?
Any ideas?
Thx... more >>
RequiredFieldValidator in Datagrid
Posted by Patrick.O.Ige at 11/10/2004 3:59:05 PM
Can you have RequiredFieldValidator in a Datagrid?
Any ideas?
... more >>
KB 316775 reproes in .net 1.1 - XSLT with script has memory leak
Posted by John Moore at 11/10/2004 3:28:02 PM
I have a set of code that is called on every page load that loads an xslt
file. The xslt file has an embedded <script> tag. Loading the page mutliple
times causes aspnet_wp.exe to use all available memory and then reset. As
this happens several times over the course of an 8 hour stress run, I'... more >>
How to calculate time for method execution?
Posted by TomislaW at 11/10/2004 3:21:42 PM
how can I calculate time needed for execution of my methods in asp.net app?
... more >>
File upload/download from database. Download appends aspx page to end of file
Posted by Ryan Taylor at 11/10/2004 2:59:42 PM
Hello.
I am trying to upload a file and save it in a Sql Server 2000 database. This
seems to be working fine. However, when I download the file from SQL Server,
it appears that the page that is downloading this file is being appended to
the end of the file. So I am accidently modifiying every ... more >>
Increase build number in ASP.NET application
Posted by S. HP at 11/10/2004 2:58:31 PM
How can I make a build number that increases for each build automatically in
a ASP.NET project, as I used to have in VB 6.0 ?
Regards,
SAHP
... more >>
Visual Studio
Posted by cameron at 11/10/2004 2:47:20 PM
This is probably off topic, so please feel free to redirect me to proper
news group, I am wondering if you can enable the XML comments in Visual
Studio for other file types. I have written a documentation engine
thingy that can go through ASP, XSLT, and Javascript files looking for
the stada... more >>
migrating md5_crypt from php to asp.net
Posted by David at 11/10/2004 2:45:13 PM
Somebody know How can I migrate that function?
The source of the php function is in
http://www.oxxus.net/php-web-hosting/php5/source-md5crypt.htm
The function name is: md5_crypt
Thanks!!
... more >>
Website Page Cannot be Found Error
Posted by Chris Fink at 11/10/2004 2:39:05 PM
I encountered a very odd error this afternoon. A website that has been in
production for quite some time suddenly came up with a page cannot be found
on the main index.aspx page for the site. 5 mins previosly, the user had been
using the site fine...running a long query on the page whose time... more >>
select default radio button in form
Posted by steve at 11/10/2004 2:18:24 PM
Sorry if I have post this two times.
Hi all
What I'm trying to achieve is:
I have a form with two radio buttons,
if a visitors check radio button 2 and click submit in the next page
radio button 2 to be check by default
If I use this code
<% If Request.Item("col")="firstcoll" Then Res... more >>
User controls and disappearing values
Posted by Jim at 11/10/2004 2:13:08 PM
I have a user control that I am dynamically loading into an aspx page. When
I fill out the text boxes and submit the form using a command button on the
aspx page I lose the value from the user control. I have an Error-checking
function in the user control that I invoke from the aspx page. T... more >>
Is there any way to do a post to another page in the code behind?
Posted by mortb at 11/10/2004 2:09:47 PM
Sometimes you want to transfer to another page and pass some values along
not using the query string nor the session.
Is there some way to do this?
cheers,
mortb
... more >>
Bind an Array of Custom Objects
Posted by Jed at 11/10/2004 1:39:02 PM
I have a web service method that returns an array of custom objects marked
serializeable with fully described public properties.
When I bind the results to a DataGrid I can access the properties in the
ItemDataBound event of the codebehind but I can't access them declaratively
in the HTML c... more >>
Equivalent to ".Show" in VS.NET webForm
Posted by grizduck NO[at]SPAM comcast.net at 11/10/2004 1:31:16 PM
I am trying to call one webform from the click event of a button on
another webform. In VB6 windows applications, this is a simple
Form.Show, but I can't figure out the syntax to call Webforms. Can
anyone help with some sample code?... more >>
Non-existent datagrid?
Posted by Paul W at 11/10/2004 1:25:57 PM
On a brand new aspx page I dragged a table from my local SQLServer in the
'Server Explorer' and it created the SqlConnection1 and SqlDataAdapter1. I
then used 'Generate Dataset' to create a simple dataset.
I created a datagrid and set its DataSource to 'DataSet11' and its
DataMember to 'Tbl... more >>
ASP.NET Resource Kit
Posted by Lior Bobrov at 11/10/2004 1:18:21 PM
Hi .
Is the ASP.NET resource kit , which appeared on MS site in May 2004 ,
compatible with Visual Studio .NET 2005 (codename Whidbey) Beta 1 ,
and is it necessary for VS.NET 2005 Beta 1 ?
Thanks in advance ,
Lior .
... more >>
reading command line program output
Posted by Ganesh Ramamurthy at 11/10/2004 1:11:21 PM
Hi Experts,
I need to get the output of a command line program in my C# application. The
command line program is an decryption program which gives the decrypted text
of a file specified as the parameter.
Thanking in advance
Regards
Ganesh
... more >>
Identify control that caused postback
Posted by Joey G at 11/10/2004 12:31:20 PM
How do I get the name or identify the control that caused
the page postback. I need the information during page
init. Reason why, because I need to tell usercontrol_1
that usercontrol_2 button was clicked and therefore need
usercontrol_2 public properties to be passed to
usercontrol_1 publ... more >>
Crystal Reports 10 & .NET
Posted by Bari Allen at 11/10/2004 12:24:06 PM
First I'm an almost complete newbie at .NET, as I've only taken some
classes, worked through a beginner-level book, and done one minor console
application on my own.
That being said, I followed a method from Sybex's "Mastering Crystal Reports
9" to import a version 10 Crystal Report into a Win... more >>
Regular Expression syntax: Same textbox - both text and numbers.
Posted by sreedharv NO[at]SPAM gmail.com at 11/10/2004 11:33:56 AM
Hi,
I have a simple textbox in a form page.
- If data not available, then user can enter the text "Not available"
or "Contact abc person".
- If data is available, then user enters the data in currency.
Given both conditions, how do I validate both scenarios. What is the
Regular Expres... more >>
Alternative to smartnavigation (for non-ie browsers)
Posted by Wysiwyg at 11/10/2004 11:06:14 AM
Has anyone found a reasonable way to emulate smartnavigation functionality
for any browser? I'd really like to avoid creating history entries when
posting back to the same page.
SmartNavigation takes care of the annoying problem caused by creating a new
history entry when a page posts to itsel... more >>
Does anyone see my mistake?
Posted by Leon at 11/10/2004 10:58:53 AM
Does anyone see my mistake? I'm trying to load the school dropdownlist when
the user select a state from the state dropdownlist. The states drop down
list loads, but the school drop down list donot.
****Database Object Class........................
' Methods
'- - - - - - -... more >>
textbox lost focus in aspnet
Posted by wandali NO[at]SPAM rogers.com at 11/10/2004 10:46:22 AM
I would like to get a lostfocus even in aspnet, I know I can do
something like that:
txtBox.Attributes.Add("onblur", "javascript:RunMe()")
But then the scirpt, RunMe has to be written in the html page, which
can be viewed by the user.
I want to keep the code in the aspx.vb (hiding the cod... more >>
Working with BinaryWrite
Posted by Jeff Dillon at 11/10/2004 10:44:31 AM
From a client, I call
http://server/retrieve.aspx?guid=somevalue
Then, in page_load of retrieve.aspx I have
filespec = "test.mdb"
pathspec = "c:\"
MyFileStream = New FileStream(pathspec & filespec, FileMode.Open)
FileSize = MyFileStream.Length
Dim Buffer(CInt(FileSize)) As Byte
M... more >>
nTier question regarding DataSets and DataReaders
Posted by Ryan Ternier at 11/10/2004 10:42:57 AM
I know how this should be done in regards to nTier, but it seems a bit
inneficient, and was wondering if there's a solution that I havn't thought
of yet.
(I'm switching this loop to For Each Row as DataRow in.... to kill the one
int that's not needed.)
For intCount1 = 0 To
objData.DataSet.... more >>
Event question?
Posted by jiangyh at 11/10/2004 10:39:33 AM
hi there:
I have a datagrid in my web form that contain a templet column.And in
this templet have a checkbox web control.I will get the checkbox state in my
serverside.
My question is which event I will add to my codebehind when I change the
checkbox state.
Thanks in advice.
... more >>
code behind or inline-coding
Posted by Newbie \(C#,Asp.net\) at 11/10/2004 10:35:19 AM
Hi
I have two simple questions that I make sure that I have underestood them
1) what is the main difference between inline coding and code behind besides
that code behind is part of DLL and is not visible like inline coding .
2) I am strill kind of confused why there is HTML server control w... more >>
How to clear the querystring?
Posted by Davids at 11/10/2004 10:19:02 AM
when using the page to POST (from a form) I want the page's querystring to
be cleared, how do I do that?
... more >>
request queue makes web app down
Posted by Dicky Cheng at 11/10/2004 10:15:27 AM
As my web app in IIS always face request queue up due to lengthy requests.
And finally my web app will not response and totally dead. Any methods I can
solve this problem? Also, any article talks about how to tweak the setting
in IIS and machine.config?
Thanks,
Dicky
... more >>
Showing Error in pop-up boxes in Web Forms
Posted by ipsita.mohanty NO[at]SPAM gmail.com at 11/10/2004 10:05:55 AM
Hi!
I am working on a ASP.NET webform application. I need to show errors
on a pop-up window. I want to show some general program related errors
and not just errors from input validations which can be showed on a
ValidationSummary control. Please let me know if there is a way to do
it.
Than... more >>
CSS Font-size in DataGrid
Posted by tshad at 11/10/2004 9:56:25 AM
I am having trouble with links in my DataGrid.
I have Links all over my page set to smaller and they are consistant all
over the page in both Mozilla and IE, except for the DataGrid.
Here is a snippet from my .css file:
***************************
body {
margin:0;
padding:0;
}
th {
... more >>
include javascript files
Posted by Manny Chohan at 11/10/2004 9:49:04 AM
how can i include javascript files in aspx pages.
Thanks
Manny... more >>
How to get JUST month name from a date?
Posted by VB Programmer at 11/10/2004 9:46:02 AM
I have a date (such as 10/1/2004). How do I convert it to just "October"?
Thanks.
... more >>
Query StateServer
Posted by MattC at 11/10/2004 9:36:52 AM
Hi,
Is it possible to get current state information from the stateserver for an
application, such as how many sessions are active, when each session will
timeout, etc
TIA
MattC
... more >>
Page Inheritance
Posted by Leo at 11/10/2004 9:34:29 AM
This is a multi-part message in MIME format.
------=_NextPart_000_006C_01C4C708.7A565300
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I would like to create a base page with some code and server controls on =
it and then inherit that page in a... more >>
get cell value
Posted by Mike at 11/10/2004 9:09:02 AM
I need to get the value of a cell if enable and disable a save button based
on the value? WHere can i find a snippet of that?
... more >>
aspx Windows Authentication problem
Posted by Rich Miller at 11/10/2004 9:01:41 AM
I have a strange situation IIS.
Take a sample web site which contains only Index.htm.
If I choose anonymous access and go to the site, the page loads fine.
If instead of Index.htm I use Index.aspx, I get promped for windows
authentication even though I've chosen anonymous access in IIS. I've ... more >>
Dynamically Added Controls Question
Posted by Jason MacKenzie at 11/10/2004 8:53:56 AM
I'm sure this is simple but I'm not sure how to persist dynamically created
controls.
If Not IsPostBack Then
Dim txt As New TextBox
txt.Text = "Test"
CType(Me.FindControl("Form1"), HtmlForm).Controls.Add(txt)
End If
I have a butto... more >>
Comparing date and time
Posted by Manny Chohan at 11/10/2004 8:38:03 AM
Hi, i have two datetime values in format 11/22/04 9:00 AM and 11/22/04 9:30
AM. How can i compare dates .net c# or if there is any other way such as
Javascript.
Thanks
Manny... more >>
Handling Errors in Large File Uploads
Posted by Rajeev Tipnis at 11/10/2004 8:16:50 AM
My problem has to do with not being able to have custom
error handlers when the file size exceeds what the IIS is
configured to handle.
I do understand that one can change the attributes:
maxRequestLength (along with the executionTimeout) of the
httpRuntime section in web.config or machi... more >>
SSL and Forms authentification
Posted by SalamElias at 11/10/2004 7:58:04 AM
I have an application where I added the attribute requireSSL="false" in the
authentification elemnt in the dev environment and the apllication compile
with no problem. What I want to do is, In production, is to use forms
authentification, so when somebody clicks to view a protected page, he sh... more >>
open file across network
Posted by wandali NO[at]SPAM rogers.com at 11/10/2004 7:56:11 AM
Hi,
I tried to open a file in aspnet:
FileOpen(intFile, "\\MachineName\path\subfolder\filename",
OpenMode.Output)
However, I received the following error message:
System.UnauthorizedAccessException: Access to the path
"\\MachineName\path\subfolder\filename" is denied.
but it works ok ... more >>
User's Browser Not Seing Server Variables
Posted by George Durzi at 11/10/2004 7:52:07 AM
I'm encountering an odd problem with one of my users accessing my web
application.
The first line in the Page_Load function of this webform is:
string sReferer = Request.ServerVariables["HTTP_REFERER"].ToString()
When the user accesses this page, the code immediately breaks at this line,
... more >>
Multiple instances of Internet Explorer.
Posted by Oscar F at 11/10/2004 7:44:06 AM
Hello,
I am using a HyperLink Web Control to create a new window instance of the
same page that contains that control.
The problem is that if I am working with both instances at the same time, I
cannot execute them at the same time.
If I execute one first, when I try to execute the other ... more >>
execute asp.net file in .html file
Posted by rajivg.gupta NO[at]SPAM gmail.com at 11/10/2004 7:29:54 AM
Hi,
We are moving from asp to asp.net.
In our existing model we execute the asp by including them in .html
files.
For example:
In abc.html file we include following directive:
<!--exec cgi="right_list.asp"-->
And the dynamic output comes on the .html page.
Please let us know what i... more >>
Users are randomly losing session and are forced to relogin
Posted by fbwhite NO[at]SPAM online.nospam at 11/10/2004 6:51:03 AM
I know this issue has been brought up many times, but I have tried many of
the solutions to no avail. I wanted to give my specific case to see if
someone could be of any help.
We are using the sessionstate inproc mode and users are randomly losing
their session. I do not believe it is hap... more >>
Access denied in creating/opening a file on network for output
Posted by wandali NO[at]SPAM rogers.com at 11/10/2004 6:50:13 AM
Hello,
I tried to open a new file on network for output: (aspnet)
FileOpen(intFile, "\\MachineName\path\subfolder\filename",
OpenMode.Output)
However, I received the following error message:
System.UnauthorizedAccessException: Access to the path
"\\MachineName\path\subfolder\filename" is... more >>
& in a QueryString
Posted by DaveF at 11/10/2004 6:38:45 AM
I am looping threw the querySting with:
foreach (string name in Request.QueryString)
I have a problem with a '&' being in one of the values. How do I deal with
this?
page.asp?theVal=2&theVal2=aa&e overdue
--
David Fetrow
Helixpoint LLC.
http://www.helixpoint.com
davef@helixpoint.co... more >>
code runs but don't work?
Posted by Leon at 11/10/2004 6:02:48 AM
Why this code is not working? I think the problem is in the business class
code.when I select a state from the dropdownlist, the school dropdownlist
suppose
to fill with school names, but somehow the state value is not getting back
to the business class. I think it's the way I'm using property ... more >>
<P> Visibility
Posted by Jim Heavey at 11/10/2004 5:17:25 AM
Hello, I create a HTML line as follows:
<P class=text12BoldRed id=ErrTimePeriodSelection
style="VISIBILITY: hidden" runat="server">Selection of time period
either
not made or more then one type (Relative <EM>or</EM> specific time
period)
was selected</P>
I have jav... more >>
why will this not work in C#
Posted by Mike at 11/10/2004 5:06:03 AM
What i'm trying to do is allow the user click on a row in the datagrid and it
highlights the row. I have the select button for my grid and its hidden.
I can do this in VB.NET successfully with this same code but when i put it
in C# it does not work.
what am i missing?
private void DataGri... more >>
Please help - how to create a Printer Friendly web page...
Posted by Tigger at 11/10/2004 1:42:03 AM
Dear Experts,
I've got a trouble problem that I need your help. The scenario is the
following:
1) I need to add a "Print" button to my web page;
2) by clicking this button, the web page should be able to print out a
well-formatted web page (printer friendly ). That means, I need to adjust ... more >>
web performance
Posted by Dicky Cheng at 11/10/2004 1:15:42 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07222003.asp
For the article above, does anyone know it's common to implement the
solution in a heavy server? any other method can solve the problem raised in
the article?
Thanks,
Dicky
... more >>
C++ or VB? Thanks.
Posted by Miguel Dias Moura at 11/10/2004 12:51:02 AM
Hello,
i am working in ASP.Net / VB web sites. However i need to take a
decision so i can buy some books and start studing some subjects.
For Web: C++.net or VB.net?
For Aplications: C++ or VB?
What are the positive and negative things about each one?
What should i choose?
I was look... more >>
|