all groups > asp.net > february 2007 > threads for friday february 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
[Article] Authentication Using Active Directory [Feedback Requested]
Posted by Josiwe at 2/9/2007 11:34:02 PM
I'd appreciate some feedback on this. I don't know whether or not to
write anything else, since nobody seems to have found it. I was hoping
to help somebody but I didn't really advertise it anywhere, I just
hoped google would pick it up somehow.
... more >>
Adding rows to dataset and bind to grid
Posted by mrajanikrishna NO[at]SPAM gmail.com at 2/9/2007 10:44:52 PM
Hi,
I hv a datagrid and WinForm to enter new records.
da = new OleDbDataAdapter("select idno,ename,dob from emp",conn);
da.fill(ds,"emp");
BindGrid();
In the button click(AddNew),
DataTable dt = new ds.Tables["emp"];
DataRow newrow = dt.NewRow();
newrow["idno"]="XXXXXX";
newrow[... more >>
string problem
Posted by Eugene Anthony at 2/9/2007 9:38:08 PM
I am using the following statement in my repeater control.
<%# "if(" + int.Parse(Eval("RegistrationID").ToString()) + "!=" +
int.Parse(Session["id"].ToString()) + "{<a
href=SubscriptionCart.aspx?GroupID=" + Eval("RegistrationID") +
">Subscribe</a>}" %>
The problem is it appears as:
if(1!... more >>
String problem
Posted by Eugene Anthony at 2/9/2007 9:15:08 PM
I am using the following statement in my repeater control.
<%# "if(" + int.Parse(Eval("RegistrationID").ToString()) + "!=" +
int.Parse(Session["id"].ToString()) + "{<a
href=SubscriptionCart.aspx?GroupID=" + Eval("RegistrationID") +
">Subscribe</a>}" %>
The problem is it appears as:
if(1!... more >>
Trying to fix bad login/security set up.
Posted by darrel at 2/9/2007 8:51:24 PM
We have a home grown CMS in our organization that I decided to update at 5pm
only to find a gigantic security bug in it.
Here's the deal:
The original programmer created the security for the CMS. When a person logs
in, they're authenticated against the DB and then pertinent info regarding ... more >>
How to set the @Page Async value without an .aspx file?
Posted by 1388-2/HB at 2/9/2007 8:40:36 PM
I have a class file in my App_Code folder called "clsBasePage.vb" that looks
like this:
Public Class clsBasePage
Inherits System.Web.UI.Page
...stuff...
End Class
It's a "page" in that it inherits from ui.page, but has no .aspx file. It's
just a class file.
In creating ... more >>
Build failed
Posted by Peter Afonin at 2/9/2007 8:21:21 PM
Hello,
I have a weird problem with one ASP.NET application that I develop using
Visual Studio.Net 2003 (VB.Net).
When I build an application, I get message "Build failed". When I start an
application, I'm getting pop-up message: "
There were build errors. Continue?" If I click "No" - I do... more >>
Casting RadioButtonList
Posted by sck10 at 2/9/2007 7:50:34 PM
Hello,
I am converting some code from VB to C# and ran into a conversion error:
Cannot implicitly convert type 'object' to
'System.Web.UI.WebControls.RadioButtonList'. An explicit conversion exists
(are you missing a cast?)
Any help with this would be appreciated...
sck10
VB
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Newbie authentication question
Posted by Bit Byte at 2/9/2007 6:50:31 PM
I am new to the world of Web development - although I have several years
in desktop application development (C/C++). I am trying to get my head
around key concepts such as authentication, object life cycle etc, and I
seem to be going round in circles. Specifically, I am contemplating how
t... more >>
open file button More options
Posted by nuhura01 NO[at]SPAM yahoo.com at 2/9/2007 6:12:07 PM
Hi,
I want to create an 'open file button' using asp control button, which
will display open file
dialog box for users to choose the location of folders to be read. It
might be easy for Windows Application, but i want to do it from web
application. Can someone provide me any examples of code ... more >>
how to change password restriction in CreateUserWizard?
Posted by André at 2/9/2007 5:34:22 PM
Hi,
I want to set up the password length to 5 and no non-alphanumeric
chararcters required, and obviously change the error text in the
CreateUserWizard in case of wrong password, instead of the standard rule
(Password length minimum: 7. Non-alphanumeric characters required: 1). Is
that possi... more >>
FormView Insert
Posted by AG at 2/9/2007 5:28:18 PM
ASP.NET 2.0 aspx page with a FormView bound to an ObjectDataSource to view,
add and edit records.
Can anyone point me to a sample of how to retain the user entered control
values when an insert fails?
In other words, when inserting a new record, user enters data in the
controls, but the in... more >>
Pop up window not closing
Posted by tshad at 2/9/2007 5:07:34 PM
I have a couple of windows I am opening from my .aspx window and want the
child windows to close when the browser closes or I change pages.
I have the following to open the window:
function OpenLogoPreviewWindow()
{
window.open('logoDisplay.htm','myWindow','menubar=no,toolbar=no,directori... more >>
DataField, Binding to a property one level down
Posted by VJ at 2/9/2007 4:34:24 PM
Hi,
I'm certain I'm not the first person to run into this, but here's the
scenario:
I have a collection of objects say of class 'User' which I want to put
as the datasource of a GridView. I can bind to properties of User
fine. But suppose I want to bind to a property one level down. (Say
... more >>
Website configuration too
Posted by SAL at 2/9/2007 4:15:21 PM
I'm trying to use the website configuration tool and it keeps telling me
that it is unable to connect the SQL Server Database.
I do not have SQL Server Express installed. I have the real deal installed
on my development box. Is this the problem or is there someway to tell this
tool that I'm... more >>
Validating two textboxes
Posted by Fred G. Sanford at 2/9/2007 3:22:29 PM
I have two text boxes. If (and only if) a user enters something in
textbox1, I need to validate that they also entered something in
Textbox2. IOW, I need to validate that they entered something in
textbox1...and if they did...validate that they entered something in
textbox2. Is there an easy w... more >>
Having problem with ieupdate.js
Posted by Ronald S. Cook at 2/9/2007 3:17:27 PM
I did that thing where I need to put ieupdate.js in my web page so that the
"click to activate" message won't appear on a mouseover of my flash.
But now, the page doesn't seem to fully load. I.e. the progress bar at the
bottom seems to hang.
Any idea how to fix?
Thanks,
Ron
P.S. He... more >>
Displaying an image on the C: drive?
Posted by Steve Hershoff at 2/9/2007 3:06:26 PM
I'd like to display a jpeg image sitting on the C: drive of my webserver.
The directory the image is under however, isn't beneath inetpub\wwwroot. Is
there a way for an aspx page to display an image located on a specific
folder on the hard drive?
Specifically, it's an <asp:Image> control t... more >>
Microsoft.Web.Ui.WebControls.TabStrip not rendering
Posted by dina at 2/9/2007 2:39:12 PM
I have an application that uses the Microsoft.Web.UI.WebControls.TabStrip
and Multipage controls. When I test the app on my pc or on my client's
development web servers the controls render properly. When I deploy the app
to the test environment - supposedly an exact duplicate of the development
... more >>
BoundField cells not visible during rowcommand ??
Posted by jobs at 2/9/2007 2:27:24 PM
Can somebody tell me why Jobno and Value BoundFields are not available
during the command SaveParm ? i enter text into the box for Value and
hit the Save button, but all I see is the Parmvalue.
Thanks in advance for any help or information!!
<asp:GridView ID="ParmView" runat="serve... more >>
How to put a DIV inside a DataGrid's column header?
Posted by sean.gilbertson NO[at]SPAM gmail.com at 2/9/2007 12:37:31 PM
Hi everyone,
I'm adding columns to a DataTable, so that I can set it as the
DataSource for a DataGrid. How can I go about putting a DIV element
inside one of the column headers? I'm fine with taking another
approach.
Thanks :-)
Sean
... more >>
Get user profile in ASHX
Posted by Roel at 2/9/2007 12:33:11 PM
Hi,
Is there a way to get a user's profile from within a HTTP handler (ashx)?
The code I use to get a profile in a webform (aspx) is:
ProfileCommon pc = Profile.GetProfile("johndoe");
context.Response.Write(pc.HomeAddress);
so I assumed it would be something like
ProfileCommon pc = c... more >>
ASP.Net 3.0?
Posted by Rob at 2/9/2007 12:25:30 PM
Hi all,
Wonder if someone can help me out.
I not so long ago upgraded from Visual Studio 2003 to Visual Studio
2005 - at the time it was a progression from .Net 1.1 to .Net 2.0.
So, I'm running Microsoft Update the other day to notice .Net 3.0 -
cant say I've really heard much about it -... more >>
HTML encoding method?
Posted by matt NO[at]SPAM mailinator.com at 2/9/2007 11:55:27 AM
hello,
i need to do some HTML encoding on some strings. not UrlEncoding, mind
you, but HTML encoding. ie:
"&" to "&"
"<" to "<"
....etc. does anyone know of a good way to do this, other than manual
string replacements? what of decoding back into plain text?
thanks,
m... more >>
Using .NET validators to do field dependencies
Posted by lorenzon NO[at]SPAM gmail.com at 2/9/2007 11:15:55 AM
I have a relatively simple case where I have a form with two fields
(call them A and B) which need to be enabled mutually exclusively
depending on the state of a drop down. So if drop down is "A" then
field A is populateable and if B then B.
This would be relatively simple to do with a CustomV... more >>
Accessing Master Page elements from Content
Posted by daokfella at 2/9/2007 11:09:03 AM
Hi all,
I've only just started to use ASP.Net 2.0. I'm an experienced ASP.Net
developer and had a question regarding master pages.
Can you interact with elements that exist on the master page template?
For instance, let's say I wanted to show menu items on the master
page. Depending on what... more >>
Using multiple SqlConnection objects, bad for performance?
Posted by the friendly display name at 2/9/2007 10:58:01 AM
Hello,
I am planning to use three databases on the local SQL Server. DB1 will be
for App1, DB2 for App2, and DB3 will hold tables, that both, App1 and App2
need to access.
With applications I mean ASP.NET applications.
Obviously, I need in App1 and App2 at least two SqlConnection... more >>
javascript and code behind
Posted by oxwood at 2/9/2007 10:33:55 AM
Hello All!
I'm trying to wrestle with what seems to me to be a simple concept but
has been frustrating trying to implement. I have asp.net page with 2
listbox controls. The first is populated on page load. I'm using
javascript to select items from the first and enter into the second -
I do... more >>
GridView.Columns.Insert Problems
Posted by Harry Keck at 2/9/2007 10:30:01 AM
I have a GridView that I dynamically add columns to in code. The way that my
code is written, everything works properly if I use GridView.Columns.Add to
simply add the columns to the end of the collection. However, if I use
GridView.Columns.Insert to inject the columns in the middle of the e... more >>
Web is slow
Posted by meo at 2/9/2007 10:22:42 AM
I develop some coding like scenario as following:
1. myAppServer --tcp--> IIS ----> Web Application
2. myAppServer --tcp--> Windows Application
I found that Web Application return the results very slow (more than 3-4
times of Windows Application)
How can I tuning IIS?
... more >>
DataBinding problems
Posted by Mundo at 2/9/2007 9:54:20 AM
Hi
I'm pulling my hair out with a problem caused when DataBinding a
DataSet to a web control. I first tried using a GridView but when that
failed, I tried a Repeater. I'm getting the classic
"'System.Data.DataRowView' does not contain a property with the name
X" error message which suggests I... more >>
OT: Crossword Puzzle Creator - .NET Source
Posted by Bob Johnson at 2/9/2007 9:53:45 AM
I'm looking to create a small Windows Forms (2.0) application that enables
the user to create basic crossword puzzles that are printable (ideally
..PDF). I just spent a bunch of time with Google and it seems that there are
a lot of apps for sale (no source), a lot of shareware Java applets - s... more >>
GridView hyperlink + editable?
Posted by news-server.maine.rr.com at 2/9/2007 8:58:20 AM
Hi,
I have the following bound to a database column and want the URL field to be
editable in the GridView control. When the "Edit" link is clicked the field
remains readOnly.
<asp:HyperLinkField DataTextField="URL" HeaderText="URL"
DataNavigateUrlFields="URL" Target="_blank" />
How c... more >>
How to provide credentials to a web app from an external web app?
Posted by rpfe NO[at]SPAM sapo.pt at 2/9/2007 8:50:39 AM
Hi,
The scenario:
- A user logs on to web app 1;
- The user clicks on a button that redirects him/her to web app 2.
The problem:
- The user is presented with a login page.
The question:
- How to programmatically provide the user's credentials to web app 2
before connecting to it?
I... more >>
Subject: ASP.NET AJAX Deployment Requirements
Posted by Rich Armstrong at 2/9/2007 8:43:02 AM
I see that the RTM version of ASP.NET AJAX requires installation of the
ASP.NET AJAX assemblies in the GAC. I've been through all the docs, and
deployment, per se, is never directly addressed.
1. Is installing System.Web.Extensions to the production server's GAC the
only (additional) step r... more >>
Not able to access ftp directory with asp.net
Posted by vishnu at 2/9/2007 8:26:26 AM
Hi,
Am trying to access the directory and its files from the ftp path \
\135.51.103.13\ftpshare.But when i try to do it , it is telling
Directory not found.What is the reason for this. Is there any secuirty
settings that i need to set?
Here is the code below:
Public spath As String... more >>
Relative & absolute path question (JavaScript, mostly)
Posted by Radu at 2/9/2007 8:18:35 AM
Hi.
I have files in the "Scorecard Previews" subfolder of the virtual path
of my app,
the absolute path being
C:\Data\Ordering Process\Scorecard Previews\
I have a javascript function which changes the href of an <a>
depending on some selection in a combo. If in the javascrip... more >>
Why OnPreInit unvailable on controls
Posted by WT at 2/9/2007 7:44:02 AM
Hello,
I can't see OnPreInit method for Webcontrols and controls.
Why the method is not similarly called for controls as it is done for Page
Control ?
It is sometime uneasy to initialize SkinID for dynamic controls.
In the past we had the OnInit method of the custom control to initialize
e... more >>
Master page vs framesets question
Posted by Ralph at 2/9/2007 6:59:50 AM
I'm upgrading and rewriting an old site to asp.net 2.0.
Most definately want to replace frames and framesets with Masterpages.
There was one and really only one feature of frames that I prefered.
It seemed with frames I could much easier limit people to one point of
entry to my site.
That being... more >>
Export To Excel
Posted by Doogie at 2/9/2007 6:26:47 AM
Is there a way to export data from a control into excel if the control
is not server side? Do I have to do it with java script or can I do
it inside my VB.NET code?
... more >>
<httpRuntime executionTimeout=""> in ASP.NET 2.0
Posted by dejavue82 NO[at]SPAM yahoo.com at 2/9/2007 6:18:33 AM
Hi,
What is the maximum value I can set to the following web.config
property to?
<httpRuntime executionTimeout="">
I'm asking, since I'm not sure if there is a setting on my host's
shared server (in the machine.config file for example) that can limit
this. In ASP.NET 1.0 the executionTim... more >>
Turkish_Character_(=C4=B1)_Encoding_Problem
Posted by korkutozkan NO[at]SPAM gmail.com at 2/9/2007 5:41:35 AM
I developed an application (asp.net 2.0) and set utf-8 coding for
web.config and saved each pages (master pages) with utf-8 encoding.
I also change sql server 2005 database table collation to
"Turkish_CI_AS"
when I open pages i saw all tukish characters (=C3=9C=C4=B0=C5=9E=C4=9E=C3=
=96=C3=87=C... more >>
Execute external application from ASP.Net
Posted by LBT at 2/9/2007 4:04:00 AM
Good day,
I would like to execute an external application from a web form created
using ASP.Net. I'm using System.Diagnostics.Process. It works fine if it is
notepad.exe but it is not able to execute even a simple VB.Net windows
application. No error is being returned. The application just ... more >>
ASP.NET regional settings
Posted by Stefan_KIC at 2/9/2007 3:35:01 AM
Hello everybody,
I have a question about the ASP.NET registry account. I'm writing a web
application that requires the server's ASP.NET user account to have its
decimal separator symbol set to a period. (because a 3rd party component
requires so) I have also created a small executable that ... more >>
Gridview selectedrowstyle-backcolor does not work when buttons selected??
Posted by jobs at 2/9/2007 2:38:01 AM
I can't seem to get selectedrowstyle-backcolor to set the row
background color unless I force the selected index in the code behind.
When i select the ButtonField Run button it does set the background
color for the row. Is there another property I need to set to allow
selection for this to... more >>
Page layout using DIVs and CSS
Posted by Carl Gilbert at 2/9/2007 12:22:46 AM
Hi
I am looking to convert a site from HTML to ASP.NET making use of CSS. I
have tried various combinations but I can not seem to get the correct
combination of div and CSS tag configurations.
I have uploaded a screenshot (http://www.bwbfc.com/math/regions.jpg) of how
the screen will be... more >>
|