all groups > asp.net > april 2006 > threads for thursday april 13
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
Is this AJAX? (Sort of "Off Topic")
Posted by blueapricot416 NO[at]SPAM gmail.com at 4/13/2006 10:35:54 PM
I have some javascript in a standard HTML page that uses the ubiquitous
"XMLHttpRequest" to send data to a remote ASP page.
If that page "answers back" by sending a string using a simple
Response.Write, which I then use in the original HTML page to
dynamically update stuff, is this "AJAX"?
... more >>
New to ASP
Posted by Josh at 4/13/2006 10:05:01 PM
I have a client that has a list of products on a page. Every time we have to
update the list we have to re arrange the blocks with the names of the
products. Is there a way in ASP to do this so that we can just add the name
and link into a file then it can dynamically create the page? Here i... more >>
Translating ID bound to label in detailsView to NAME basing on different datasource.
Posted by H5N1 at 4/13/2006 9:17:41 PM
Hi there
First of all excuse me posting such simple (I guess) question, but I
didn't find the answer in tutorials.
I have a formView presenting records from some table. one of the fields
is a Category ID, which is a foreign key. in edit template I replace it
with dropdownlist, which is ge... more >>
Search engine software to integrate into ASP.NET site
Posted by Logan Noyes at 4/13/2006 8:16:01 PM
Can anyone recommend a good, reasonably priced software package for creating
search functionality on an ASP.NET site? The site has about 1000 pages and
the software package I seek would need to include a spider to traverse the
site and collect the data to place into the index. Does Microsoft... more >>
Anyone care to help explain forms authentication in 2.0?
Posted by Darrel at 4/13/2006 8:00:00 PM
I'm reading up on some tutorials on using forms authentication in ASP.net
2.0
I'm confused.
In 1.1, I created a table in my DB for users, wrote a page for the login
form, then added this to my webconfig:
<authentication mode="Forms">
<forms name="login" loginUrl="/login.aspx" defaultUr... more >>
asp.net 2.0 connectoin string (hopefully last question)
Posted by Darrel at 4/13/2006 7:44:49 PM
In a long series of trouble trying to migrate to 2.0, I'm pretty close to
getting it working. My connection string isn't liked by my query function,
though.
This is what I have:
<connectionStrings>
<add name="DBConn" connectionString="provider=SQLOLEDB.1;Data Source=[my
server's domain ... more >>
Framework 2.0 is installed on Server 2003 but IIS stays with ASP.NET V1
Posted by Jean-Marie at 4/13/2006 6:50:55 PM
Hi,
I have an issue with IIS installation in Server 2003 : I can't change
ASP.NET version from V1.1.4322 to V2.0.0727 in Service web extension tab of
IIS to make it match with my site. The web site is OK for a static normal
page, but give a HTTP 404 error for a static page made with Visual... more >>
how do yoiu ASP.NET from changing the id attribute????
Posted by Trevor Braun at 4/13/2006 6:37:21 PM
This is the dumbest thing I've seen in ASP.NET.
I'm trying to submit information from one page to another external (it's a
Moneris pay page), using post method of a form that has a Master page.
However, ASP.NET renames all of my hidden fields so that they cannot be
identified by the extern... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Parsing Request.Headers.ToString()
Posted by sck10 at 4/13/2006 5:44:08 PM
Hello,
I am using the following to retrieve header information from a webpage:
Request.Headers.ToString(). What I get is a huge string of data. How do I
go about extracting just the part that I need? Buried in the header is an
example: &SM_USER=sck10&
What I need to get is the value for... more >>
ASP.NET: Can't Kill EXCEL.exe with Office PIA
Posted by ChrisFrohlich at 4/13/2006 4:39:02 PM
I have been trying to use the Office PIA's to write an ASP.NEt page to:
1. Open a template workbook
2. Populate some data
3. Save the file back to the server
4. Quit Excel and free up Memory
I have been able to do all of the above steps except #4. Each time
Excel.exe persists in memory. ... more >>
Update Query in formview
Posted by Marcial at 4/13/2006 4:13:02 PM
Greetings all!
After a week of toiling I've finallay decided to post the code below with
hopes that someone can point out my error(s).
Basically I have a Gridview/Formview on a ASP.NEt 2.0 page.
When I select a record on the Gridview I'm presented with the corresponding
FormView Template... more >>
Good (and free) DateTime picker.
Posted by UJ at 4/13/2006 3:18:18 PM
Does anybody know of any good free datetime pickers for ASP.Net 1.1 ?
... more >>
call webservices in a farm scenario
Posted by Fabio R. at 4/13/2006 3:15:34 PM
To support a webfarm scenario, I'd like to use a webservice to update/delete
cache objects.
I have in my web.config the list of the local servers (192.168.0.1,
192.168.0.2, ...) and when I need to delete a cache object the webapp calls
http://192.168.0.1/webservice.asmx
http://192.168.0.2/web... more >>
Creating a web app. on another PC question.
Posted by dave m at 4/13/2006 2:54:51 PM
I'm a definetly a newbie when it comes to asp.net, so please be kind.
Using VS 2003 (vb), I want to create a new web application. I have no
problem creating a web app. on localhost, but when I want to create the app.
on another PC to be used as a web server (ex. Location:
http://123.123.1... more >>
Determine Debug Mode
Posted by Chuck P at 4/13/2006 2:54:46 PM
How can you determine if you are in debug mode in Asp.net 2.0
I thought I could look at the web.config compilation debug directive
but then I read this
http://odetocode.com/Blogs/scott/archive/2005/11/15/2464.aspx
which said the directive is ignored if you "Publish Web Site".
In my global.... more >>
ASP.NET 2.0 Tree Control and Navigation Controls - General Question
Posted by davidwank NO[at]SPAM gmail.com at 4/13/2006 2:54:46 PM
Hi.
Why is it practical to have the ASP.NET navigation controls based on
XML? I would love to just use databinding and then be able to
dynamically update the navgiation menu (e.g. for a product list).
I tried to use a dropdownlist with hyperlinks for navigation (not the
main navigation --... more >>
Help removing a reference in a web site
Posted by shawn NO[at]SPAM adova.com at 4/13/2006 2:51:10 PM
I am having a hard time finding an easy way to remove a reference to
another .net project that I am no longer using (ASP 2.0 - this was an
available option in 1.0).
Other projects have a list of references that I can simply look at and
delete a reference- with web projects, this does not seem ... more >>
setting up website inside a website
Posted by sck10 at 4/13/2006 2:41:47 PM
Hello,
Can you set up a website inside of a website. I have a main website at our
company: parentwebsite.web.company.com. In the path are a couple of
directories:
parentwebsite.web.company.com/boss1
parentwebsite.web.company.com/boss2
parentwebsite.web.company.com/boss3
Boss3 want... more >>
DataGrid Delete Problem
Posted by thebison at 4/13/2006 2:30:53 PM
Hi all,
I hope someone can help with this relatively simple problem.
I am building a timesheet application using ASP.NET C# with Visual
Studio 2003.As it is only a protoype application, my database has been
made in MSDE.
I have a DataGrid, and have inserted a delete link button into it
thr... more >>
Dictionary
Posted by Lespaul36 at 4/13/2006 2:27:44 PM
I am working on a website, but I need to find a free webservice that will
tell me if a word is a noun, verb, etc. I haven't found any yet....anyone
know of one.
... more >>
WindowsIdentity.GetCurrent()
Posted by Roger at 4/13/2006 2:27:02 PM
I have a desktop and laptop for development.
Both are xps and both are sp2 and both are update to date with
security patches.
On my desktop when I run the LogonUser api function call. It will
create a windowsidentity object and whom I am attemptting to log in
as, but if I look in co... more >>
Form field changes
Posted by momo at 4/13/2006 1:57:40 PM
Hi,
I have a page that contain almost 70 textboxes, dropdown boxes and
checkboxes. This page retrieves data from a table and display them in the
appropriate control. My dilemma is when I need to make a change to any of
the control. I want to be able to update the table fields with the ones ... more >>
How to reference web.config from class
Posted by Tom at 4/13/2006 1:55:02 PM
In my asp.net application, I have created a class for
global variables and functions, and I have placed
this in the app_code directory so it is available to all my pages.
That part has worked fine.
But now, I need to add a new funtion in this class which
needs to reference web.config. How do I ... more >>
ASP.NET 2.0 Dropdownlist will not post back
Posted by rmfisher96 NO[at]SPAM gmail.com at 4/13/2006 1:32:52 PM
We have converted our ASP.NET v1.0 to v1.1, and up to v2.0.
We have a DropDownList in the v1.0 code successfully posting back. Now
that the code has been converted into v2.0 we do not get the postback
to fire.
The line in the aspx is listed below:
<asp:dropdownlist id="glFSClassification" ... more >>
Best Practice for Inserting Data into SQL in 2.0
Posted by hooterbite NO[at]SPAM yahoo.com at 4/13/2006 1:26:36 PM
I have a simple form. I would like to insert the values from the form
into a SQL table. What is the best way to do it?
I assume that using a stored procedure is preferable to using the
UpdateCommand="Insert into..."
When using a stored procedure, is it better to use a SqlDataSource or
an Object... more >>
ArrayList and Structures VB.NET
Posted by mosscliffe at 4/13/2006 12:56:44 PM
Newbie struggling with VB.NET
I wish to create an arraylist of structures. I am very new to this
coding syntax, so bear with my poor syntax - please
struct mystruct
Fld1 as short
Fld2 as integer
Fld3 as string
Fld4 as short
etc
end Struct
dim myarraylist as arraylis... more >>
dropdownlist in FormView "has a SelectedValue which is invalid"
Posted by Dabbler at 4/13/2006 12:18:02 PM
In my Registrant FormView I have a DropDownList which loads data from a
secondary SqlDataSource "sdsOfficeParks". I need the user to select an office
park but save the selected value in the FormView's ObjectDataSource
"odsRegistrant" .
The following solution can't work because I need the dd... more >>
"Leaky" SessionState
Posted by fathelga NO[at]SPAM gmail.com at 4/13/2006 11:45:43 AM
We have a site that holds data about the user in session while they are
logged in. Everyone once in a while a user will log in and see someone
else's session state. Has this happened to anyone else? We are using
SqlServer SessionState. I cannot reproduce this and I can't find a KB
article on... more >>
Property returning a different type than declaration
Posted by Eniac at 4/13/2006 11:44:23 AM
Hi there,
is there any way I can make a property returning another type than what
is declared in the "as" statement ?
ex.:
public property Age as Integer
Get
return m_intAge
End Get
Set (Value as object) '<-- note that the SET accepts an object
If isnumeric(age) andalso ctype(valu... more >>
ASP.NET page bring someones data upon refresh
Posted by Radx at 4/13/2006 11:40:02 AM
Here in my web application, I have a data entry page with serval controls.
Some of the controls have autopostback is set true.
But the problem is when two or more people are entering data at the same
time, in the middle of my data entry , it is brining someelse data on my
screen.
I look ever... more >>
error: The operation has timed-out (executionTimeout?)
Posted by Jim Underwood at 4/13/2006 11:37:00 AM
I am having a problem with my web page timng out while retrieving a long
runnign report (90-120 seconds. I have tried modifying several settings in
various places and cannot get it to run for more than 90 seconds.
I am running VS.Net and the app is ASP.Net, written using VB.Net. The app
call... more >>
GridView ODS and ConvertEmptyStringToNull="false"
Posted by Andrew Robinson at 4/13/2006 11:08:14 AM
Woundering if anyone else has had issues with
ConvertEmptyStringToNull="false" ?
I have a custom data class and am passing values to it via an ODS. On my
insert, if the bound text box is empty an empty string or "" is passed to my
data object. On an update, an empty string is converted to null... more >>
Passing a reference to a User Control to a class in ASP2.0
Posted by Charlie NO[at]SPAM CBFC at 4/13/2006 11:04:45 AM
Hi:
I'm trying to pass a reference to a user control to a class. The user
control exposes its elements via properties. When I inspect parameter (user
control is passed to class using "this") I can see it's data in debugger,
but no way to access it in class code. I have tried casting to c... more >>
OBDC Oracle connection in a ASP.net web page
Posted by Ben at 4/13/2006 10:59:02 AM
Hi,
I have a problem connecting to Oracle using and ODBC connection in a ASP.Net
web page.
The TNS Names works fine because when I create a DSN it works, and it works
in SQL Plus.
Here are the error I get depending on the connection string:
Using the right server (Oracle 9i), and the N... more >>
application relative paths not working
Posted by Garann Means at 4/13/2006 10:47:02 AM
I have a subfolder under wwwroot set up as a virtual directory with its own
application name in IIS. I pulled it down from Visual Source Safe and, on the
machine where it's normally hosted, it works fine. On my machine, though, all
the application relative paths are resolving relative to wwwro... more >>
vb.net ItemDataBound equivalent
Posted by Ken Slight at 4/13/2006 10:03:02 AM
In C#, I use the following to bind ItemDataBound to a DataGrid:
grid.ItemDataBound += new DataGridItemEventHandler(OnContentItemDataBound);
Does anyone know the equivalent of this in vb.net?
Thanks,
Ken
... more >>
Embed the javascript file.
Posted by Jianwei Sun at 4/13/2006 9:44:14 AM
Hi, Dear guru,
I have a question on embed a javascript into the master page.
I put the following line
<link runat="server" type="text/javascript" href="~/column.js" />
under the head, but obviously, it's not called anywhere.
But if I put this line,
<script type="text/javascript" s... more >>
Event Procedure firing twice??
Posted by ShaneFowlkes at 4/13/2006 9:43:59 AM
I have a odd thing happening. I have a sub that is called upon a button
click and it seems to be firing TWICE. I have no idea how this is happening
but I suspect is has something to do with page_load and IsPostBack.
The page has a form that displays a record. The user can delete the record ... more >>
Update Database and Redirect to new page
Posted by jenileo at 4/13/2006 9:33:53 AM
Hello!
I'm fairly new to asp.net and I am struggling with getting my form to
post to the database and transfer the user to a new page. I am using
the FormView control. After the user completes the form, they click the
insert button. The insertbutton has command="insert" which is auto
generat... more >>
DateTime in dropdown
Posted by CSharpguy at 4/13/2006 9:14:01 AM
I'm trying to populate a drop down with dates from a data field in my data
base but I want the format like MM/dd/yyyy instead of 1/1/2006 12:00 PM
How can I my date to show as 1/1/2006?
I'm populating the dropdown via a dataset and doing a:
string time =
Convert.ToDateTime(dataset.tables[0]... more >>
Crystal "PrintToPrinter" will not print to Zebra Label Printer... HELP!
Posted by ATJaguarX at 4/13/2006 8:53:28 AM
I have a Zebra S500 and multiple S600 label printers.
http://www.zebra.com/id/zebra/na/en/index/products/printers/industrial_commercial/s600.html
They are currently being used in our legacy Foxpro application just
fine. We are upgrading to ASP.NET and Crystal XI. I need to automate
the pro... more >>
Datagrid Export to Excel - Report Headers
Posted by John Walker at 4/13/2006 8:09:02 AM
Hello,
Below is my code for exporting a datagrid to Excel. It works fine, but
we're going to need to somehow have a report header, user input parameters
and system date display at the top of the spreadsheet just to make it look
like a nice little report. Is there a way that this can be done... more >>
GridView disapears after selecting Edit
Posted by Michael at 4/13/2006 8:01:02 AM
Hi Everyone,
I have a gridview control with the following markup:
<asp:GridView ID="grdPOs" runat="server" AllowPaging="True"
AutoGenerateColumns="False"
BackColor="White" BorderColor="#CC9966" BorderStyle="None"
BorderWidth="1px"
CellPadding="4" DataKeyNames=... more >>
Object reference not set to an instance of an object.
Posted by bazzer at 4/13/2006 7:59:52 AM
im filling a datset with names of films and need to get the number of
films in the dataset. basically i want to know if its empty. but when
i try and get the number of rows it gives me the error: "Object
reference not set to an instance of an object" . I get this error from
the line:"Label3.Tex... more >>
Capture data before file upload
Posted by Chip at 4/13/2006 7:53:46 AM
I need to time a file upload using the 1.X HTML upload control. So I need
the time the upload started, which is problematic since no page processing
takes place until after the file is uploaded. Is there a way to write to the
form (lblUploadStartTime) before the upload begins using Javascript ... more >>
handling Radio buttons in Formview with ObjectDataSource
Posted by Dabbler at 4/13/2006 7:31:03 AM
What is the best way to handle data interpolation between form controls and
the actual sql data field. I have radio buttons that need to be interpreted,
form values that have to be translated.. e.g.
if (tbDaysDriveAlone.Text > 0) sb.Append( @"drive\");
if (tbDaysVanPool.Text > 0) sb.Append(@... more >>
RowFilter help needed
Posted by chris.withers NO[at]SPAM gmail.com at 4/13/2006 6:39:43 AM
Hi all,
I'm attempting to do something like the following SQL query:
SELECT * FROM `users` WHERE idusers != 3 | 2;
such as:
= "idusers <> 3OR 2";
But I get an error stating:
Cannot perform 'Or' operation on System.Int32 and System.Int32.
How can I use a range of values in su... more >>
Need help on CreateUserWizard control.
Posted by Learner at 4/13/2006 5:48:01 AM
Hello,
I have defined another textbox control in the CreateUserWizard
control and this is how I am trying to get the value of it in the code
behind page is below
im myStep As CreateUserWizardStep = New CreateUserWizardStep
Dim DealerShipIDvalue As TextBox =
myStep.ContentTemplateContainer... more >>
Validation Controls within user control
Posted by ticars NO[at]SPAM gmail.com at 4/13/2006 5:14:59 AM
I have a telephone number user control in which I need to validate the
data entered (Required field validation and regular expression
validation). The phone number is represented as 3 text boxes so I have
3 required field validation and regular expression validation controls.
I set the display... more >>
Calendar control - current month only
Posted by stevebuy NO[at]SPAM eircom.net at 4/13/2006 4:27:47 AM
Hi, I hope I'm posting this in the right forum.
I'm using a calendar control in a detailsview template (aspnet 2.0).
Its bound to data but in the edit view it always displays the current
month, not the month containing the date that the control is bound to.
How do I get it to display the month... more >>
Session variable trouble
Posted by aroraamit81 NO[at]SPAM gmail.com at 4/13/2006 3:18:17 AM
Hi,
I am facing a trouble. I have some Session variables in my code and
somehow my session variables are getting mixed up with other users.
For example User A has access to 10 companies and User B has access to
5, now when both of us hits to the server at the same time then their
session v... more >>
[Framework 1.1] HTTP and HTTPS form in one aspx
Posted by sebastien.varoteaux NO[at]SPAM gmail.com at 4/13/2006 3:05:03 AM
Hi all,
I have an aspx page which must contains two forms...
I know that it's impossible but my client wants a login form in all
pages...
The login must be secured and all the website can't be in https!
I can not modify action via javascript because the website must be
AA-WCAG compliant (Acc... more >>
Can't change mode in FormView
Posted by staeri NO[at]SPAM gmail.com at 4/13/2006 2:59:00 AM
I have a FormView with DefaultMode="Insert".
I want to change this to DefaultMode="Edit" with code but this doesn't
work. It's still in insert mode. I've used the following code:
Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)
FormView1.ChangeMode(FormViewMo... more >>
ATlas and Asp.net Client callback
Posted by Papanii Okai at 4/13/2006 1:48:18 AM
Hi Guys,
As we wall know Atlas is a fairly new feature everyone is talking
about (atleast at my school). Even though the idea of Ajax has been used in
the past i was wondeing if anyone could explain a few things to me.
Comparing the performance of both asp.net client call backs and ... more >>
Problem using a FormView with an HTML table in Edit/Insert templat
Posted by Lorenzino at 4/13/2006 1:27:02 AM
Hi, I have a problem with bindings in a formview.
I have a formview; in the insert template i've created a wizard control and
inside
it i have an HTML table with some textboxes bound to the sqldatasource of
the
formview.
If i put this textboxes outside the table everything works well, but... more >>
Simple, unsolved issue
Posted by Newbie at 4/13/2006 1:01:00 AM
Hi all,
Just want to comment on this thread.
Seems like every discussion about this matter (setting up DB provider =
for membership) and all the samples/references given by some MVPs always =
refering to LOCALHOST in their solution. Aren't they all forget that =
people build an ASP.NET appl... more >>
Is it possible to manually recreate Session state with session cookie?
Posted by Johndoe at 4/13/2006 12:16:53 AM
Hi,
I'm building a Web page with a Flash component that post some content to a
handler (ashx file). There is a known bug with Flash 8 running on Firefox,
whereby Flash will not send cookies (I believe only session cookies). This
poses a problem for my receiving Web page, because the latter ... more >>
|