all groups > asp.net > may 2006 > threads for monday may 22
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
Upload Files to Hosting Site
Posted by Coder at 5/22/2006 11:52:45 PM
Hello,
My Web Application must be capable of uploading files to hosting site, How
can I do this ?
... more >>
html syntax question
Posted by Samuel Shulman at 5/22/2006 11:37:34 PM
Please view the code below
I get the following error: Per the active schema, the element 'li' cannot be
nested within 'div'.
Why?
Thanks
Samuel
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="SelectState.aspx.vb" Inherits="EsarWeb.SelectState"%>
<!DOCTYPE HTML PUBLIC "... more >>
web parts help!!
Posted by abhinaya1986 NO[at]SPAM yahoo.com at 5/22/2006 11:33:16 PM
how can i add webparts dynamically at run time to a webpage...?? using
the import/export feature of catalog control, it's possible to
import/export webparts from the same page.... but webparts exported
from one page can't be imported to another page... is there a way to do
this...?? please hel... more >>
Why is my ASPX page not loading properly?
Posted by Darrel at 5/22/2006 11:29:21 PM
APologies for the cross post...posted in the wrong forum the first time.
I have an ASPX page on my server that isn't properly running as an ASPX
page. At first, the RESX file would load. I delete the files, reuploaded,
and now the ASPX file is loading as plain text in the browser (the source)... more >>
Crystal Reports
Posted by Pradeep at 5/22/2006 11:12:57 PM
hi,
Im new to visual studio environment and i would like to know what is
Crystal Reports ? Wht can be done with that ?? Could any gurus here let
me know wht it is
bye
Pradeep Menon
... more >>
DropdownList control populated with a dataReader
Posted by Carlos Lozano at 5/22/2006 10:56:01 PM
Hello,
I am having a problem getting the selectedValue from a dropdownlist that is
populated with a dataReader and just can't see the problem.
I did the following:
dim dr as DataReader
dr = DataReader(sSQLcmd)
Me.DropDownList1.DataSource = dr
Me.DropDownList1.DataTextField="DataSourceF... more >>
Where to get more information
Posted by Pradeep at 5/22/2006 9:51:11 PM
hi all,
i m very much in need of information on how to "create" webparts to be
dynamically loaded to an aspx page...could anyone suggest where i can
find more information on this...
thanks
Pradeep
... more >>
responding to changed text doesn't always work
Posted by jonefer at 5/22/2006 9:24:02 PM
Private Sub txtLastName_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles txtLastName.TextChanged
If Me.cmdAction.Text = "Update" Then
Me.cmdAction.Enabled = True
End If
End Sub
The above code seems like it should work but doesn'... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Two way sorting in GridView using Object Data Source
Posted by Ram at 5/22/2006 8:28:51 PM
Hi All,
I am using Object Data Source to bind data in the gridview. I have
set the property AllowSorting=true. While running the application, I
could sort the data only in ascending order. Is there any way to
achieve two way sorting in gridview ie. both ascending and descending
on success... more >>
process.start() program hangs
Posted by Alexander Widera at 5/22/2006 8:08:40 PM
hello,
if i start a program (an exe-file) with Process.Start(...) I don't have the
required permissions that the programm needs (i could start the programm but
the program needs special rights). So I added the StartInfo.UserName and
Password to the Process. Now the program starts, but it ha... more >>
login control question
Posted by WebBuilder451 at 5/22/2006 5:29:01 PM
i created a basic login control and changed it to a template.
Then i droped a label on to it. in code behind it can not be found?
I tried me.logincortrol.whatever but it can't be found. Ok this is basic,
but what the problem? Why can't it be found?
--
thanks (as always)
some day i''m gona ... more >>
Jump to top of screen
Posted by Robert Sheppard at 5/22/2006 4:55:20 PM
Is there any way to prevent the page from jumping to the top of the screen
on a postback.
I have a table that I create dynamically with some buttons. Each time I
click on of the buttons I launch a popup window (which works fine) but my
main page jumps to the top of the screen.
This is very ... more >>
receiving an amail with aspnet?
Posted by fazeee at 5/22/2006 4:47:46 PM
Hi,
Has anyone an idea how to receive an email (in Asp.NET 2003)?... more >>
Object reference not set to an instance of an object.
Posted by aarepasky NO[at]SPAM yahoo.com at 5/22/2006 4:31:33 PM
I list the code below, but the line that has the error is:
txtCompanyName.Enabled = false;
The error is:
Object reference not set to an instance of an object.
Default.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
u... more >>
How to get full url of virtual root
Posted by Thomas Jespersen at 5/22/2006 4:30:03 PM
Hi
I have a simple question:
How do I get the full url of the virtuel path of my website.
Eg. on my dev machine it is http://localhost:6786/website1 and on the
production server it will be http://www.mycompany.dk.
/Thomas
... more >>
handling page load event
Posted by Carlos at 5/22/2006 4:27:10 PM
Hi all,
I populate a list box during the page load
event, and I do it within the if (not page.postback())
condition. However, I do notice that the
list gets duplicated. When I debug the app, I certainly
go twice thru the logic, before the page displays.
I though that I could just be able t... more >>
2.0: exception "Thread was being aborted"
Posted by R.A.M. at 5/22/2006 4:14:00 PM
Hello,
Could you help me plase? I am describing my problem second time
because I haven't got a solution.
I have an ASP.NET page with "Search" button; when button is clicked
Search_Click is called; here's the code:
protected void Search_Click(object sender, EventArgs e)
{
Debug.Writ... more >>
Potentially dumb question about reference materials in VS
Posted by RSH at 5/22/2006 4:03:12 PM
I installed MS SQLServer 2005 on my box, and I don't recall if I installed
Visual Studio 2005 after or not, but when I'm in Visual Studio and I go into
HELP >> SEARCH >> FILTERED BY I only see SQL Server 2005...nothing about
..Net. How do I get the reference materials about .Net in there?
... more >>
Where to put server side c# code (in .aspx or in the aspx.cs ?)
Posted by Mr Flibble at 5/22/2006 3:49:26 PM
I can embed code within <% %> within my page or put it in the .aspx.cs
file (perhaps within the load method). What are the advantages over each?
Background:
I have some XML and I want to display it in some tables.
In my opinion I can either loop through some XML data and use
Repsonse.write... more >>
q; connection string
Posted by JIM.H. at 5/22/2006 2:37:02 PM
Hello,
this code does not return connection string
string connStr =
ConfigurationManager.AppSettings["myDBConnectionString"];
app.config
<connectionStrings>
<add name="PVS.Properties.Settings.myDBConnectionString"
connectionString="Data Source=MyServer... more >>
Visual Studio Frustration
Posted by Beth In Alaska at 5/22/2006 2:26:16 PM
I got a new machine and installed VS on it. Nothing will debug. I've tried
all of the thing in the "things to try" under the help on the box, but it
still doesnt' work. I've searched MS knowledge base. I've searched google.
And nothing seems to be helping.
Any advice welcome. I feel lik... more >>
ASP.NET 2.0: static instance of reference type is not always set to null
Posted by Vagif Abilov at 5/22/2006 2:04:21 PM
We have several Web projects where we suddenly began experiencing various
problems after porting them to .NET 2.0. I debugged one of them and here's
what I've found:
In one of referenced assemblies there was a class with static members of
other class:
class A
{
...
static B b;... more >>
Locals window show variable in RED?
Posted by dgk at 5/22/2006 1:56:19 PM
What does it mean when the debugger shows a variable value in red?... more >>
get value of a cell in a gridview
Posted by graphicsxp at 5/22/2006 1:52:00 PM
Hi,
How can I get the value of a cell that belongs to a hidden column of
gridview ?
Here's how I normally access the value of a cell, but it doesn't work
if the column is invisible:
Code :
Me.grdPublication.SelectedRow.Cells(1).Text
I've used a gridview with auto-generated columns to fal... more >>
Lightning Event Icon Gone Missing
Posted by mosscliffe at 5/22/2006 12:43:46 PM
I now realise some of my problems today are because, I can not see the
list of events associated with controls.
The Yellow Lightning Icon that was at the top of properties has
disappeared.
I have found several references to thi sproblem, but up until now I
have not seen a solution.
Can a... more >>
LDAP anonymous lookup - no username password
Posted by Grant Merwitz at 5/22/2006 12:25:19 PM
Is it possible to do an anonymous lookup in active directory through a web
page?
I am running a site with Domain Authentication activated.
I am looking up a users email address in Active Directory.
This is how i'm accessing AD
new DirectoryEntry(LDAP://DomainController, Domain\Username, ... more >>
q: loop dataset
Posted by JIM.H. at 5/22/2006 12:23:02 PM
Hello,
How can I loop table names in a dataset?
Thanks,
... more >>
Compress data on server and uncompress on client?
Posted by Harry Keck at 5/22/2006 12:21:02 PM
I have a dynamic xml file that needs to be downloaded periodically to the
client from an ASP.Net application. This file can be rather large, but it
zips up very small. Does anyone know of a simple way that I can compress the
file from my ASP.Net server code and then uncompress it from client... more >>
Problems converting from 1.1 to 2.0... Problem 1
Posted by Wayne at 5/22/2006 12:06:06 PM
I am having a tremendous amount of problems converting a current web
application over to ASP.NET/VB.NET 2.0.
I have managed to fix all the errors except 7 to 10 of them (depending on
the mood of VS.NET 2005 when it builds).
A couple of the remaining errors have to do wi... more >>
How to deploy 2 distinct ASP.NET apps with one in V.Dir and one in site root
Posted by news.microsoft.com at 5/22/2006 11:07:35 AM
I have two completely distinct ASP.NET (2.0) web applications. They share no
code, they have distinct web.config files, they don't even link to each
other. During development, they have lived happily side by side in two
virtual directories in the same IIS website.
e.g. http://localhost/dotnetn... more >>
FormView & SqlDataSource
Posted by lasalsatx NO[at]SPAM newsgroups.nospam at 5/22/2006 11:04:15 AM
Is there a way to handle when you're on insert mode on a formview and the
record you're about to save to the database already exist and insted you
rather update instead of inserting and getting an error of primary key?
Thanks,
Victor
... more >>
Pie chart: ASP.net 2.0, SQL Server 2000, Excel 2000
Posted by C Did at 5/22/2006 10:21:29 AM
What's the best cheapest way to get pie charts on the web with my setup?
Thanks!!
... more >>
login validation help
Posted by Jon at 5/22/2006 10:09:02 AM
OK, I've been going nuts for about a week now, I have a asp.net 1.1 app that
is using forms auth and going against an existing database to validate all
users and each user has different roles. Now, I've been reading about the
membershipAPI's, providers,Login Control, etc, in 2.0. Now, how can ... more >>
puzzled by VS2005 documentation generator
Posted by Tim_Mac at 5/22/2006 10:01:38 AM
hi,
i have VS2005 professional, and i would like to generate a complete
documentation reference for all the classes in my web project. i would
have thought this was as simple as a button or build option? i have
all the <summary> tags etc.
ben crinion posted a similar question in march and i... more >>
Frameset
Posted by Arne Garvander at 5/22/2006 9:59:02 AM
Is there a proper way to program a frameset in Asp.net
<frame FRAMEBORDER="1" MARGINWIDTH="0" MARGINHEIGHT="0" id=mainframe
runat=server NAME="FmeRight" SCROLLING="AUTO" />
-- code --
ainframe.Attributes.Add("src", ""OrderEntry.asp?CustID=15&Name=Buster");
My '&' query delimiter hets mange... more >>
logout problem
Posted by Alex D. at 5/22/2006 9:53:29 AM
Recently I upgraded a website from framework 2 beta 2 to a new server with
framework 2. Everything works ok BUT the persistent cookies. My users have
to log in every 30 or 40 minutes even if they check the "Remember Password"
which is setting a persistent cookie with:
FormsAuthentication.Re... more >>
Move rows up and down in a datagrid
Posted by Stephen at 5/22/2006 9:52:33 AM
Hi,
I want to move rows up and down in a datagrid and Peter Kellner suggested:
"One way you could do it is using GridView and have "move up" and "move
down" button's on each row."
Grid View is in 2.0 and I am using 1.X version and VS2003. Is there anyway I
can do this using VS2003
Thanks... more >>
Deployment of ASP.net Application
Posted by srinivas at 5/22/2006 9:47:02 AM
Hi,
I want to deploy my ASP.net 2.0 application to production server.
I'm planning to copy my folders to the production server and create a
virtual directory for that.
Is it possible to copy only aspx files and not code behind aspx.vb on the
server??
Thanks
... more >>
Validate against two field.
Posted by UJ at 5/22/2006 9:44:51 AM
I have two fields where the user is entering a length of time (minutes and
seconds) and need to validate it so that
a) they are both numbers.
b) If the minutes is 0, the seconds has to be > 10.
Is there an easy way to do this on the client side?
TIA - Jeff.
... more >>
ItemUpdating using DataSource(FormView or DetailsView)
Posted by cisco at 5/22/2006 9:30:01 AM
I've been trying to figure out how the client of a DetailsView or
FormView should handle the ItemUpdating event when setting the datasource
programatically. I want to do something simple like this:
formView.DataSource = new SomeUserObject[] { user };
formView.DataBind();
Al... more >>
Response.Redirect
Posted by Peter at 5/22/2006 8:58:03 AM
I try to use Response.Redirect to navigate and passing data. How do I hide
the parameter data. The code example is as below:
Response.Redirect("oldPage.asp?name=oldie")
I do not want people to see the value, oldie in the url. Please advise if
there is.
Peter... more >>
How to Implement Dynamic Roles
Posted by Mike Hofer at 5/22/2006 8:36:03 AM
BACKGROUND: We've designed a Website for a client that will be
deployed across multiple physical locations. The site will be hosted
from a corporate NOC, and administered by the IT group there.
The site's end-users tend to fill each others' roles on a pretty
frequent basis. Their permissions... more >>
asp.net 2.0 - profile and session performance
Posted by YC at 5/22/2006 8:25:03 AM
Hi.
I have a question regarding the profile and sessiom performance when using
SQL server a a provider. The mecahnizm in general uses blob as the datatype
for the state persistente. In high volumes, will it cause a peformence
problem?
... more >>
q; merger two dataset
Posted by JIM.H. at 5/22/2006 8:17:01 AM
Hello,
Is it possible to merge two datasets which have three tables in each of
them? I am musing .Net 2.0 if this makes anything easier.
Any sample code will be greatly appreciated.
Thanks,
... more >>
GridView Directly Accessing the Edit of FormView
Posted by mosscliffe at 5/22/2006 8:07:08 AM
Is it possible to get a GridView 'Select' to go straight to the 'Edit'
of a Formview.
If I add a 'New' button to the GridView can I get that to go straight
to the Insert of a FormView.
Is it possible to trap the event of 'Update' Button Pressed in
FormView. When I select the linkButton in ... more >>
Datalist- setting repeatcolumns value dynamically. Possible?
Posted by bubba ho-tep at 5/22/2006 7:47:40 AM
Hello,
When you have a datalist repeating horizontally, is it possible to set
the repeatcolumns dynamically based on the user's window size? EG. If
the user's window is wide enough for 3 datalist items without the
horizontal scrollbar appearing, then repeatcolumns=3. However, if the
user's ... more >>
Extending System.Web.UI.Page/MasterPage with custom properties
Posted by Christophe Peillet at 5/22/2006 7:42:02 AM
I am trying to create a BasePage for use in a large asp.net application, that
will centrally provide certain extra properties and logic to the application.
(The web project makes use Master Pages as well.)
I want to make a property named TitleResourceKey, for example, that contains
the res... more >>
Webservices and Generics
Posted by Larry Charlton at 5/22/2006 7:28:02 AM
In .Net 2.0, how do I convert between arrays and generics?
For example in my webservice if I define
<WebMethod()> _
Public Function TakeList(ByVal list As List(Of Data)) As List(Of Data)
Return list
End Function
In the application that consumes it all of those lists are arrays.
ie.... more >>
aspx files not designing right on new computer
Posted by Ed at 5/22/2006 7:19:02 AM
Recently I got a new laptop and placed my Visual Studio 2003
project on it. But when I place my aspx files in design mode
the aspx files don't design right. I used grid layout (not flow) and
many tables. But the tables overlap on the new laptop when thet did
not on the old one. Is there som... more >>
Compiler executable file c:\..\v1.1.4322\csc.exe cannot be found.
Posted by mudge at 5/22/2006 6:47:05 AM
Hi,
I'm getting some very strange problems with some C# code. We're running
an ASP.NET application on a local server in a DMZ. If I access it using
the internal address, the application works fine, every time. But, if I
access on it's public IP, from my office workstation, from home, over
the... more >>
Converting images to binary files
Posted by Beginner at 5/22/2006 6:22:01 AM
How do I convert JPEG images to binary files in ASP.NET? Please advice.
Thanks.... more >>
q: accept parameter
Posted by JIM.H. at 5/22/2006 6:17:02 AM
Hello,
Hello my aps.net web application should accept a parameter and do different
things based on whether the parameter is given or not.
If the application is accessed as www.MyWebApp.aspx go to one method
If the application is accessed as www.MyWebApp.aspx?Par go to another method
What i... more >>
Free ASP.NET 2.0 Hosting ??
Posted by olrt at 5/22/2006 5:49:02 AM
Hello,
My criteria are the following :
* Free hosting (absolutely Free I mean ... I don't want to register for
a domain name)
* ASP.NET 2.0
* SQL 2005 Express
* > 30 Mo disk space
I've searched for services matching my criteria all the day and didn't
find result.
Can somebody can poin... more >>
N-Tier Object datasource and Gridview
Posted by Larry Charlton at 5/22/2006 5:06:01 AM
I seem to be having a mental block for some reason.
Some goals:
A web form with fields
A web service that processes those fields
Send the fields as a single parameter to the web service
Use an object datasource to populate the form
Object datasources get values from properties in classes
... more >>
Folder browsing
Posted by Nikolay Petrov at 5/22/2006 4:32:22 AM
I would like to replace the default page, which IIS shows, when a
"folder browsing" i permited for some folder.
I would like to use my own aspx page.
Any ideas?
... more >>
Masterpage and Label control?
Posted by Asaf at 5/22/2006 4:18:02 AM
Hi,
I have Master page and a Label control on it.
I would like to set the Text property for that label from Default.aspx on
page load event where Default.aspx belongs to the Master page.
How can I reach the label control on the master page from other pages?
Thanks in advanced for any hel... more >>
Replacing TEXTBOX with DROPDOWNLISTBOX in Formview
Posted by mosscliffe at 5/22/2006 2:18:25 AM
I have an existing textbox in a formview edit or insert and I wish to
convert it to a DROPDOWNLIST BOX but I can not figure out the syntax
to create the bind that was in the textbox, to how that should be coded
for the DDL
Can anyone please advise
ORIGINAL
<asp:TextBox ID="GenIDTextBox"... more >>
about request.querystring.
Posted by Arvan at 5/22/2006 12:00:00 AM
there is 3 links to page default.aspx,and each one has a querystring,like
a=1, b=1 ,c=1.
problem is how do i ensure the name of querystring!
how do?
... more >>
Master page code executed after child page code
Posted by Luigi at 5/22/2006 12:00:00 AM
I'm pretty new in asp.net 2.0 and i'm experiencing this problem: in the
master page code i've included some general initialization code common to
all content pages, but when i start debugging this code is executed after
the content pages code... so i cannot actually take advantage from the
m... more >>
How to publish a website?
Posted by chaz at 5/22/2006 12:00:00 AM
Hi -
What's the difference between a website, a project, and a solution when it
comes to pure ASP.NET programming?
I have a "solution." I can migrate this to my production web server just by
dragging a folder to a network connection. Presumably some JIT magic occurs
on the server machi... more >>
How to use Eval or Bind with 2 values
Posted by Donald Adams at 5/22/2006 12:00:00 AM
How can I use Eval or Bind with 2 values? The following does not work:
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='Workitem.aspx?ID=<%# Eval("ID", "{0}") %>&WID=<%# Eval("PIID",
"{0}") %>' ImageUrl="~/Images/iSelect.gif"></asp:HyperLink>
Thanks in advance,
Donald
... more >>
|