all groups > asp.net > february 2007 > threads for friday february 16
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
embedding a flash file
Posted by fnustle NO[at]SPAM gmail.com at 2/16/2007 10:19:44 PM
I've embedded a flash file into an assembly:
[assembly: WebResourceAttribute("Namespace.main.swf", "application/x-
shockwave-flash")]
But when I try to reference it on a web page:
<object codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab"
height="... more >>
coordinating items in dropdown listbox control with value in a textbox
Posted by Ted at 2/16/2007 8:56:32 PM
Here is a stored procedure I created in MySQL:
CREATE PROCEDURE `sp_find_food`(
IN search_string varchar(255)
)
BEGIN
DECLARE ss VARCHAR(257);
SET ss = CONCAT('%',search_string,'%');
SELECT NDB_No,Long_Desc FROM food_des WHERE Long_Desc LIKE ss;
END
If I execute this withi... more >>
aspx files not created by VS 2003 or 2005
Posted by Jeffrey at 2/16/2007 7:22:05 PM
Just got the book, ASP.NET by Greg Buczek (Osborne). The first part of book
listed many aspx codes, not created by VS 2003 or VS 2005. How can these
aspx files be coded? NotePad or VB 6? The book did show the web pages with
IE for these aspx files.
If not VS 2003 or VS 2005, then it m... more >>
Form.DefaultButton stopped working in firefox
Posted by Tim Mackey at 2/16/2007 7:07:51 PM
hi,
asp.net 2. can anyone explain why this code does not work in firefox
(2.0.0.1), but does work in IE 7.
if you hit enter after typing something into the textbox, it should fire the
Submit button click handler, instead it fires the event for the bogus button
above it. btw it doesn't matt... more >>
Getting at buttonField text in a gridview
Posted by GaryDean at 2/16/2007 6:15:27 PM
I have a button field in a gridview defined as follows:
<asp:ButtonField ButtonType="Button"
CommandName="AcceptOrder" Text="Accept Whole Order">
<ControlStyle Font-Size="X-Small" />
</asp:ButtonField>
In the RowComm... more >>
Error details in Custom Error Page
Posted by Paul Cheetham at 2/16/2007 6:04:09 PM
Hi,
I have created a custom error page for my web application (c#, .Net 2)
In this page I am trying to get the details of the error that has
occurred so that I can display it if required.
(Error page defined in Web.config)
I am using the following code:
HttpContext ctx = Http... more >>
Back Button: Best way to deal with
Posted by GaryDean at 2/16/2007 4:23:40 PM
After a lot of Google research, there doesn't appear to be a easy solution
for detecting or preventing a user of an asp.net application from using the
backbutton.
Is there any way to deal with this problem?
--
Regards,
Gary Blakely
... more >>
Session_End event, System.NullReferenceException
Posted by brent960 at 2/16/2007 2:58:05 PM
Environment: ASP.NET 2.0, SQL Server 2005, C#, Visual Studio 2005
In my Session_End event, I am executing a stored procedure to update a
database table that is used to log user sessions.
When the user sessions time out, the Session_End event fires successfully.
The stored procedure execute... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
aspnet_compiler.exe?
Posted by Brian McCullough at 2/16/2007 2:54:10 PM
Is aspnet_compiler.exe actually the tool used by the ASP.NET runtime to
dynamically compile an ASP.NET 2.0 application? ...Or is the
aspnet_compiler.exe tool just a console application "front-end" for some
lower level functionality and the ASP.NET runtime actually hooks into this
lower leve... more >>
Hidden Field value set in Javascript
Posted by fatima.issawi NO[at]SPAM gmail.com at 2/16/2007 1:48:18 PM
Hello,
I am trying to set the value of a hidden field in Javacript in my
UserControl. I need to access the value in the code-behind.
For some reason, the value of the hidden field never gets set on the
client even though it is executing that function. Can anyone help me
figure out why? I am... more >>
Prevent copy of dll to temporary asp.net files?
Posted by Andreas Bergmeier at 2/16/2007 1:37:33 PM
We have a com dll inside the bin directory of a WebApplication. In
asp.net 1.1 this dll stays only in the bin directory and just the
interop wrapper is copied to the temporary asp.net files. In asp.net 2.0
the com dll is copied to the temporary asp.net files, too - which is a
real showstoppe... more >>
Grid View Display different columns between item/edit templates
Posted by gane at 2/16/2007 1:18:08 PM
Hi,
In a gridview, How can i display different columns between item and edit
modes.
For eg. i have a sql that returns productname, categoryname, etc.
In viewmode, i need to display only productname column and not categoryname
column. Again in Edit mode, i need display/edit category name onl... more >>
client printing
Posted by jkenne19 NO[at]SPAM bellsouth.net at 2/16/2007 1:07:37 PM
I have built a class for my web application using Ajax that prints
using System.Drawing.Printing. As you know these only prints to the
web server. I want to be able to print from the client. I know I could
be using JavaScript for this but I'm printing to a per printed from
using a dot matrix pri... more >>
Problem Writing a File from a Web Service
Posted by Bill Manring at 2/16/2007 12:40:15 PM
I have an internal ASP.NET 2.0 web service that does, among other things,
expose a method that causes files to be written to a location that the user
configures. The web service has been around for a while, under ASP.NET 1.0
and it has just been updated to ASP.NET 2.0. The functionality in q... more >>
ActiveX work-around to avoid the drop-down IE7 warning?
Posted by clintonG at 2/16/2007 12:29:23 PM
I thought I read there was a work-around for ActiveX content that no longer
activates the drop-down warning? Some kind of script trick or other way to
write the HTML which refers to the ActiveX control?
--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL h... more >>
Multiple (unrelated) declarative parameters
Posted by Tastic at 2/16/2007 12:28:56 PM
Hi, I am working on a search & filter form using about 6 different
dropdown boxes, and possibly more to come.
Here is what I am trying to acheive; if the user does not specfiy any
choice in a ddb then then that particular filter is not applied... I
am probably not making a lot of sense here...... more >>
gridview printing
Posted by frank at 2/16/2007 11:48:10 AM
I tried to print gridview. There is one problem I can't fixed:
I can't get the color of the header in the output of the printing, Can
anybody give me a help... more >>
Central Illinois User Group
Posted by Tod Birdsall, MCSD for .NET at 2/16/2007 11:30:40 AM
Hello,
I am a .NET software developer who recently moved from Phoenix,
Arizona where there was a very active .NET User Group to Normal/
Bloomington, Illinois where there doesn't appear to be any Microsoft
Software Development related user groups. Do any of you live in
Central Illinois? If so,... more >>
untyped datatable
Posted by rodchar at 2/16/2007 10:15:32 AM
hey all,
if i have an untyped datatable in my code how can i make it where when i
reference the datatable variable i can say dt.FindByFieldKeyID(value as
integer)?
thanks,
rodchar
... more >>
password restriction question
Posted by Jon at 2/16/2007 9:43:21 AM
I have a requirement for a new product that the user's passwords cannot
contain a word found in the dictionary.
I don't really have any practical ideas on how to do this. What's the best
way to do it?
Thanks
... more >>
IsDBNull ~ Precompiled code in .NET~Help Please
Posted by Brad Isaacs at 2/16/2007 9:39:40 AM
ASp.NET 2.0 , Visual Studio 2005
I am working with the Add NEw Item >> DataSet
I have created my Dataset and call it, when I run my project, I receive an
error message because the dataset is pulling a DBNULL value.
I was suggestted to add the following IF ELSE and it makes sense to do that ... more >>
Master Page DefaultButton/DefaultFocus
Posted by BigJohn at 2/16/2007 9:34:18 AM
We can set the default button and focus field in ASP.Net 2.0 on the Form tag.
My form tag is in the Master page, but the controls are in containers.
I read through a few articles which did not work.
I added a "runat=server" to make the values visible to the devel. env.
I added properties... more >>
Cache_dependency_used_more_that_once Exception when adding to .NET cache
Posted by mahesh.prasad NO[at]SPAM gmail.com at 2/16/2007 9:29:42 AM
Hi,
I'm trying to add an object to the .NET cache using a CacheDependency
and I get the following exception :
System.InvalidOperationException: Cache_dependency_used_more_that_once
at System.Web.Caching.CacheEntry.MonitorDependencyChanges()
at System.Web.Caching.CacheSingle.UpdateCach... more >>
UpdatePanel and Gridview / DetailsView
Posted by mike NO[at]SPAM 5starserv.com at 2/16/2007 8:23:13 AM
I have a page with a LoginView which contains a Gridview and a
DetailsView, each in its own UpdatePanel
The problem that I am experiencing is that when I select a record in
the Gridview (using a SelectButton), the selected record is shown in
the DetailsView, which is correct - however, when I ... more >>
Calendar Control (.net 1.1)
Posted by mavrick101 at 2/16/2007 8:16:12 AM
Hi,
How can I create a calendar control for the months other than the current
month.
Thanks.
... more >>
datareader question
Posted by WebBuilder451 at 2/16/2007 8:10:10 AM
I should know the answer to this but i guess i have to ask: Is there a way to
reset a data reader to the begining? I figure it's a no, but want to be sure
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes... more >>
ThreadAbortException at ExportToHttpResponse()
Posted by dorrit.Riemenschneider NO[at]SPAM communardo.de at 2/16/2007 8:05:44 AM
I've developed a sharepint webpart (ASP.NET 2.0 application) with use
of the CrystalReportViewer web control
(CrystalDecisions.Web.CrystalReportViewer). All works fine except the
export of the report associated to the CrystalReportViewer. I use the
following source code:
CrystalDecisions.Web.... more >>
What do I need to run a asp.net 2.0 app with sql server express database on a web server?
Posted by Nick at 2/16/2007 8:00:47 AM
hi,
I have a project about to finish. It is asp.net 2.0 project using sql
server experss database. Now, I am trying to find some webhost
provider for it. I saw some saying asp.net 2.0 support. Is this all I
need, or there is some other stuff in order to make the sql server
express database su... more >>
asp.net and excel.application in interop
Posted by Neo at 2/16/2007 7:56:42 AM
Hello All,
I would like to ask has anybody successfully used excel interop code
in asp.net?
I am getting following error.
Retrieving the COM class factory for component with CLSID
{00024500-0000-0000-C000-000000000046} failed due to the following
error: 80040154.
Error is given at the... more >>
Export to Excel issue..
Posted by karthick at 2/16/2007 7:32:54 AM
Hi,
I am exporting a Gridview to Excel and it works fine without any
issues.
But as one of the field holds values such as "71646E100" it gets
converted to: "7.16E+104" (like a formula) in Excel. How can I prevent
this from happening ?. I need to value to be in Excel as it is
displayed in t... more >>
Access datatable columns
Posted by shapper at 2/16/2007 7:13:57 AM
Hello.
I created a datatable and I am trying to assign it to a grid.
It works when I use:
.... = dtCollaborators.Columns(0).ToString()
But if I use
.... = dtCollaborators.Columns(1).ToString()
Or
.... = dtCollaborators.Columns("Mobile").ToString()
Any idea why?
I creat... more >>
aspx hanging ?
Posted by andersboth NO[at]SPAM gmail.com at 2/16/2007 5:42:30 AM
If i in my aspx cs file put code like this:
public delegate void TimeOutDelegate();
public void timeOut()
{
Thread.Sleep(8000);
}
private void Page_Load(object sender, System.EventArgs e)
{
Label1.Text= DateTime.Now.ToLongTimeString() + ":" +
DateTime.Now.Millisecond ;
TimeOutDeleg... more >>
ASP and SQL issues
Posted by morphius at 2/16/2007 5:09:05 AM
I am running SQL Server 2000/W2K advance server/Dual proc/4gig Ram. We have a
ASP.Net/C# application/IIS6 that queries this database. Whenever we update or
insert the same record by pressing a "Save" button or the "Activate" button
simultaneously from the app it seems like the connection strin... more >>
Events of child gridview are not executed
Posted by chris at 2/16/2007 4:13:11 AM
I have a perent gridview which includes in a template field a child gridview.
Child gridview includes command buttons for opening different windows based
on its row selected.
I used the code below. The event for RowDataBound is executed, rows get
different color, but event for RowCommand is... more >>
Unable to debud web service
Posted by Manish Bafna at 2/16/2007 4:00:13 AM
Hi,
I have one asp.net application through which i am invoking web service.But i
am not able to step into web service code.When i am trying to debug i get
following error:
Unable to automatically step into the server. The remote procedure could not
be debugged.This usually indicates that deb... more >>
How can I search a generic list with the Find method?
Posted by mark4asp at 2/16/2007 3:59:46 AM
The code is failing on line 266, with the message:
Object reference not set to an instance of an object.
The problem seems to be with 'penFundCon'
Source Error:
L265: List<PensionFundConsultant> PensionFunds =
(List<PensionFundConsultant>)Cache["PensionFunds"];
L266: PensionF... more >>
ASP Application Building s/w - Which?
Posted by simonbrentford NO[at]SPAM googlemail.com at 2/16/2007 3:27:48 AM
Hi,
I am pretty new to ASP and I am looking to build a series of simple
forms. Are there any recommended application builders in ASP?
I do not need any database backend, all I want is the information from
the forms to be emailed to be and then to redirect the shopper to a
specific Paypal pa... more >>
Drop down list problem on W2000 Server
Posted by JRob at 2/16/2007 2:39:40 AM
I have a web page with a dropdown list for selecting initial client.
This drop down list works correctly on my development server (Windows
2000 Professional running IIS5) but not on deployment server W2000
also running IIS5.
On the first visit the selected value is not retained but reverts to
... more >>
Webform_DoCallback - security?
Posted by cityzen.2000 NO[at]SPAM gmail.com at 2/16/2007 2:22:36 AM
Hello all
I have a web page that has a bunch of links implemented in Javascript,
each of which calls back to the code-behind page via a
Webform_DoCallback call.
My problem is this:
When I am developing locally and using the local web server to debug,
the callbacks are working fine.
When... more >>
Is the ASP.NET AJAX Documentation available online?
Posted by Nathan Sokalski at 2/16/2007 1:01:22 AM
I have tried downloading and installing the ASP.NET AJAX Documentation from
http://ajax.asp.net/documentation/default.aspx?tabid=47 but it requires me
to do the following:
1. Install SQL Server Express (or SQL Server)
2. Save the files to a virtual directory in my default website
I forget... more >>
how to limit input with textbox multiline?
Posted by Terry at 2/16/2007 12:00:00 AM
Hi,
i want to limit input in this textbox up to 2O characters, but i can input a
unlimited amount of characters. How to limit that?
<asp:TextBox ID="txtStreet" runat="server" Width="200px" MaxLength="20"
rows="2" TextMode="MultiLine"/>
Thanks
Terry
... more >>
AutoEventWireup question
Posted by Ken at 2/16/2007 12:00:00 AM
Hi,
I would like to know what is the option "AutoEventWireup" and in which case
it must be "on" and when "off". I see it's by default "off".
I couldn't find any clear explanation on internet.
Thanks
Ken
... more >>
|