all groups > asp.net > april 2007 > threads for monday april 2
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
Creating Dynamic Controls on the fly
Posted by Hayden Kirk at 4/2/2007 10:48:01 PM
Hi,
I'm having a bit of trouble. I want to create a number of controls on the
fly. They are all the same control type. How is the best way to do this?
I have a name I can assign to them so I know how to reference them, but I
don't know how to create them.
Thanks
Hayden
... more >>
Athourisation
Posted by banshpatel NO[at]SPAM gmail.com at 4/2/2007 10:13:17 PM
Hi all,
I am making a project. This is project is having a number of types
of members. These members have different access to each page. E.g. at
any page a button will be visible to some peaple while invisible to
some ather peaple and this page will not open to some members.
Please let m... more >>
Preventing the request timeout
Posted by Pavils Jurjans at 4/2/2007 9:50:26 PM
Hello,
It is possible to set a high value in the web.config file, to prevent
request timeout for a very complex pages that take long time to generate:
<system.web>
<httpRuntime executionTimeout="300"/>
But, I do not like to keep such a high value as a default. I better keep
there a ... more >>
ASPNET2.0 Membership Multiple login redirections
Posted by Steven Nagy at 4/2/2007 9:45:12 PM
Hi All,
I can successfully specify access levels to folders and files with no
problem through web.config.
In my application I have 2 folders off root:
/Admin/
/Members/
When a person tries to go to /Admin/default.aspx they should get
redirected to /Admin/login.aspx
Similarly, when a pers... more >>
asp.net 1.1 IIS upgrade to 2.0 with file system
Posted by Marc A at 4/2/2007 7:32:01 PM
What is the procedure to upgrade an ASP.NET 1.1 project using IIS to an
ASP.NET 2.0 project using File System instead of IIS. With new company PC's
developers are no longer allowed to load IIS. So how do I move a 1.1 web site
that was built using IIS to VS 2005 using a File System instead of I... more >>
Go Gators!
Posted by Juan T. Llibre at 4/2/2007 7:07:11 PM
Just to prove to Ken that I really hate the US...not!
GO GATORS !
Now we'll see who's really No. 1.
It's going to be a great game...
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=========================... more >>
Handling session timeout exception
Posted by Pavils Jurjans at 4/2/2007 6:30:39 PM
Hello,
Is there any way I can intercept the session timeout exception, and
1) Run some code routine, ie log the error and it's context
2) Show nicer output to the user
Please do not suggest to increase the session timeout value, or write a code
that doesn't loop. No fools here. There are p... more >>
dynamic creation of CollapsiblePanel
Posted by jmgopi NO[at]SPAM gmail.com at 4/2/2007 6:27:34 PM
Hi:
Can somebody provide me samples on how to create a dynamic
CollapsiblePanel using ASP.NET AJAX Toolkit. Any points are highly
appreciated.
Thanks,
GJM
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Exception when setting property in business object
Posted by jkeel NO[at]SPAM charter.net at 4/2/2007 6:12:22 PM
Dim _x as string
I get an error when I do the following and can't figure out why.
reader.GetValue("X") is a null value in the database.
_x =
IIF(reader.isDBNull(reader.GetOrdinal("X")),"",reader.GetValue("X"))
although if I do this I receive no error (which makes perfect sense)
_x = ... more >>
Gridview bound with Code not allowing paging
Posted by jerrygp NO[at]SPAM gmail.com at 4/2/2007 5:30:32 PM
Hello:
my problem resides on the following, off course I do dataBinding to a
gridview by a class created under Vs2005 c#.
I do databinding to my gridview smooth and works fine when i call the
method to databind to my gridview, but when I allowPaging = true by
code or by designer, and after ... more >>
How to change LinkButton forecolor in mouse over event
Posted by moondaddy at 4/2/2007 4:46:02 PM
in asp.net 2.0, i have a link buttonand want to change the forecolor in a
mouse over event. how can I do this?
--
moondaddy@noemail.noemail
... more >>
ASP.net with Dreamweaver MX for Intranet
Posted by Jeffrey at 4/2/2007 4:32:02 PM
I am developing ASP.net projects for an Intranet application using
Dreamweaver MX. My questions are:
1. I have had book Dreamweaver MX HOT. Where can I find more
information or books for ASP.NET development using Dreanweaver?
2. Is there something I need to know between Intranet and ... more >>
Clicking twice to fire an event
Posted by Badis at 4/2/2007 4:22:08 PM
Hi,
In my web form i have problem that I have to click twice a button for the
code behind to be executed!!!? Why!?
... more >>
Can you tell in ASP if the back button has been pressed?
Posted by Kevin Audleman at 4/2/2007 4:08:15 PM
Hello,
Is there a way to determine if a user has navigated to a page by
clicking the back button? I've got a page that dynamically generates a
form and submits it, the problem being that clicking the back button
has the effect of resubmitting the form. I'd like the back button to
work if at a... more >>
How do I convert my dates to string in ADO
Posted by tshad at 4/2/2007 3:15:34 PM
Apparently, I can't do:
Dim da2 As New OleDb.OleDbDataAdapter("Select PR,
Convert(varchar,getchar(),1),F1, F2, F5, Sum(F4) from temp
....
I am getting this error.
'undefined function "convert" in expression'
This is how I convert my dates to mm/dd/yy format in my Sql Stored
procedu... more >>
minRequiredNonalphanumericCharacters problem
Posted by Jeff at 4/2/2007 2:43:30 PM
ASP.NET 2.0
I added this to the web.config of my webproject:
<membership defaultProvider="SqlProvider">
<providers>
<add
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="LocalSqlServer"
requiresQ... more >>
Gridview data column links to search of other page?
Posted by jobs at 4/2/2007 2:31:55 PM
I have a gridview on another page with a column that will link to this
page. I'm flirting with design options, but am considering a template
field with hyperlink navigateurl that includes a query string ?
search=mydata container.
My question/challenge, is that I want to use that query string ... more >>
Gridview rowcommand or templatefield like to subroutine
Posted by jobs at 4/2/2007 2:13:29 PM
Can I have data on Gridview column as a link that runs a row command
and/or a subroutine/function in the vb.net codebehind?
I thought about asp:command, but don't see where I can bind my data in
this?
<ItemTemplate>
<asp:Command ID="View" SkinID="Button" Text="View" CommandName="View"
r... more >>
Date validation
Posted by marin1858 NO[at]SPAM yahoo.com at 4/2/2007 2:00:20 PM
need use today's date for <asp:RangeValidator>
How I can use now() in MaximumValue?
... more >>
removing query string items from url?
Posted by jobs at 4/2/2007 1:51:01 PM
I have a gridview with data that's a link to another page.
I want to pass search information to the called page, but I don't want
that query string to remain in the address line beyond the initial
call.
Say my like looks like this, mypage.aspx?search="whatever"
should my users make a se... more >>
Session State asp.net 1.1 / IIS 6
Posted by Joey at 4/2/2007 1:41:27 PM
I have an asp.net 1.1 web app written in C# and running on IIS6. The
app loses session state information if I log in and then leave the
webpage for say, 45 minutes or so. I have configured the
authentication section in web.config to allow for a timeout value of
120 (forms authentication). And th... more >>
small problem with ASP 1.1 version problem in IIS6
Posted by ChiWhiteSox at 4/2/2007 12:50:02 PM
hi all
on our IIS6 we tried to update the asp version of a particular website from
1.1 to 2.0. Leaving other sites on the same server as ASP version 1.1
But when we go to the client and check our other sites from the same server,
it's not able to do so or saying that famous msg, "Page ca... more >>
Center a table in asp.net 2.0?
Posted by Kat at 4/2/2007 11:57:53 AM
How do you center a table in visual studio 2005? It used to be align=center
but now it tells me it is an out of date method.
... more >>
VS 2005 vs. Expression Web...
Posted by Edward B. at 4/2/2007 11:53:22 AM
So I started using Expression Web recently, and found its interface very
much like VS 2005. Moved around within it just fine, etc. But then I started
getting into some heavy ASP.NET programming, and found that VS 2005 was able
to handle things like Events much easier.
However, switching bac... more >>
Managing Multi-Application Session Environment ASP.net 2.0
Posted by gstark at 4/2/2007 11:35:46 AM
Hi,
I need some help or direction. The website design I want to implement has a
login and menu pages (root website.) The menu directs access to
sub-websites (which are themselves separate applications). The sub-websites
need session information from the root session. I am looking for a wa... more >>
ASP.NET 2.0 menu control to call javascript
Posted by JJ at 4/2/2007 11:23:29 AM
My menu is bound to xmldatasource. I would like to call javascript function
when menu item is clicked on. Is this possible? What information do i need
to add to the xml file to make this possible?
Thanks
... more >>
DataAdapter, limiting results, but getting the total count row.
Posted by JustinCarmony at 4/2/2007 11:05:20 AM
I'm using a DataAdapter to fill a DataSet to display a list of items
in a custom way. I'm not using the GridView or any server controls
like that.
This is my code:
<code>
SqlConnection sqlConn =
DatabaseControl.Database.GetConnection(Globals.dbConn);
SqlCommand cmdTitles = new SqlCo... more >>
RegExpression Help
Posted by Jim in Arizona at 4/2/2007 10:03:32 AM
I set up a regular expression validator on my web form to make sure
users were putting in correct time format but I can't seem to get it right.
The problem is that I need them to input a time based on the 12 hour
clock. This regular expression works fine:
^([0-1][0-2]):([0-5][0-9])$
How... more >>
Newbie Qs: Dynamic dropdownlist does not show
Posted by AlecL at 4/2/2007 9:54:34 AM
Hi there,
I am trying to dynamically add rows of dropdownboxes the number of
which is picked by another dropdown box and although the code is
being processed would not add dropdownboxes to a div.
Here is the code:
Protected Sub ddlMentHowManyChildren_SelectedIndexChanged(ByVal sender
As... more >>
Best AJAX Enablement Tool?
Posted by Rick Gamble at 4/2/2007 9:26:24 AM
After auditing feature/function stuff I've narrowed the candidates to the
three following vendors:
Infragististics Net Advantage
Telerik radAjax
Microsoft ASP.Net Ajax
Of the three I'm leaning toward Teleriks product however any additional
insights would be appreciated.
Rick
... more >>
Objects disappear in TemplateFields on postback
Posted by Robert Fernandez at 4/2/2007 9:19:13 AM
I've got a gridview with BoundFields and TemplateFields and a
linkbutton with a CommandName="Select". When I click on this
linkbutton the TemplateField objects disappear on postback but the
BoundFields still have their data. Also the SelectedIndexChanged
event is never hit. Why is this happen... more >>
Oracle Provider Comparison
Posted by Evan M. at 4/2/2007 9:05:50 AM
Hello,
I'm creating a web app that needs to provide some simple, read-only
access to an Oracle database using SELECT statements. What I am
curious about is which provider (System.Data.OracleClient or ODP.NET)
would be a better using in this instance. The Oracle database itself
resides on a re... more >>
Div Style and ASP Controls
Posted by JimHeavey at 4/2/2007 8:54:05 AM
If I create a <div> and specify that I want the font-size to be 1.2em for
instance, why do the <asp:> controls not follow this rule if they are
contained within the <div> statement?
How/what do I need to do to get them to follow this rule? Am I forced to
place a CssClass on each control?
... more >>
Remove columns on Gridview
Posted by David C at 4/2/2007 8:27:38 AM
I have a Gridview that has 10 columns. I have a condition where I need to
hide 5 of them but I'm not sure how to hide a column. I can hide a cell ok
in the row databound event but not sur how to hide whole columns (I assume
before databound). Thanks.
David
... more >>
Compairing PasswordQuestion Answers
Posted by Michael at 4/2/2007 7:50:01 AM
Hello,
I am using the Microsoft CreateUser control for my users. It stores the
password as well as the answer to the security question in Hash format. I
need to know how I can write my own code to compair the Hashed answer with
what the user types in. I know I cannot un-hash the answer. ... more >>
English to Spanish
Posted by Chris Davoli at 4/2/2007 7:28:01 AM
I have a need to translate a web page from english to spanish. Is there
anything in .NET framework that does this?
--
Chris Davoli
... more >>
Application_End
Posted by sean_mcad at 4/2/2007 6:44:08 AM
I have now confirmed that my application level objects are being killed
during worker process “recycleâ€. I was going to write some code to re-create
these objects at the Application_Start event however that event doesn’t fire
until the next request to the web site. The trouble here is th... more >>
Recognise the last event type
Posted by aroraamit81 NO[at]SPAM gmail.com at 4/2/2007 6:05:39 AM
is there any way to find out to find out after PostBack that which
event forced the page to post back.
for example when I click on the new page Index on grid, can I find out
on the Page_Load method that due to Clicking on new page Index this
post back has happen
... more >>
custom pie charts
Posted by rodchar at 4/2/2007 5:56:02 AM
hey all,
i learned how to make simple pie charts using code like the following from
an article referenced at the end of post:
For i = 0 To yaxis.Length - 1
currentangle = yaxis(i) / totalAng * 360
g.FillPie(New SolidBrush(GetColor(i)), 100, 40, 150, 150,
s... more >>
OpenLDAP
Posted by Gert Albertse at 4/2/2007 5:36:34 AM
Is it possible to use forms authentication against an OpenLDAP server
... more >>
xml - write to browser
Posted by RedLars at 4/2/2007 5:02:10 AM
Quick question,
For debugging purposes I'd like to ouput the entire xml file to my
default browser. Do I need to traverse the xml structure (info
xmlelement) myself or is there a standard api that does this for me?
<%@ Page Language="c#"%>
<%
Server obj = new Server("localhost");
... more >>
<form runat="server"> automatically adds <div> tag to code contained within. Is there a way to stop that?
Posted by mark4asp at 4/2/2007 3:57:03 AM
<form runat="server"> automatically adds <div> tag to code contained
within. Is there a way to stop that?
Mixing block-level elements with inline-level elements messes up the
HTML becasuse that is invalid for a strict implementation. <span> is
in-line-level and <div> is block-level. I don't ... more >>
ASP.NET DATATGRID EDITING ERROR
Posted by iweb at 4/2/2007 3:54:01 AM
We use Windows 2000 and .NET Framework 1.1 - we get the following error:
ASP.NET DATAGRID EDITING SHOWS ERROR :
===============================================
Action canceled
Internet Explorer was unable to link to the Web page you requested. The page
might be temporarily unavailable... more >>
how to get the ip address & country of the webpage visitor
Posted by bushi at 4/2/2007 3:23:23 AM
hi everyone!
i want to get the ipaddress,and the country name of a webpage
visitor,using asp.Net(C#).if anyone knows about it,plz rply me.
thanx in advance.
... more >>
VISUAL Studio IDE how can I get it back... e.g. debug tool
Posted by mesut at 4/2/2007 2:23:39 AM
Hi there,
I'm using VS 2005. During installion (at the end of installation) it
asked for which IDE interface would you like to use like Web
developper, Visual Basic 6, Visual basic.NET etc. I'm not sure which
one I've choosen but I don't see the DEBUG/RELEASE dropdownlist box
anymore. I'm sur... more >>
Open DataReader issue HELP
Posted by Simon Gare at 4/2/2007 1:59:16 AM
Hi all, keep getting the same error for an unknown reason
ASP.NET 2.0
SQL2000
There is already an open DataReader associated with this Command which must
be closed first
Anyone point me in the right direction?
Regards
Simon Gare
The Gare Group Limited
website: www.thegaregro... more >>
What is the proper way to use cookies?
Posted by Eric Layman at 4/2/2007 12:56:03 AM
This is how I clear all cookies/give cookies/detect cookies
am i doing it the right way?
Somehow or rather, i would hit an object cannot be instanisiated from null
or something whenever it tries to read cookies
Clear cookies:
Response.Cookies.Clear()
Dim ck1 As HttpCookie = Request.Co... more >>
Setting MembershipUser.IsApproved, how??
Posted by Jeff at 4/2/2007 12:51:55 AM
ASP.NET 2.0
The code below doesn't set IsApproved to true. I mean that I've debugged
this code and usr.IsApproved actually get set to true. But when I quit the
application and in VS2005 I start "ASP.NET Configuration" then I still see
the user without the "active" column checked. To me it l... more >>
How to implement a automatic login function
Posted by Victor at 4/2/2007 12:00:00 AM
hi guys.
In my project, now I am using a asp.net login control and a customized
membership provider to do the form authentication. Now I want some function
that user can skip the login form and be authenticated and login the system
automatically base on the username and password already in th... more >>
Are there ways to ensure printing only occurs once?
Posted by Eric Layman at 4/2/2007 12:00:00 AM
Hi,
If an E-coupon is limited to one person, are there ways to prevent it from
printing more than once?
Since on the print dialog, user can print multiple copies.
Regards
Posted Via Usenet.com Premium Usenet Newsgroup Services
-----------------------------------------------------... more >>
Template column
Posted by Gunawan at 4/2/2007 12:00:00 AM
Hi,
I could add a boundcolumn to gridview using this
BoundColumn bc = new BoundColumn();
bc.DataField = "ProductsName";
bc.HeaderText = "Product";
gridview1.columns.add(bc);
What I would like to ask, how can I perform this with TemplateColumn?
I have a problem to bound template column to ... more >>
how can I automatically redirect to the hotmail webmail with username and password.
Posted by Eric at 4/2/2007 12:00:00 AM
I hope logon to hotmail from our pages, how to call hotmail and transfer
parameters (username and password)?
Thanks in advance.
Eric
zszEric@hotmail.com
... more >>
|