all groups > asp.net > february 2007 > threads for monday february 19
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
where to define variable for whoel application?
Posted by michel at 2/19/2007 11:23:30 PM
Hi,
i created a class 'test' with a method 'descrlimit()' (no matter).
That method is used in a lot of pages in the application, so i need to put
this code a lot of time: "Dim odescr As New test"
In order to avoid that, i wonder whether it would be possible to put that
line in a central ... more >>
AddOnPreRenderCompleteAsync and no page content
Posted by phil at 2/19/2007 10:32:21 PM
I decided to use AddOnPreRenderCompleteAsync to avoid holding on to a
thread pool thread for too long. (I do some webserver I/O etc. during
the page build).
In the beginevent handler I fire up a new thread (not a thread pool
thread, but rather System.Threading.Thread) and within that thread I... more >>
Question about executing an ASPX locally
Posted by Jman at 2/19/2007 7:33:32 PM
Let's say I have a session variable in my asp.net website.
Now I have an aspx file on my C drive.
Now I have a link pointing to it so I can click on it and execute this ASPX
file to my browser. Only me has this file on my C drive and can execute it.
Other users will obviously get a page not ... more >>
Simple task works when MS SQL Server is the backend but not when MySQL is the backend.
Posted by Ted at 2/19/2007 6:32:09 PM
In MS SQL I used the following to create a stored procedure.
USE AdventureWorks;
GO
IF OBJECT_ID ( 'HumanResources.usp_My_Search', 'P' ) IS NOT NULL
DROP PROCEDURE HumanResources.usp_My_Search;
GO
CREATE PROCEDURE HumanResources.usp_My_Search
@searchstring varchar(40)
AS
SELEC... more >>
RegularExpressionValidator expression help
Posted by John at 2/19/2007 6:17:27 PM
Hi
I am using RegularExpressionValidator. What expression do I need to validate
these two;
Field1:
A9 9AA
A99 9AA
A9A 9AA
AA9 9AA
AA99 9AA
AA9A 9AA
Field 2:
99-99-99
A= Alphabets (A-Z, a-z)
9 = digits (0-9)
Thanks
Regards
... more >>
Non-code behind to code behind
Posted by John at 2/19/2007 5:44:05 PM
Hi
I have a non code behind web form done previously. How can I turn it into a
web form with an associated code behind file?
Thanks
Regards
... more >>
Detecting password reset?
Posted by john_c at 2/19/2007 3:10:34 PM
Using asp.net Membership, is there a way to detect a password reset so
that next time the user logs in, you can send them to the password
change page?
Thanks.
... more >>
Gridview bound to Datatable. Update doesn't work, need help
Posted by (eric.dehaan NO[at]SPAM gmail.com) at 2/19/2007 2:11:02 PM
Hello.
I have a Gridview on my webpage. To this gridview, I bind a
datatable. The results are correctly displayed. But after I edit
some values and trigger the [GridView1_RowUpdating] event, the
values [e.NewValues] & [e.OldValues] are empty. What am I doing
wrong?
Thanks in advance.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
newbie question on hyperlinks
Posted by Neil at 2/19/2007 1:54:20 PM
Hi I have this page which has a dynamically loaded product list. I need to
allow users to click on an item in the list and theis load up the next page
according to what they've clicked.
In asp I would just have a link such as range.asp?ID=<%code for RangeID%>
In asp.net (2.0) I have
<asp:... more >>
DataGrid Question
Posted by rn5a NO[at]SPAM rediffmail.com at 2/19/2007 1:39:04 PM
In my application, I want to populate all the directories & files
existing in a directory on the server in a DataGrid. To ensure that
all the directories get listed first followed by all the files, I am
appending all the directories with 0 & all the files with 1.
Moreover, each directory & fil... more >>
reset button and validation controls
Posted by Jay at 2/19/2007 12:56:28 PM
I've done a search and haven't seen any consensus on how to best handle a
form reset and ASP.Net validation controls. Basically, because of the
one-form constraint in ASP.Net I've written a little JS routine to clear
form fields. Now I need to also reset any validation controls. What's the
b... more >>
How to set property of control?
Posted by brett at 2/19/2007 12:13:52 PM
I have an aspx page with a user control (uc1) on it. There is a DIV
tag in the user control and I'd like to set its width. In uc1, I have
a private string varible with a value of "100px". In the DIV I do
this:
<div class="box" style="width: <%= uc1.boxWidth %>;">
However, when the aspx p... more >>
Classic ASP mixed with ASP.NET 2?
Posted by Dennis at 2/19/2007 11:47:33 AM
my company has a large web site written in old asp, vbscript, and a little
javascript.
I am trying to convert it over to ASP.NET C# as we add new features instead
of having to write the new items in both the old crap and new format.
I have one of the old pages calling an aspx page which d... more >>
Requsting another page.
Posted by Lucky at 2/19/2007 11:33:32 AM
Hi guys,
i'm stuck in very odd situation here, the problem is i need to ask one
aspx page to give me data from another aspx page. the flow in like
this:
Page1_load()
{
string value=requstPage2();
processvalue(value);
displayValue();
}
here the Page2 is one aspx page t... more >>
Availability list from Kraftware
Posted by mandarkraftware NO[at]SPAM gmail.com at 2/19/2007 11:12:09 AM
Hi All,
We have the following list of consultants currently available.
Name / Job Title
Summary
Ramchandran/Java
=B7 7+ years experience in the field of Software Development.
=B7 Expertise in full Software Development Life Cycle (SDLC)
=B7 Expertise in J2EE architecture and application ... more >>
VB Script
Posted by dhallmark NO[at]SPAM bestglove.com at 2/19/2007 10:55:40 AM
The following VB script stopped working after installing Internet
Explorer 7. This is done using an Intranet web site. Can anyone tell
me why it stopped working since it worked just fine prior to IE7.
<html>
<head>
<meta http-equiv=refresh content="3; url=http://www.bestglove.com/
vendornet... more >>
Binding custom object to formview
Posted by Ash at 2/19/2007 10:22:05 AM
Hi,
I have an object, for example User. User contains various properties which i
have been able to bind to successfully using wizards and the form view.
However if the class User has a property which is not a string, for example
a custom type Address which contains properties such as Stree... more >>
Invalid length for a Base-64 char array
Posted by Wayne Sepega at 2/19/2007 10:21:23 AM
I'm receiving the above error from time to time with one of our web pages.
What would cause this?
Thanks
Wayne
The following is the stacktrace from the exception:
System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. ---> System.FormatExceptio... more >>
Invalid length for a Base-64 char array
Posted by Wayne Sepega at 2/19/2007 10:17:40 AM
I'm receiving the above error from time to time with one of our web pages.
What would cause this?
Thanks
Wayne
The following is the stacktrace from the exception:
System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. ---> System.FormatExcept... more >>
DropDownChange
Posted by vncntj NO[at]SPAM hotmail.com at 2/19/2007 10:05:14 AM
I'm trying to show and hide web controls based on ListItem value
selected. I thought that if I put the values of the ID's in the
ListItem it would make it easier to acces.
<script runat="server">
protected void DropDownList1_SelectedIndexChanged(object sender,
EventArgs e)
{
... more >>
Web Site Project Property Pages?
Posted by Brian McCullough at 2/19/2007 9:49:51 AM
Hello,
I have a single Web Site Project (WSP, not Web Application Project/WAP). I
don't have a WDP project with this, so I don't have a need for a solution
file (.sln). I have noticed that my settings in the References, Build,
Accessibility, and Start Options property pages for my WSP are... more >>
Faxing from ASP.NET
Posted by Andrew Robinson at 2/19/2007 8:57:12 AM
I am working on a project that will require an ASP.NET web site to send out
faxes. Can anyone suggest a popular sulotion. Is there any pure Microsoft
option? via Exchange?
Thanks,
... more >>
Passing subroutine 'Sender' and 'e' (EventArgs) manually?
Posted by mj.redfox.mj NO[at]SPAM gmail.com at 2/19/2007 8:15:27 AM
Hi,
Pretty basic question, apologies but being a bit of a newbie I still
don't know the answer to this kind of thing!
I have a repeater which, upon databind calls a subroutine, as below:
ASPX PAGE
-------------------
<asp:Repeater ID="repAssigneeGroups" runat="server" DataSource='<
%#... more >>
Detecting Trust Level
Posted by Will at 2/19/2007 8:00:08 AM
Hello,
I'd just like to start out this post by saying I'm not a developer by
any means. I do have a question that falls into the developer realm
so I figured I'd give it a shot and ask here. I'm working with a
program that has issues running in medium trust. The code is being
rewritten to al... more >>
global fx
Posted by rodchar at 2/19/2007 6:23:08 AM
hey all,
could i make a function global in global.asax and call it from other classes
in the same assembly? If so, is this a good idea? How would i reference it
because when i type in global.(..) in the editor it doesn't give me any
public stuff.
thanks,
rodchar... more >>
Textbox postback issue
Posted by Badis at 2/19/2007 5:12:05 AM
Hi,
I have a textbox in my webpage where its postback property is set to true
and some code in textbox_changed.
when I first load the page and fire the Change event in the textbox fire OK,
BUT when I fire the event for the second time; nothing happened and the event
doesn't fire!!?
Ch... more >>
multiple asp:content's requires multiple datasources?
Posted by musosdev at 2/19/2007 4:17:54 AM
Hi guys
Just a general query regarding using the AccessDataSource within a website
which uses a MasterPage.
The layout of my content page is as follows...
<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" Runat="Server">
<h1><asp:Label runat="server" Text='<%# Eval("StoryT... more >>
window.showModalDialog in vb.net?
Posted by Garg at 2/19/2007 4:05:20 AM
Hi,
Could anybody tell me please what will be the vb.net equivalent of
window.showModalDialog()
I want to open a dialog window in my vb.net application and have to
pass certain arguments to that dialog window. I also want to recieve
certain parameters from the dialog window.
How do I ach... more >>
Avoid pop up blocker
Posted by NH at 2/19/2007 3:31:00 AM
Hi,
I have an invoicing system built in asp.net 2.0. Part of it automatically
opens up a new IE window using a bit of javascript. This is stopped by the
pop up blockers in IE.
Is there a way of opening a new window that doesnt get caught by the pop up
blocker?
thanks... more >>
Download file downloads the source page instead
Posted by Simon Rigby at 2/19/2007 2:52:01 AM
Hi folks,
I have this code that selects a BLOB from a sql 2005 database sends it
to the browser as a download. Unfortunately the resulting file
contains the rendered page that the download operation is in as
opposed to the file. Can anyone see what is happening?
protected void gvAttachment... more >>
how to create a pdf file in asp.net without using a third party software
Posted by reju at 2/19/2007 2:39:40 AM
I have an dataset/xml file which contains data.
I want to create a pdf file after some formating.
The main point is that no third parties can be used.
... more >>
eval function invb.net??
Posted by Garg at 2/19/2007 2:26:46 AM
Hi,
Could anybody please tell me how do I translate this line of code into
vb.net??
I am having problem with this eval function. What is the equivalent of
eval function in vb.net?
str1= (eval("strCallsDef" + document.all("lstPeriodType1").value))
... more >>
Input string not in correct format...
Posted by Garg at 2/19/2007 2:09:24 AM
Everytime I run my code, it shows an error that the input string is
not in correct format.
Could anybody tell me what is wrong with my line of code?
str3 = Integer.Parse(dropBasis3.SelectedIndex - 1, 10) + ";"
... more >>
getting at outlook inboxes programmatically
Posted by Mike P at 2/19/2007 1:58:11 AM
I am trying to get at different users inboxes programmatically (see code
below). It works fine, except for the fact that the logon line seems to
always logon to my local account rather than logging on to other
accounts on the network. Anybody know how to logon to other people's
accounts using ... more >>
not allowed to access the registry of windows vista
Posted by Anjana at 2/19/2007 1:49:06 AM
Hello
we creating a web application in ASP .net 2.0. we are trying to read font
file path from registry as below
Microsoft.Win32.RegistryKey registryKeyParen
registryKeyChild = registryKeyParent.OpenSubKey(subKey);
it's running in windows xp. but when we try to run this application in... more >>
window.close in vb.net??
Posted by Garg at 2/19/2007 1:39:36 AM
Hi,
If anybody could tell me what the equivalent of
window.close()
in vb.net??
Thanks,
Shivani
... more >>
Multiple Master Pages - Inheritance?
Posted by Rich at 2/19/2007 12:43:01 AM
Hi,
I want to use 2 master pages, one for the main part of the site, the other
for the admin pages.
They are quite similar, with many shared elements.
Ideally I would like to have a parent master page, which both of these child
master pages are based on, and in turn the final pages are ... more >>
isLeap function in vb.net?
Posted by Garg at 2/19/2007 12:40:22 AM
Hi,
I want to use an equivalent of isLeap function in vb.net.
Please tell me what would that be?
ret1 = (isLeap(document.all("lstYear1").value)) ? 29 : 28;
... more >>
Mask for text boxes
Posted by John at 2/19/2007 12:00:00 AM
Hi
I am using text boxes on a web form. How can I make it so users can insert
values only in the format 99-99-99 ?
Thanks
Regards
... more >>
Separate code file
Posted by John at 2/19/2007 12:00:00 AM
Hi
I have a button on a webform. When I double click the button to create click
event it is created in the same file (aspx). How can I tell vs2005 to create
the code in a separate aspx.vb file?
Thanks
Regards
... more >>
Focus in a dropdownlist
Posted by Gorka at 2/19/2007 12:00:00 AM
Hi,
I've done a function to put the focus in a dropdownlist and I've realise
that I have to click two times to display the items.
Do anyone know why??
... more >>
Which databind syntax to use
Posted by Kees de Winter at 2/19/2007 12:00:00 AM
Hello,
I am binding an ObjectDataSource control to a custom object. A Detailsview
shows the data from the object. "Normal" properties are shown allright, but
I cannot get array properties to be shown. For example:
This works fine:
(In DetailsView)
<asp:BoundField DataField="drivingDirectio... more >>
How to make Global Change to MS Document?
Posted by Muhammad Nasir Waqar at 2/19/2007 12:00:00 AM
Dear All,
I have 3000+ MS Word doucments in a folder and want to insert a header
(image file) and a
footer (some text) to all of these documents. Is it possible to write some
script (VBA?) and
have it insert the headers/footers to all the documents automatically?
Thanks in advance!
... more >>
How to launch a trigger in the update pannel with a return key pressed in a textbox?
Posted by jb at 2/19/2007 12:00:00 AM
Hi!
I whould like to lanunch an async postback trigger from an updated panel
when a user presses the key return with the cursor in a textbox, is that
possible?
Thanks,
Xus
... more >>
|