all groups > asp.net > may 2005 > threads for tuesday may 24
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
"Case" Question
Posted by Shapper at 5/24/2005 11:53:43 PM
Hello,
I have a "Select Case MyVar" in which I define the values of an Array
according to the value of MyVar.
I need to use the Array Values in a Loop after End Select.
It seems the Array is deleted on End Select.
How can I make it available for my loop?
Thanks,
Miguel
... more >>
How to get the size of an array?
Posted by Shapper at 5/24/2005 11:27:48 PM
Hello,
I have this for loop:
For i = 1 to 10
....
Next
I want to use the size of an array instead of 10.
How to determine the size of an array?
Thanks,
Miguel
... more >>
Setting DropDownList to a Default Value?????
Posted by Patrick Olurotimi Ige at 5/24/2005 9:10:10 PM
I have a DropDown Lsit set to
ddlGetDebtor.Items.Insert(0, "-Select Debtor Code-")
which is setting the "-Select Debtor Code-" to be default
And on PostBack i'm passng:-
Cmd.Parameters.Add(New SqlParameter("@DebtorCodeID",
ddlGetDebtor.SelectedItem.Value))
to to retrieve the Data
Debto... more >>
Code Behind Page
Posted by Shapper at 5/24/2005 9:08:11 PM
Hello,
When creating an ASP.NET/VB web site I place my code in a code behind
page, i.e., aspx.vb.
Sometimes I have functions which are common to all aspx files.
Is it possible in page1.aspx to use page1.aspx.vb and also a common file
named global.aspx.vb which will hold all the function... more >>
How to track download file from website?
Posted by user2008 NO[at]SPAM gmail.com at 5/24/2005 9:07:51 PM
Hi all,
I want to track how many times visitor download file from my website,
for example, when visitor click on a download link, a ASPX page will be
requested, after that it will redirect to a file stored on my web site,
final visitor will see open/save file dialog,
how to do that, or is t... more >>
PDF Creator Service for ASP.NET
Posted by alerine at 5/24/2005 8:46:07 PM
Just to inform the immediate availability of the PDF Creator Service 1.0
Convert any image kind into a PDF and use it on your ASP.NET applications.
Free trial version at http://www.prtc.net/~alerine/index.html
Thank you... more >>
SMTPMail Error
Posted by Wayne Wengert at 5/24/2005 7:48:31 PM
I have an aspx page in which I step through emails from a SQL Server table
and snd each a custom email message. The emails in that table are all valid
formats. When I run the page I immediately get the following error message:
----------------------------------
Exception Details: System.Runt... more >>
Tutorial/Guide help please
Posted by me at 5/24/2005 7:33:57 PM
Hello,
I am wondering if there is a specific site/page that would show how to scan
input from a textfield and look for and convert certian characters in too
special html code.
The example text input would be like this:
The stories of stem cell research <a
href="http://news.yahoo.com/s/ap/... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
URGENT: Resource file not loaded !!!
Posted by Jéjé at 5/24/2005 7:17:41 PM
Adding a listitem to a table cell
Posted by Hong Yip at 5/24/2005 6:57:29 PM
Hi Everyone,
I have an array of checkboxlist. Everything works prefectly fine until I
start working on the "presentation" view. I am not able to "insert" a
checkbox item to a table cell.
Something like that,
TableCell TCell = new TableCell();
TCell.Control.Add( .....);
Is there a ... more >>
web site sync
Posted by Simon at 5/24/2005 5:58:04 PM
Hi, I have a question to everybody.
There is some tool that permit me to synchronize a web application
(directory, files) developed on local site (development environment) to a on
line site ?
Or for who it has my same problem as you have resolved it ?
Thanks,
Simon.
... more >>
TextBox control doesn't show value
Posted by Paul D. Fox at 5/24/2005 5:10:25 PM
What causes the TextBox control to not show the changed value when I use
"TextBox.Text" ? I pre-populate it from a database, then allow the user to
change its value. When I get the value, it shows the old value.
Paul
... more >>
Building a complete HTTP URL
Posted by Rob Nicholson at 5/24/2005 5:02:06 PM
How do you build a complete HTTP URL inside a page/request. For example,
assuming I want to build a HREF to Pages/Page1.htm so that it comes out
like:
http://www.mysite.com/myweb/Pages/Page1.htm
I'm aware of the use of "~Pages/Page1.htm" but can't use that format in this
situation. Another ... more >>
howto get exception information from asp.net webservice, without try and catch
Posted by dan at 5/24/2005 5:00:44 PM
hi ng.
i have a asp.net application which is client of an asp.net webservice.
now i want to configure a custom error page (in case the sewrvice throws an
exception)
that provides the soapexception detail property as text.
but when defined in web.config, the error page doesn't provide access ... more >>
DropDownList Pain
Posted by KRM at 5/24/2005 4:54:02 PM
Have a DropDownList whose selection modifies child dropdownlists. I cannot
get the OnSelectedIndexChanged event to fire. In the aspx page I have:
<asp:dropdownlist onselectedindexchanged="UpdateDependentDropdown" ... >
In the code behind, in the InitializeComponent routine, I have:
this... more >>
Continuation question....
Posted by DC at 5/24/2005 4:40:13 PM
Thank you very useful.
Just another quick question, Im now getting
" Compiler Error Message: CS1502: The best overloaded method match for
'System.Data.OleDb.OleDbCommand.OleDbCommand(string,
System.Data.OleDb.OleDbConnection)' has some invalid arguments"
When I run the following code
... more >>
Default button in Datagrid EditItem
Posted by Olivier Matrot at 5/24/2005 4:00:08 PM
Hello,
I'm trying to define the default button in a datagrid EditItem.
The problem is that during the ItemCreated event, the UniqueID property of
the button is still in the simple form, not prefixed with the namespace of
the repeater control.
TIA.
... more >>
Biniding custom objects to DataRepeater
Posted by Neven Klofutar at 5/24/2005 3:32:08 PM
Hi,
How can I bind ArrayList of my object to DataRepeater ?
I have 2 classes:
public class Movie {
private String _Name = "";
private Double _Price = 0;
// getters and setters
public Item() {}
}
public class Items {
private Movie _Movie = null;
private Int16 _Quant... more >>
Preventing Multiple Logins
Posted by The Crow at 5/24/2005 3:22:56 PM
if a user logs in, i want other logged in user with the same credentials to
log out. how can i solve this problem?
... more >>
submit button dead after server migration
Posted by tatemononai NO[at]SPAM gmail.com at 5/24/2005 3:19:00 PM
I just migrated from one shared host to a new one. After moving to the
new server and getting all my MySQL database connections set back up I
have discovered that a few submit buttons on just a few pages no longer
work. When I test the code on my local machine in debug or release
mode, it work... more >>
Clientside Validation and Page.IsValid
Posted by Paul at 5/24/2005 3:06:46 PM
Hi Guys and Girls
I am trying to disable the clientside validation (Required Fields) by
using the ValidatorEnable(id,false), which works find from the point of
view that the client side script is disabled.
The problem that I am having is that Page.IsValid is still returning
false even thoug... more >>
Send value from a asp.net page to a regular asp page..
Posted by msnews at 5/24/2005 2:29:28 PM
I am collecting a value in a textbox on an asp.net page and need to open an
asp page and pass the variable containing the value or just the value to
that asp page so I can use it in the vbscript as an arguement
be gentle.. I'm new to this..
PS. I have not been able to convert the ASP pa... more >>
CRUD in SP or Dynamic SQL
Posted by MattC at 5/24/2005 2:10:05 PM
Hi,
I'm implementing a new Business Layer in one of our applications. I'm
toying with the idea of placing all the Create, Read, Update and Delete SQL
in the object in question and build a dynamic SQL string using a class
builder.
The pros I can see are:
It reduces the number of stored pro... more >>
Re: Small Error ASP.NET C#
Posted by BJ-Mac Donel at 5/24/2005 1:49:30 PM
Please check out , i hope anyone can help me.
thanks & best regards,
dorei
here is my class file
classes/DbConn.cs
****************
using System;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
namespace KhmerSourceCode
{
/// <summary>
/// Summary des... more >>
Non-existent page is not throwing 404 error
Posted by Joel D. Kraft at 5/24/2005 1:32:01 PM
I've been logging a lot of fatal errors on my site lately, and I
have not been able to figure out why.
First, my site has error handling pages defined globally as shown
below. They are not overridden at any point in the configuration.
<customErrors mode="RemoteOnly"
defaultRedirect="/s... more >>
Updating Dataset
Posted by Richard at 5/24/2005 12:24:35 PM
Hi
I am new to ASP.NET and I'm trying to follow the following MSDN
Walkthrough
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughusingdatagridwebcontroltoreadwritedata.asp)
regarding datagrids and pushing and pulling data from a database.
I am using ... more >>
creating usercotrols from webcontrol
Posted by Ersin Gençtürk at 5/24/2005 11:41:24 AM
hi , I am trying to add a usercontrol to the control collection of a
webcontrol but I get "Object reference not set to an instance of an object."
errors.On the other hand , by changing the code creating Usercontrol to
create a Webcontrol (label ,textbox etc) I can use it successfully.I think
th... more >>
Controlling what kind of HTML is emitted by standard web controls
Posted by TR at 5/24/2005 11:20:42 AM
Is it possible for the developer to control how, say, a RadioButtonList is
emitted? Could it be emitted as a <UL> instead of a <TABLE>? If possible,
I'd be grateful for links that show examples of how this is done, or what
the conventional terminology is for it.
Thanks
TR
... more >>
Open new browser window
Posted by PawelR at 5/24/2005 10:51:36 AM
Hello everbody,
In my apps I have list of employees. I want after click on name show new
browser window with detail of employee.
I know how open info in current window but don't know how open in other
(new) browser window.
And second problem how hide toolbar in new window and how set property... more >>
Injection Attack
Posted by TCORDON at 5/24/2005 10:02:36 AM
What is the best way to protect a site against it? Does anyone have a RegEx
to help validate user input?
TIA!
... more >>
Question about ExecuteScalar() function in ASP.NET
Posted by bienwell at 5/24/2005 9:50:18 AM
Hi all,
I have a problem with using myCommand.ExecuteScalar(). My question is :
If the Web setup is incorrect, does it make command ExecuteScalar() work
improperly ?? In my program, I was using ExecuteScalar() to count the
number of records from the query. The return value is always 0. I... more >>
Any help here???
Posted by DavidS at 5/24/2005 9:40:47 AM
Have Visual Studio.NET installed on MS 2000 Professional OS laptop. No issue
ever with web development and SQL connections.
Purchased new laptop with XP Professional SP2!!!!!!!! & Visual Studio.NET
installed.
Nothing but headaches. Continually getting
System.Data.SqlClient.SqlException : T... more >>
Adding Http Headers..
Posted by Ale News at 5/24/2005 9:36:58 AM
Hi to All..
I must add some custom headers HTTP and then i would to read them..
I used the AppendHeader Method to add my headers but when i try to read
the headers i can't see my custom ones..
why this?
i've read the headers with Request.Headers collection..
i can see only the default http ... more >>
Retrieving Forms Authentication Cookie
Posted by angela at 5/24/2005 9:31:03 AM
Hi,
Quick question:
I have set a persistent cookie on my login page and have the following
in the web config.
<forms name="BeanAppAuth" loginUrl="Login.aspx" protection="All" />
I know I can do this:
Dim objUserIdentity As FormsIdentity
If User.Identity.IsAuthenticated ... more >>
Update button in datagrid causing validation elsewhere on page
Posted by David Colliver at 5/24/2005 9:21:32 AM
Hi all,
I am having a slight problem that hopefully, someone can help me fix.
I have a form on a page. Many items on the form have validation controls
attached.
Also on this form are linkbuttons which must not cause validation. I have
found a setting "causeValidation" to disable the valid... more >>
Displaying Message When DataGrid is empty
Posted by Bidarkota at 5/24/2005 9:20:19 AM
I need to Display DataGrid Headers and the "no records" message when the
DataGrid is empty, is there any way to achieve this.
Thank you... more >>
Update text property of asp label control on a webform
Posted by nospamjac NO[at]SPAM pobox.com at 5/24/2005 9:12:41 AM
Hi,
Is there a way to update the text of an asp:label on a webform without
refreshing the entire page? What is called by button clicks and other
events that refresh a webform control?
See the example WebForm1.aspx and WebForm1.aspx.cs code below:
WebForm1.aspx
============================... more >>
Urgently need help in drop down list..thanx
Posted by Joey Liang via DotNetMonster.com at 5/24/2005 9:05:01 AM
Hi all,
I am new in asp.net, i encounter some problems in using drop down
list and datagrid. I have manage to bind the data into datagrid but i
wanted to bind the data into the datagrid accroding to the selected brand
from the drop down list. I do not have any idea how to do it. Does anyon... more >>
Adding Controls to the datatgrid at runtime
Posted by Shilpa at 5/24/2005 8:04:36 AM
Hi ,
I am shilpa.
I have one grid. I am adding data to teh grid thorugh xml.
Now i have to create a hyperlink colums when i add data to the grid
depending on the value selected in another drop down.
How do i do this.
Please Suggest.
Thanks and Regards,
Shilpa
... more >>
Visual Web Developer performance.
Posted by Stephen at 5/24/2005 7:47:10 AM
I have been using web matrix, which I love, for my web development. I
downloaded vwd beta 2 and I have to say it is almost as bad as opening
VS 2003 from a performance standpoint. Don't get me wrong, I like
alot of the features but it almost brings my computer to a screeching
halt when it is ... more >>
select textbox.text
Posted by Ruben at 5/24/2005 7:34:10 AM
I have this code, I need see in textbox.text all my information, how I do that
Function Consultas(ByVal usuario As String) As System.Data.DataSet
Dim connectionString As String = "server='Sistemas'; user id='sa';
password=''; database='Sistemas'"
Dim dbConnection As System.Dat... more >>
opening files in Netcape 7.2?
Posted by Eych at 5/24/2005 7:27:30 AM
if I have Response.Redirect("file:///C:/Temp/test.txt") in code, in the
Netscape window I get "Object moved to here", where 'here' is
hyperlinked to "file:///C:/Temp/test.txt". I can drag the link and
open it in a new tab, but how can I get it to open initially?
thanks.
... more >>
Cannot reference page classes
Posted by Kevin Lawrence via .NET 247 at 5/24/2005 7:25:28 AM
Hi
I'm using Beta 2, I haven't tried Beta 1 yet so I'm not sure if that's relevent.
Why can't I reference my WebForm classes?
For example I want to put a static method on a WebForm class so that I can pass an argument to it, however I can only reference certain classes in the ASP namespace.... more >>
Performance of Data View row filter
Posted by Sundararajan at 5/24/2005 7:22:04 AM
Dear Folks,
Please clarify me on whether a filter on dataview is a performance
bottle neck. we know that
we cannot apply successive filters to a data view. so the better way is
having the 'And' condition in the
Filter expression. suppose i have some 4 and conditions in my filter
... more >>
Bind a SQL table to a dropdownlist at design time? Surely it can be done?
Posted by GG at 5/24/2005 7:17:01 AM
I have a typical ASP page with a dropdownlist web form control. I want
this to auto-populate from a column in a sql table.
I've tried dragging a sql connection data control onto the form, played
with data binding, everything! I'm sure this is easy, can anyone point
out the steps I need to take... more >>
directory listing details
Posted by Kurt Schroeder at 5/24/2005 7:14:04 AM
I have a simple directoy list bound to a datagrid. I can get the file names,
but is there a way to get the file information from system.io.directory. I'd
like to get file size, creation date, and dropping off the the path from the
file name would not hurt. This can all be done, i know, but i'd... more >>
Formatting Textarea characters
Posted by I am Sam at 5/24/2005 6:12:12 AM
Is it possible to take highlighted inputed text in a textarea textbox and
make it bold before it is posted to the server? If so does anyone know any
web tutorials that will help me?... more >>
dropdown list in datagrid
Posted by dollar at 5/24/2005 4:41:49 AM
I would like to use a DropDown List in a TemplateColumn in the DataGrid
WebControl.
How can I define the content of the dropdown list (Load it
dynamically from a DB Table)?
also i need to update it, how? pls help.
--
dollar
-----------------------------------------------------------... more >>
BinaryWrite cause problem with browser Back button
Posted by magnus_p321 NO[at]SPAM hotmail.com at 5/24/2005 4:39:30 AM
I want to generate a report and display it as a pdf in a WebForm
(RptForm). To generate the report I need to pass some (sometimes a lot
of) parameters from a WebForm (WebForm1).
The report looks fine when I use Response.BinaryWrite to create it:
oStream = (MemoryStream)oRpt.ExportToStream(Cr... more >>
problem in HttpWebResponse GetResponse
Posted by Taner Özyürekoglu at 5/24/2005 3:31:33 AM
I have an error below. is there any idea about it.
Dim Req As HttpWebRequest =
WebRequest.Create("https://certification.authorize.net/gateway/transact.dll?"
& postdata)
Response.Write("3")
Req.Method = "POST"
Req.AllowAutoRedirect = True
Req.Proxy = System.Net.WebProxy.GetDefaultProxy()... more >>
Page_load not fired after some time of inactivity
Posted by Michal Kostic via .NET 247 at 5/24/2005 3:20:30 AM
Hi
I am encountering following ASP=2ENET problem:
In the Page_Load event I initialize connection string of a sql=
connection=2E This works fine most of the time, but when the user=
continues using the page after long time of inactivity (he/she=
kept the IE window open for e=2Eg=2E 20 minut... more >>
Guest Account
Posted by JessyEzzy at 5/24/2005 3:04:03 AM
I want to have 2 types of accounts of which users can use to login through
the site, either a user account that is created through registeration or
login as a guest.
I have no problem with the user accounts, the problem is with guest account,
I want if a user chooses to login as a guest he ... more >>
Calendar Control
Posted by AllanD at 5/24/2005 2:58:23 AM
Hello everyone,
I seem to be having a problem with getting the Calendar control that
comes with Visual Studio to trap for the OnSelectionChanged event. When
I click on a date in the calendar a postback is made and control goes
back to the first page of my application. It never reaches the code f... more >>
Sqlparameters and Stored Procedure
Posted by Patrick Olurotimi Ige at 5/24/2005 2:46:59 AM
Is it possible to pass a UserID parameter to a SProcedure and retrieve
only the fields the UserID is associated with.
I have a table with fields for example:-
userid | Code
1 | erf344
2 | fergt
3 | hrg33
So if a user is logged with UserID ="1" then it should get only the c... more >>
Postback of User Controls
Posted by Vishwanathan Raman at 5/24/2005 12:02:02 AM
I have two user controls Control1 and Control2 (.ascx) dependent on each
others input.
When the Web Page containing this control gets posted back I have some logic
to determine a value in Control1 that is an input to Control2.I find that I
am unable to achieve this because the Control1 post... more >>
|