all groups > asp.net > october 2006 > threads for monday october 9
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
convert
Posted by Oren at 10/9/2006 11:32:02 PM
Hi,
I use DateTime.Now and Serialize an object into XML field (Sql 2005).
the problem is that:
select CONVERT(datetime, '2006-10-09T13:54:06.9248089+02:00')
ERROR: Conversion failed when converting datetime from character string.
Any idea ?... more >>
Export to pdf
Posted by Badis at 10/9/2006 11:32:01 PM
Hi Guys,
I would like to export a crystal report to PDF.
Can it be done without using a pdf component..!? because I couldn't get a
free pdf component.
And does the Open Source files for PDF works for exporting Crystal reports
to PDF?
Thanks
... more >>
Atlas Update Panel stucked
Posted by omer.mush NO[at]SPAM gmail.com at 10/9/2006 10:38:10 PM
Hi,
I am using ASP.Net 2.0 along with C# and Atlas. I have some image
panels alongwith asp:panel controls. I am using image panels as tabs,
when user clicks a specific portion of the image, I change the tab
image and accordingly set a panel.
Now, these panels have buttons and all, ajax is worki... more >>
Navigating the links slow.
Posted by None at 10/9/2006 10:37:08 PM
Hi,
I have more Html Anchor tag links in many aspx pages.
Ex: <a href="http://localhost/test/Help.aspx"> Help</a>
in test.aspx
My Problem is when i click the anchor tag link it takes around 10
sec to redirect to Help.aspx page. But the Help.aspx page load takes
only 1... more >>
Can't use Management Express with aspnetdb.mdb
Posted by ken bus at 10/9/2006 10:32:02 PM
Would like to write more complex SQL with the SQL Server Management Express'
Designer but trying to attach the ASPNETDB.MDB database causes errors.
Are these two things incompatible?... more >>
Cookies and web services
Posted by Laurent Bugnion at 10/9/2006 10:19:37 PM
I posted this in the WinForms forum, and didn't get an answer yet. Come
to think of it, I am sure some of you guys were confronted to that
problem too, because the same scenario can happen in ASP.NET too
(server-side of course). Allow me to post here too:
Hi,
I got a problem when I try t... more >>
.NET Framework Version
Posted by landers at 10/9/2006 10:08:09 PM
Dear All,
How can I tell the web server which framework version to use at web
application level?
Landers
... more >>
Cryptography in ASP.NET stopped working
Posted by landers at 10/9/2006 10:06:50 PM
Dear Fellow Developers,
There is a little bit of code in my web app that encrypts a string, converts
it to base64 string and uses it as a querystring parameter. It then
redirects to this new url. The target url gets this encrypted parameter
(not using Request.QueryString as it replaces th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem binding dataset to a repeater
Posted by Brad Baker at 10/9/2006 9:44:42 PM
I'm going a little crazy :) I'm trying to bind a repeater control to a
dataset on page load using the following code:
if (Request.QueryString["customerid"] != null)
{
string customerid = Request.QueryString["customerid"];
//open connection
SqlCo... more >>
Allow ASPX but no Downloading?
Posted by xeroxero at 10/9/2006 8:55:35 PM
I would like to prevent people from downloading a .zip from a ASP.NET
2.0 web site, but still allow people to touch a .aspx page in the same
directory. I also want to set things so if a user clicks on a button,
the ASP.NET page will facilitate a download with Response.BinaryWrite.
Is that po... more >>
Master and content page
Posted by Nick at 10/9/2006 6:56:01 PM
Hi All:
Can anyone let me know where can i find example for studying purpose?
Cheers
Nick... more >>
How to make a web site stay connected to SQL server even though there are no users
Posted by Keithb at 10/9/2006 6:27:00 PM
A web site uses a SQL Server instance on another box and it takes a long
time to establish a connection. Is there any way to make the web site stay
connected to SQL server at all times, even though there are no users?
Thanks,
Keith
... more >>
Office Web Components
Posted by SergioT at 10/9/2006 6:13:56 PM
Hi
Any one have an example about how to use OWC pivot tables ????
thanks in advance
--
Salu2
Sergio T.
... more >>
Dynamically setting values in a repeater
Posted by John Haycock at 10/9/2006 6:09:59 PM
Hi All
I have a user control that uses a repeater to build a list of menu links:
<itemtemplate>
<li>
<a href='news.aspx?newsID=<%# DataBinder.Eval(Container.DataItem,"newsID")
%>'>
<%# DataBinder.Eval(Container.DataItem, "newsHeadline") %>
</a>
</li>
</itemtemplate>
I want to reuse th... more >>
DataList DataKeys
Posted by cmay at 10/9/2006 6:02:57 PM
I am binding a List(Of T) to a DataList.
In this case, T is a class Test, which has a property TestId.
I am trying to use the DataKeyField with this
<asp:DataList DataKeyField="TestId" ...
The datalist displays fine, but when I do a post back, the DataKeys
collection is empty.
Is it no... more >>
Code in one line
Posted by shapper at 10/9/2006 5:39:43 PM
Hello,
I have created an email message:
Dim email As New System.Net.Mail.MailMessage
Is it possible to make the following code in one code line (here ***):
Dim emailCollection As New System.Net.Mail.MailAddressCollection
Dim emailAddress As Net.Mail.MailAddress
emailAddress = ... more >>
Web Deployment Project
Posted by Zany at 10/9/2006 5:37:50 PM
I added a Web Deployment Project so I can create a debug, staging, and
release version. Each set is compiled and saved in a separate folder under
the csproj_deploy folder. All works fine. Here's the problem - I'm looking
for an *easy* way to upload (ftp) changed files.
I don't want to uplo... more >>
Validator Display Property
Posted by rn5a NO[at]SPAM rediffmail.com at 10/9/2006 5:19:19 PM
The different Validation controls like RequiredFieldValidator,
RangeValidator etc. have a property named Display. This property can
have 3 values - Dynamic, Static & None. What's the difference between
the Dynamic Display & Static Display?
Also suppose a Form has 2 TextBoxes & both the TextBox... more >>
Printing in ASP.NET
Posted by Guy Cohen at 10/9/2006 5:00:23 PM
Hi all.
I have a form with some information that the user has to fill in.
At the end of the process I need to print a summary of the information.
What is the best way to print the data?
Maybe I should open a new page as the "invoice" ?
Please dont suggest window.print() :)
TIA
Guy
... more >>
File browser
Posted by JJ at 10/9/2006 4:04:47 PM
I'm looking for an asp .net 2.0 implementation of a file browser/uploader.
I just want to allow the user to browse for an image to upload, OR browse
their image directory on the web server for one they have previously
uploaded to the server.
This must be something many people want to do, b... more >>
Application Root
Posted by Goofy at 10/9/2006 4:04:27 PM
I want to know how I can determin the root of my application in code.
AND
I need to know how I can refer to my application root in HTML as / goes
right back to wwwwroot
... more >>
Sub Properties
Posted by shapper at 10/9/2006 3:41:16 PM
Hello,
Can I create a sub property of a property in MyClass?
For example:
Private _Subject As String
Public WriteOnly Property Subject() As String
Set(ByVal value As String)
_Subject = value
End Set
End Property
Then create two subproperties:
Subject.P... more >>
Setting server-side textbox with javascript?
Posted by VMI at 10/9/2006 3:25:02 PM
In the Page_Load() of my webForm, I have the following code, and on my HTML
button, the onclick button calls writeVal() (the javascript function). When
I click on the button, I see the messagebox from the Alert(), but the
server-side Textbox text is not set to 'TEST'. I get a javascript error... more >>
Cannot insert now() into a table
Posted by Guy Cohen at 10/9/2006 3:24:10 PM
Hi all
as part of Insert I use Now()
The type in the database is shortdatetime.
What is the correct format to insert now()?
Guy
... more >>
GridView does not refresh after insert with DetailsView
Posted by needin4mation NO[at]SPAM gmail.com at 10/9/2006 3:09:41 PM
Not sure what I'm doing wrong here. I have a gridview and a
detailsview. The detailsview is set to insert by default. When I
insert data the detailsview it works. The data goes in the database.
The gridview on the page, however, never refreshes to show the new row.
The sql for the gridview ... more >>
Check if an object is null
Posted by shapper at 10/9/2006 2:45:31 PM
Hello,
Inside a class I have 4 propertiy types:
1. String
2. Boolean
3. Mail.MailPriority
4. Mail.MailAddressCollection
I need to check if each property is null, i.e., if it wasn't defined
any value for them.
How can I do it?
I tried NULL but it got an error to use System.DB... more >>
ASP.NET to ATLAS transition
Posted by James Simpson at 10/9/2006 2:42:01 PM
Hello,
I have recently been made aware of the new AJAX equivalent that is to be
present in ASP.NET which is ATLAS. I would really like to support ATLAS in
my web application to have smooth page transitions and am wondering how I
could implement ATLAS into my current ASP.NET web application... more >>
Two Session State Related Questions
Posted by James Simpson at 10/9/2006 2:40:03 PM
Hello,
I am currently deploying an ASP .NET based web application via Visual
Studio 2005 (so I am using .NET 2.0 technology). The two questions I have
are with regards to session state in ASP.NET. The first one is how secure is
keeping login information in sessionstate using the inproc mo... more >>
Dropdownlist.selectedIndexchanged
Posted by Victorious1 at 10/9/2006 2:39:02 PM
Why doesn't the the SelectedIndexchanged event for my dropdownlist ever get
executed? Why do I get a page not found error when I select a new item?
My dropdownlist is within a form. The items for the dropdownlist are added
at form load by a procedure. Autopostback is set to true, and vie... more >>
error in accessing database
Posted by le0 at 10/9/2006 2:31:28 PM
guys,
this is my first time to deploy website to the server, but every time i
access the page this error always appears.
---------------------------------------------------------------------------------------------
Server Error in '/sample' Application.
------------------------------------... more >>
.Net equivalent of a Java Class
Posted by Maury at 10/9/2006 2:19:36 PM
Do someone knows if exists a .Net equivalent
of ConcurrentLinkedQueue<T> found in Java?
this class in java provides a queue which is threadsafe...
thanks... more >>
Namespace/inheritance
Posted by Rob Meade at 10/9/2006 1:50:34 PM
Hi all,
Quick question if I may...
I have a base class which has a namespace, do classes which inherit this
class also inherit the namespace? Or should this be declare in each of these
classes individually also?
Any info appreciated.
Regards
Rob
... more >>
adding extra controls
Posted by Chris at 10/9/2006 1:09:01 PM
hi,
I need to create a website in asp.net. I want to put a button on the site. I
want to do something like that, after clicking the button a new textbox
should appear on the site. When someone has clicked again, there will be a
new texbox more. And so on.
Is it possible? How to do that?... more >>
.Net
Posted by Bob Leffew at 10/9/2006 1:02:48 PM
I am new at ASP.net.
I have Visual Studio .Net 2003, and cannot afford to update to 2005 as of
now.
I know there is a difference between Asp.net 1.1 and 2.0 but not alot.
I have used dreamweaver 8 to develop ASP classic.
I have all of my website folders and pages on a network drive and... more >>
Problem with running a Progress Bar...
Posted by daniel_xi at 10/9/2006 11:59:02 AM
Hi all,
I am running a VS 2003 .NET project on my client machine (Win 2000 SP4,
..NET framework 1.1), running an ASP.NET application on a remote web server
(Win 2000 Server, IIS 6.0, .NET framework 1.1).
The application implements a Progress Bar webcontrol, that pops up in a
window, ... more >>
Color properties of Controls
Posted by pagates at 10/9/2006 11:14:02 AM
Hello All,
While it seems like it should be simple, I am having a problem finding an
answer for this one...
I am building a control where I want one property to be a color. I want the
property to work exactly as any other color property for the standard
controls. That is, I want to be a... more >>
2.0: two dependent drop down lists
Posted by RAM at 10/9/2006 11:08:36 AM
I need to have two drop down lists in a edited row of a data list. One drop
down list should contain Groups and the second one should contain Materials
from *selected* group.
Thus, I have written:
<asp:SqlDataSource ID="GroupsList" runat="server"
ConnectionString="..." SelectCommand="SELE... more >>
Visual Studio 2005
Posted by Leon at 10/9/2006 11:04:02 AM
Hi Everybody.
I have my website developed in VS 2003. Now I want to upgrade my website to
VS 2005 and develop new web pages in a new environment. What steps should I
take to upgrade? I cannot find how to create web pages in VS 2005. May be I
should use Web Developer Express Edition?
Leon... more >>
VS2005/C#/ASP.NEt 2.0 error : "You must choose a publish location that is not a sub-folder of the source Web site. ???"
Posted by genc_ymeri at 10/9/2006 10:52:21 AM
Hi over there,
I suddenly started to get the below error when I try to publish my websites,
in any of them !
I tried to google it but not much info.
Any help very much appreciated,
thanks in advance,
Genc Ymeri.
PS:
OS: 2003 server
PS:
---------------------------
Microsoft Vi... more >>
Draw page before Page_Load() ?
Posted by davepkz NO[at]SPAM hotmail.com at 10/9/2006 10:48:08 AM
I have a long operation I want to run when my page first appears, so I
put it in Page_Load().
However the browser doesn't draw the contents of the page until after
Page_Load() is complete, though I wish it would.
Am I putting my operation in the wrong place? Where do I put a process
that... more >>
Stop Wizard from progressing to next step.
Posted by David Lozzi at 10/9/2006 10:45:50 AM
Howdy,
I have a wizard to retrieve lost passwords on my site. The first page asks
for their username then they click Next. On the next click I have the
validation against the database to see whether or not its a valid username.
If its not, I'm displaying a little message that its incorrect,... more >>
SQL question
Posted by Guy Cohen at 10/9/2006 10:15:18 AM
Hi all
I use ASP.NET with MS SQL Server Express 2005.
How do I:
1. Select a date in a specific format:
e.g. select FORMAT(recorddate,'DD/MM/YY') from mytable
2. Select only last 4 characters from a string.
e.g. select right(creditcardnumber,4 ) from mytable
Both return error........
TI... more >>
Moving value from popup Webform to main Webform?
Posted by VMI at 10/9/2006 9:46:02 AM
How can I transfer some text from a Textbox in a popup window to the main
webform that opened that popup?
The popup webform will have some type of Button that the user will click in
order to accept those changes. This is where the transter of the value should
be. It could also be done when I... more >>
DropDownList alternative
Posted by Altman at 10/9/2006 9:37:57 AM
I currently have a page that has many dropdowns where each one is
dependent on the previous one's selection. Right now I am using
postbacks on each drop down list to fill the next. An example of what
I am doing would be like having dropdown1 have a list of states. When
the user selects the st... more >>
Basic calculation returns incorrect values
Posted by Dale Reed at 10/9/2006 9:33:16 AM
We're having a lot of problems getting visual studio to calculate even the
most basic arithmetic correctly.
For example:
Dim MyValue AS Double = 2.155 * 100
This should give me 215.5 right? Wrong. It gives me 215.499999999999999997
Change it to 1.155, it works. 3.155 it works. 2.15... more >>
Pages no longer rendering
Posted by Perryt at 10/9/2006 9:30:02 AM
HELP...
any .NET web pages aspx or asmx files will no longer work. In addition I
cannot debug in .NET 2005 anymore. I get an error that says debugger could
not start.
Thanks
... more >>
Property in Class
Posted by shapper at 10/9/2006 9:27:51 AM
Hello,
I am creating a custom email class and I have a property as follows:
Private _BccCollection As Mail.MailAddressCollection
Public WriteOnly Property BccCollection() As
Mail.MailAddressCollection
Set(ByVal value As Mail.MailAddressCollection)
_BccCollection = val... more >>
popup on Button Click and running server-side button_Click() code?
Posted by VMI at 10/9/2006 8:46:03 AM
I have a LinkButton_search on my Page1.aspx that opens up a popup page called
popup.aspx. I do this with LinkButton.Attributes.Add() on the Page_Load of
Page1.aspx.
How can I add server-side code to LinkButton_search_Click() so that the code
in there runs before opening the popup window? The... more >>
ASP.NET Wizard/Code Generator
Posted by Sehboo at 10/9/2006 8:37:18 AM
I have a database with several tables. I need to create pages, and
most of the pages would talk to only one table.
I am wondering if there is any wizard/code generator which I can use to
generate these pages. Pages will have one textbox (or checkbox -
depending on the type of the field) per ... more >>
How to close current explorer window from C# code.
Posted by mamin NO[at]SPAM o2.pl at 10/9/2006 7:48:54 AM
Hi,
I need to send a file to a client and then close current window.
My code looks as follows:
Response.ContentType="application/bmp";
Response.AppendHeader("","attachment; filename=\"" + bmpFilePath +
"\"");
Response.WriteFile(bmpFilePath);
Response.Flush();
Response.End();
//now I n... more >>
Integrated Windows Authentication
Posted by thomson at 10/9/2006 7:01:49 AM
Hi All,
If i log into my windows machine, Iam already
authenticated against the AD, Inorder to identify the Groups, Do i need
to check the Active Directory once again, or Windows Principal.IsInrole
is sufficient.
All the developers are using logon to a particular domain and do... more >>
Response.Redirect : default file name
Posted by mamin NO[at]SPAM o2.pl at 10/9/2006 7:01:42 AM
Hi,
Im trying to send bmp file to client using Internet Explorer 6.0. So my
code is:
string bmpFilePath=@"c:\1.bmp";
Response.ContentType="application/bmp";
Response.AppendHeader("","attachment; filename=\"" + bmpFilePath +
"\"");
Response.WriteFile(bmpFilePath);
Response.Flush();
Resp... more >>
How to programatically "Recover password" in ASP.Net login control
Posted by Ofer at 10/9/2006 6:56:03 AM
Hi,
We use the ASP.net loginControls and the DB schema.
How to programmatically activate the "PasswordRecovery" of a specific
end-user when a user clicks my web application's button?
I need to send a specific user an email with a new "reset" password.
I thought of including an invisible Pa... more >>
Useing OLEDBDataAdapter
Posted by Roger at 10/9/2006 6:25:02 AM
Declared a static object variable for OLEDBCommand and OLEDBDataAdapter.
Instantiate both of them. Set the command object to the SelectCommand
property of the OLEDBDataadapter.
Assign the commandtext of the command object. And call the fill function of
the dataadapter. Works fine for sever... more >>
2.0: inaccessible control in DataList
Posted by RAM at 10/9/2006 5:49:34 AM
Hi,
Please help again.
I have written DataList control with editing/deleting/adding rows - in .aspx
I have:
<asp:DataList ID="PositionsDataList" runat="server"
OnEditCommand="Positions_Edit"
OnUpdateCommand="Positions_Update"
OnCancelCommand="Positions_Cancel"
OnDele... more >>
2.0: Session variables vs class-page fields
Posted by RAM at 10/9/2006 5:18:32 AM
Hello,
I am learning ASP.NET 2.0. Could you explain me please the difference when
to use fields of a System.Web.UI.Page-derived class and whem I must use
Session variable instead. For example I have a class PZ : System.Web.UI.Page
and I need to remember CurrentPosition (int) of asp:DataList. ... more >>
ASP.NET exceptions
Posted by Shahar Nechmad at 10/9/2006 4:01:03 AM
Is there a way to automatically log all exceptions to the machine event log?
When using Enterprise Library Exception Management Application Block you
need to catch each exception in code and rethrow it. I prefer to catch
everything in one place and write it to the event log.
... more >>
How to Center Align a Panel.
Posted by Dinesh at 10/9/2006 12:31:32 AM
Dear All,
Can u tell me how to center align a div (Panel) in Asp.Net 2.0.
If we use align="center" then it will be converted to text-align:center
which will align all the content of the div's object but not the div
itself. Also this is only valid in IE in case of mozilla even that
don't ... more >>
|