all groups > asp.net > february 2005 > threads for monday february 21
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
Custom Controls Creation (property)
Posted by Alex Nitulescu at 2/21/2005 11:53:05 PM
Hi. I'm creating my first custom controls. I have this code:
Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter)
output.AddAttribute("color", [Color])
output.RenderBeginTag("font")
output.RenderBeginTag("b")
output.Write(Reverse([Text]))
output.... more >>
is there a downloadable chm help file for asp.net ?
Posted by TJS at 2/21/2005 11:38:41 PM
is there a downloadable chm help file for asp.net ?
... more >>
Generating reports in asp.net
Posted by Vikram at 2/21/2005 11:02:08 PM
i want simple report functionality for which i do not want
to use any reporting tool like crystal etc. Is there any
class or code available which can be used for generating
reports using asp.net only... more >>
Hiding aspx path in address bar
Posted by Vikram at 2/21/2005 10:35:30 PM
How to hide aspx path from the address bar. One choice is
to use frames. But i do not want to use it, is there any
other way ?... more >>
Modal dialog box page
Posted by vikram at 2/21/2005 10:15:40 PM
I want to show one aspx page as modal dialog. How to do
that ?... more >>
Framework Versioning
Posted by Wance at 2/21/2005 10:01:03 PM
Hi All,
I am using Visual Studio.NET 2002 with Framework version 1.0.xxx. Can VS.NET
2002 using Framework 1.1 or 2.0. I 've tried installed version 1.1 but I see
in VS.NET Help about, the framework still display 1.0.xxx
How to upgrade Framework version 1.0.XXX? There are several dll should r... more >>
datagrid and template
Posted by ven at 2/21/2005 9:43:22 PM
HELLO
i have datagrid with template column
<asp:TemplateColumn HeaderText="nazwa">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
<ItemTemplate>
<P>
<asp:LinkButton id=... more >>
cannot implicitly convert type object to string
Posted by Andy Sutorius at 2/21/2005 8:32:02 PM
Hi,
I am receiving the error when compiling the project, "cannot implicitly
convert type object to string".
The error points to this line of code and underlines the
dtrRecipient["Email"]: objMailMessage.To = dtrRecipient["Email"];
I'm not sure why I am getting this error. Below is the com... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Vanity URL Question?
Posted by Leon at 2/21/2005 8:25:36 PM
How to personalized different parts of my website using vanity sub-domain
name url.
example: my domain name is www.mydomain.com.
I would like the vanity url to be myname.mydomain.com, and personalize the
current page from the database using that vanity url
('myname.mydomain.com').
... more >>
Query = > today
Posted by Glenn at 2/21/2005 8:17:24 PM
I'm trying to create a query that will show only the records that has a date
of today or after in the date field (consequently my results would change
everyday).
I tried >=#today# but that didn't work.
Is there a way to do this? If so how?
Thanmks.
... more >>
How to close dialog box?
Posted by william at 2/21/2005 7:49:09 PM
Hi All,
I have a question about closing a dialog box.
The thing is: I have two ASP.NET pages. From one page, I open another page
as window.showModalDialog. THere is a button on the second page. On the click
event of the button on second page, I put code "Response.Write("<script
language='jav... more >>
how to edit a textbox field populated by data from a datalist?
Posted by donnet at 2/21/2005 6:57:02 PM
Inside my .aspx file, I have a textbox populated with data from a dataset
like this:
<asp:TextBox text='<%# DataBinder.Eval(Container.DataItem, "Comment")%>'
id="CommentText" runat="server" TextMode="MultiLine"></asp:TextBox>
</ItemTemplate>
</asp:datalist>
<asp:button id="EditCommentButto... more >>
Calling web form method from user control
Posted by Simon Harris at 2/21/2005 6:15:25 PM
Hi All,
I am trying to call a method in a web form, from an event fired in a user
control. My user control displays a map, which has a link button to
enlarge/shrink the map. When the user enlarges the map, I want to hide my
navigation table etc, maximising the viewing area. I've been workin... more >>
A bit stuck with properties in a user control
Posted by Alan Silver at 2/21/2005 6:09:11 PM
Hello,
I'm trying to write a simple user control as an exercise (and 'cos it
might be useful). I am trying to do a simple date picker, which consists
of three drop down lists, one for the day, one for the month and one for
the year. I know this isn't earth-shattering stuff, but I'm still
lear... more >>
How can I store DataList DataItem values to Session variable?
Posted by Tillman Erb at 2/21/2005 6:03:02 PM
Let's assume a database with a parent table and a child table in a
one-to-many relationship, respectively. I have a DataList control on page P
that displays values from the parent table. Each row (rP) in the DataList
control has a link that takes the user to page C, where they can view the
r... more >>
Repeater - ItemCommand and EnableViewState
Posted by Rob Rutherford at 2/21/2005 5:06:54 PM
I have a Repeater on an ASP.NET page. If I click a Button in the Repeater,
the Repeater's ItemCommand event fails to fire. If anyone can explain why
it doesn't fire I'd be grateful. Here's the code.
<%@ Page Language="VB" %>
<%@ import Namespace="System.Data.SqlClient" %>
<script runat="serve... more >>
HTTPResponse capture or redirect stream
Posted by Paul at 2/21/2005 4:49:12 PM
I have developed an ASP.NET web page with a VB.net for the code behind.
I would like to redirect the output of the web page so I can send it as
an Email. Or Redirect the HTTPResponse stream on the server to a
file. Any ideas would be appreciated.
Thank you
Paul
... more >>
How do I do data binding with a checkbox?
Posted by Alan Silver at 2/21/2005 4:19:34 PM
Hello,
I have a database table with a char(1) filed to indicate whether or not
an event is shown. If the value is 'y' it is, and if it's 'n' it's not.
I am trying to use this value in a checkbox (in a DataList), so that
when the value is 'y', the checkbox is checked, and when it's 'n', the... more >>
.net framework 1.1 sp1 crash
Posted by STech at 2/21/2005 4:11:02 PM
When installing the .net framework 1.1 service pack 1 on my webserver, the
installer crashes with the following error message:
---------------------------
SLA.tmp - Common Language Runtime Debugging Services
---------------------------
Application has generated an exception that could not ... more >>
aspnet_state.exe Internals Info Needed
Posted by MattC at 2/21/2005 3:58:31 PM
I noticed when storing large amounts of information in the StateServer
Service that this does not increase in size, the worker process itself seems
to grow.
I set up a test case to try and prove this, I placed a button on a web form
that ran the foloowing code.
string temp = "index";
fo... more >>
how to make autohref
Posted by aa at 2/21/2005 3:57:09 PM
how to make in asp.net. if i am retrivieng the data from database to
datagrid and in one column in the text it is the web link I nead that it
would be on the web page like href
... more >>
Exporting a dataset table as a text file
Posted by Justin at 2/21/2005 3:53:06 PM
Is there an easy way to export a dataset table as a text file such as a .net
class. If not do you have any suggestions?
Thanks, Justin.... more >>
Setting web service location dynamically
Posted by Nils Magnus Englund at 2/21/2005 3:39:57 PM
Hi,
I have a production, test and development environment for my web application
and a web service (The test web application connects to the test web
service, and so on).
Is it possible to let the web services location be set in e.g. Web.config? I
don't want to recompile the web applicat... more >>
System.Net.HttpWebRequest vs. System.Web.HttpRequest
Posted by Keith Patrick at 2/21/2005 3:33:25 PM
Could someone explain to me the relationship between these two classes? I
am ripping my hair out trying to divert an HttpRequest to a new location via
an HttpWebRequest, but I cannot get my session xfer to work, possibly due to
the cookies not being compatible. I've spent over a week trying ... more >>
datagrid - edit problem
Posted by wolfgang wagner at 2/21/2005 3:05:52 PM
hi all!
im trying to edit data in a datagrid (like described here:
http://aspnet.4guysfromrolla.com/articles/071002-1.aspx) but if i click
the edit button i get the following error
invalid attempt to FieldCount because datareader is already closed
(sorry, this error message is translated... more >>
A strange HTML rendering for a datalist?
Posted by Lubomir at 2/21/2005 2:43:09 PM
Hi,
I have a datalist in an aspx file. Everything was fine, and I just wanted to
change a background color.
Suddenly from a one moment, the datalist is not rendered on the screen
anymore, while the application is running. When I check source output, there
is no code for a datalist (table... more >>
i was unsuccessful in sending email using asp
Posted by sagar at 2/21/2005 2:25:05 PM
i tried to send a email through asp using codes given on the book.
but there is an error saying:
ActiveX component can't create object: 'CDONTS.NewMail'
what's that error for.,,and how can i correct it.... more >>
Zoom Control
Posted by ACaunter at 2/21/2005 2:07:02 PM
Hi there,
I have a bunch of images on my ASP.Net website, and i wanted to have a zoom
feature as well..., I can do it with panels and just keep doing the
image.width = image.width * 2... but i wanted to do it another way
I wanted to have that thing where it is just a small square (maybe an i... more >>
Add New Users
Posted by Tina Smith at 2/21/2005 1:58:15 PM
This sample code works perfectly in Console App. It will fail on the
Children.Add line when running the same code in a Web App. I'm assuming
it's a permissions issue but I can't see to solve it. Any help would be
appreciated.
-------------------------------------------------------------... more >>
permission denied error message
Posted by Ken at 2/21/2005 1:49:08 PM
Hi,
We have a webservice that can log information to a text file on the local
machine. The ability to log information is configurable. The .net web service
is called from a vb dll. From the vb side of the fence, we're getting an
error message that indicates access is denied to the log file.... more >>
Sharing codebehind dlls amongst multiple apps
Posted by Mark Edwards at 2/21/2005 1:43:47 PM
I've got an asp.net app that gets installed 150 times on
a server. With every installation, there is
another /bin/ directory with another copy of the dll in
it. (meaning 150 copies of the dll)
I want to deploy just one codebehind dll for the whole
server and tell all the app copies to u... more >>
Need Help for Round the Value
Posted by msnews.microsoft.com at 2/21/2005 1:18:55 PM
Hi Every Body,
I have tow columns in the database, the third
columns the division of both columns. The first two columns are both of type
decimal,
when the third columns get value its type is also decimal,
for example
first col value 34... more >>
sending email from asp
Posted by Glenn at 2/21/2005 1:11:04 PM
Can anyone point me to some GOOD directions on how to send an e-mail from
asp. (And, if this matters [I think it does] - I have Microsoft Exchange
2000 installed on a Windows 2000 server which is also where my web site is)
Basically here is what I am trying to do:
I have a from I created ... more >>
Simple Variable Passing between HTML and ASP
Posted by John Baker at 2/21/2005 1:10:17 PM
Hi:7
Newby here to ASP, and using the ASP.NET Web Matrix development tool. While that tool
looks great for a Newby, I have run into a snag. I have an HTML Text Box which I have
named HireInput, and a table (Access Table in fact) that has on it a field called HIREID.
I wish to select records wh... more >>
Set HTML Attribute In Page_Load Event
Posted by Ben Foster at 2/21/2005 12:53:34 PM
I want to be able to set an attribute of the HTML object in the form's
Page_Load event. I can't see how to do this. The main problem is that I
can't see how to access the HTML object from this event. Can anyone help ?
Ben
... more >>
Map or Tables ?
Posted by Lionel at 2/21/2005 12:51:52 PM
Hi,
Is there a known problem using the <MAP> and <AREA ... > tags ?
Is it better, for my menu, to use a single gif with a MAP for the links, or
to create a table with slices of my gif ?
Thanks !
... more >>
LinkButton event not firing
Posted by Mantorok at 2/21/2005 12:18:43 PM
Hi
I have a control generator that is creating controls on the fly, one of the
controls is a LinkButton, the problem is that the Click event is not firing,
any ideas?
Example:
private void SomeFunc()
{
LinkButton link = new LinkButton();
link.Click += new EventHandler(link_Click);
... more >>
authentication problem
Posted by Alex at 2/21/2005 12:14:39 PM
not sure if that's something very simple and stupid or there's more to
it...:
I'm developing an asp.net (c#) app on my local machine at home using
forms authentication checking against my own sql server 2K database.
the machine is part of a domain and running the app on my machine via
localho... more >>
IIS 6 and Windows Authentication to SQL Server 2000
Posted by mcollier at 2/21/2005 12:09:07 PM
I am running a Windows Server 2003 machine as my web server. I would
like to use Windows authentication for connections to my SQL Server
2000 instance on a Windows 2000 server. I've read where mirroring the
ASPNET account and password on the web server and SQL server would
work. However, with... more >>
Upload Image to SQL Server
Posted by C CORDON at 2/21/2005 11:45:34 AM
Is there any good example on how to do this, better if it shows how to limit
the image to X size and save both..original and thumbnail size to SQL.
TIA
... more >>
Forms authentication...
Posted by Paul Mason at 2/21/2005 11:43:00 AM
Hi folks,
An odd one for the start of this week.
I have a web project that I have taken over from a colleague. He had the
authentication set to windows, but I have now changed that to forms
authentication by putting the following xml in we.config :
<authentication mode="Forms">
... more >>
HttpCookie that expires at end of session
Posted by Gawel at 2/21/2005 11:39:15 AM
Hajo,
Looking at ASP.NET_SessionId in firefox I found that has:
Expires: at end of session and any of my own cookies has
"expires" field set to concrete date and time.
I am not able to set my cookies as "expire at end of session".
Do you know how to do it ?
thanks in advance for info
Ga... more >>
ASP.NET 1.1 requirements
Posted by M D at 2/21/2005 11:33:03 AM
Does using ASP.NET 1.1 require:
-upgrading from Visual Studio 2002
-upgrading from .NET Framework 1.0
??
thx
md
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
regatding stroed procedure in asp.net
Posted by Yoshitha at 2/21/2005 11:22:30 AM
Hi
i've created stored procedure in
sql server 2000 which returns a value
see the stroed procedure
CREATE PROCEDURE QA_Select_AdminOrRec
@Role varchar(50),
@username varchar(50),
@pwd varchar(50)
AS
if exists (select * from
QA_Admin_Recruiter where role = @role
and userna... more >>
regatding stroed procedure in asp.net
Posted by Yoshitha at 2/21/2005 11:22:30 AM
Hi
i've created stored procedure in
sql server 2000 which returns a value
see the stroed procedure
CREATE PROCEDURE QA_Select_AdminOrRec
@Role varchar(50),
@username varchar(50),
@pwd varchar(50)
AS
if exists (select * from
QA_Admin_Recruiter where role = @role
and userna... more >>
IIS 5.0 Creating a new WEBSITE with VS.NET
Posted by ivanL at 2/21/2005 10:17:03 AM
I am currently using the Default Website but want to add the following:
1. A local development WEBSITE (port 81)
2. A new WEBSITE (points to another host header www.newebsite.com)
VS.NET works fine with the Default Website alone BUT the problem is when I
add these new websites and try to cr... more >>
What is Wrong With This?
Posted by Wayne Wengert at 2/21/2005 10:03:35 AM
I am getting the following error on an aspx page and I don't see the
problem? What am I missing?
====================================
Compiler Error Message: BC30201: Expression expected.
Line 29: Dim strSQL as String
Line 30: strSQL = "UPDATE judgeevaluations Set scoring = ... more >>
XML Node ?
Posted by Deasun at 2/21/2005 10:01:07 AM
Good morning,
I have the folowing XML data in a file;
<code>
<?xml version="1.0" encoding="utf-8"?>
<Photos>
<GotTogetoffThisComment>@ 2/21/2005 10:01:14 AM Visitor{IP}: 127.0.0.1
left;
She Dances good
</GotTogetoffThisComment>
<JudgeDreddComment>@ 2/21/2005 10:25:12 AM Visit... more >>
displaying pages while handling the click event
Posted by Carlos at 2/21/2005 9:10:27 AM
Hi all,
I need to display a page during the handling of the click of a button.
I remember that I did this with HTML sometime ago, but do not know
how to do it with ASP .Net. Can anybody help on this one?
Thanks,
Carlos
... more >>
Application restart on file change
Posted by freewonga NO[at]SPAM surf.to at 2/21/2005 6:01:41 AM
I have a schema file that is loaded in the application_onstart event.
Is there a way to make the appliaction restart and fire the event
again if the xsd file is changed in the same way as when web.config
changes? I can't find any section of web.config where I can add this
dependency.... more >>
ListBox clientside changes not reflecting on serverside code
Posted by Luis Ferrao at 2/21/2005 4:57:34 AM
Hi,
I have some code that looks like this:
-- CODE ----------------------------
Public Class NodeEditor
Inherits System.Web.UI.Page
Protected WithEvents ChildList As System.Web.UI.WebControls.ListBox
Private Sub Page_Load(...) Handles MyBase.Load
'nothing relevant to the ChildList
... more >>
Last Event on Page Postback
Posted by Pedro at 2/21/2005 3:11:03 AM
Hi,
I was trying to do something when what generate a postback as finnish.
There is a "inverse" event to page_load?
Best Regards
Pedro... more >>
transferring field values from one aspx page to another
Posted by vikram at 2/21/2005 2:51:20 AM
What is the best way of transferring values from one aspx
page to another when user click a button, except
response.redirect and server.transfer.
... more >>
How does the viewstate work?
Posted by Naeem Sarfraz at 2/21/2005 2:39:07 AM
See below for example code.
My problem is that when the drop down list posts back the event handler for
the check box also executed. I have no idea why this happens?
The only odd thing I can see is [using the trace directive] the viewstate
size bytes of the check box is 0 but after a post... more >>
what roles in rolelist
Posted by hansiman at 2/21/2005 12:59:57 AM
Following http://aspnet.4guysfromrolla.com/articles/082703-1.aspx I've
set up roles authentication for my web application.
User's roles are registered by:
HttpContext.Current.User = _
New GenericPrincipal(User.Identity, roleListArray)
I'd like to enter a user's roles into a listbox for ... more >>
Problem Sending email form web form
Posted by Justin at 2/21/2005 12:59:03 AM
While trying to send an email using the .net mail class I get this error:
"The server rejected one or more recipient addresses. The server response
was: 553 sorry, you have not authenticated for relay and <email@domain.net>
is not a local address.(#5.7.1) "
Is there anything I can do to av... more >>
code behind generation from an aspx file (ASP.NET)
Posted by fernando lopez at 2/21/2005 12:42:34 AM
Hi everybody, does anybody know where i can find a tool (other than
vs.net) that automatically generates a skeleton code behind file for a
specified aspx file?
thanks, in advance
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for ... more >>
|