all groups > asp.net > january 2006 > threads for monday january 30
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
Serialization used in Profile (Asp.Net 2.0)
Posted by Miguel Dias Moura at 1/30/2006 11:16:47 PM
Hello,
Could someone tell me what are the main differences between using Binary
or XML serialization?
I am saving complex types in my profile but I am not sure which
serialization to use.
Thank You,
Miguel
... more >>
How to logout in Asp.Net 2.0?
Posted by Miguel Dias Moura at 1/30/2006 11:16:27 PM
Hello,
I used the membership API to create my custom login WITHOUT using the
login controls.
For the past 2 hours I have been trying to figure out how to logout.
Can someone tell me how to do it?
Thanks,
Miguel
... more >>
Regular Expressions
Posted by Miguel Dias Moura at 1/30/2006 11:15:29 PM
Hello,
I need to use Regular Expressions in a form and in my membership
provider.
I have no idea of how to use a regular expression.
Can someone tell me if there is any software to generate regular
expression?
Thank You,
Miguel
... more >>
Google AutoFill
Posted by Buddy Ackerman at 1/30/2006 10:52:12 PM
Change some HTML forms over to ASP.NET forms and Google SutoFill no longer
works. Any ideas on what makes this work/not work?
--Buddy
... more >>
Best way to add to a profile at a later time?
Posted by VB Programmer at 1/30/2006 10:28:09 PM
ASP.NET 2.0....
This profile stuff is great. But, what if, after rolling out the site, I
want to add a few items to the profile in the web.config, etc... Will the
existing records get updated, just with blank values, or do I have to
somehow "clean up the data" and add the new profile item... more >>
Newbie Question
Posted by James at 1/30/2006 9:40:20 PM
Hi
I have a script to upload files to a folder on the server using:
FileUpload1.SaveAs(Server.MapPath("uploads\" & FileUpload1.FileName))
If I upload into the folder and there is all ready file with the same
name then it will be overwritten.
Is there a method of preventing overwriting ... more >>
beginner question: populating a form
Posted by Mr. T. at 1/30/2006 9:01:33 PM
Hi,
i'm (finally) starting off with asp.net and have the following problem:
there's data in a table (MS Access) i want to edit through an asp.net page
so how i went and did this in asp was:
i executed my query, so i had a recordset (eg. called rs) with the values i
needed
and then in... more >>
Could not load type
Posted by Jim McGivney at 1/30/2006 8:50:30 PM
In Web Developer Express I make a very simple aspx page. The page name is
Hoho.aspx. The page has a label, the label text is "Hello World".
To test the page on my computer, I press CTRL-F5 and the page loads and
displays the message.
I now use Copy Web Site from the Website menu to copy all f... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem
Posted by Zandu at 1/30/2006 8:29:12 PM
hi all,
I am new to group and even to .Net.
I am to access Web reference in my program,but whn i add Add Web
Reference after processing the error comes "The request failed with
HTTP status 407: Proxy Authentication Required."
Please hepl me.
... more >>
Guestbook Problems
Posted by Oded Dror at 1/30/2006 7:26:47 PM
Please take a look at this code
<%@ Page Language="VB" Debug="true"%>
<%@ Import Namespace="System.Windows.Forms" %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace ="System.Web.UI.Page" %>
<html >
<head runat="server">
<title>Guestbook</title>
<script runat="server">
Sub ... more >>
Need help with simple class
Posted by Miguel Dias Moura at 1/30/2006 6:20:41 PM
Hello,
I created the class "document":
Public Class Document
Private Shared _title As String
Public Property Title() As String
Get
Return _title
End Get
Set(ByVal value As String)
If _title = value Then
Return
End If
... more >>
html or web control question
Posted by astro at 1/30/2006 6:02:41 PM
I want to have 2 mutually exclusive checkboxes on a webform. I do not want
to post back to server for this to happen.
Last week I built this using javascript with each ctrl calling a javascript
function on the page that automatically unchecked it's mate. I ran into
problems with this ap... more >>
Get PC name
Posted by Mariame at 1/30/2006 5:23:22 PM
hi all,
how could i get the PC name of the client pc using ASP.net ??
... more >>
Panel Control
Posted by Gomathi at 1/30/2006 5:07:03 PM
hi all,
Can i have vertical scroll bar inside a panel or place holder?
Is it possible?
Possible means how to do that one?
Regards,
Gomathi
... more >>
looping through controls collection
Posted by astro at 1/30/2006 4:30:34 PM
I am not farmilar with the object model for webforms.
I want to loop through the web form controls - pulling out the checkboxes on
the form like the following:
For Each ctrl In Me.Controls
If TypeOf ctrl Is CheckBox Then
'do something here.....
End If
Next
This works fin... more >>
How do you change the trust level for an APS.NET application?
Posted by g3000 at 1/30/2006 4:14:47 PM
I used VS .Net 2003 to run a c# web app.
but when I run it I get the below
Security Exception
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your system administrator or cha... more >>
Table Control - how to recognize Text box
Posted by Krish at 1/30/2006 4:09:48 PM
Hi,
I am using table control to create table/cell & 2 text box & one image
button during runtime. Onclick event of image button i would like to
validate if there is any value in either of text boxes, but my intellisense
will not recognize those textboxes created during runtime. How to overc... more >>
GridView Help
Posted by Krish at 1/30/2006 4:03:12 PM
Hello Gurus,
I have Master GridView & Detail1 Gridview & Detail2 Gridview controls. On
"select" master grid , No. 1detail grid shows data, On
"Select" No. 1. detail grid, No.2 detail grid shows data, but if there is no
data in 1st detail grid, still 2nd grid is showing data from cache. How to... more >>
how to cause button click event from another frame
Posted by bradw2k at 1/30/2006 3:57:27 PM
I have one frame that needs to cause a button click event on another frame.
I was trying to do this by putting a display:none LinkButton on the target
frame, and having a javascript on that page that can be called by the remote
frame, and the javascript would say btn.click() ... but that does... more >>
Original Bin Path?
Posted by xenophon at 1/30/2006 3:53:23 PM
What is the path of the original bin directory for asn ASP.NET 2.0
application?
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase
That does not show me the original location (where some config files
are), it shows the dynamically-compiled location. The aboev code gave
t... more >>
Books on ASP.NET 2.0
Posted by Steve Peterson at 1/30/2006 3:33:09 PM
Hello
We just upraded to VS.NET 2005. After using it for a week I realize that I
need a good reference book on ASP.NET 2.0 outling all the new controls and
new stuff. Before I went and forked over the $$$ for one, I thought I would
ask the members of the ASP.NET community for any thoughts o... more >>
How to set the filename of a downloaded file?
Posted by Alan Silver at 1/30/2006 3:16:10 PM
Hello,
I have a page on a site where people can download audio files. At the
moment, the link on the site sends them to a page where the download is
logged in a database, then does a Response.Redirect to the actual audio
file.
This works fine, but has the disadvantage that the file that ... more >>
Cannot access 'CDO' object.
Posted by Martin Robins at 1/30/2006 3:09:44 PM
I know that this has been asked before; and not only that, I know that =
it has been answered (successfully) as I myself have previously resolved =
the problem (with help) - however, I cannot for the life of me remember =
what the solution was.
I am trying to send an email from an ASP.net appl... more >>
Master Page Button and Detail Page Button
Posted by Mark Olbert at 1/30/2006 3:08:32 PM
I have a website (ASPNET2) where the master page has a button in it and my login page, which is a detail page of the master page,
also has a button (a login button).
Everything works fine if I enter my user ID and password and click the Login button. But if I hit the return key instead the maste... more >>
grid view button field
Posted by Jasmine at 1/30/2006 2:46:19 PM
Hi,
how can I set up the javascript for the button field in the grid view, so
that when the user click the button, a pop up window will be opened, I mean
where could I add the "window.open "url" script for the buttion?
Thanks... more >>
OT: Hosting site from home
Posted by Kevin Lawrence at 1/30/2006 2:14:14 PM
Bit OT this - but does anyone host a web-site from their home connection?
Thanks
Kev
... more >>
Posting from HTML page
Posted by Steve Peterson at 1/30/2006 2:03:35 PM
Hello
I have a problem with posting from a .htm page to a .aspx page. In the
"normal" .htm page I have a standard post form and input button. The form
action attribute is set to the .aspx page
(action="http://localhost/Mysite/Input.aspx). I press the submit button and
the Input.aspx is l... more >>
Getting XML Back?
Posted by James at 1/30/2006 2:02:23 PM
I have a client who built a URL which returns data in XML format. All I
have is a URL, which I will pass some querystrings too and it will return
XML. I'm new to this, so I just need to know what classes to use to make
this call and access this data.
The URL is in the format:
http://wh... more >>
maintain session array variable
Posted by c676228 at 1/30/2006 2:00:32 PM
Hi all,
In the second web form, I have the following code: (The peopleinfo is a user
control which has name and ssn infomation, each field in this user control I
have set enableviewstate=true). I want to keep the peopleinfo control value
all there when customers click back or forth(continue).... more >>
how to get current user id
Posted by ibiza at 1/30/2006 1:40:16 PM
Hi,
I have an application from which a user creates a "model". When it is
time to save it in the DB, I need to know who created it (I have a
field 'model_iduser' in my table).
Before using asp.net 2.0 membership system, I had no problems getting
the user id and saving it. Now, with all this... more >>
Question: CreateUserWizard - how change "valid" password
Posted by VB Programmer at 1/30/2006 1:38:23 PM
Right now, if you use the CreateUserWizard for ASP.NET 2.0 a valid password
is this:
Password length minimum: 7. Non-alphanumeric characters required: 1.
How do I change it so that a valid password does NOT require a
non-alphanumeric character?
Thanks!
... more >>
Does a resource have to have all phrases in it?
Posted by David Thielen at 1/30/2006 1:26:29 PM
Hi;
In the java world, each time you want text from a resource, it will start at
the most specific file like resource_en_US, then look in resource_en, then
look in resource. So when a new resource is added, as long as it was in
resource the program would work (granted it would be mixed lang... more >>
Quick Start - tab type menus?
Posted by David Thielen at 1/30/2006 1:10:27 PM
Hi;
Is there a sample somewhere on a control that creates tab menus like at
http://www.windwardreports.com/? Or like at
http://www.windwardreports.com/dotnethelp/index.htm (no sub-menu)?
And is it ok to just do any javascript I have in the aspx file - or does
that screw up ASP?
--
t... more >>
Trying to query the Address table data of AdventureWorks database from Query Analyzer - need help!
Posted by Learner at 1/30/2006 12:51:36 PM
Hi there,
I have installed Sql server 2005 developer on my machine which
already has a Sql server 2000 installed on. Now i am trying to query
the Sqlserver 2005 data(Ex: from Person.Address located in
AdventureWorks database) in Sqlserver 2000 query analyzer:
When i try as
Select * from ... more >>
Adding Server Side code in a Client Side Script???
Posted by Mike Rand at 1/30/2006 12:32:29 PM
Hi,
I am trying to add some server side code in some Client Side Script. I can
get it to work properly with the code embedded directly in the .aspx page.
However, if I try to use the Page.ClientScript.RegisterClientScriptBlock I
get an error and the code does not execute.
Here is an examp... more >>
Handling Hebrew & Arabic
Posted by David Thielen at 1/30/2006 12:27:27 PM
Hi;
I understand that HTMLDirectionality sets the direction for the <html> tag.
But what about text within the page, especially text that is mixed (rtl and
ltr)? Doesn't it need the <span dir='LTR'>...</span> for the ltr parts?
And if so, how is this best done?
--
thanks - dave... more >>
Master pages vs frames
Posted by David Thielen at 1/30/2006 12:09:29 PM
Hi;
Any strong arguments on using master pages vs frames when the header &
footer are always the same and the main body is the part that keeps changing?
--
thanks - dave... more >>
Themes vs css?
Posted by David Thielen at 1/30/2006 12:07:27 PM
Hi;
I see the additional functionality that themes add. But it also seems to me
that if we use css instead of themes, then it's a lot easier for people to
change the look of our site as css is very well understood.
Any comments on how useful in practice the extra features of themes have be... more >>
Quick Starts - <script> vs code behind
Posted by David Thielen at 1/30/2006 12:01:36 PM
Hi;
Almost all of the Quick Starts show the code in the .aspx file inside a
<script> instead of in a seperate .aspx.cs file. My instinct is that the code
should be in a seperate file to keep the view and the view logic distinct.
Is there a strong argument for combining these in one file? (... more >>
persistant cookie, what is it?
Posted by Edwin Knoppert at 1/30/2006 11:29:34 AM
I have searched but info is limitted.
In my test app i used a non persistant cookie for forms authentication.
slidingExpiration is set to true
On run and close and rerun the login remains ok.
I have a time-out of one minute and indeed, it directs me to the login if i
wait to long.
The s... more >>
How to get/set MembershipUser status?
Posted by rh at 1/30/2006 11:28:21 AM
Hi,
The asp.net 2.0 Web Site Admin Tool allows me to check/uncheck the "Active"
status for each user.
How can I do this programatically? I thought it would be in the
MembershipUser class but I could find no such property or method to do so.
Thanks in advance.
... more >>
How to/Help: Getting Values for Selected Rows in a Repeater
Posted by renil at 1/30/2006 11:23:07 AM
I have a repeater control that displays info. from a datatable. Each row in
the repeater has a checkbox. Also, I have a delete linkbutton outside the
repeater control. What I'm trying to do when the delete linkbutton is
clicked is get the SubscriptionID from the repeater control for each row i... more >>
child to parent variable passing
Posted by luna at 1/30/2006 11:19:25 AM
i have a parent form which opens a child form, i need to pass a variable
back to parent
then reload parent
so
parentopens child, child passes to parent, child closes, parent reloads
its only a single variable
is this possible ?
cheers
mark
... more >>
META REFRESH
Posted by joeblast at 1/30/2006 10:56:27 AM
HI,
Can someone explain to me why the
<meta http-equiv="refresh" content="5"/> will not work for me?
I use it in a standard asp page and it works just fine.
Why in ASP.NET2.0 it doesn't. I don't get any errors, it simply does not
trigger the page_load event after 5 seconds.
<%@ Page L... more >>
Conditional use of Eval in asp.net 2.0 with Gridview
Posted by idletask NO[at]SPAM msn.com at 1/30/2006 10:55:57 AM
I have an SQLDataSource control, which is bound to an ASP.net 2.0
GridView control. It outputs a list of documents that a user can check
in or check out of the database.
In my gridview, I have a column called "checked out" which is bound to
a column in my database, called "checkedout". A zer... more >>
Change File Name
Posted by at 1/30/2006 10:43:37 AM
I have code to download a file from a webserver to a local machine through
the browser using code
dim file as System.IO.FileInfo = new System.IO.FileInfo("c:\_6_test.txt")
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
file.Name)
Response.AddHea... more >>
Removing the time
Posted by MasterChief at 1/30/2006 10:16:49 AM
I have a gridview that is bound to a date/time field in sql. How can I
remove the time part of it so it doesn't show up at all in the gridview?
... more >>
dynamic word document generation
Posted by sqlster at 1/30/2006 9:25:29 AM
In asp.net/SQL Server application based on business rules, I would like to
dynamically generate word documents. Content and layout would be fully
customized.How do I go about doing it?
I could use XML/XSLT solution but then xml file has to be created every time
word document is generated a... more >>
OWC
Posted by NuB at 1/30/2006 9:17:31 AM
I'm creating a web app and it needs to have the OWC Excel Spreadsheet on it.
I can populate it with data, but how can i format it?
Example:
data in bold?
have a title in cell 1 and span it across 4 or so cells?
... more >>
SqlDataSource and Optimistic Concurrency Problems
Posted by stuart.d.jones NO[at]SPAM gmail.com at 1/30/2006 8:44:02 AM
Hi,
I'm using a detailsview control with an SqlDataSource control. My
Update query isn't working, and I've narrowed it down to the optimistic
concurrency parameters - i.e. when I comment them out of the query, it
works. What seems to be happening is that if a field is NULL when it
is read i... more >>
Generating .exe files from .msi files
Posted by Dave at 1/30/2006 8:23:47 AM
Hi
I was wondering if it would be possible to generate an .exe file from
an .msi file. I'm asking this as I have made an installer using the
visual studio installer, but then I edit the msi file it generates
using Orca to add some additional features.
When I give out the installation file, ... more >>
Creating Data access layer in ASP.NET 1.1
Posted by asad at 1/30/2006 6:04:28 AM
hello, how ru all
pls tell me how can i create DAL and how can i use it in my ASP.NET pages
thanks... more >>
strict="true" - Not working in asp.net 2 and VS2005 ??
Posted by ianakapilotlight NO[at]SPAM googlemail.com at 1/30/2006 5:22:50 AM
We are in the process of moving from .net 1.1 to 2.0 and I dont seem to
be able to resolve this problem.
In VS2003 the Option Strict was swtiched on in the options menu and
this was stored in a project file.
In VS2005 there is no project file so this is now stored in the
web.config. My web... more >>
Publishing software
Posted by postings NO[at]SPAM alexshirley.com at 1/30/2006 4:41:39 AM
Hi
I work for a small company that publishes a number of paper based
newsletters for companies. It also supplies these newsletters as PDF's
and sends weekly updates (e-bulletins as we call them). It also have a
related conference business.
They are finally deciding to scrap their old websit... more >>
proper way to pass parameters ??
Posted by serge calderara at 1/30/2006 3:00:29 AM
Dear all,
In practice, what kind of mechanism you guys are you using to pass forms
variable, or control value if you need to pass them form to form.
As session we cannot so much rely on session due to time out, Viewstate is
affecting performance...
Thnaks for your comment ?
regards
... more >>
XML Load Check
Posted by Baren at 1/30/2006 2:40:28 AM
Hi!
I have the following code in VB.NET
********
Dim mydata As New XmlDocument
Dim xslt As New XslTransform
mydata.Load("C:\Inetpub\wwwroot\VBTestProj\Sample.xml")
xslt.Load("C:\Inetpub\wwwroot\VBPDFDemo\Sample.xslt")
**************
How do i check if the XML and the XSL files have l... more >>
Help on binding syntax ??
Posted by serge calderara at 1/30/2006 2:30:14 AM
Dear all,
I have the following item on my form :
<asp:HyperLink id="lblEvtNb" runat="server"
NavigateUrl="Event.aspx?id=">Click here</asp:HyperLink>
I need to pass as url parameter an Id which is a label.Text string of my form
At the end the url should be : "Event.aspx?Id=32"
I try to... more >>
Help on grid paging trouble ???
Posted by serge calderara at 1/30/2006 1:02:27 AM
Dear all,
I have an asp net 1.1 application with a datagrid bind to a datasource
I am using tablemappings features to display column grids name
I am using paging features which shows 10 pages at a time
probkem I have is that I can go to page number 2 and after this paging is
not working a... more >>
DropDownList with images
Posted by dhnriverside at 1/30/2006 12:51:27 AM
Hey guys
I want to create a DropDownlist with images and text inside.. can somebody
point me in the direction of how to do it?! Ie articles or a bit of a quick
overview or whatever....
Cheers
Dan... more >>
HTML to PDF for FREE!
Posted by Daren Hawes at 1/30/2006 12:00:00 AM
Hi,
I have a customer working on a shoe string budget that would like to
have PDFs created from a web page. Very similar than the activePDF Web
Grabber product.
My questions are;
a.. What is the cheapest ASP or ASP.NET component around that will
save a PDF to the... more >>
|