all groups > asp.net > may 2006 > threads for wednesday may 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 31
Fixed position label
Posted by Sharon at 5/24/2006 11:55:46 PM
Hi all.
I need to make a label that stays in a fixed position,
when the page is scrolled.
The javascript solution i have, is a bit jerky, and I'm looking for
something better.
Firefox is no problem, I'm looking for a solution for internet explorer.
Thanks,
Sharon.
... more >>
Edit DataGrid Dropdown cell
Posted by Peter at 5/24/2006 11:35:50 PM
ASP.NET 2003
In the DataGrid how do I select current cell value in the dropdown box when
I click on the edit link, currently when I click on the edit link in the
DataGrid the dropdown box appears in the cell, but allways the first item in
the dropdown box is shown not the current cell value... more >>
Geting VS '03 to play nice with my javascript
Posted by Darrel at 5/24/2006 10:01:16 PM
I'm try to put some server-side (codebehind) variables in my javascript.
Something like this:
<script language='JavaScript'>
var monkey = <asp:literal runat="server" id="strMonkey"></asp:literal>
But VS'03 doesn't like any ASP tags being wrapped in a script tag.
So, I response-write t... more >>
2.0: setting TextBox.Text from another page
Posted by R.A.M. at 5/24/2006 9:17:36 PM
Hi,
I need to set BirtDate TextBox with a date taken from another browser
window with Calendar control. I tried this way:
On first page I have:
Birth date: <asp:TextBox ID="BirthDate" runat="server"
ValidationGroup="BirthDate" />
with behind-code:
protected void Page_Load(object sender,... more >>
Auto type feature
Posted by Samuel Shulman at 5/24/2006 9:10:52 PM
I noticed that sometimes when I start typing my email address the textbox
turns into a combo with a list of suggestions, but sometimes it doesn't,
why?
Thanks,
Samuel
... more >>
asp.net 2.0: class file and .aspx page concept question
Posted by Ranginald at 5/24/2006 8:21:56 PM
How can you get a class such as myClass.cs, to create a control such
as a listbox that wil be used in a placeholder control on an .aspx page
where the .aspx page has yet to be created so the class doesn't know
about it yet. (e.g so there are no dependencies in the class)..
So if there are 10 ... more >>
Create custom base class to reuse code throughout site -- can't seem to get it to work!
Posted by Ranginald at 5/24/2006 7:29:30 PM
Hey,
I'm trying to create a simple class to create a textbox, and then
instantiate it from a page (so I can resue it across an asp.net app).
I've been scratching my head but I can't get this to work. I am I in
the right direction?
BaseClass.cs
============
public class BaseClass
{
pro... more >>
HTML text within a textbox
Posted by akki at 5/24/2006 6:08:08 PM
Hi
I want to write data in a text box in HTML format. The data is written
from code behind which the user can see and edit. But unlike a label,
in a textbox, The HTML tags get shown without any formatting. Is there
a solution to this?
Thanks
Akshay
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Using global.asax to protect images?
Posted by Bill at 5/24/2006 5:34:43 PM
Anyone have any success in using global.asax to protect images in a folder from being
linked to by external websites?
I'd tried to use global.asa in the past, with no success. Any help would be appreciated.
THANKS,
Bill.
... more >>
WebGarden and Viewstate
Posted by MattB at 5/24/2006 4:54:20 PM
I have a asp.net 1.1 application that a client is running at a hosting
company. The hosting company has WebGarden = 1 on that machine's
machine.config, and we get the following error in the application:
System.Web.HttpException: Invalid_Viewstate.
The solutions I've seen by googling this sugg... more >>
response redirection not working - HELP!
Posted by ODAN at 5/24/2006 4:05:11 PM
We are testing a ASP.NET application in Visual Studion 2003 and written in
C#. One of the pages that register new users on this application fails to
redirect to another page when the button is clicked. On the page there is a
button that has been code to save to database and also redirect to t... more >>
Sql statement
Posted by momo at 5/24/2006 3:30:05 PM
Can someone tell me why my query returns nothing?
"Select EmployeeID, SSN, LastName, FirstName, Address, City, State, Zipcode,
Phone from Employee where MiddleName ='' "
However this works fine.
"Select EmployeeID, SSN, LastName, FirstName, Address, City, State, Zipcode,
Phone from Employ... more >>
How to Use SSL only for Login.aspx page
Posted by BizWorld at 5/24/2006 2:07:54 PM
Hi,
I have a scenario where i need to configure only Login.aspx page to use
SSL. All other application will run on HTTP protocol. If someone can
guide me how to accomplish this. One of my idea is to keep login.aspx
page in a seperate Virtual director and apply SSL only on that
directory but i... more >>
validate query before execution
Posted by Chuck Foster at 5/24/2006 1:40:01 PM
Does anyone know a way to check if an inline SQL statement is valid before
executing it? something like....
sql = "select * from tblOne";
sql.connection = sqlconnection1;
if (sql.IsValid())
{
//do something
}
Thanks in advance for any advice!
Chuck Foster
... more >>
is there a itemdatabound in gridview?
Posted by Sukh at 5/24/2006 1:29:56 PM
I'm new to ASP.NET 2. In the prev. version i was able to do a lot of
parsing and other changes in the Item_DataBound Method of DataGrid, and
I wasn't able to find its equivalent with GridView. Am i overlooking
something or is this a deliberate change? Is there any workaround?
Thanks.
Sukh
... more >>
q; DataSet RowState unchanged
Posted by JIM.H. at 5/24/2006 1:23:03 PM
Can anyone help on this? I am using the following code to fill the dataset
and serialize it to a string and pass string to a web service.
In the web service I de-serialize it and do update, however that does not
put data into table because rowState=Unchanged.
Web Service Call:
//daSR... more >>
HOWTO Check failed emails
Posted by CMan at 5/24/2006 1:22:55 PM
Hi,
I need to check emails from a web application. Is there a simple way for the
application to check whether an email arrived?
Thanks
C
... more >>
IsPostBack wrongly returning false
Posted by Diego Mijelshon at 5/24/2006 1:13:02 PM
I've been debugging an issue we have in an asp.net 2.0 application for
several days.
The initial report of the bug was that, after waiting for some minutes with
an open page, entering a number in a search box and clicking the
corresponding button, the page came empty.
Entering the data aga... more >>
Gridview paging
Posted by mazdotnet at 5/24/2006 12:56:24 PM
Hi everyone,
I know when you enable paging in a datagrid the entire data is read but
only the data that you want is displayed to the end user. Has this
changed for Gridview? So if you have 10000 records and you only want 20
records displayed, does it read all 10000 and display 20 or does it
o... more >>
Deploy a .NET apps
Posted by raghu1 at 5/24/2006 12:08:55 PM
I have a test .NET web apps developed in .NET 1.1 unsing Vs 2003.
Have to deploy this on a production box that hosts a web site. Here is
the structure of production BOX:
windows 2003 sp1.
..net framework 1.1
The web site has a bunch of virtual directories: each with different
functionalit... more >>
HTML Preview
Posted by Chris at 5/24/2006 11:47:45 AM
Hi @all,
I will realize the following:
My Webserver has a couple of html-files stored in
a directory. On my asp I will display an Preview of all
files as Thumbnails. How can I do that ?
Thanks in advance,
Chris
... more >>
Button Routines being called twice
Posted by mosscliffe at 5/24/2006 11:25:38 AM
I am sorry but I am all very new and slow at understanding all this
ASP.NET2.
I found some code which showed how to page with a repeater. All very
excited as I had been looking for this all day. It worked wonderfully,
but it was in C# So I converted it to VB with
http://www.developerfusi... more >>
JavaScript assigns a value to label control text value?
Posted by david at 5/24/2006 11:06:02 AM
I have developed a web form by using visual Studio. My question is:
(1) what is the problem?
(2) what is right way to do it?
In the form, there are labels with id:
lblWear, lblColor, and lblQuality.
Now I need to assign values to those label dynamically.
I have JavaScript:
function regTripl... more >>
C# iteration
Posted by Arne Garvander at 5/24/2006 10:48:01 AM
How do I iterate throgh the Attributes collection
Attributes.Keys
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)... more >>
Any reason for no rollover controls in .NET 2.0?
Posted by Rob R. Ainscough at 5/24/2006 10:17:39 AM
Just curious why a VERY commonly used affect of rollover was NOT implemented
in .NET 2.0 for web controls?
Does anyone have a link to VB code that will show me how to build my own
UserControl that will support a rollover?
thanks, Rob.
... more >>
properties file
Posted by rjl444 at 5/24/2006 10:09:56 AM
My app has a lot of properties, instead of placing the values in
webconfig file (because I have tons), I would like to place these in
it's own file. What is the best way of using an independant file?
Should I consider resource file?
thanks.
... more >>
FormViewUpdateEventHandler
Posted by Paul at 5/24/2006 10:03:48 AM
If I create a FormView dynamically, I need to create the NewValues
manually. This is confirmed by multiple locations in the docs
including FormViewUpdateEventHandler. The oldValues returned by
FormViewUpdateEventHandler is also null. Do I need to fill it in as
well? IF so, how do I get to th... more >>
Do I really need to build a custom caching engine?
Posted by thedotnetarchitect NO[at]SPAM gmail.com at 5/24/2006 9:25:48 AM
To keep the background simple here is my problem, I have two web
servers in a web farm I would like to have a centralized caching system
on another server, where I can add and remove items from cache from
that one central server, the other two web server will share the cached
data from this serv... more >>
Is it possible to get Crystal Reports to print multiple reports in ASP.NET?
Posted by Rod at 5/24/2006 9:20:56 AM
We've got an old VB6 application which has 9 Crystal Reports it can print.
These 9 reports are considered by our users to be in essence one "report",
in the sense that they are all related and they cannot make their business
plans without all 9 reports. However, they really are 9 separate rep... more >>
Reading Session vars from a class in APP_CODE
Posted by yossimotro NO[at]SPAM gmail.com at 5/24/2006 9:06:17 AM
Hi,
I have a class in the APP_CODE folder which needs access to Session
variables.
When I try to read them I the following error:
Session state can only be used when enableSessionState is set to true,
either in a configuration file or in the Page directive. Please also
make sure that Syste... more >>
Postback with no delay??
Posted by Alex D. at 5/24/2006 8:38:15 AM
Recently I realized the Wachovia bank switched to asp.net pages. I like very
much the way they did it and I would like to know how they managed to do the
postbacks and the blinking between postbacks is almost unnoticeable!
I my sites even when browsing in the local network and the pages are v... more >>
Calculating Page Load times?
Posted by Andy at 5/24/2006 8:24:02 AM
Hey all,
I just started working with .net 2.0 master pages. What is the best way to
calculate page load times using master pages and user controls? I'm not sure
the order of execution and where to put the timestamping code?
Thanks in advance
Andy... more >>
q; no insert
Posted by JIM.H. at 5/24/2006 7:59:01 AM
Hello,
I have this code get xml string from web service and I am trying to insert
it into my table in the SQl server through, it does not give any error but it
does not insret the records too, what is problem?
myWS.myDS ds = new myWS.myDS();
myWS.Service ws = new myWS.Service();
System... more >>
InputFile.PostedFile.FileName not giving full file path
Posted by Sridhar at 5/24/2006 7:16:02 AM
Hi,
I have a web form where it has a <input type=file id=file1> control. I
have an Upload button to upload the file. WHen I click on browse and select
one file, it is showing the full file path in the text box of File control.
But in the code behind when I try to get the FullFile path us... more >>
Master Page and Web User Control Problem
Posted by mazdotnet at 5/24/2006 6:13:46 AM
Hi everyone,
I have placed a simple Web User Control (Response.Write("hello")) on
my page which uses a Master Page to test this problem that we have.
Every time I run the web app it displays
the word "hello" at the top of the Master Page. Why is that? Why
doesn't it display it where you want... more >>
Remove duplicate nodes in XML file
Posted by dazzle NO[at]SPAM edazzle.net at 5/24/2006 6:07:28 AM
I have an XML file and I would like to remove duplicate nodes within it
but I can't get my head round on how to do this.
Example XML file:
<root>
<plugin>
<title>A9</title>
<url>some url</url>
<number>0001</number>
</plugin>
<plugin>
<title>A9</title>
<url>some url</url>
<number>... more >>
Display XML Output from SQL Server
Posted by Terry Holland at 5/24/2006 5:54:02 AM
I have an asp.net (1.1) application that connects to a SQL server 2000 db. I
have a stored procedure in my db that out puts data in xml format.
What I need to be able to do is display that xml that I retrieve from my
stored proc and display it in a web page formatted as I want.
I have manag... more >>
adding a control to a cell in table
Posted by nemesis.saurabh NO[at]SPAM gmail.com at 5/24/2006 5:36:13 AM
hi,
i am adding a user control to a table of size 3x3 on runtime.
tabSec.Rows[0].Cells[1].Controls.Add(HtmlPlaceholderControl3);
but it is throwing an exception : property index out of range
regards,
saurabh
... more >>
Consuming RSS Feeds Exceptions
Posted by dkode at 5/24/2006 5:14:27 AM
I built an asp.net usercontrol that consumes rss feeds that I specify
the url for.
Some of them (MVP blogs, google news) consumes the feeds just fine. and
other times (75%) it chokes on stream.length and stream.position with
an Exception of type System.NotSupportException.
It seems as if wi... more >>
Easy mutex problem...
Posted by google NO[at]SPAM maclark.co.uk at 5/24/2006 4:53:01 AM
Hi Guys,
I'm having a bizarre problem here with mutexes.
If I have the following code in a page (note that it never releases the
mutex!), then load the page twice, in 2 seperate browsers, I do not get
a mutex lock.
Any ideas? I'm trying to get a globally accessible mutex. Is using the
Ap... more >>
how to add user controls to catalog zone dynamically
Posted by Pradeep at 5/24/2006 4:30:26 AM
hey,
I want to add custom user controls (*.ascx) files to the catalog zone
dynamically at run time. Is there a way to do this ? Please let me
know.
Bye
Pradeep
... more >>
ASP/ASP.NET Server Variables
Posted by Nick at 5/24/2006 4:15:12 AM
Hi
I am using ASP pages and ASP.NET pages side by side. It appears that if
the page requested by the client is an ASP page, which makes use of
functionality in an ASP.NET page, then the ASP.NET page will not be
able to access Server Variables. Server Variables only appear to be
available in A... more >>
What is wrong with IIS 6.0 with .net 2.0
Posted by hwx2006 NO[at]SPAM gmail.com at 5/24/2006 4:13:28 AM
Hey, everybody.
When I configure a new website with a port at 1080. It can be accessed
in local machine use
http://localhost:1080.
But I can not visit the website by http://ip:1080 from another pc, it
always said that
401.1 unauthorized...
But I am sure that the anonymous access is allowe... more >>
redirection if session object is nothing
Posted by graphicsxp at 5/24/2006 3:53:39 AM
Hi,
I'm trying to figure out the best way to redirect the user to a special
page when in my code i'm trying to use a Session object and that one is
nothing. Oviously I could do:
if Session("myObject") is nothing then
response.redirect("SessionExpired.aspx")
else
endif
but i'm not going... more >>
Style settings customized by user
Posted by beinhoff NO[at]SPAM gmail.com at 5/24/2006 1:11:26 AM
Hi,
Can anyone give me a hand.
I would like to create functionality for letting the user to control
the style settings for the whole site, like font and contrast. I=B4m
using asp.net 1.1. I would like to find a more dynamic solution than
switching between different stylesheets.
... more >>
Master Page UICulture asp.net 2
Posted by fabuwardeh NO[at]SPAM gmail.com at 5/24/2006 12:27:43 AM
Hi Everybody,
how i can localize the master page in asp.net 2
is there are away to set the master page culture in the code
i have already use InitializeCulture in my base page class but i am not
able to use it in the master page
please help me
thank you
... more >>
writing asp variabls within javascript blocks
Posted by Darrel at 5/24/2006 12:16:37 AM
In asp.net 1.1, what is the proper method for writing variables to the aspx
page that are contained within javascript blocks?
example:
<script language="JavaScript">
myJavascriptVariable= <asp:Literal Runat="server"
ID="ltl_sectionsJavascriptVariables"></asp:Literal>;
</script>
ASP.n... more >>
Master Page background image only visible from pages in root directory
Posted by news.sbcglobal.net at 5/24/2006 12:00:00 AM
I hope I can explain this well enough to understand. I have a master page
that is used by almost all of the pages in my site. On the master page is a
table. In one of the cells in this table, I have set the background to
display an image that is located in a directory called "images" which ... more >>
|