all groups > asp.net > january 2005 > threads for tuesday january 11
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
Vb.net deploying application
Posted by Farhan Wajahat at 1/11/2005 11:08:34 PM
I have made a asp.net application using vb.net. Now i
want to upload it to a webserver. How to do it?... more >>
VisualStudio 2003 question
Posted by Maziar Aflatoun at 1/11/2005 10:29:34 PM
Hi everyone,
I'm relatively new to VisualStudio 2003 and have to create an application
that uses Web Services to authenticate a user. Once that user is
authenticated I use the Web services object and store it in a session to use
it in the following pages. However, every time I stop Visual... more >>
Request.QueryString Problem
Posted by franklinbruce NO[at]SPAM gmail.com at 1/11/2005 10:19:34 PM
Hi all,
I am passing a value from Javascript to a IFrame. when i tired to
acces that value like request.querystring("id1") it says "name id1 is
not declared"
code as follow:
---------------
javascript code:
function pass_iframe()
{
myval = document.Form1.name1[document.Form1... more >>
Adding a dropdownlist in DataGrid Pager area
Posted by strout at 1/11/2005 10:01:05 PM
Is it possible to add a dropdownlist to pager area so that user can select
how many records to display on a page?
Thank
Strout
... more >>
Urgent : IE Web control problem
Posted by Microsoft Newsgroups at 1/11/2005 9:45:39 PM
Hi all,
I'm having an interesting problem with my IE Webcontrols. I'm using the
toolbar and when I test it in my browser using "http://localhost/mysite", it
works fine. Incidentally, I have "mysite" set up as a web application. Now
when I test it going through "http://mysite/no-ip.org" then... more >>
Uploading Asp.net Application
Posted by Farhan Wajahat at 1/11/2005 9:36:16 PM
I have created a asp.net application which has couple of
web forms. How do i deploy it on the server? please help... more >>
Opening a file in excel via asp.net
Posted by Vishal at 1/11/2005 8:49:59 PM
Hello,
I have a dataset with some content. I can convert this
dataset in a csv format which is then stored in a
stringwriter. Now I want this be open via excel, so I set
the contenttype "application/vnd.ms-excel". To access this
page the user requires to login, once the user is logged... more >>
ASP.NET restricts server forms to one per page... workarounds... ???
Posted by nzanella NO[at]SPAM gmail.com at 1/11/2005 8:17:34 PM
Hello,
I just ran into the restriction of ASP.NET allowing no more than
one <form> tag with the runat="server" attribute per page. This
seems like a big restriction to me. I ran across the following
article:
http://msdn.microsoft.com/msdnmag/issues/03/05/CuttingEdge/
which suggests the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problems with doing an SQL insert stored procedure
Posted by EmJayEm at 1/11/2005 7:54:33 PM
I'm having some problems with this line when I do a SQL insert stored
procedure:
Compiler Error Message: BC30451: Name 'CommandType' is not declared.
Source Error:
Line 65: cmd.Parameters.Add( "@EmployeeID", newEmployeeId)
Line 66:
Line 67: cmd.Comman... more >>
Button doesn't input data
Posted by Pietro at 1/11/2005 7:50:05 PM
All of my buttons doesn't work, i click and nothing happens, but in
another server it do, i ran aspnet_regiis.exe -i to try to fix it but
the problem remain.
Thanks
Pietro... more >>
embedding variables in email body
Posted by William Gower at 1/11/2005 6:29:55 PM
I am creating an email message to be sent from a web page. How do I embed
variables like strFirstName, strLastName etc. into the body
I would like it to say.
Last Name : strLastName ex. Gower
First Name: strFirstName ex. Bill
Dim strFirstName As String = CType(Reque... more >>
cannot kill excel process
Posted by charmis at 1/11/2005 6:29:37 PM
Hi everyone,
I am trying to include one feature using excel object in my application.
I am giving the code to create and kill the process , that i got from
Microsoft site.......but nothing is happening
it will create one process but , it wont close . i used the code from the
link below... more >>
Viewstate problem?
Posted by Mike at 1/11/2005 6:22:14 PM
Hi
I have the following code and why can't i change the value of myvar in the
DataGrid1_editcommand event so that the (changed) value of myvar is there in
the Update event?? (it fires i debugged it!):
namespace MYproject
{
using System;
using System.Data;
using System.Drawing;
... more >>
removing item in dropdownlist
Posted by Chris at 1/11/2005 5:57:04 PM
I find tons of info on adding, but what about removing an item dynamically?
I'm cycling through the list and removing users that have special rights.
I've tried things like:
ddcontactnames.Items.Remove(userdata("CONTACT_ID"))
but how do I pick the value on the item and remove it?
thanx... more >>
Parser Error Message: Server tags cannot contain <% ... %> constructs.
Posted by nzanella NO[at]SPAM cs.mun.ca at 1/11/2005 5:38:35 PM
Hello,
I would like to do the following:
<form method="post"
action="<%= Request.ServerVariables["URL"] %>"
runat="server">
The reason I would like to do this is twofold:
1. I want my page to be such that when I post I get
rid of the query string appended at the end of ... more >>
exporting an excel file from database; making changes to excel file and updating the database by importing it back
Posted by Luis Esteban Valencia at 1/11/2005 4:15:40 PM
Hello Everyone,
Iam an intermediate ASP.Net programmer and iam facing a challenging task.
I have a table in MS-SQL server database called 'Members'. The table has
following fields...
mem_id integer primary key
lastname nvarchar(30)
firstname nvarchar(30)
class ... more >>
ASP.NET 2.0
Posted by Patrick.O.Ige at 1/11/2005 4:13:03 PM
I have VS.Net 2003 and .Net framework 1.1..
How can i get started with ASP.NET 2.0?
... more >>
The Subtle Application of Style
Posted by Jo Inferis at 1/11/2005 3:18:34 PM
(perhaps this is a well known feature, but I haven't seen anything
mentioning it explicitly yet)
I'm testing websites more and more exclusively in FireFox now and one of the
things I've just noticed is that where I set values such as Border,
BorderWidth or BorderColor (i.e. any property which ... more >>
Culture settings
Posted by EmJayEm at 1/11/2005 3:02:42 PM
How do I change the culture settings of my aspx document written in vb.net
to UK English.
Thanks,
... more >>
System.Drawing.Color and RGB entries
Posted by tshad at 1/11/2005 2:59:24 PM
I have a problem setting the background color of textbox on the fly.
I tried using:
applicantID.backcolor = "F6F6F6"
and
applicantID.backcolor = "#F6F6F6"
But get an error message:
Compiler Error Message: BC30311: Value of type 'String' cannot be converted
to 'System.Drawi... more >>
DataList
Posted by CCORDON at 1/11/2005 2:44:12 PM
I am loading Product data into a DataList, the idea is to be able to select
(check)
some of those products and enter a price for the selected ones. So I have
added a checkbox and a TextBox for each item that is loaded into the
DataList.
The question is: How can i get only the checkd products... more >>
Class not working for textbox.
Posted by tshad at 1/11/2005 2:39:59 PM
I cannot seem to get the asp:textbox to use classes. Style works fine. I
am trying to set the textbox to act like a label in some instance so it
doesn't have a border, readonly and the background is grey.
I have a class set as:
..table2Label{
border-style:none;
background-color:#F6F6... more >>
Need advice ...
Posted by Neven Klofutar at 1/11/2005 2:24:03 PM
Hi,
I need some advice about a project I'm working on ...
I have a form (create.aspx) containing a HTML Button with JavaScript
(window.open('select.aspx')) attached to it. Form select.aspx is used to
select services (in this case only serviceID) that are stored in DB, and
store those servic... more >>
HttpModule preventing execution of HttpHandlers
Posted by MWells at 1/11/2005 1:47:24 PM
I'm having an issue getting my HttpHandlers and HttpModules to play together
nicely.
My HttpHandlers take special document types (defined by extension) and
process them specially. I might have an HttpHandler installed to render
Excel files as HTML, or to render TIFFs to JPEGs, etc.
The Htt... more >>
Adding image from code behind
Posted by Shawn at 1/11/2005 1:38:20 PM
Hi.
I have an asp:table, like this:
<asp:Table runat="server" id="Table1">
<asp:TableRow Runat="server">
<asp:TableCell id="tc1" Runat="server"> </asp:TableCell>
<asp:TableCell id="tc2" Runat="server"> </asp:TableCell>
</asp:TableRow>
</asp:Table>
How can I add a ba... more >>
Q: date as null
Posted by JIM.H. at 1/11/2005 1:15:05 PM
Hello,
I am calling a stored procedure to update my table.
If one of the date on the screen left empty, I need to send date as null.
Since MyDate=â€â€ gives error in asp.net, how should I do this?
Thanks,
Jim.
... more >>
Testing with FormsAuthentication
Posted by gemel at 1/11/2005 12:53:55 PM
I'm am testing a login page with Forms Authentication. When I've
logged in the first time then subsequent tests do not go baack to the
login page because it finds the necessary cookie in memory.
How can I clear this so that my VS IDE treats me as a firts time
access each time?
Regards
Jo... more >>
.NET framework on disk?
Posted by 2obvious at 1/11/2005 12:50:16 PM
Is there an downloadable .NET reference anywhere, where I can search
through the entire framework? I do a lot of my programming on the go,
where an Internet connection isn't possible.
Also, I've been digging around in the .NET Framework site for a simple
diagram of what objects contain what o... more >>
ListView HELP
Posted by CCORDON at 1/11/2005 12:46:40 PM
I am loading Product data into a DataList, the idea is to be able to select
some of those products and enter a price for the selecte ones. So I have
added a checkbox and a TextBox for each item that is loaded into the
DataList.
The question is: How can i check what products have been checke... more >>
assemblyinfo version
Posted by MarkAurit at 1/11/2005 12:41:06 PM
I have asp.net app that has a version in the datastore, and Ive been updating
the version number in assemblyinfo.cs (the app isnt signed, though that can
be done easily enough). Im at the point where I cant to compare the two.
Ive looked in the docs, and I cant see how to access the version f... more >>
Dot Net Nuke Question
Posted by Michael D. Jones at 1/11/2005 12:34:09 PM
I'm new to DNN. I just downloaded the source and it's in VB.
Does anyone know if there is a C# version?
I looked on their site, but couldn't find one.
Thanks,
Michael
... more >>
Web Config
Posted by Mike Moore at 1/11/2005 12:31:06 PM
I'm getting errors when I run my application with the following in my web
config file.
<httpHandlers>
<add verb="*" path="*.vb"
type="System.Web.HttpNotFoundHandler,System.Web" />
<add verb="*" path="*.cs"
type="System.Web.HttpNotFoundHandler,System.Web" />
... more >>
Javascript Validition and Required Validator
Posted by Jim Heavey at 1/11/2005 12:11:05 PM
Hello, I created a simple javascipt routine to do some validation. I
attached that script to my ASP Button with the following code...
cmdAddTask.Attributes["onclick"] = "javascript:return
ValidateItemsSelected(lstSelectedGroupOwners, spnErrSelectedGroupOwners);";
After I did this, my "asp:... more >>
Help: PageDataSource, Repeater and Codebehind function...
Posted by Roy at 1/11/2005 12:05:02 PM
I have a problem with displaying data from a repeater where the data has to
be converted in a function. The repeater with PagedDataSource works fine and
all data is displayed except the columns where the function is executed.
sample of html code
<tr>
<td width="150">Delprosjekt</td>
... more >>
Prevent postback saved into history of Internet Explorer
Posted by Simon at 1/11/2005 11:55:38 AM
Hi, I need to prevent Internet Explorer to save the page in history
collection when it is in PostBack.
To try do this I have put this code:
protected override void OnLoad( EventArgs evt)
{
if (IsPostBack)
Response.Cache.SetNoStore();
.....
base.OnLoad( evt);
}
With... more >>
vs.net 2003 or whidbey?
Posted by Bob Garbados at 1/11/2005 11:38:31 AM
We have some 1.1 sites developed in dreamweaver and we will be developing
all new sites for the 2.0 framework when it's out of beta. We just
purchased an ms subscription and will be using visual studio for development
now. I like whidbey a lot more than vs.net 2003... can I skip learning 2003
... more >>
Changing image on an ImageButton makes by button disappear
Posted by abarberis NO[at]SPAM gmail.com at 1/11/2005 11:18:46 AM
I am writing an asp.net application which is using image buttons for
the interface. I have some buttons that have a enabled and disabled
state. I have written javascript code to change the image on the button
when it is disabled. Below is a snippet:
document.all.btnSignIn.src="Images/sign_in_d... more >>
Data Events.
Posted by Jim Heavey at 1/11/2005 11:13:03 AM
Hello, I am having a problem with my Datagrid events. When I click on the
column to sort, I am getting a call back to the server, but my event is not
firing. When this has happened before, I have usually found something that I
was doing in the Page Load event which was cancelling the event, ... more >>
Deployment Question
Posted by Greg Smith at 1/11/2005 11:06:33 AM
I have an application (my first web) that I created on a development
machine.
The application can be run successfully by any client when hosted on my
development machine.
I have deployed it to my production server and I get an error here:
<authentication mode="Forms">
<forms loginU... more >>
get textbox value in user control??
Posted by DaveF at 1/11/2005 10:56:52 AM
I have a textbox in a user control that a put in a aspx page. How do I get a
referance to that textbox from my aspx page?
--
Dave
... more >>
Email Entire Webform
Posted by MrMike at 1/11/2005 10:45:09 AM
Is it possible to e-mail an entire webform programatically. I'm familiar
with using SMTP to send e-mails in ASP.NET, but I'm looking for a way to
allow users to attach the actual webforms to the e-mails they are sending.
Thanks.... more >>
SELECT @@IDENTITY returns 0 in Transaction
Posted by the_banski NO[at]SPAM hotmail.com at 1/11/2005 10:28:48 AM
Hi,
Im trying to use SELECT @@IDENTITY in a transaction. But it always returns 0.
Im using an ms access database. And using the following code.
What am i doing wrong?
Best regards banski
public int SavePage(int id....)
{
int SomeId = 0;
string myDNS = ConfigurationSettings.AppSetting... more >>
The virtual path issues
Posted by Shikari Shambu at 1/11/2005 10:06:38 AM
Hi,
I have an ASP.NET application that has multiple folders (maps to directories
under the rootweb). When my code tries to access a control that is under
/common folder I get the following error
The virtual path '/common/ErrorDiv.ascx' maps to another application, which
is not allowed
How ... more >>
encoding problem
Posted by Jim Lawton at 1/11/2005 9:54:04 AM
Hi,
..net c# httphandler straight html form at browser.
GBP pound sign problem (I know I know - I *can* decode it, but I've got to
understand what and why I should be doing stuff)
I am uploading text data from a form. This data is either directly input into a
textarea, or is a file stream... more >>
display db column with HTML in datagrid ?
Posted by colonelangus NO[at]SPAM budweiser.com at 1/11/2005 9:40:35 AM
I have a database of our company's HTML email templates - name,
subject, etc. Well, some are for HTML emails, and the template_text
column contains HTML. When I display in a datagrid, it REALLY screws
with the formatting, not to mention the INSERT and UPDATE statements.
How can I best display ... more >>
ASP .Net connection to Sql Server
Posted by Dave Dudley at 1/11/2005 9:36:41 AM
Hi,
I have a new ASP .Net project that has been developed on our
development machine and connects to SQL Server 2000 on the same
machine. It is connecting via a connection string similiar to:
Data Source=[Machine Name];Initial Catalog=[Our
Catalog];uid=[Username];Password=[Password]
... more >>
ASP.NET and IIS 6.0
Posted by Kevin Jackson at 1/11/2005 9:30:52 AM
Does anyone know if the default username that ASP.NET pages run under on
Windows Server 2003 using IIS 6.0 is still ASPNET or is it different now?
It looks like they are being processed in the W3WP process now but I cannot
see which user context is used while executing an ASP.NET page.
Tha... more >>
Return db record from a function - how?
Posted by D. Shane Fowlkes at 1/11/2005 9:24:15 AM
This may be a very basic question but it's something I've never done before.
I've looked at a couple of my favorite sites and books and can't find an
answer either. I can write a Function to return a single value. No big
deal. But I want to call a Function from another Sub and the function ... more >>
Q: number of parameters in stored procedure
Posted by JIM.H. at 1/11/2005 9:23:02 AM
Hello,
I am using a stored procedure with 28 input parameter to insert to a SQL
table. It gives too many argument error when I compile my asp.net
application.
My asp.net application accepts data entry about employees and tries to
import is into a table by calling a stored procedure. If th... more >>
asp.net regex find items in quotes
Posted by Luis Esteban Valencia at 1/11/2005 9:21:35 AM
hello quite a simple one if you understand regular expressions vbscript and
..net, probably quite hard if you don't
i have a single line input which offers classic search functionality, so if
someone puts something in quotes i.e "A Gibbon" i want to extract that prior
to using the rest of the ... more >>
"Page" class and utility class
Posted by Diffident at 1/11/2005 9:21:04 AM
Hello All,
I have written a webform which is by default derived from "Page" class. I
have coded another utility class with few methods and an object of this class
is instantiated from the webfom class.
Methods inside the utility class set few global variables which act as
mediums of pers... more >>
Singleton design pattern
Posted by Diffident at 1/11/2005 9:01:06 AM
Hello All,
If I create a class based on Singleton design pattern, are the methods in
this class thread-safe?
Consider the following class:
Public class Singleton
{
public int Add(int a, int b)
{
}
}
If suppose I have a request A which calls the method with params as 1 and... more >>
Validators inside datagrid do not fire
Posted by Luis Esteban Valencia at 1/11/2005 8:51:26 AM
I have a asp.net page (C#), with a datagrid. I use template for all columns,
and have <asp:requiredfieldvalidator> in with one of the textboxes, to make
sure it's filled in. However, this validation is not firing, even when I
leave the field empty. Below please find the code:
[Code]
<%@ Page ... more >>
Programmatically creating template columns for datagrid
Posted by Luis Esteban Valencia at 1/11/2005 8:37:03 AM
Hi all,
I tried doing this with the aid of the following document:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskcreatingtemplatesprogrammaticallyindatagridcontrol.asp
This document shows you how to create template columns dynamically, but does
not show you... more >>
Object instantiations
Posted by Diffident at 1/11/2005 8:09:04 AM
Hello All,
Can someone please answer my question on how the following objects would be
instantiated?
- - - - - - - - - - - -
public class CustomPaging
{
private int _PageSize = 10; // Default page size
secure.WebServices.General objGeneral = new secure.WebServices.General()... more >>
XML Web Control
Posted by Jason . at 1/11/2005 7:17:47 AM
I am using the XML Web Control to retrieve XML data from another ASP
page. The ASP page is on a different website so I have to use the full
http:// path. But, when I test my page I get an error stating "... A
virtual path is expected."
Can I only reference a DocumentSource that is within ... more >>
Using a Web Setup to deploy to a server with multiple sites
Posted by BillGatesFan at 1/11/2005 7:11:25 AM
If your web server host multiple sites, is your only deployment choice
is XCOPY? Or can you create a web setup to deploy your web app? Every
time I use a web setup in installs to the same virtual directory. Is
this normal or can it be fixed? Thanks
... more >>
Create ASP.Net web app with command line
Posted by Mark at 1/11/2005 7:01:05 AM
Hello,
I'm trying to install an ASP.Net project using the command line (SDK tools
& perhaps IIS Admin scripts?)
Does anyone know of an automatic, command-line-driven way, to creat the
ASP.Net virtual directory, essentially mimicking whatever VS.Net does when it
creates a web project?
I... more >>
Dynamic Assembly Loading Strategy
Posted by BrianS at 1/11/2005 6:57:09 AM
What is the best strategy for dynamic loading private assemblies in asp.net?
I understand, and have confirmed, that any dll placed in the app's /bin dir
will get loaded on startup. This is not desirable.
I have a web service that, based on an input parameter, dynamically loads A,
B or C lib... more >>
how to screen scrape content + images
Posted by rachel at 1/11/2005 6:09:03 AM
Hello,
I am currently contracted out by a real estate agent. He
has a page that he has created himself that has a list of
homes.. their images and data in html format.
He wants me to take this page and reformat it so that it
looks different.
Do I use screen scraping to do this?
Could s... more >>
datagrid column widths - remember after postback
Posted by wh1974 at 1/11/2005 4:37:18 AM
I'm not sure if i'm heading in the right direction so would appreciate
any comments on what I'm trying to do.
Basically I have a DataGrid on a page which has columns whose width's I
set in the DataGrid's ItemCreated event and which need to be remembered
after a postback.
I bind to the DataG... more >>
DEVPATH assembly detection
Posted by e_zverev at 1/11/2005 3:35:02 AM
Hi
The question concerns the ways ASP.NET loads required assemblies into it's
app domain.
I know of a deprecated feature of clr assembly detection in which the use of
environment variable DEVPATH is involved. My problem is that this way doesnot
seem to work when I need to locate an assem... more >>
Any way to convert a file into XML document in ASP
Posted by Kishore at 1/11/2005 1:39:02 AM
1) Is there a way to convert a file (MPP format) into an XML document in ASP.
Is there any relation with XMLSerializer class with this. Can we use this
class to convert a file into an XML Document. The conversion need to be done
in coding as a web service using ASP/ASP.Net
2) How to import ... more >>
Postback on a derived page
Posted by seven at 1/11/2005 12:37:10 AM
I'm playing with page inheritence but I am currently stumped by postback, on
a page derived from a base class.
In my base page/class I have defined an HTMLForm object. It is instantiated
and added to the base page's control collection during the Init event of the
base page. I expose this ... more >>
|