all groups > asp.net > march 2005 > threads for friday march 18
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
asp:ImageButton and javascript
Posted by JIM at 3/18/2005 11:34:27 PM
Hello,
Does anyone knows how to set the visible property of an asp:Imagebutton to
true
with javascript
I've the following declared :
<asp:ImageButton Id="tstImage" runat="server" visible="False" />
I tried already document.GetElementById('tstImage').visible='true';
but without succ... more >>
Asp:Imagebutton and javascript
Posted by JIM at 3/18/2005 11:31:12 PM
Hello,
I've an asp:Imagebutton on my form with the visible property set to false
<asp:Imagebutton ID="tstImage" runat=Server visible=False>
How can I set the visible propery to true using a javascript ?
I tried something like document.GetElementById('ImgTest').visible='true';
but without ... more >>
DropDownList ListItems in a VB.NET Web Control Library
Posted by Jeff at 3/18/2005 11:19:49 PM
Hi -
I'm creating a web control library (using VB.NET), and I'm trying to add a
modified asp:dropdownlist control to it.
How do I add asp:ListItems to the dropdownlist (within the web control
library control)?
My code follows below (and it doesn't work). When I add the control to an
asp... more >>
Problem with enterprise application block - data block
Posted by Showjumper at 3/18/2005 9:22:11 PM
I am working with the enterprise blocks - the data part for know. And i
getting this error when trying to access Northwind on my local sql server.
Can someone help me out on this one? i have googled unsuccessfully for any
ideas on how to fix this.
The source was not found, but some or all e... more >>
creating a datagrid...
Posted by Bad_Kid at 3/18/2005 9:12:01 PM
How can I dynamicly create a datagrid?
(first I read a datatable from a database, see how many atributes does it
have (n) and then build a datagrid with n columns...)???
(c#, asp.net)
... more >>
Global.asax
Posted by thomson at 3/18/2005 8:10:12 PM
Hi all,
I would like to know Will i be able to call a javascript
function from the Session_End Event Handler, Or is there any better way
of doing it.
Thanks in Advance
thomson
... more >>
variable declare dynamically
Posted by Ishaan at 3/18/2005 8:07:02 PM
Hi,
Is it possible to declare a variable dynamically?
Anwar
--
Software engineer
Petroleum Development Oman... more >>
UserControl, impossible to access method
Posted by Christian Ista at 3/18/2005 7:22:01 PM
Hello,
I have a UserControl, added to a panel like this (in the Page_Load of
default.aspx).
Code :
Control login = LoadControl("controls/Login.ascx");
panel1.Controls.Add(login);
No problem.
In the codebehind of this UserControl, I have a public method.
but in the Page_Load I can... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Collection Declaration
Posted by I am Sam at 3/18/2005 6:35:02 PM
This may sound like a simple question but in VB.NET you can declare a
Collection as
public MyCollection As Collection
How could you write the same declaration in C#?... more >>
Images in Dropdownlist
Posted by Scott Friedrich at 3/18/2005 6:11:51 PM
I would love to include images for the dropdown lists in my asp.net app. I
found one at
www.omnipotent-software.com
Unfortunately it does not work properly in Mozilla. I scowered the internet
trying find one but did not. Does anyone know of any?
Thanks,
Scott
... more >>
debug switch in visual studio - easy question
Posted by Dan at 3/18/2005 5:30:45 PM
Hi
I need to execute a line of code when debugging and another when in release
without having to manually comment and uncomment. Can anyone tell me the
switch syntax in c# in visual studio? thanls
... more >>
SQLConnection.Open() Timeout Error - but...nothing has changed?
Posted by Nevyn Twyll at 3/18/2005 5:09:40 PM
I've been working on an asp.net application and everything's been great.
But suddenly, whether I'm tyring to use a database on my own machine, or on
my server, I'm getting a timeout when trying to open a database connection.
The error seems to happen regardless of what ASP.NET app I'm working
... more >>
How to open aspx file within code ?
Posted by hoz at 3/18/2005 4:56:21 PM
like
asd = Open.File("asdsad.aspx?sunb="+reqid);
asd.getoutput();
... more >>
Appropriate way of dealing with settings in my app?
Posted by Linda at 3/18/2005 4:25:25 PM
In classic ASP I used to have a file called settings.asp included on every
page of my web, it consisted of a number of different settings unique to
this application, among them the database path etc.
I used to set some of the values contidional to which server executed the
script (see listing be... more >>
parameter query in MDB
Posted by Msnews at 3/18/2005 4:21:48 PM
I have this query (qryZipLike) in an MDB file. It accesses a function
geo_distance() and requires input parms for the three parameters.
SELECT tblPrimary.Zip, tblPrimary.State, tblPrimary.City,
geo_distance([@LAT1],[@LON1],tblPrimary.Lat,tblPrimary.Lon) AS dist1
FROM tblPrimary
WHERE Zip L... more >>
change asp1.0 to asp2.0
Posted by EricGuan at 3/18/2005 3:51:58 PM
I have been used visulal stduio .net 2003 .
What should I do to change Asp 1.0 to Asp 2.0. And what should I do with the
project based on asp1.0
... more >>
linkbutton question
Posted by Shawn at 3/18/2005 3:32:30 PM
Hi.
If I set my linkbutton's enabled property to false then it automatically
turns grey. Is it possible to get it in black even though it's not enabled?
Thanks,
Shawn
... more >>
ASP.Net Error Handling
Posted by Andrea Williams at 3/18/2005 3:22:36 PM
I've created my own error handling object. and I wrtie tot eh error handler
if the error is caught. Howver, I have one error it doesn't llok like I can
catch.... In my form, if someone enters the < or > sign in a text box
field, I get a long ASP.Net error page... not pretty. So how do I capt... more >>
item template not expanded inside a repeater
Posted by Andy Fish at 3/18/2005 3:16:50 PM
Hi,
In a repeater control I had something like this:
<a id="lnk_Lookup" href='lookup.aspx?userid=<%#DataBinder.Eval(Container,
"DataItem.UserId")%>'>go</a>
This works fine and the href is generated correctly. However, I also want to
process the control in the codebehind file, so I added... more >>
persistance of Classes
Posted by Namshub at 3/18/2005 3:12:42 PM
I'm A client server developer by trade and i'm moving my skill set slowly
over to ASP.NET.
One question, I have a class, that i populate on a postback... I want to
keep this data persistant though other multiple postbacks.
What is the desired mechanism to use this.
I'm using the followi... more >>
How to format databound by DataList Control ?
Posted by bienwell at 3/18/2005 3:09:45 PM
Hi,
I have a problem of displaying data bound by a datalist control. In my
table, I have a field Start_date which has Short Date data type. I tried to
update this field by Current Date. After that, I display End_Date on the
DataList control. The output looks like 3/18/2005 12:00:00 AM . ... more >>
What is session's namespace?
Posted by ad at 3/18/2005 2:55:21 PM
I want to manage session in a class's property like:
public class HealthSession
{
private int SelClassID, SelGradeID;
public int ClassID_Sel
{
get
{return Session["ClassID_Sel"];}
set
{Session["ClassID_Sel"]=value;}
}
What is session's namespace?
... more >>
The process cannot access the file because it is being
Posted by Jeff Fisher at 3/18/2005 2:49:43 PM
The development team is having a problem when they open an
asp page edit the code and then try to save it they
receive an error.
"The process cannot access the file because it is being
used by another process."
If I reboot the server it breaks the lock. If I reboot the
client it break... more >>
Allow users to embed custom tags in CMS system and have them parsed -- how?
Posted by kenfine NO[at]SPAM u.washington.edu at 3/18/2005 2:41:10 PM
I'm interested in allowing users of a CMS system to be able to embed custom
tags/calls to user controls in the content areas of their articles. This
would allow folks to call advanced bits of functionality and feed the
controls parameters using the CMS.
In classic ASP, you could parse out the ... more >>
FormsAuthentication.SignOut() not working when manually creating a ticket?
Posted by Matthias S. at 3/18/2005 2:19:27 PM
Hi there,
I've created an application which is using Forms-based authentification.
My Login-Button event handler looks somewhat like this:
// validate the input, etc...
// sUserName holds now the users name
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1, sUserName... more >>
HTTP Error
Posted by George at 3/18/2005 2:15:02 PM
Everytime when I redirect from one particular page to another, it will raise
4 exceptions, before Page_Load routine runs. I can't figure out a way to
find out what are the exceptions. When I use Application Center Test, number
of Http errors rises with the number of requests, so I suspect th... more >>
Can you have multiple "inherits" on one page?
Posted by tshad at 3/18/2005 2:03:14 PM
I have a control that I am using from Metabuilders that requires you to use:
<%@ Page Inherits="MetaBuilders.WebControls.DialogPage" %>
How do I inherit my code-behind page or another object that may require an
inherit also?
Thanks,
Tom
... more >>
Q: DataGrid during edit
Posted by JIM.H. at 3/18/2005 1:59:04 PM
Hello,
I am editing my table through DataGrid, two questions:
1. when I click edit it enable to edit all the fields on the screen, can I
disable a few of them for editing.
2. Is it possible to format date and number in the datagrid?
Thanks,
Jim.
... more >>
Request.UrlReferrer.ToString() returns a error
Posted by TJS at 3/18/2005 1:53:44 PM
This code runs fine on my local machine but fails on the webhost server.
Any ideas why ???
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
Line 73:
Line 74: ' Store URL Referrer to return to portal
Lin... more >>
CSS problem
Posted by Brian Henry at 3/18/2005 1:11:23 PM
I am trying to create a page with a header, footer, a document body, and a
left navigation plain.. I want the page to fill by default to the browsers
max size if the content of the documentbody do not fill it already instead
of having blank space at the bottom of the page below the footer. The... more >>
binding custom types to DataList
Posted by sklett at 3/18/2005 1:08:14 PM
I have a collection of objects that I have bound to a DataList. My
collection is based on CollecionBase.
In the ItemTemplate for my DataList I have this:
<code>
<%#Container.DataItem("FileName")%>
</code>
FileName is a property of my class.
This generates an error:
DataListItem.DataIt... more >>
dialer api
Posted by mv at 3/18/2005 12:53:48 PM
hi,
can anyone give me an example of how to work with the windows dialer api in
a web service
thanks in advance
... more >>
asp.net button does not work
Posted by nicholas at 3/18/2005 12:47:39 PM
Weird thing:
Got an aspx page with a button and an associated code in VB.net.
On my testing server the page works fine.
On the old hosters server the page worked fine too.
But now, at the new hoster it does not.
When I click on the submit button: nothing happens.
The only thing that works ... more >>
HTML Validation
Posted by MarkAurit at 3/18/2005 11:35:03 AM
I have a requirement to validate some html at approx the ie6 level. The
validation cant take place use a web control, but must be done in an event
such as post back. Does anyone know of ideally an existing component I can
sent the html to and get back at a minimum a boolean to specify if the... more >>
Question: Dropdown List Control
Posted by Manny Chohan at 3/18/2005 11:33:03 AM
Hi Guys, I have a table with country field for each user. Now when i go into
modify mode, i load the dropdown list with all the countries from the
datbase. I need to preselect the index for the appropriate country assigned
for that user. Lets say if i set Tom for Canada, and when i bring his r... more >>
redirecty on unauthorized page?
Posted by aa at 3/18/2005 11:21:37 AM
I have asp.net web site in which is using windows authentification, and I
want that the User who will not authorized would be redirected to other page
... more >>
encrypting images in asp.net
Posted by viktor9990 at 3/18/2005 11:21:06 AM
I wonder if it is possible to encrypt images(like .tiff or .gif files) in
asp.net? How? Any exampel code or url will be appreciated. Thanks... more >>
IMHO: DataBinding for ASP.NET list controls needs improvement (VS.NET 2003)
Posted by JV at 3/18/2005 11:14:02 AM
It's easy to databind a listbox or dropdownlist if all you want is to fill
it with a list of values. There are plenty of examples in the online help.
Unfortunately, real world applications demand more. Usually you would also
like to bind the SelectedValue to something else. Common scenario... more >>
Best Practices for MultiProject Solutions
Posted by Michael at 3/18/2005 10:50:43 AM
Hi all..
We are designing an ASP.NET application and have created a solution to
contain the various modules, like this...
MyApplication
+Common
+Project1
+Project2
+Project3
The folder structure on the web server is setup the same for the compiled
files.
Each module is assigned to ... more >>
Hiding and showing panel in client side in aspnet
Posted by wandali NO[at]SPAM rogers.com at 3/18/2005 10:35:29 AM
Hello,
I have a problem in finding the status of a panel (visible or not). I
have a dropdownlist that associates with a panel in which textbox are
embeded in the panel. A client side VBScript is run when the value of
the dropdown change. And here is the script
if document.all(dropdown).v... more >>
Modal Dialog
Posted by tshad at 3/18/2005 10:28:57 AM
I am using Andy Smiths Dialog windows, which work really well.
My only problem is I am trying to make the Dialogs Modal.
Someone mentioned putting <base target="_self"> into the head section of
the modal window to make it work. I tried putting it both pages just to see
if it would work a... more >>
Can static varible cross session
Posted by ad at 3/18/2005 10:12:58 AM
I define a static variable, like myClass.aString.
If one user in a session update the value of myClass.aString.
Can the other users in other sessions can see this change?
... more >>
Q: where clause to SqlDataAdapter1
Posted by JIM.H. at 3/18/2005 9:57:03 AM
Hello,
I have SqlDataAdapter1 and DataSet11 in my asp.net application and I am
using then in many function to select and update the table. Is there any way
to restrict the query of SqlDataAdapter1 with the username?
I have a username field in the table and I need to modify do something like
... more >>
install package fails when there are two user control with same na
Posted by Qingdong at 3/18/2005 9:29:07 AM
Building a web set up project fails when there are two user control with same
names under two different folders. Did anyone have the same issue before?
... more >>
How to update a dataset which data come from two table
Posted by ad at 3/18/2005 9:26:58 AM
I have a dataset with a datatable, which data is select from to table like
SELECT Categories.CategoryID, Categories.CategoryName,
Products.ProductID,
Products.ProductName
FROM Categories INNER JOIN
Products ON Categories.... more >>
Populate a DataGrid from Multiple Databases - Order Problem
Posted by crjunk at 3/18/2005 9:21:57 AM
I have 4 different databases that I'm having to pull data from in order
to populate a datagrid. I am able to do this, but my problem is that
because I'm pulling the data from 4 different databases, the data is
ordered alphabetically but is grouped by database.
Here is an example of what is ha... more >>
Programmatic access to web.config's <system.web> elements??
Posted by MikeM at 3/18/2005 9:09:13 AM
I've been trying to locate some property or method that will allow
programmatic access to the "loginUrl" attribute in the web.config file in the
<system.web> -> <authentication> element when the config file is set up for
Forms Authentication. I know certain system.web settings get mapped to
... more >>
HTML Text Editor
Posted by Pierson C at 3/18/2005 9:01:06 AM
This is driving me crazy! I may have screwed up a setting!
When changing between Design view and HTML view, Visual Studio completely
screws up the formatting of the HTML. It gets even wackier when the html
contains UserControls.
I have tried turning off all formatting setting, but have h... more >>
JScript / JavaScript Help
Posted by Roshawn Dawson at 3/18/2005 8:55:14 AM
Hi,
Could someone tell how to force a mouse event using either jscript or
javascript? I simply want to allow users to scroll the page after
postbacks using the scroll button on either a mouse or the keyboard
without them having to click the page first.
Thx,
Roshawn... more >>
Send email when error occurs
Posted by Andy G at 3/18/2005 8:51:20 AM
Hi,
My plan is to use Try Catch statements to catch an error and then email it
to myself. I send the user to a custom error page and I would like to email
myself the asp.net error. I thought that I would just call a function to
send a mail in the Catch area of the Try Catch statement but ... more >>
Designing on VS.2003 is terrible
Posted by Åženol Akbulak at 3/18/2005 8:43:03 AM
I use VS 2003. In VS 2003 design (page, table) is very difficult. FrontPage
is useful to design tables but FrontPage doesn't recognize asp.net panel
object.
I wonder whether VS 2005 is more easy to design.
--
______________________________
Åženol Akbulak... more >>
Inheritance & Page_Load (again)
Posted by Dave at 3/18/2005 8:31:10 AM
Hi, this is a follow-up to an earlier question but I really haven't found a
definitive answer in my search
If I have a Base and Derived webform, I've found that the dervived Page_Load
event fires first, then the base Page_Load.
Is the only technique to change this sequence is to override t... more >>
Invalid Cast Exception using Server.Transfer
Posted by buzz at 3/18/2005 8:20:35 AM
I am attempting to pass data between two asp.net web forms pages. I
have found the method to do this on the msdn site here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconPassingServerControlValuesBetweenPages.asp
After attempting to do this myself, I kept ... more >>
Open web page in WORD
Posted by Åženol Akbulak at 3/18/2005 7:45:01 AM
Hi,
I have a form page to print on my web application(asp.net). I want to show
the page in WORD. I use that code in asp.net Page_Load event:
Response.Clear();
Response.ContentType = "application/ms-word";
Response.AddHeader("Content-Disposition", "attachment;filename=word.doc");
When I op... more >>
Web Config File & Connection String
Posted by Mike Moore at 3/18/2005 7:31:09 AM
I'm not very familiar with the web config file. I would like to use the
timeout item in the session state for our connection string, but not use the
stateconnection string and sqlconnectionstring in the sessionstate section.
I have our connection string information in the appsettings section... more >>
using code behind model how have conditional code in aspx
Posted by Support at 3/18/2005 7:28:33 AM
Hello:
USing the code behind model, i do not understand how to do a conditinal
space in the aspx page. For example: I have two tables, under condition 1 I
want table 1 to show and under condition 2 I want table 2 to show. Place
holders wont work for me. In the old asp environment, this was... more >>
asp.net equivilant to good old include files
Posted by Simon Harris at 3/18/2005 7:22:04 AM
Hi All,
I am looking for the asp.net equiv' to ASP include files. Something which
will build common, much used parts of a page, such as header, footer
etc...
We have 3-4 developers, so ideally the code/html needs to come from a
common
place in the first instance.
Any suggestions to poin... more >>
Question about PostedFile MIME type
Posted by ME via .NET 247 at 3/18/2005 6:32:14 AM
I have a question about how System.Web.HttpPostedFile manages mime types using property ContentType in Windows.
When I upload a known "text/plain" file with no extension the property doesnt recognizes the type, showing a blank string or some weird characters. But if I put an extension like .pdf o... more >>
Point a subdomain to a sub-directory?
Posted by Leon at 3/18/2005 5:59:15 AM
How do I point a sub-domain to a sub-directory or sub-web of my site using
asp.net?
I know normally domains are setup to point to the root directory of the web
site. However, how can I detect which URL a person is browsing to on my site
with ("such as leon.mydomain.com"), and redirect them... more >>
Know page that fired an event
Posted by sunil philip at 3/18/2005 5:25:03 AM
How do i identify the page that fired a method?
e.g.
page1.html
-----------
<Head>
<script>
document.write(myfun());
</script>
Assume that page1.html is in a frame (or iframe) in page.aspx. page.aspx
contains an include file say, myinc.js. myfun() is inside myinc.js. How do i
come ... more >>
Adding Null to a column
Posted by Patrick Olurotimi Ige at 3/18/2005 5:22:17 AM
I'm trying to add NULL to a column in the database but the sql below
isn't updating?
if (name=="")
{
strCmd += "UPDATE";
strCmd += " EMPLOYEEDETAILS SET ";
strCmd+= "name='"+null+"',designation='"+desg+"',sex='"+sex+"'
,age="+age+" , salary="+salary+" where id="+id;
}
*** Sen... more >>
Variable from datareader
Posted by Jim via DotNetMonster.com at 3/18/2005 4:17:50 AM
Hi,
I'm trying to set one of the columns in the datareader to a variable so
that I can use it in a different function. When I do that then all the
other values in the data reader don't show up.
So I'm doing this:
If (dataReader.Read = True) Then
LessonID=dataReader("LessonID")
End ... more >>
HttpContext out of scope when in thread
Posted by DELGES Jean-Francois via .NET 247 at 3/18/2005 3:39:27 AM
I found a solution that i'm thinking quiet good :p :
Every time i need to access to an Application object, i use a wrapper class
Then i have something like this:
WSApplication.Objects.TempZone
In the Application_Start event (global.asax), I initialise a static member of my wrapper class:... more >>
Assembly and code behind
Posted by DELESTRE Christophe at 3/18/2005 3:27:02 AM
I’m sorry to disturb you but I have a problem on .NET development, and I’m
need some help to resolve it if it’s possible.
I have an aspx page with src property (no dll for my web application, all
pages are JIT compiled on request), and I want link a assembly with the “srcâ€
at... more >>
How to add Web User Control to WebUI project(Enterprise Template P
Posted by Sachin at 3/18/2005 3:23:01 AM
I started a new solution using enterprise template project, added WebUI
project to that.
Now I want to add web user control (*.ascx) to this project. But i'm not
getting web user control in the "Add New Item" pane.
Do Enterprise Template WebUI don't allow to create user controls. If it
... more >>
datagrid generate rows
Posted by Boonaap at 3/18/2005 3:13:02 AM
I have this checkbox list and a datagrid.
I would like to generate a row with textboxes for every item that is checked
in my checkboxlist
What's the best way to do it?
in javascript is (quite) easy but in C#?... more >>
validating only a part of the form
Posted by Joe Abou Jaoude at 3/18/2005 2:22:15 AM
hi
I m facing the following problem often :
In a web page the user can click on 2 buttons "button1" and "button2".
If the user clicked on button1 then I have to validate part of the form
(some controls musn't be validated), and if the user clicked on button2
then I have to validate the other ... more >>
massive problems with my machine?
Posted by David Cho at 3/18/2005 2:21:55 AM
After my laptop crapped out, I had to resort to my desktop as a backup.
The problems I have experienced are
- the computer powers off and restarts without warning. It powers off.
Not a blue screen of death, but it powers off
- When it restarts, (this does not necessarily follow the previous... more >>
web.config, roles and multiple directories
Posted by Matthias S. at 3/18/2005 1:37:46 AM
Hi,
here is what I'm trying to do: I have a virtual directory called
"WebApp". Under this one I've got 2 physical directories called
"Customers" and "Admins".
I implemented Forms-based authentication. If the logon credentials are
ok, I transfer the user to either the "Customers" or the "... more >>
Preventing a modal dialog from doign a postback
Posted by John at 3/18/2005 12:58:42 AM
Hi all,
I have a situation where I'm using a modal dialog to merely show the user
some data. Once the user has finished, there is only one button to click to
return to the previous (parent) page but a postback is done. The modal
dialog is invoked from a linkbutton on the parent.
How can ... more >>
ASP.NET acting weird in Windows 2003 server
Posted by ganws NO[at]SPAM yahoo.com at 3/18/2005 12:30:53 AM
My asp.net app is working perfectly in WinXP Pro. However when I moved
it to IIS running on win2003 a lot of functionality just don't work. I
don't even get any error just no response or queries not working
properly.
Is there anything else I need to do when running asp.net app under
win2003?
... more >>
|