all groups > asp.net > june 2004 > threads for wednesday june 9
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
Setting RowSpan during run time in aspx file
Posted by Gawel at 6/9/2004 10:44:57 PM
I need necessarily set RowSpan(ColSpan) property of cell in aspx file(not in
cs file).
But below statement does not work :(.
Any idea ?
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="300" border="1"
runat="server">
<TR>
<TD RowSpan="<%# 3 %>">a</TD>
<TD>a</... more >>
Master pages
Posted by VB Programmer at 6/9/2004 10:23:04 PM
I know that Master pages will be greatly enhanced in the next version of VS.
For now, I have several tables that make up a site-wide Header, Footer and
Nav bar. Each of these are using user controls for the content.
Question: Do I have to "clone" this page layout for every page that is
goi... more >>
Dummy needs help with MapPath
Posted by C not so sharp at 6/9/2004 10:08:55 PM
Greetings!
I'm developing a file repository system in ASP.Net with C#. However, I am
having problems getting the environment to cooperate. Here is the scenario:
When a new user is created, I create their file folder as follows:
string strUserDir = "Dir"+ strNewID;
string strFileDir = Co... more >>
How would you do this in ASP.NET
Posted by Lloyd Sheen at 6/9/2004 9:54:44 PM
I have an app. It is database driven in that a form will be generated with
sections that are static and sections which are defined as:
Label - name is from database
Textbox - ID is from database
For each required Lable/Textbox the controls are added to a panel.
There is a save button but... more >>
accessing the Application object from another project
Posted by William Gower at 6/9/2004 9:35:27 PM
I have split my webapp into multiple projects. I need to access the
Application object from another project how do I do that?
ex. EmployeeDALC is in project DALC and the Global.asax is in the solution.
... more >>
Image transparency
Posted by VB Programmer at 6/9/2004 9:06:50 PM
I have a gif that has a white background. Is there anyway that I can say
white is "transparent" so the background color will show through?
... more >>
Error loading class when developing web pages under folders
Posted by Duron at 6/9/2004 8:33:09 PM
I created a new folder using VS.NET 2003. Then I created a new web form
under that folder, say, \Member\Default.aspx. However, even if I didn't do
anything to that page, a run-time error appears when I try to run it --
Can not load class MySite._Default.
I am using VB to write codes. Does an... more >>
script versus code versus ?
Posted by Russ at 6/9/2004 7:19:33 PM
I've been trying to get my head around this for 3 days now and it
seems like everything I try does not work for one reason or another.
I built a test page using the TabStrip and MultiPage controls. The
example shows how to put up pictures in each tab, and it works fine.
But of course I don't ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How can I warn a user they are about to navigate away from a page
Posted by Tone Curtis at 6/9/2004 6:35:43 PM
I have a set of webforms where I need to prompt the user to "Save Changes".
I can handle this to a degree within the form but if the user presses the
Back button or selects the Home button the data can be lost.
I have tried using javascript but that only seems to capture an event
signalling th... more >>
print out graph nicely?
Posted by Daniel at 6/9/2004 6:25:48 PM
I had a big graph i my page ( bigger than A4 paper in normal size) , how can
i print it out so as to later assemble these pages back to the graph?
I appreciate your help!
... more >>
Q: Possible to change ASP.NET's page compilation behavior?
Posted by Jiho Han at 6/9/2004 5:55:46 PM
I was wondering whether it was possible to change the default ASP.NET
compilation behavior.
I know that there is <compilation> element in the config where you can
specify quite a few things including the compiler options, assemblies to
link, etc. However, I can't seem to find a way to have the ... more >>
javascript not firing
Posted by bill yeager at 6/9/2004 5:52:00 PM
I tried placing the following logic in my page_load event
to handle the client-side jhavascript needed to add the
first 2 textboxes to the total:
<code>
txtMileageBeginning.Attributes.Add("onChange", "ChkMileage
(document.getElementById('" &
txtMileageBeginning.ClientID & "'),
document.... more >>
Error With The MS Visual Studio Development Environment
Posted by Jacob Crossley at 6/9/2004 4:57:51 PM
Preface: Not to sound mean or arrogant, but please don't answer this
question unless you have a specific and tested answer. I'm saying this only
because I posted the same quesion earlier and got spammed by this so-called
Microsoft MVP that gave me a very vague answer, followed by a series of
inc... more >>
Database class for MS Access
Posted by Tee at 6/9/2004 4:51:39 PM
Hi, can anyone show me a sample database class that suitable for MS Access ?
I can't find it over the internet, what I found is only SQL, which is not
what I want.
Anyone have any ?
Thanks,
Tee
... more >>
Images and Cookieless Session State
Posted by Neil at 6/9/2004 4:48:01 PM
When switching my web application to use cookieless session state I get unpredicatable behaviour with images in my application, sometimes they show up other times they don't. It 'appears' that if all the paths to my images are absolute then it will work, however I have a great number of images in my... more >>
Tri-State Check Box
Posted by Rob T at 6/9/2004 4:40:55 PM
I need to make a tri-state check box. (It's values will be off,
checked-always on, or 1-run once)
Would I be correct in assuming the best way to do this is to make some kind
of custom control that displays a "checkbox". The control would have JS in
it to change a graphic image that represent... more >>
ASP.NET Debugging
Posted by Brian Henry at 6/9/2004 4:37:55 PM
I've been fighting with the Visual Studio.Net CLR debugger for a while and
am getting pretty fed up. I'm trying to debug an asp.net application. I
have all my debug tags set to true. And I have debugging enabled on my web
server. When i try to do standard debugging, I get an error saying tha... more >>
Include an XML file in web.config
Posted by domtam NO[at]SPAM hotmail.com at 6/9/2004 4:20:12 PM
Suppose I have a web.config. I'd like to move some configuration
settings from this web.config and put it another XML file (say,
common.xml). Now, is there any way that I can modify the web.config
such that it will include (dynamically) the common.xml?
In other words, System.Configuration.Conf... more >>
Uploading a file without 'file' as input type
Posted by John Scalco at 6/9/2004 4:19:52 PM
Hi,
I was wondering whether there is a way to upload a file to the server -
without using the <input type='file'...> bit. I'd just like to display a
'Save' button and then save the document to the server.
thanks,
john
... more >>
minimum cache time
Posted by Joseph at 6/9/2004 4:19:38 PM
Has anyone implement a mechanism to retain the cache up to a minimum cache
time even though it is supposed to get invalidated? I asked this because I
don't want to increase the load on the database server for caches that are
frequently invalidated and a database retrieval is required. I want t... more >>
Keeping activex out of postback?
Posted by John Scalco at 6/9/2004 4:15:50 PM
Hi,
I have a form which contains an activex control (showing an image) and some
other web server controls.
If i pick one of the web server controls, for example, a button and click
it, then a postback occurs.
This results in the activex control window being cleared of the image which
was i... more >>
WMI
Posted by Jonas Nilsson at 6/9/2004 3:44:28 PM
Im trying to read information about clients though a web application. (
Clientdatabase ).
I connect like this, and my user account have permissions to access all
klients in the network.
ManagementObjectSearcher query;
ManagementObjectCollection queryCollection;
System.Management.ObjectQuer... more >>
What's wrong with my connection string to the Access db?
Posted by Aries at 6/9/2004 3:11:35 PM
I have a connection string like this, anyone know how can I fix it?
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<html>
<body>
<!-- #include file = "linkx.inc" -->
<script language="C#" runat="server">
protected void Page_Load(Object sender, Even... more >>
Dynamic Link Buttons
Posted by brian at 6/9/2004 2:57:57 PM
This is the first time I have tried to create dynamic
controls. I am trying to create a hyperlink control.
The control will display properly but the event isn't
triggered.
I read a lot of stuff pertaining to this topic but have
not been able to figure out my problem. TEST() is
proc... more >>
Problem about debugger
Posted by Lau Lei Cheong at 6/9/2004 2:44:19 PM
Hello,
I'm using VS.NET 2003 to develop a ASP .NET project on IIS of another
computer.
When I was working on the project, sometimes VS.NET complains about not
able to start debugging, which I cure by restart the remote computer. This
is, however, quite time-consuming, consider that ... more >>
User Group Membership
Posted by cameron at 6/9/2004 2:43:02 PM
I need to find a user's memberOf list, (and all nested groups), very
quickly. My current method is to iterate through the the results of the
the MemberOf property and then do the same to each of those groups.
While complete, this is painfully, painfully, (grow old and die before
it is done),... more >>
other than autopostback?
Posted by Mani at 6/9/2004 2:30:10 PM
Hi,
Is there any other way to quickly grab the selected index/value of a
dropdownlist other using than the autopostback property to true? ...
I found the autopostback to slow down things....
in classic asp, there used to be request.form("<<name of a hidden value>>")
.....
thanks in advance
... more >>
How to use an asp:button to create a new browser window and output contents to new window
Posted by Novice at 6/9/2004 2:16:02 PM
Hi all, as you can see from the subject, I'm try to use an asp:button to create a new browser window and output contents to new window
But default if I do the
Response.Write("..."
The output gets sent directly to the window or frame that the button was contained in - if I was using regular anch... more >>
Page redirection history
Posted by Tim Marsden at 6/9/2004 1:58:39 PM
Hi,
If I navigate from Page1 to Page2 then to Page3, using the
response.redirect.
When the user press the Back button, I what then to go to Page 1 and start
again, not Page2. I dont want the to navigate to Page2 using the Back and
Forward buttons.
How do I do this.
Tim
... more >>
the development environment is overzealously formatting my html when switching from design to code view
Posted by Jacob Crossley at 6/9/2004 1:35:05 PM
Please tell me there is a way to prevent this annoyance ; - )
I'm into writing perfectly indented html, but the .net dev environment is
being overzealous and messing up my html formatting.
for example, I originally write:
<table>
<tr>
<td>
<asp:label id="lblSucce... more >>
Getting the aspx page an error occured on in Application_OnError
Posted by Sam-I-Am at 6/9/2004 1:05:08 PM
Hi
I am using the Application_OnError event to handle exceptions in a web app.
How can I get a reference to the page the exception occurred on from within
the Application_OnError event?
Thanks,
S
... more >>
Popup problems
Posted by Charles A. Lackman at 6/9/2004 1:01:22 PM
Hello,
I have created an ASPX web site that streams audio. A Database is querried
and the results are presented to the visitor in a User control. One control
for each line returned from the querry. There is a Download and Cuts and
Listen button on the control. They are all aspx buttons. W... more >>
Passing Objects between Web User Controls
Posted by Richard Payne at 6/9/2004 12:41:20 PM
Hi
I am after what is the best/simplest way to pass objects between Web User
Controls which doesn't use the session object.
Regards
Richard
... more >>
least number of Deployment files
Posted by Colin Basterfield at 6/9/2004 12:36:51 PM
Hi,
A simple question, I am wondering which files I have to upload to the server
in order for my ASP.NET app to function correctly?
Cheers
Colin B
... more >>
Prevent entering data into DB twice
Posted by mg NO[at]SPAM theworld.com at 6/9/2004 12:31:05 PM
In the click event handler of an imagebutton (WebForm), my C# code gets the values in some textboxes and insert these values into database tables
The page reloads itself after this event and the text boxes are cleared
The user can then repeat the process
How can I prevent the user from inserti... more >>
Datagrid table cells and rows -- Changing width
Posted by martin at 6/9/2004 12:13:21 PM
Hi,
I have a datagrid that contains 3 colums. This is rendered to the page fine,
except that I would like to be able to control the width of each table cell
of the datagrid
I have the following code in the "ItemDataBound" -- which I belive should
allow me to alter the width of the cells, howe... more >>
Design Issue: Separating Application Security Model from the Application (Custom or User) Controls
Posted by Earl Teigrob at 6/9/2004 12:09:17 PM
Background:
When I create a ASP.NET control (User or custom), it often requires =
security to be set for certain functionality with the control. For =
example, a news release user control that is comprised of a DataGrid may =
have separate permissions for adding, deleting and updating a news ite... more >>
how to generate barcode label in asp.net
Posted by angus at 6/9/2004 12:07:21 PM
Dear All,
How to generate barcode label in asp.net?
I am using MS SQL
can reporting service in MS SQL do that?
Thank you
Regards,
Angus
... more >>
Dynamic Content
Posted by T Cordon at 6/9/2004 11:44:01 AM
I want to load part of the content in a .aspx page that I have to get from
an external HTM how could I do this?
Thanks for your help
... more >>
Question On Viewstate and ButtonClicks
Posted by OHM at 6/9/2004 11:39:30 AM
Hi,
I'n new to ASP.NET and I have a question maybe someone could answer for me.
I realise that viewstate holds information about the state of the controls
such as the values of text boxes etc.
However, If I have two buttons on a form, how does ASP.NET know which one I
clicked on as they b... more >>
DataGrid MultiSelect???
Posted by G. Dean Blake at 6/9/2004 11:25:09 AM
Is there any way to make the datagrid a multiselect grid?
Thanks,
G
... more >>
values from the address box
Posted by Grant at 6/9/2004 11:14:30 AM
How do I get the values from the address box for the user id i.e.
www.nowhere.com\staff.aspx?user_id=243
I need to be able to look up the values in the address box when post back
occurs.
Thanks
... more >>
open a word document 'in' a webform ..
Posted by ram at 6/9/2004 10:56:02 AM
how do I open a word document within a webform? I need to open the document within the form so the user can edit the document and then click on a button on the form (so that the document is automatically saved to a specified location on the server). thank you!... more >>
Debugger doent stop at break points
Posted by Praveena at 6/9/2004 10:45:37 AM
Hi ,
When I am running a aspx application the debugger is not stopping at the
break points.
Thanks,
Sundeep
... more >>
Timer vs. Cron Jobs
Posted by Mr. T at 6/9/2004 10:43:39 AM
Hi,
I want to run programs on the webserver (I use a provider) at regular
intervals. Is it possible to have a webform timer control do that or do I
need a cron job in any case?
Thanks,
Oliver
... more >>
Outlook objectmodel
Posted by Bigfoot at 6/9/2004 10:31:27 AM
Hello,
I would like to send e-mail and meetingrequests from an asp.NET webform, is
this possible?
In other words: can I use the Outlook objectmodel in asp.NET?
Stefan
... more >>
Redirect to other page
Posted by simon at 6/9/2004 10:08:25 AM
If I have <form runat=server> then I can't submit to other page.
If I remove runat=server then my controls on that page doesn't work?
So I should redirect to other page from codeBehind but how can I read values
on the second page from the first page.
Old way was: value=request.form.item("")
... more >>
need some SQL help
Posted by Mike at 6/9/2004 9:52:04 AM
can some look at this select statement and tell me whats wrong with it/
I keep getting an error on the SELECT.
dbCommand = New SqlDataAdapter("select EffectiveDate,RD as type" & _
"SELECT Case type WHEN
type='Yes' THEN type='Regional Developer' End a... more >>
Submit form
Posted by simon at 6/9/2004 9:50:38 AM
I have page search.asp. When I click button, I submit form with script:
form1.action="searchResults.aspx"
form1.submit
On page searchResults.aspx I get the following error message:
The viewstate is invalid for this page and might be corrupted.
Does anybody know why?
Thank you,
Simon... more >>
Difference between cookies??
Posted by grawsha2000 NO[at]SPAM yahoo.com at 6/9/2004 9:20:54 AM
Hi,
Is there significant difference between browser-generated cookies and
web server-generated ones? I mean can I generate a cookie in browser
and access it latter through asp.net?
MTIA,
Grawsha... more >>
HTML seems double-spaced
Posted by VB Programmer at 6/9/2004 8:55:10 AM
When edit a page in page-layout, if you hit the <ENTER> button it always
seems double spaced. If I want the controls/text to be closer together do I
have to make them rows of a table and size them closer? Is this the only
way?
... more >>
Date Calculation
Posted by Issac Gomez at 6/9/2004 8:51:02 AM
IN VB.Net, you can use the DateDiff method to calculate the difference between 2 days. How do you do this in C#? I want to find the number of days between 2 dates. I there a 0 days, then I want to know the number of hours and minutes between 2 dates
I see there is a method for the DateTime obje... more >>
AutoPostBack
Posted by Sunil at 6/9/2004 8:41:02 AM
Dear All
I am a bit confused about AutoPost Back. My concept about AutoPostBack is that If AutoPostBack i
"TRUE" for a Web Form the Web Form Goes back to the server and displays a fresh copy of th
Web Form on the Browser. While If an AutoPostBack is False then the ... more >>
How to debug compiled asp.net apps?
Posted by John Dalberg at 6/9/2004 8:29:46 AM
Is there a way to single step or set up breakpoints on a compiled asp.net
app that I developed?
J.... more >>
How to define an interface for use in multiple class files
Posted by Hans De Schrijver at 6/9/2004 7:41:44 AM
I'm new to C# development, so here's a basic question.
I'm developing a code library (no UI) where several of the classes will
implement an IPersistable interface.
Each class lives in its own class file (within the same project) but all
classes are defined within the same namespace DaySpanLib.... more >>
submit form using dropdownlist
Posted by Sean K via .NET 247 at 6/9/2004 7:25:56 AM
(Type your message here)
--------------------------------
From: Sean K
Hi There,
I am new to asp.net and I would like to find some code or a tutorial that will allow me to submit a form from a list menu once the value in the menu has been selected.
Could anyone help please?
Sean - th... more >>
Possibly dumb question about Environment.MachineName
Posted by teddysnips NO[at]SPAM hotmail.com at 6/9/2004 7:22:41 AM
I've just taken over maintaining a system from a colleague who has
left. I find the following line in her code:
Dim params(2) As SqlClient.SqlParameter
params(0) = New SqlClient.SqlParameter("@UserName", pvstrUsername)
params(1) = New SqlClient.SqlParameter("@Password", pvstrPassword)
para... more >>
Search Web Page Content
Posted by C at 6/9/2004 7:01:05 AM
Hi
I have a web app whereby the content for each page is stored in the database
This content is interweaved in html and saved in the Database
As a result when teh user does a search through the app and searches for say <table it brings back everything with teh table tag in the database
Does ... more >>
dll error
Posted by Edmond at 6/9/2004 6:36:03 AM
Hi
Recently, I've begun experiencing this error every time I try to build my project..
The file 'bin\FILENAME.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process
The only major change I've done on the server is to add a de... more >>
OOP examples
Posted by poppy at 6/9/2004 6:16:10 AM
I am trying to get to grips with OOP using vb/asp.net and
was wondering if anyone knows where I can get a hold of a
simple project which makes use of the following :
Has some kind of dataclass which handles all database
operations.
Some kind of business class which inherits from the abov... more >>
Problem when sending a file to the client
Posted by frenchie seb via .NET 247 at 6/9/2004 6:15:28 AM
Hi !
here's the code of the function I use to send a file to the client :
Private Function SendFile(ByVal fich As String, ByVal nom As String) As Boolean
Try
Dim oldCT As String = Response.ContentType
Response.Clear()
Response.ContentType... more >>
ASP.net NOT Releasing Memory
Posted by mo NO[at]SPAM novastar.net at 6/9/2004 5:57:58 AM
Hello...
I am having issues with my asp.net apps not releasing memory. The
memory usage for the process w3p.exe continues to grow to it's
allowable limit and does not drop until the app pool is recycled. How
do I get it so that the memory is released when no longer needed? I
have tries set... more >>
DataList Problems
Posted by Mihai_Panait at 6/9/2004 5:21:03 AM
I'm trying to build a commerce site and i can't understand why my DataList controls acts diferent with the same code in the same page
My database contains amoung others 'category', 'subcategory' and 'product'
I have a DataList for each column in the database. when i select a category from the cath... more >>
TimeOfDay.Hours doesn't return right value
Posted by Peter at 6/9/2004 4:11:02 AM
Hi
I am using DateTime class and TimeOfDay.Hours attribute to return current time. It returns right value on two servers, but in one particular server it does not return right time. I checked that server's date/time setting and there everything is fine. Could someone tell, why on this server TimeO... more >>
ASP.NET Newbie Q
Posted by Tim::.. at 6/9/2004 4:01:02 AM
Hi
I have created a website that I want to feed content in from a database to populate the site
Question 1: If I have a several different tables I want to connect to that are all used for different things with in the page, should I create several OleDbDataAdapters or just use the same one for al... more >>
How to use session values in .CSS file?
Posted by Ravindra at 6/9/2004 3:11:03 AM
Hi all
I have created a stylesheet file (.css) and included in all my web form pages. This stylesheet contains colors and fonts for headings, text, body backgrounds, and for tables. And these colors will depend on the logged-in user. Means they may be different for different users. I am storing th... more >>
A Layman's interface for editing Website content
Posted by Magnuski at 6/9/2004 2:31:03 AM
Does anyone know how to design an interface for a non technical web administrator so that they can edit their website's content wiithout resorting to hand coding or having to see the code at all,I appreciate any pointers on how to implement thi
Thanks Magnuski... more >>
How to hide table?
Posted by Miguel Dias Moura at 6/9/2004 2:27:10 AM
Hello,
( using ASP.net / VB)
i have a table with 2 dynamic text taken from a database. I want to hide the
table and its entire contents when the dynamic text <%#
dataSetBibliotecas.FieldValue("Titulo", Container) %> is empty.
<table width="450" border="0" cellpadding="0" cellspacing="2">
... more >>
web page dialog
Posted by Oren at 6/9/2004 1:56:02 AM
Hi all
How can I create a "web page dialog" in c# ? No template is available.
Any property in an aspx page that I’m missing
thanx
... more >>
Something about User Control,... wait online... thank you
Posted by Edward at 6/9/2004 1:54:13 AM
hi,
I've one page , which contains two user controls' instance,
A is a dropdownlistbox ( because it has some complex load code, I sealed it
into an ascx),
B is information of one db record.
how can I make B retrives data from DB according to A's dropdownlistbox
SelectionChanged Event ?... more >>
|