all groups > asp.net > april 2007 > threads for friday april 27
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
catch not valid value in the querystring, how??
Posted by Jeff at 4/27/2007 8:46:18 PM
ASP.NET 2.0
Below you see the signature of a method in my webproject. "int user" get its
value from the "user" parameter in the querystring. The problem is that I'm
wondering how I can make a check in the code to catch if someone are trying
to send in a string value in the "user" parameter... more >>
GridView - Limit user selection to only one row???
Posted by Randy Smith at 4/27/2007 7:29:38 PM
Hi,
I would like to limit my user selection to only one row in the GridView at a
time. Is there any way to set this?
TIA, Randy
... more >>
ASP.Net Textbox problem ?
Posted by Luqman at 4/27/2007 6:47:16 PM
I have coded in Textbox_changed Event:
If CType(txtVoucherNo.Text, Long) = 0 Then
Me.DetailsView1.ChangeMode(DetailsViewMode.Insert)
Me.DetailsView1.AutoGenerateInsertButton = True
Me.DetailsView1.AutoGenerateEditButton = True
Exit Sub
End If
When page is loaded 1st time, an... more >>
Web Application opens as Web Site Project
Posted by Robert Gills at 4/27/2007 5:28:42 PM
I've got a Web Application project that I converted from a 2003 Web
Application project. The conversion works fine but when I check it into
source safe and try to load it on another machine it always opens as a Web
Site project.
Any clues?
I've tried opening from the file->open menu and... more >>
how to kill prompt on cross domain web service call ?
Posted by Scott at 4/27/2007 4:53:24 PM
My asp app on one site calls my .net webservice on another. Problem is that
IE always displays contacting other site error.
Any idea how to supress this error from server or browser ?
thanks for any help
scott
... more >>
Generics vs Individual classes
Posted by Aidy at 4/27/2007 4:47:17 PM
In .net 1.1 we'd have a whole bunch of collections for each of our classes.
So we'd have "ProductCollection", "UserCollection" etc etc, each a
strongly-typed collection for that user.
I know in 2.0 we can use generics, but I'm looking for opinions on using
Generics over the method mentioned... more >>
Validation Controls and Localization
Posted by Rusty Hill at 4/27/2007 4:33:31 PM
My web app is going to support 26 different cultures and languages. I
understand how to handle the basic localization. How do I localize the
validation controls and expressions that will be used for each culture?
For instance I realize that in the US we have states other places we have
pr... more >>
Trying to get DropDownList to fire a Javascript function
Posted by John Kotuby at 4/27/2007 4:32:21 PM
Hi all...
I am trying to do a simple thing and maybe am missing something elementary.
I have created a Javascript function at the top of a page which is meant to
enable editing of an HTML input textbox when the user makes a selection from
the DropDownList control. Since there is no OnClick ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Only 2 Http Concurrent Connections, Server to Server, .NET
Posted by Jay Douglas at 4/27/2007 4:10:52 PM
Sorry for the cross post but I was hoping between developers and systems ppl
I can get answer to this question. I've searched; found issues similar to
mine but the solutions are not working.
My situation:
I have an ASP.net web app running on Server 2003 (Server 1) that calls a
service o... more >>
DataGrid and GridView
Posted by Toni at 4/27/2007 3:30:21 PM
In DataGrid and GridView I can't use paging and sorting. I am connected to
database with code, not visual. Can I use paging and sorting if I populate
data to grid with code, or I need to drag and drop connection, dataset,
datatable etc.
... more >>
Ajax and Netscape, no postbacks
Posted by RML at 4/27/2007 3:26:02 PM
Hi,
I have several Ajax enabled aspx pages which use an UpdatePanel control.
These pages have some dropdown and datagrid server controls on them. The
pages work fine in IE, but in Netscape they do not postback when a selection
is changed (dropdown), or a datagrid entry is selected.
I w... more >>
Compiled Web App Unavailable to Some Users
Posted by Justin at 4/27/2007 1:36:01 PM
Hello Everyone:
I am having the most bizarre problem with my asp.net web app...this is my
first web app in asp.net and I inherited it from a programmer who quit...so,
I am not completely familiar with all the ins and outs.
The problem is that some machines can open my web app and some mach... more >>
HttpContext Response vs. HttpApplication Response
Posted by Doogie at 4/27/2007 1:23:37 PM
What is the difference between this:
HttpContext.Current.Response
and this:
System.Web.HttpApplication.Response
I want to create a common method in a .vb file and cannot use
System.Web.HttpApplication.Response to do it. But I can use
HttpContext.Current.Response and wanted to know wha... more >>
Two-way Custom data binding
Posted by Larry Bud at 4/27/2007 1:06:05 PM
Is it possible with asp.net 2.0??
If so, how?
If not, here's the situation, which I would think is very common.
GridView accessing 1 table. The update is a stored procedure. If a
column is not using the BIND method (2 way binding), the parameter
doesn't get included in the SQL update co... more >>
Using custom user tables for personalization?
Posted by Kees de Winter at 4/27/2007 12:32:40 PM
Hi,
I am thinking about using the personalization features of .net 2.0 but I
can't figure out the following. If I use the standard features of
personalization, I will have users in the auto-generated profile-tables. But
I have my own user tables with many more fields. How do I sync these users... more >>
Disable single CheckBox in CheckBoxList?
Posted by MattB at 4/27/2007 11:37:00 AM
asp.net 1.1, vb.net
I have a CheckBoxList that I need to conditionally disable one or more
individual checkboxes from at runtime.
I was hoping I could so something like:
MyCheckBoxList.Items(1).Enabled = False
But it doesn't appear to work that way. Can I do this or would I have to
d... more >>
On Adobe's Flash & Flex in ASP.NET
Posted by ASP.NET explorer at 4/27/2007 11:30:58 AM
I have been asked to create some simple animation using Adobe Flash player
in ASP.NET(C#) web application.
While I am fairly well versed with ASP.NET C#, I absolutely have NO IDEA
about how to say "Hello World" in a Flash enabled web page rendered via
ASP.NET.
Can any one let me get star... more >>
Embedded WMP stops playing
Posted by gsauns at 4/27/2007 11:25:35 AM
I have a Windows Media Player control embedded in my page. This is the
code I use to get it to play:
function setPlayerURL()
{
player = document.getElementById("wmpWindow");
myURL =
document.getElementById("pathStore").getAttribute("value");
... more >>
Compile ErrorApp_Web_r2vslqrl.dll and App_Web_qxqentcx.dll
Posted by sck10 at 4/27/2007 11:18:39 AM
Hello,
I am getting the following error which is causing my template
(mpAluPmo0302.master) not to work. Is there any way to fix this? Any help
with this would be appreciated.
Thanks, sck10
Compiler Error Message: CS0433: The type 'mpAluPmo0302' exists in both
'c:\WINDOWS\Microsof... more >>
.NET 2.0 Master Pages problem
Posted by Tim Wallace at 4/27/2007 10:14:27 AM
I have a windows 2000 server on which I have installed the .NET 2.0
Framework runtime. I have an application I've written using VS 2005. In
it, I use master pages. When I debug this app on my machine, it looks
great. When I run it on the server, it looks like crap - no master page
goodne... more >>
need granular security
Posted by rodchar at 4/27/2007 9:30:06 AM
hey all,
i'm creating an intranet application and i need very granular security down
to the user what's the best way to accomplish this? For instance, a user
accesses the site and can only see certain links or records available to that
user.
thanks,
rodchar... more >>
Applet
Posted by JimHeavey at 4/27/2007 7:34:01 AM
I see that there are methods for registering javascript for your application,
but I have an applet and I'm not sure how to proceed with that. I attempted
to create a span control and then write the "applet" code into the text
portiong of the span control, but they did not work. Here is the c... more >>
aspect ratio of an image in a gridview...
Posted by trint at 4/27/2007 6:36:27 AM
I have a gridview displaying images from sql server. The images are
all different sizes, so I want to display each image at only 70 pixels
wide with the right perspective of the height. here is my code that
displays them at 50%, which isn't what i want:
<asp:GridView ID="GridView3" runat="se... more >>
User informations
Posted by etam at 4/27/2007 6:26:55 AM
Hi,
what is the bes practice (in ASP.NET) for adding aditional information
to the user? Is it by making another table in this database where
authorization table is hold and use userid as foreign key?
... more >>
Validator in DropDownList?
Posted by Chris G. at 4/27/2007 6:18:04 AM
I'm trying to put conditional code in a dropdown that would check the value
of the current ListItem and set Selected=true depending on that value, and
Selected=false if it's any other value.
Due to security restrictions, I can't place any script blocks on, or behind,
the page, so it has to ... more >>
Is it possible to config "default page" in web.config?
Posted by Morgan Cheng at 4/27/2007 6:05:51 AM
Without IIS configuration, is it possible to set "default page" in
web.config?
I am curious about that because I am developing in VS2005 with ASP.NET
Development Server. I want to config it with web.config.
Thanks.
... more >>
Get your Orcas while they're hot!
Posted by Juan T. Llibre at 4/27/2007 5:24:21 AM
The Orcas Visual Studio Express CTPs are available!
http://msdn.microsoft.com/vstudio/express/future/downloads/default.aspx
..Net Framework 3.5!
Discussions are already ongoing at :
http://forums.asp.net/1125/ShowForum.aspx
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.n... more >>
form's action do not refers to another page but to itself.
Posted by Behzad at 4/27/2007 5:11:23 AM
Hi all,
I have a index.aspx as my home page and there is a form in the page as
follow
<form id="form1" runat="server" action="Login.aspx" method="post">
//some stuff
<form>
as you can see action attribute refers to login.aspx.When page renders
the action attribute refers to index.aspx.
... more >>
How Can I locate a namespace reference in asp.net?
Posted by mark4asp at 4/27/2007 4:23:33 AM
What is the best way to locate the namespace I need to put in a using
statement?
For example suppose I wanted to discover which namespace "Server" was
in the context of:
Exception ex = Server.GetLastError();
- code that is normally placed in Global Application_Error() but which
I want to... more >>
axWebBrowser
Posted by tamarindm at 4/27/2007 2:22:29 AM
Hi,
I am using axWebBrowser in .NET framework 1.1. I have 4 or 5 instances
of the axWebBrowser control running at the same time, displaying
different web pages on multiple tab pages. It seems that the pages are
loading one after another.
Is there a way to load the pages all at the same time... more >>
WebService- Server application unavailable
Posted by Jay at 4/27/2007 2:05:29 AM
Hello,
I have created a simple web service and I have deployeed it in IIS
server. I have 2 versions of ASP.NET 1.1.4322 and 2.0. But when I
access webservice I get error..
Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavai... more >>
automation "Object reference not set to an instance of an object."
Posted by Badis at 4/27/2007 1:10:34 AM
I'm doing a server side automation(I know it's bad but..) and its working
fine locally and when accessing it from a remote machine using web browser is
was giving me this error"Retrieving the COM class factory for component with
CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the ... more >>
Add control to content aspx page of master page
Posted by Roger Frei at 4/27/2007 12:00:00 AM
hello everybody
I have a masterpage and several aspx pages that inerhit controls from the
masterpage. In the Page_Load event of the content aspx page I want to add
some controls. Example code:
protected void Page_Load(object sender, EventArgs e) {
if (!Page.IsPostBack) {
... more >>
CSS and ASP controls
Posted by DesCF at 4/27/2007 12:00:00 AM
When I change my monitor resolution my asp menu control moves around the
screen so what is right at one reolution is wrong at another. I have
positioned the menu using css, should I place the menu control in a div
and position that instead? Is there a best way to do this? I have
fid... more >>
Best Way to Access a Database
Posted by Gabe Matteson at 4/27/2007 12:00:00 AM
How would you recommend the best way to access a database? By 'best' I mean,
what solution would allow me to modify the data as much as possible, e.g.
layout on the web page etc. I know in ASP 3, going through the data and
using recordsets i could output the data all over the place, but with a... more >>
|