all groups > asp.net > march 2005 > threads for saturday march 5
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
ViewState Question
Posted by Sparky Arbuckle at 3/5/2005 10:55:25 PM
What is wrong with the following syntax?
IF ViewState("CustID") < " " AND gtCart.Count > " " THEN WriteOrder()
The error I get is:
Exception Details: System.FormatException: Input string was not in a
correct format.
... more >>
ASCX compile tool
Posted by Bogdan Nedelcu at 3/5/2005 9:53:42 PM
I've done some research on the net and found a tool to precompile the ASCX
code. (CodeProject http://www.codeproject.com/aspnet/ascxparser.asp)
I wonder why the guys from ASP.NET do not provide a standard mechanism for
performing this task. I searched through the source code of ASP.NET and sa... more >>
How to use the SystemWeb.Caching.Cache.Add dependancy object.
Posted by Jensen bredal at 3/5/2005 8:55:27 PM
Hello,
I want to cache a table from MS sql server with auto refresh for two hours.
How can this be done in the Addmethod of the Cache object?
Many thanks in advance
JB
... more >>
Next version of VS has code inline?
Posted by bruce.1 at 3/5/2005 7:18:03 PM
It's my understanding that the next version of Visual Studio and ASP.NET
will have the code-behind inline with the HTML, in the same file. It's
also my understanding that Visual Studio will break-up the display so
the .NET code will be shown on a screen separate from the HTML.
What I'm won... more >>
databinding asp label
Posted by Jeronimo Bertran at 3/5/2005 6:28:05 PM
I am currently using databing to show on an asp:label the result of
appending two database fields in the following way:
<asp:label id=textAcknowledgedBy runat="server" Text='<%# DataBinder.Eval
(dataSetEventResponse1, "Tables[spEventDetails].DefaultView.[0].UserName")
+ " from " + DataBind... more >>
Running scripts at server or side client
Posted by Tarllem at 3/5/2005 6:21:21 PM
Hi!
Is possible to run scripts at the side of the client?
Thanks!
... more >>
Large number of compiled dll's
Posted by Bogdan Nedelcu at 3/5/2005 5:48:19 PM
Hello,
I have some projects which have lot of aspx files. I notice that for each
file, the ASP.NET compiles one .DLL in the Temporary ASP.NET folder + 3 or
for aditional files.
I think this slows the system down.
Is there any possibility to put all these files in one DLL - like to
pre... more >>
Send form data to another page
Posted by Andrea De Santi at 3/5/2005 5:37:10 PM
How can I redirect to another page with form data?
In asp Classic I write:
<form ... action="filename">...</form>
and in then target page I write
<%=request.form("fieldname")%>
.....
but in ASP.NET 1.1 'action' does not exist
how can I send form data to another page?... and how can ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Page Directive
Posted by Jeff at 3/5/2005 5:03:21 PM
Hi -
I'm trying to get my ASP.NET pages to work the same way on my development
machine (running from the VS.NET IDE) and on a remote (3rd-party) server.
The only way I've been able to come up with requires changing the page
directive for each page between codebehind (for the IDE) and src (for ... more >>
Help - get rid of aqua-blue boxes on IDE
Posted by KC at 3/5/2005 4:53:46 PM
Lately there are about 10 small, light blue regtangle boxes on the vertical
bar (the same vertical bar where the breakpoints are placed) on my vs 2003
IDE. I don't know which button/option that I clicked to get them to show up
there. Anyone know what these samll boxes are? And how can I get ... more >>
Modifying a dataset value?
Posted by Chris at 3/5/2005 3:19:02 PM
I have a dataset that I want to modify the values in a particular column. I.e
if I have a function to convert the enterbyID (Integer) to a name, in the
dataset the field (Concern_EnteredbyID) shows as the integer. How can I
modifiy the dataset (ds) before I do something else with it?
I've rea... more >>
Use System.Reflection to get page namespace
Posted by Joel Leong at 3/5/2005 2:21:31 PM
How can I use Reflection to get full namespace of my web page?
I got a page under this namespace
namespace CompanyABC.Admin
{
public class FruitList: System.Web.UI.Page
{
}
}
Q1: When i try to use this.GetType().ToString, it returns
ASP.FruitList_aspx. but I want to get C... more >>
where to call the File Locater class...?
Posted by Wong CS at 3/5/2005 2:12:22 PM
Dear developers,
may i know which System DLL got file locator... which i m goin to create a
"Browse" command box, where a File locator prompt out to let user select
file in his computer..
pls advice... thanks
cheers,
Wong CS
... more >>
IO for asp.net
Posted by willem joubert at 3/5/2005 1:50:59 PM
Hollo,
Can anybody tell me if I can write a web application using:
Imports System.IO
and have a folder in the server where files can be read from or where files
can be created. Im just talking about text files.
Thanks
Willem
... more >>
Localization Workflow/Approach
Posted by Tobin Harris at 3/5/2005 12:42:42 PM
Hi there,
WARNING: Long-ish post!
I'm about to undertake an ASP.NET project that requires localisation (2
languages initially, then more).
I have read a little about localization, but have never needed to use it
commercially yet. I'm wandering what the best way to approach localization ... more >>
User Control Button Click event not firing when placed in a Web form
Posted by ~~~ .NET Ed ~~~ at 3/5/2005 12:13:51 PM
I have a problem (don't we all?). I have a web form with multiple modules,
some of these modules have an ASP.NET (server run) button.
OK, now I have UserControlX which has one such button (say Login). In that
user control I defined both the Command and Click events for the button and
placed... more >>
DataSets (C#)
Posted by C at 3/5/2005 12:05:03 PM
Hi,
I am using DataSets to populate some controls on my ASPX.
I retrieve some values using the Index in my DataSets.
For example dsTest.Tables[0].Rows[0].ItemArray[0] etc etc
How can I retrieve the value using the Column name /alias used in my SQL
rather than my Index.
Thanks,
Cliv... more >>
Calling assemblies
Posted by Tarllem at 3/5/2005 11:57:33 AM
Hi!
How can I call to the assemblies locate in the GAC from asp.net? and if the
assemblies is locate at another folder?
Thanks, regards!
... more >>
access repeater datarowview
Posted by Guoqi Zheng at 3/5/2005 11:37:32 AM
Dear Sir,
I need to access the datasource of a repeater control.
I used CType(e.Item.DataItem, DataRowView), but obviously it does not work.
Can some one tell me what I did wrong? See my code example below!
Sub MainItem_Created(ByVal sender As Object, ByVal e As
RepeaterItemEventArgs)
... more >>
DataRelation on Multible layers of DataRelations
Posted by I am Sam at 3/5/2005 11:05:04 AM
I can relate two tables rather easily using the following code:
dsClub.Relations.Add("Section_Data",
dsClub.Tables["Section"].Columns["SectionID"],
dsClub.Tables["SData"].Columns["SectionID"]);
Which connects the "Section" table to the "SData" table rather easily using
the "SectionID" ... more >>
Restoring original filename on BLOB downlaods
Posted by Picho at 3/5/2005 10:10:42 AM
Hi all,
I am storing binary files on MS-SQL server. my file record includes the
original filename.
I have created a web application for downloading those saved files and it
works ok besided one small issue:
when I select save-as to save my file from the web-app to the local disk,
the file... more >>
Path to access DB
Posted by Thomas Makro at 3/5/2005 10:05:24 AM
Hi everybody.
I need to have several aspx files, each with access to the same MS
Access database.
So, I could hardcode the path to the .MDB file in every aspx file, but
this would only work on my local machine, since the production web
server has the webfiles (including the MDB file), else... more >>
Page Navigation
Posted by Vadivel Kumar at 3/5/2005 9:44:22 AM
I have some certain dynamic pages in which i need to implement the page
navigated path. In
page 1 there are some 100 links, and each link will lead to another page
(which is dynamically generated
from one aspx file). for example,
Category page
|
|____ Category 1 - Subc... more >>
AccessingCells
Posted by gh at 3/5/2005 9:03:33 AM
I have an aspx page that has an html table on it. The table has 4
columns with 6 rows and each cell has a hyperlink defined in it, except
for the last column. When the page is created I have a dataset I loop
through and I check the hyperlink id in html table for an id match in
the dataset.... more >>
iFrame : suppress horizontal scroll bar
Posted by RJN at 3/5/2005 6:27:05 AM
Hi
I'm using an iFrame to enclose another document. The iFrame width is
sufficient to hold the enclosed document. When the enclosed document has
more data and exceeds the height set for iFrame, both the scroll bars ,
horizontal and vertical appear. I want to avoid the horizontal scroll
bar. I... more >>
dropdown selected value
Posted by siaj at 3/5/2005 6:15:03 AM
Hi..Me New to ASP.NET
I am trying to get the selected value from the dropdownlist but I m always
getting the first selected value ...I am giving the code down ...
<asp:dropdownlist id="ddlItems" runat="server" Width="130px">
Private Sub Button1_ServerClick(ByVal sender As System.Objec... more >>
array of textboxes
Posted by samneefs NO[at]SPAM gmail.com at 3/5/2005 5:43:29 AM
I'm wondering if there's a way to create an array of textboxes, or loop
through textboxes. The textboxes are in an ASP.NET page, but the
looping happens through Visual Basic.
On page load, textboxes are dynamically created like this:
While Not rs.eof
Response.Write("<tr><td><input type='t... more >>
session vars how many is to many ?
Posted by Stu at 3/5/2005 3:15:01 AM
Hi,
I ve read a while ago that you should use session variables
sparingly ?
So the question im asking is how many is to many?
is it server memory dependant and therefore i can just use more ram ?
is there any calculation u can do to determin how much memroy session is
taking up per user ?... more >>
JavaScript for OnTextChanged event.
Posted by Alex Nitulescu at 3/5/2005 2:51:19 AM
Hi.
I have created a web-based file manager. Now I'd like to watch a folder for
changes, and when a change occurs I'd like to refresh my page.
Okay. So I have created a FileSystemWatcher set on the folder I need to
watch. It works fine. The problem occurs when I need to trigger an automatic ... more >>
<li> in <td>
Posted by Alex Nitulescu at 3/5/2005 1:23:21 AM
Hi. Something puzzles me: VS.NET says that "per the active schema, li cannot
be nested within td". However, the code works fine, and the result is as I
expected.
Is there something wrong in disregarding that warning ??
Also, no matter what I do, VS.NET always *INSISTS* to change my <tr val... more >>
Auto-Format (HTML) in VS.NET
Posted by Alex Nitulescu at 3/5/2005 1:15:39 AM
Hi. Is there any way to really disable that stupid HTML auto-formatting in
VS.NET ?
I have a page with a lot of complicated HTML (many complex tables etc) and
JScripts. If it's not formatted properly, I can get lost in a second. So I
spent probably half an hour to format my HTML to suit my ... more >>
|