all groups > asp.net > october 2006 > threads for wednesday october 4
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
Looking for a Control
Posted by Matt at 10/4/2006 11:42:48 PM
Hi, I am looking for a control that will allow me to host other controls =
inside it but have a method of showing and hiding. I have seen plenty =
of horizontal controls for doing this but I am looking for a vertical =
one. I would like to host my navigation tree in it on the left side of =
my... more >>
Need to trace sequence of server events
Posted by nospam NO[at]SPAM nospam.sss at 10/4/2006 10:43:33 PM
I have a web page with user controls and server controls and some of them
are data bound.
I need a way to find out the sequence of events that get fired from the
point I click a button to the point the page is refreshed. They could be
either with a postback or ajax.
What's the best way to ... more >>
ATLAS / AJAX question
Posted by CK at 10/4/2006 10:02:30 PM
Hi All,
Is there any way to disable controls when doing an atlas callback? We have a
webform with controls like drop downs that are in Atlas Update Panels. When
you make a selection in the drop down, it updates other control values on
the page. The problem is when a user makes a change, then ... more >>
Database on remote server
Posted by Tor Inge Rislaa at 10/4/2006 7:47:10 PM
Database on remote server
On the remote server where my ASP.NET application is located there is no SQL
Server or SQL Server Express. When I test my application locally it works
fine because I have the SQL Server Express 2005 on my computer, but when I
deploy it I am getting error messag... more >>
How to determine when a page is being redirected
Posted by Opa at 10/4/2006 7:46:02 PM
Hi,
I would like to know if there is an event that will tell me when a page is
being redirected and also the url of where the page is being redirected.
Is there an event that is fired which will give me this information.
Note: I want to use this event to remove a session variable.
Thanks... more >>
Repeater DataSource. This is driving me crazy.
Posted by shapper at 10/4/2006 6:32:53 PM
Hello,
I created a Repeater at runtime with an AccessDataSource.Everything
Works fine!
Now I need to use the same repeater but with a DataSource created in my
VB.Net code.
I created a DataView but the Repeater doesn't show anything!
I don't get any error so I have no idea what is going o... more >>
GridView column
Posted by Nick at 10/4/2006 6:10:01 PM
HI ALL:
I have a gridview and display 4 columns , one of the column is ID , which i
don't wanna to visible. The problem i got is that the update , insert and
delet function doesn't work if i set the ID column visiable to false.
How can i handle this case?
Cheers
Nick... more >>
load dynamically UserControl
Posted by Stan SR at 10/4/2006 5:46:26 PM
Hi,
With asp.net 2, c# I try to load UserControl on "fly".
When I test the website using VS2005, everything works.
When I try to publish the website, I get some errors like :
"The type or namespace "controles_myUserControl" could not be found (are you
missing a using directive or an assembly... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Serving .asp code with the asp.net engine
Posted by MatsL NO[at]SPAM newsgroups.nospam at 10/4/2006 5:10:36 PM
Hi,
I've run into a problem with url rewriter and an .asp page that needs to
be accessed.
The rewriter is implemented as an HTTP module and the IIS passes all
requests to the asp.net engine. Is it possible to make my HTTP module
not handle the request and let IIS take care of it, even thou... more >>
Back button
Posted by simonZ at 10/4/2006 4:35:26 PM
I'm using atlas update panel on the page.
When I push search button I bind grid view to my data.
When I click on the link inside my grid view, it redirects me to some other
page.
When I click back button on that page, to redirects me to previous page, my
previous page is empty.
All my data... more >>
Gridview, DataList or Repeater
Posted by shapper at 10/4/2006 4:00:43 PM
Hello,
I need to display a list of records.
Each record has 3 columns:
An image, a Label and a Hyperlink.
I don't need paging or even raise events.
All I need is to display the data as I described.
Which data control should I use?
Gridview, DataList or Repeater?
Thanks,
Miguel
... more >>
POST data from aspx page to asp page
Posted by MOUSTAFA ARAFA at 10/4/2006 3:59:01 PM
I want to pass (POST) username & password from
my page to another asp page, I can't do anything on that page, this page
for other system, and I can't touch or even change anything on it.
Can you send me a sample code to POST username and password for that
page.
Give me a sample code t... more >>
inheriting code behind in a web form
Posted by BillE at 10/4/2006 3:11:13 PM
Can I inherit from a web form?
I would like to reuse procedures in a web form base class code behind by
inheriting from it.
For example, I would like to have a HandleError function defined in the base
class code behind, which would then be available to any web forms code
behind which inheri... more >>
How do you make a form reload itself?
Posted by tom c at 10/4/2006 2:59:17 PM
I wanted to make a form named "Hotel.aspx" reload itself so I just did
Response.Redirect("Hotel.aspx"). Is there a better way or more
prefered way to do this?
... more >>
2.0: DropDownList incorrectly filled
Posted by RAM at 10/4/2006 2:56:05 PM
Hi,
Please help in the following problem with asp:DropDownList.
I have written in .aspx:
<asp:SqlDataSource ID="ListOfMaterials" runat="server" ConnectionString="<%$
ConnectionStrings:MIMStockDemo %>" SelectCommand="SELECT Name FROM Materials
ORDER BY Name" />
<asp:DataList ID="Posit... more >>
ASP.NET Initial delay solution.
Posted by Achu at 10/4/2006 2:51:25 PM
Hi friends,
I am having problem of initial delay of 15 second when I go to my
asp.net website every 30 minutes (not too much traffic to this site).
It is hosted in gate.com (asp.net provider).
I understand about JIT compiler. But this is something related to
resource unloading when no activit... more >>
Range validation and international date formats
Posted by Brendan Reynolds at 10/4/2006 2:33:52 PM
In an ASP.NET 1.1 app I have the following range validation control. This is
an intranet app that will be used only within Ireland, so all date input is
expected to be in dd/mm/yyyy format.
<asp:RangeValidator id="varngRollCallDate" runat="server"
ErrorMessage="Please enter a valid date... more >>
GridView delete datarow
Posted by Nick at 10/4/2006 2:19:02 PM
HI All:
I have problem to delete row in grid view. It always needs to click twice
delete button to delete row. but everytime it fires the deleting and deleted
event.
I have no idea why the first time doesn't actually work.
Any helps are appreciated.
Cheers
Nick... more >>
In A Web App?
Posted by bradwiseathome NO[at]SPAM hotmail.com at 10/4/2006 2:00:55 PM
I have a DLL that is sometimes used in a ASP.NET 2.0 web app, sometimes
it is used by a console app (unit test). How can I determine if the
current instance (it's not a static class) is definitely running inside
ASP.NET?
... more >>
Response.Redirect hates me
Posted by Kasey at 10/4/2006 1:58:18 PM
Problem:
------------------------
I have a list of names that spill over onto other pages. The user can
click on the pages to advance and see more names. The user can click on
a name to edit information. So, if I edit a name on page 5 and click
Submit, it redirects me to page 1 of the names. I ... more >>
aspnet_perf.dll cannot register
Posted by Hardy Wang at 10/4/2006 1:42:02 PM
I installed .Net runtime on one of my server, and since then my event log is
flooded with following message:
Event Type: Error
Event Source: Perflib
Event Category: None
Event ID: 1008
Date: 10/4/2006
Time: 3:12:19 PM
User: N/A
Computer: ServerName
Description:
The Open Proced... more >>
Changing FilterExpression
Posted by David at 10/4/2006 12:10:24 PM
I cannot get my aspx page (ASP.Net 2.0) to remove the FilterExpression on a
SqlDataSource. Can someone tell me what I am doing wrong? Below is the
SelectCommand:
<asp:SqlDataSource ID="SqlClosedReason" runat="server" ConnectionString="<%$
ConnectionStrings:WcccuConnectionString %>"
Sel... more >>
Global.asax application_error for global erro handling
Posted by vikram at 10/4/2006 11:48:40 AM
I want to provide a custom erro handler for my application. henc I decided
to handle all error in Global.asax application_error event and then process
the error respectively.
Is there any problem doing so? I mean using global.asax app_error event to
handle all the error of aplication. as i wi... more >>
Fill a javascript var with the content of a variable declared in a vb.net Sub
Posted by diac at 10/4/2006 11:42:17 AM
Hello,
I create and fill a variable in the Page_Load sub and then i need it in
a javascript code. Of course the xxx variable is declared in the sub so
that it is not available out of the sub. How can i fill the javascript
variable with its content?
------------------------------------
Sub ... more >>
Image button shows outline when clicking in FireFox
Posted by Charlie NO[at]SPAM CBFC at 10/4/2006 11:34:31 AM
Hi:
When you click image button in Firefox, a thin, gray dotted line appears
around image. Is there a way to get rid of this?
Thanks,
Charlie
... more >>
Session Variables lost on Window 2003 Server
Posted by albertcliang NO[at]SPAM gmail.com at 10/4/2006 11:32:46 AM
I've got an odd case where I'm developing on a Win2k box and everything
works fine (no, that's not the odd part).
However, when I publish my code to a test box (2k3 Server, single
processor), I will lose my session variables after a random number of
server.transfers from one page to another. S... more >>
How exclude public property from object serialization?
Posted by Ed Sutton at 10/4/2006 11:04:32 AM
Is there an attribute I can add to a public get/set property to prevent
serialization?
I am using auto-generated object serialization for a custom type in my
webs service.
Thanks in advance for any tips or suggestions,
-Ed... more >>
Alert/Message
Posted by Guy Cohen at 10/4/2006 10:58:09 AM
Hi all
How do I present questions/messages to the user while I am in a CLICK event
of a button ?
I was told to look for javascript/vbscript but could not make it work.
Please advise
Guy
... more >>
Capture the sessionID from intitial URL
Posted by Chip at 10/4/2006 10:39:43 AM
Maybe this problem has been solved many times. My users frequently bookmark
the URL with sessionID in it and then have all kinds of problems when
subsequent users use that bookmark since the old session is still open. I
need to detect whether the initial URL contatins a sessionID so I can
re... more >>
asp.net 1.1 error
Posted by param NO[at]SPAM community.nospam at 10/4/2006 10:31:37 AM
Hi all,
I have a very weird error going on in an asp.net page that has usercontrols.
If I set debug="false" in the web.config file, the page throws an error:-
System.Web.HttpException: External component has thrown an exception. --->
System.Web.HttpCompileException: External component has ... more >>
Javascript error
Posted by Diffident at 10/4/2006 10:17:02 AM
Hello All,
ASP.NET 1.1 and Visual Studio 2003.
I have a page which has few datagrids, validation controls and other server
controls. When the page is rendered in the browser I am seeing a javascript
error at the very bottom of the page. I am not using any custom javascript
code except fo... more >>
upload file contents to SQL
Posted by igotyourdotnet at 10/4/2006 10:16:03 AM
Currently I have a asp.net 1.1 web page that uploads text file contents into
SQL. it reads the files line by line and then inserts the data. I want to
convert this web into 05. I was wondering if there is anything easier in 05
to upload files contents into SQL 05?
Do I still have to read th... more >>
Server.Transfer
Posted by shapper at 10/4/2006 9:50:13 AM
Hello,
I had the following code line when a button was clicked:
Response.Redirect(Me.Request.Url.AbsolutePath)
I am using this to refresh the page.
However, I need to preserve the Query String if the page has any and
Response.Redirect is not doing it.
So I changed it to:
Serve... more >>
How can I set the browers icon?
Posted by Christopher Carey at 10/4/2006 9:43:02 AM
I'd like to be able to control the icon presented in the upper left corner of
the browser dynamically, based upon the page I'm serving. Is there a way to
do this?... more >>
ConfigurationManager Class Unavailable in Class Libraries
Posted by Mike at 10/4/2006 9:16:03 AM
In the previous version of the .net framework,
system.configuration.configuration manager was available for use in Class
Libraries. I'm now working with VS2005/framework 2.0 and it appears that
this is not an option. Why is this class unavailable now in Class Libraries?
I need it to refer... more >>
401 on HttpWebRequest in FIrefox
Posted by Ryan at 10/4/2006 8:43:22 AM
Hello everyone,
I am using Windows authentication and I have set impersonate to true.
I am try to do the following and receive a 401 error in non-IE
browsers.
Dim objRequest As HttpWebRequest = CType(WebRequest.Create(strURL),
HttpWebRequest)
objRequest.Credentials = CredentialCache.Defa... more >>
Replacing html tags
Posted by jumblesale at 10/4/2006 8:11:05 AM
Hello all,
I'm not all that bad at Regex, but i'm stumped on how to approach my
problem.
I need to parse a string and remove all html tags except hyperlinks.
I can remove all the html tags using: Regex.Replace(inputText,
@"<(/?[^\>]+)>", "");
But this also removes any hyperlinks, which i n... more >>
HOWTO: Detect FormView EditItemTemplate TextBox Value Changed
Posted by Dan Sikorsky at 10/4/2006 8:03:02 AM
How can we tell if the value in a FormView EditItemTemplate TextBox has
changed from its initial value so that we know if we have to update the
corresponding db table column value?
--
Thank you kindly,
Dan Sikorsky BA, BSCE, MCS... more >>
How to get page and method name
Posted by Li Pang at 10/4/2006 7:22:02 AM
Hi,
I want to track the info from an aspx file. From code file ".cs" file I used
a method where I want to get the name of current code file and name of
method. What is the functions I have to use? Anybody knows that?
Thanks in advance... more >>
Does anyone have ASP.Net 2.0 Profiles working in a Web Application Project?
Posted by nathan.haywood NO[at]SPAM gmail.com at 10/4/2006 7:21:52 AM
I saw several posts, but no real answers about this. I've been playing
with the Profile classes in a sample Web Site, but cannot seem to get
the Profile to work in my actual Web Application Project. I am able to
add profile properties and/or profile inheritence to the web.config,
but IntelliSens... more >>
onclick Client-side Code problem
Posted by pagates at 10/4/2006 7:12:01 AM
Hello All--
I'm having a problem getting an onclick event to work. Here is my setup: I
have an external JavaScript file, a master page that registers the javascript
as an external file, and a content page that has controls that I am trying to
get onclick to work for.
// ================... more >>
Error with Server.Transfer
Posted by slemen at 10/4/2006 7:10:02 AM
Hi,
UserApplication.aspx calls UserProfile.aspx and both exist in the same
subfolder (WebSite/SubFolder.) The Server.Transfer line in the
UserApplication.aspx file errors with the inner exception:
{"The file '/WebSite/UserApplication.aspx' does not exist.").
I don't understand wh... more >>
csv and leading zeroes
Posted by Mike P at 10/4/2006 7:00:05 AM
I'm trying to write the contents of a csv file to a table, but I am
having problems with fields with leading zeroes. Whenever I save as csv
I lose the leading zeroes. Does anybody know how to prevent this?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Problem using GridView1.Columns.Insert(2, nameColumn);
Posted by Chicagoboy27 at 10/4/2006 6:47:54 AM
It seems when I use GridView1.Columns.Insert(2, nameColumn); to
dynamically insert a column into a grid I loose all items that are
bound using
<asp:TemplateField HeaderText="E-Mail" >
<ItemTemplate>
<a href='mailto:<%# Eval("email")%>'
target="new"><asp:Labe... more >>
asp:login w/ ASP.NET 2.0 -- still can't get basic login page to work
Posted by Sasquatch at 10/4/2006 6:45:54 AM
I'm still having trouble creating a simple login page using the
asp:login
control. I followed some instructions in a WROX book, "Beginning
ASP.NET 2.0," and the instructions are very straight forward, but it
won't work for me. I've got a little better troubleshooting
information for everyone ... more >>
All files corrupted using Response.Write or Response.BinaryWrite in .NET 1.1
Posted by ChristopherABurns NO[at]SPAM gmail.com at 10/4/2006 6:25:11 AM
I have a very simple code snippet here:
private void Page_Load(object sender, System.EventArgs e)
{
string filePath =
Server.MapPath("\\Transcriber\\TranscriberTest\\");
string fileName = "Test.Zip";
//FileInfo fi = new FileInfo(filePath + fileName);
FileStream fs = File... more >>
Development best practices
Posted by Pablo at 10/4/2006 4:58:14 AM
Hello all,
Hope today finds you well.
I'm looking to take my knowledge of best practices within the
development lifecycle to the next level.
Basically I want to follow industry recognised, Microsoft approved
practices for every aspect of the lifecycle - so planning and
architecture, team d... more >>
Class. Need advice.
Posted by shapper at 10/4/2006 4:16:41 AM
Hello,
I created a simple class as follows:
Public Class HelloWorld
Public Function SayMessage() As String
Return "Hello World!"
End Function
End Class
Usage:
Dim objHelloWorld As New HelloWorld()
MyLabel.Text = objHelloWorld.SayMessage()
Then ... more >>
asynchronous file upload
Posted by oliverthered at 10/4/2006 3:33:01 AM
Hi,
I want to write an asynchronous file uploader control so that I can display
a progress bar as the file uploads.
The problem I having is that .net waits for the upload stream to finish
before passing the request onto the page or IHTTPHandler.
Does anyone know how to do this. (I've se... more >>
MS Ofiice Document Image Viewer Control 11.0 in ASP.NET
Posted by zee at 10/4/2006 3:14:22 AM
hello
Is it possible to use Document Image Viewer Control in
ASP.NET(2.0) because
1. The IDE is not adding this component in the toolbox and
2. when i use it so it give me following error
"ActiveX control 'ef347a62-ba21-42e4-94a0-1c0a6d7fdfe7' cannot be
instantiated because the c... more >>
regrex?
Posted by hkhellhkhell NO[at]SPAM hotmail.com at 10/4/2006 1:22:27 AM
is there any regular expression tool for vs2005?
from hkhellhkhell@hotmail.com
... more >>
Invalid cast of master page class
Posted by Argirop at 10/4/2006 1:12:02 AM
I have a page Default.aspx. Its first line is the following:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="default.aspx.cs"
Inherits="MyCompany.MyApp.default" Title="Untitled Page" %>
The first line in MasterPage.master is the following:
<%... more >>
|