all groups > asp.net > may 2005 > threads for friday may 20
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
General question
Posted by Steven at 5/20/2005 10:18:01 PM
Hello,
I have a website that is now a mixture of asp and aspx pages. The aspx
pages sort of hang off the main web site where they are all segregated into
their own directory. The aspx pages have a global.aspx page in this
directory where I have some session variables defined. Most of these
... more >>
Security application block
Posted by AVL at 5/20/2005 10:16:03 PM
Hi,
I want to use the Security application blcok in my application.
I installed the Enterprise library and read the documentation. but still
it's not very clear to me.
Can anyone suggest few sites where i can see practical examples of the
security block...it's urgent...............
... more >>
How not to have all files opened at start up?
Posted by EC at 5/20/2005 9:49:56 PM
I am using in VS 2003. All files in a Solution package I'm working on are
opened whenever I open the (.sln) solution file. I could manually close
about 100 of of these open file and then close the solution but the problem
happens again after I do some search & replace, which I need to do once a
... more >>
Special Characters in Query String
Posted by SMG - Idealake at 5/20/2005 5:33:56 PM
Hi All,
I have created an application which is working fine and is in about to
launch, now suddenly my mgmt says there are chances that Scrip ID( a
particular id and not prim key) may have special characters like '&,*,) or
/'
This data(field/key) I am passing this value as a querystring.... more >>
<label><div></div></label> allowed?
Posted by Josef K. at 5/20/2005 5:05:52 PM
Asp.net generates the following html when producing RadioButton lists:
<td><input
id="RadioButtonList_3"
type="radio"
name="MyRadioButtonList"
value="644"
onclick="__doPostBack('SitesRadioButtonList_3','')"
language="javascript" />... more >>
clone asp.net project
Posted by Tina at 5/20/2005 5:03:51 PM
what is the easiest way to clone an vs.net aspx project under another name?
thanks,
T
... more >>
Registry access error when try to open a odbc connection!!
Posted by Pietro at 5/20/2005 4:37:43 PM
When i open a odbc connection i get the following error:
System.Security.SecurityException: Requested registry access is not allowed
where can i set permissions to read the registry?
Thanks
Pietro... more >>
DatGrid.DataSource
Posted by Ruben at 5/20/2005 4:29:19 PM
I have this code DataGrid1.DataSource = inventario(cint(TextBox1.Text)) but
a want sent a val string and not a int, how I do that... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Big-IP and ASP.NET problem
Posted by smenaker NO[at]SPAM gmail.com at 5/20/2005 3:52:22 PM
I have simple APS.NET form hosted on two servers.
If I go directly to a server:
http://server[1,2]
it always works
If I go through Big-Ip it works sometimes, but simetimes I get an
error.
If I allow to sit on this page for few minutes and I click on submit I
get an error.
Thank you... more >>
Array Question
Posted by Shapper at 5/20/2005 3:28:50 PM
Hello,
I am trying to fill a DropDownList with some array values:
Dim cultureList(,) As String = {{"Eng", "en-GB"}, {"Port", "pt-PT"}}
ddlculture.DataSource = cultureList
ddlculture.DataBind()
It's working but I get 4 items in my dropdownlist:
[Text] [Value]
English ... more >>
Getting handle on contol programatically
Posted by Sosh123 at 5/20/2005 3:16:13 PM
Hi,
I'm sure there's a really easy way of doing this, but I haven't found it
yet.
I have a bunch of asp:hyperlinks. I have their IDs stored in a
database. I want to be able to pull a record from the database and get
a handle on the control with that ID.
I thought FindControl might w... more >>
allowDefinition='MachineToApplication' beyond application level error
Posted by Alex D. at 5/20/2005 3:15:04 PM
I upgraded one of my applications to beta 2. conversion seemed to work
OK, problem is when trying to build I get an error like:
it is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being... more >>
how to disable asp.net page auto post back?
Posted by junlia at 5/20/2005 3:10:03 PM
Does anyone how how can we disable the auto-postback feature in asp.net page?
I have to use a server side control in the page, but the auto post back
feature in it causes problems for me. Please help!
Thanks much,
Junlia
... more >>
2 buttons but want enter key in textbox to execute one buttons' click event?
Posted by Roger at 5/20/2005 3:00:17 PM
I would like to have the click event of one of two buttons to happen when a
person hits the enter key in a textbox on my aspx form.
Is this possible, or do I need to only have one button on the form?
thanks,
Rog
... more >>
Very strange thing. Why does this happens?
Posted by Shapper at 5/20/2005 2:35:05 PM
Hello,
I have this code:
[1] Dim cultureList(,) As String = {{"E", "en-GB"}, {"P", "pt-PT"}}
[2] Select Case Session("culture")
[3] Case "pt-PT"
[4] ...
[5] Dim cultureList(,) As String = {{"E", "en-GB"}, {"P", "pt-PT"}}
[6] Response.Write("1")
[7] Case "en-GB"
[8... more >>
can anyone help me with this simple XML example?
Posted by Milsnips at 5/20/2005 2:00:54 PM
hi there,
i am currently using the following code to generate an XML object, then save
it, then read the contents of the file - but i dont wanna save it, instead
read it directly after i;ve created the object.. see below:
------------------------------
Dim w As New XmlTextWriter(Server.MapPa... more >>
asp.net 2.0 beta 2 web site administation tool
Posted by Benjamin Fallar III at 5/20/2005 1:57:31 PM
hi,
i noticed that the PROFILE tab is missing in my Web Site Administration Tool
on my ASP.NET 2.0 Beta 2 web project.
please advise asap.
... more >>
Hide and Show Div on Page_Load
Posted by Shapper at 5/20/2005 1:41:56 PM
Hello,
I need to hide or show a div on page_load. How can I do it?
I have this in my aspx.vb file:
....
dloginerror.visible = "false"
....
But it says the name is not declared.
How can I declare it?
Is this the right way to do this?
Thanks,
Miguel
... more >>
Login page & Session data...response.redirect, server.transfer or ???
Posted by GreggTB at 5/20/2005 1:35:28 PM
I've got an page (LOGIN.ASPX) that receives the user's login
information. During the page load, it checks the credentials against a
database and, if validation is successful, creates an instance of an
object that stores the user's basic profile data (username, user type,
associated sales region,... more >>
static constructor - when fired in web application?
Posted by n_o_s_p_a__m NO[at]SPAM mail.com at 5/20/2005 1:12:56 PM
I have a method call in my static constructor which initializes 2
variables. I need to know when the static constructor (after the first
call) will be called. Does unloading the virtual directory and
reloading it call the static constructor again? I have heard that
changing the web.config forces... more >>
ASP.NET Webforms (insert, update, and delete records ) SQL Server and Visual Studio.net
Posted by kennethgrice NO[at]SPAM yahoo.com at 5/20/2005 1:11:59 PM
Hi,
I am new to ASP.net and visual studio.net.
I have created a new ASP.NET Web Application and have started with a
simple form.
I have created a simple test database that will store a person's first
and last name and their SSN. The primary key is an autonumbered field.
So I have made... more >>
Remove an Element from an Array.
Posted by Shapper at 5/20/2005 1:10:51 PM
Hello,
I have this Array:
Dim cultureList(,) As String = {{"English", "en-GB"}, {"Português",
"pt-PT"}, {"Espanol", "es-SP"}}
How can I remove the second element of this array?
Thanks,
Miguel
... more >>
Please help with Forms Authentication..
Posted by Brian at 5/20/2005 12:45:14 PM
I am trying to create a secure site for my client.. I used Forms
Authentication against a SQL database to login. There is one section
where the user must answer some questions. If the user answers them
incorrectly, it is supposed to automatically log them out, which works
fine. However, if the... more >>
HOWTO: Get Querystring Passed To Referring Page
Posted by Dan Sikorsky at 5/20/2005 12:37:40 PM
How can I get the Querystring passed to the Referring Page from its
referrer?
I don't want the querystring coming to my current page. I want the
querystring that came to the referring page, so that I can check for the
existance of a parameter value in that previous querystring.
... more >>
RequiredValidator not working
Posted by tshad at 5/20/2005 12:30:15 PM
I have the following:
<asp:textbox id="ProfileName" columns="45" runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="ProfileName"
Display="Dynamic"
Text="Name Required"
runat="server" />
I also have an imagebutton that goes to a ... more >>
serverside RequiredValidator not working FireFox
Posted by TJS at 5/20/2005 11:51:50 AM
I am finding that the serverside requiredvalidator doesn't fire in the
firefox browser, and user request proceeds through to my updateProfile
method. Validation is working correctly in the IE browser.
Anyone seen this problem or have any ideas why this might be occurring ??
(I have web.co... more >>
ItemDataBound on asp:listbox?
Posted by Dave at 5/20/2005 11:42:06 AM
Hi,
Is there a way to capture an ItemDataBound event on an asp:listbox when it's
bound to data? I don't see it as a available when I try to create an event
handler.
Dave
... more >>
table disappears!
Posted by Yuki at 5/20/2005 11:28:21 AM
Hi all!,
I need some help with a table.
I have a table with one row. In my page_load event, I use a function which
populate this table, creating HtmlTableRow, HtmlTableCell and adding in the
table (runat server). When I do any post in this page, the table disappears!
Anybody can help me ... more >>
onunload
Posted by Angel at 5/20/2005 11:24:16 AM
I am trying to capture when the user clicks the X button on the ie window. I
have used the onunload for the window event, but there is a problem. I put
javascript code for this event and when the form performs a postback on the
page, the onunload event gets triggered eventhough I am still on t... more >>
HTTP Handler
Posted by vibs at 5/20/2005 11:23:35 AM
I have created a filter to change the contents of the page. When
I use the filter in the HTTPHandler, the page is blank. However, it works
correctly on the page load. Any pointers??
Here is my code
public void ProcessRequest(System.Web.HttpContext context)
{
System.Web.HttpResponse objR... more >>
Dynamically creating a web form with server controls
Posted by Patrick at 5/20/2005 11:23:27 AM
I want to define a set of web-form templates in XML and render the equivalent
web-form with ASP.NET, then process any input server controls on the form.
Reading the XML file from Page_load is easy, but
1) How do I set about dynamically creating user controls (like TextBox,
TextArea)
--- sim... more >>
Q: scrollbar on datagrid
Posted by JIM.H. at 5/20/2005 11:17:00 AM
Hello,
Is there any way I can put horizontal scrollbar on the datagrid. I have lots
columns and I need to show it in the scrollbar.
Thanks,
Jim.
... more >>
ASP.NET and web server help
Posted by Kaushik Mandal at 5/20/2005 11:15:06 AM
Hi
I have a question about .NET compatible web server . We have recently
change our web development to ASP.NET from ASP . But we are still using
the same web server set up we used for our ASP development . What
changes do we have to make on the web server to make it ASP.NET
compatible ( ... more >>
Session Variable
Posted by Michel Lapointe at 5/20/2005 11:03:11 AM
Hello,
Does anyone know if it is possible to set a session variable when a user
click on a HyperLink?
Thank
ML
... more >>
Easy Question. Create a datagrid filled with data without any code on web page?
Posted by Roger at 5/20/2005 10:48:28 AM
I am using visual studio 2003. I user the server explorer and drag a table
onto a webform.
The program creates a "Connection" and an SQLDataAdapter Generates the
"Select, Insert, Delete" statments.
I right click on the SQLDataAdapter and chose Generate Dataset.
I drag a datagrid on to t... more >>
Authorization
Posted by Shapper at 5/20/2005 10:43:00 AM
Hello,
In my web site I need to restrict the access to page1.aspx, page2.aspx
and page3.aspx to users which had login and which access level is
"administrator".
The remaining pages can be accessed by all users without needing to
login.
My problem is how to set this in my web.config <a... more >>
System.Diagnostics.Process in ASP.NET
Posted by Wojtek at 5/20/2005 10:35:12 AM
Hi,
I am having problems to fetch the output of a command line program from
an ASP.NET application. My code works fine in a regular Forms or command
line application, but when running the same code in ASP.NET it hangs
indefinitely. I can see in the Task Manager that the command line
start... more >>
My Asp.net aspx page always reports HttpMethod is "GET" even it is "POST" from client, ?
Posted by Jeff at 5/20/2005 10:27:33 AM
Visual Studio 2003
DotNet framework 1.1
Windows 2000 Pro
I create two pages in an Asp.net application, one is html page with a form
in it:
....
<form id="testForm" method="post" action="test.aspx" runat="server">
<input type="hidden" id="hiddenTest" value="hello, world">
<input type="sub... more >>
SessionId and New Window in IE
Posted by Patrick Paquin at 5/20/2005 10:08:47 AM
Hi,
When a user of Web application makes "File - New - Window" or Ctrl+N in IE,
the user obtains 2 windows IE having the same SessionId. This generates a
problem when, in one Web form, we use a variable of session to store a
dataset. The fact that the user browses with 2 windows on the same
a... more >>
xslt, xml, and web controls
Posted by Stephen at 5/20/2005 9:53:03 AM
I have a little predicamnet. I have two xml controls on my page. Both
are menus for my site. The first (Category) needs to set the data
source of the other xml control. To do this I created an xslt file
that generates the value of each item in the first xml file as
hyperlink. Easy enough. ... more >>
Credit Card Processing
Posted by tshad at 5/20/2005 9:41:40 AM
I am looking to connect my asp.net pages to a credit card processor, such as
ICVerify.
I used to be able to read and write to a text file: credit card
authorizations, cancelations, get responses from credit card processors etc.
I want to completely automate the process and wanted to find o... more >>
For how long will an ASP.NET process hold resources?
Posted by Lau Lei Cheong at 5/20/2005 9:40:15 AM
Hello everyone,
I was believing that the life of ASP.NET objects will end as soon as the
origionating Page object transmitted the response stream and frees, even if
you haven't explicitly free the objects, but now I'm not quite sure.
It happened to me that I have a ASP.NET page tha... more >>
Can I easily trim the whitespace for a databound HyperLinkColumn?
Posted by Sean Aitken at 5/20/2005 9:36:40 AM
Does anyone know the easiest way to trim the whitespace from a CHAR(...)
bound value coming from a database and used with a HyperLinkColumn?
In this case, the column is setup using:
....
<asp:HyperLinkColumn Text="Edit Taxes" DataNavigateUrlField="AccountID"
DataNavigateUrlFormatString="TaxDe... more >>
Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount.
Posted by George Smith at 5/20/2005 9:36:18 AM
In a data grid when the user clicks the "Next" or "Previous" navigational
links I am getting the above error message.
That happens only in the following scenarios.
1.. I am listing all the search results in the grid.
2.. User clicks the next button. Next set of result will be displayed.
... more >>
Remove DLL from GAC in Framework 2.0
Posted by Diego F. at 5/20/2005 9:24:11 AM
Hi. I want to delete an assembly registered in the GAC, but I get an error.
How can I remove it? I'm using VS 2005 beta1 and the assembly is in the GAC
from framework 2.0
--
Regards,
Diego F.
... more >>
System.Data.SqlClient.SqlException: Subquery returned more than 1 value.
Posted by Rod at 5/20/2005 9:17:55 AM
I have a client site where the code below has been working happily for at
least four months. The site is using SQL Server 7. The code is ASP.NET
Last week an error appeared related to the following SQL statement.
INSERT INTO OrderItems (ClientID, ProductID, OrderHeaderID, Quantity,
Dispatc... more >>
Raising events in a control
Posted by Martin at 5/20/2005 9:15:27 AM
Hi,
I have been having trouble rasing events in my custom (composite) server
controls.
To demonstate my problem I put a small control together with a single button
on it and included the code below.
Now what I want is when the button is clicked I wish to catch the event
(this is happening... more >>
table lookups
Posted by rodchar at 5/20/2005 8:11:04 AM
hey all,
i have an asp.net page that has several drop down lists objects on it. The
data that I will be binding to each of these drop down lists will come from a
single standard lookup table.
My question here is would a DataViewManager object help in this instance?
(Also, I guess I'm try... more >>
Printing Files using ASP.NET
Posted by Luiz Rossi via .NET 247 at 5/20/2005 8:09:17 AM
(Type your message here)
I have this kind of files .doc (MS Word), .xls (MS Excel), .xml , .pdf etc
I need to print this. My project is created in ASP.NET and VB.NET.
How can I do that? Do I must to use JavaScript for that?
Thanks
--------------------------------
From: Luiz Rossi
... more >>
Words to Watch Out For
Posted by Kevin Spencer at 5/20/2005 7:23:40 AM
Greetings Fellow Inmates,
My partner in crime and I have been compiling some observations regarding
key words and phrases to watch out for in newsgroup postings. Employing an
understanding of these key words and phrases can save you a lot of grey
hairs and wasted time. Think of them as a fo... more >>
Uplaoding 7 images crashes the page
Posted by sameer at 5/20/2005 7:21:10 AM
guys,
this is a pretty bizare issue, i have an ASP.NET page( VS 2003) , frame
work 1.1.
I have 7 file browser control on the page with 7 images boxes. User browses
to his local file directory using file these browser control and selects the
images to upload. They can select 7 images in 7 f... more >>
Retrieving a literal value from a datagrid footer
Posted by nathan.cutmore NO[at]SPAM burohappold.com at 5/20/2005 7:08:31 AM
BACKGROUND:
I have a bound datagrid with the following code -
<asp:datagrid id="dgla" OnItemCommand="declareDatagrid">
....
<Columns>
<ItemTemplate>
<asp:Literal id="lbOnLoan" Runat="server" />
</ItemTemplate>
<FooterTemplate>
<asp:Literal ID="lbTotalOnLoan" Runa... more >>
To change color with a push-button
Posted by Mirco at 5/20/2005 6:58:37 AM
I must make a aspx page that make these single steps:
1. when I open it is green
2. when I click a button it is blue
3. when I click the same button it is red
alternate 2 and 3
I have written this code but it does not work. Which thing I am mistaking?
[code]
<%@ Page Language="C#"%>
... more >>
OLEDB conn giving error
Posted by liju NO[at]SPAM emids.com at 5/20/2005 6:53:04 AM
Hi,
I am facing a problem while trying to execute a simple mdx query using
C# and OLEDB conn.
The code I am using is as:
// Create a OleDb(!!)-connection
OleDbConnection oleDbConn = new OleDbConnection();
// Set the connectionstring
oleDbConn.ConnectionString = "Provider=MSOLA... more >>
Templates?
Posted by pitdog NO[at]SPAM gmail.com at 5/20/2005 6:34:19 AM
Ok this may be a real lame question but I will ask it anyway. In
Visiual Studio is there any place you can define a template look of all
of you methods?
For instance. I have the same calls to my logger in every method like.
LogHelper.startMethod(mName, CLASSNAME);
LogHelper.endMethod(mNamd,... more >>
Trouble Deploying ASP.NET Application
Posted by fenway at 5/20/2005 5:43:57 AM
Hi,
I'm new to ASP.NET and just finished up a small application.
Essentially it's just a form that writes data to a CSV file on the
server after a user fills in the form. The code compiles and runs on
my development machine (VS.NET 2002) but when I FTP all the files to
the server I get a "Se... more >>
quick datagrid format question
Posted by NH at 5/20/2005 5:10:04 AM
Hi,
Is it possible to format the background of rows (or cells) in a datagrid
based on the value of the data in a particular cell. e.g. I have a datagrid
of say 21 records, 3 records per day of the week. Is it possible to place a
background color on the rows based on the day e.g. Monday reco... more >>
Null value
Posted by wrytat at 5/20/2005 2:39:07 AM
How do I check if an object is null in vb? I tried using IsDBNull but it
doesn't work at all. It gives me this error when I try statement like If Not
IsDBNull(theStock.WIPQty) Then:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the... more >>
USER CONTROL... ARHHHH
Posted by Tim::.. at 5/20/2005 1:41:07 AM
Can someone please help....
I'm having major issues with a user control I'm tring to create!
I an trying to execute a sub called UploadData() from a user control which I
managed to do but for some reason I keep getting the error:
Exception Details: System.NullReferenceException: Object re... more >>
Authentication in ASP.NET. Need an opinion.
Posted by Shapper at 5/20/2005 12:21:07 AM
Hello,
I am developing a web site where half of the pages are public and the
other half are accessible only to registered users.
The pages which are accessible only to registered users have content
which can be visible or not according to the user access level.
I was reading the Tutorial ... more >>
RegisterClientScriptBlock: What am I doing wrong
Posted by aaa at 5/20/2005 12:19:33 AM
I am trying to activate the following code on the click event of a popup
window.
If I comment out the lines where I assign the values to the hidden fields
the Parent page submits otherwise it does nothing. I don't get it.
I have used this code before. Any help is appreciated.
string s="<scrip... more >>
|