all groups > asp.net > july 2004 > threads for thursday july 15
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
WebForms and timeouts / loss of session data
Posted by Billy Horne at 7/15/2004 11:16:23 PM
Hi - I need to write a basic order page for our web site. It is very
straight-forward, in that we don't need a whole "shopping cart" system.
Instead we just need a list of products displayed with a quantity field, and
when they submit the form it then collects payment info, then they submit
aga... more >>
ADO.NET via Javascript
Posted by Angel at 7/15/2004 9:15:03 PM
Is there any code out there that explains how to perform a connection to a SQL Database and returning a Dataset using Javascript. Unfortunately all the examples on MSDN are C++, C#, and VB.NET.
I'd like to perform certain functions on the client without having to send the entire page to the serve... more >>
A page can have only one server-side Form tag.
Posted by Ray Cacciatore at 7/15/2004 8:59:01 PM
My login.aspx page uses a MasterPage and is implemented as a Content page. However, I keep getting the error "A page can have only one server-side Form tag." when I run it. Yet there is not FORM tag in my Content page.
One thing to note is that my login.aspx page was originally created in VS.NET ... more >>
smartnavigation WebUIValidation.js
Posted by ddt.demos.su at 7/15/2004 8:52:41 PM
I have had some problems with using Samrtnavigation.
Using a frame solution where initially a datagrid is displayed, which when
an item is selected hides the datagrid panel & presents a panel of controls
that have validation.
Without smatnavigation this works fine, with it enabled the error mess... more >>
Clearing a datagrid
Posted by Asha at 7/15/2004 8:46:02 PM
greetings, how can iclear a datagrid content?... more >>
Putting a user control into the Global Assembly cache
Posted by xinli11 NO[at]SPAM gmail.com at 7/15/2004 8:21:44 PM
I am writing a database searching system that will be shared across
about 30 or so websites. A while back I asked how I can share the
business objects among the 30 websites, and was introduced to the
global assembly cache.
Now I need to do the same for a user control that I'm developing.
It... more >>
portal
Posted by Mike at 7/15/2004 8:13:36 PM
I need some help, I need to create a "sports portal" application with a left
side nav bar which is permanent.
the nav will have NFL, NHL, etc. and in the "white space" of the portal will
display modules linked to NFl, NHL, etc.
I looked at dotnuke and that looks like it won't work for me, All th... more >>
Confused about project references / data access application block
Posted by EO at 7/15/2004 7:51:26 PM
I am trying to use the MSFT data access application block on 3 machines.
Machine 1:
Sandbox environment; I installed the application block with the msi. The
Sqlhelper class compiles & runs great! (Also the SqlhelperParameterCache
class; I'll refer to them collectively as the SqlHelper class.) ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
is there any good JScript IDE
Posted by Green at 7/15/2004 6:21:38 PM
Hi,
To better the scripting, is there any good JScript IDE?
Thanks.... more >>
Dynamic Menus
Posted by tma at 7/15/2004 6:11:10 PM
How does one accomplish "dynamic" menus? For example, I have three items
(labels?) on top of each other down the left of my screen. I do not want
item 2 to show up in the list unless the user is logged in. In addition, I
only want the users to see items 1 & 3, making item 2 essentially invisible
... more >>
How to SOrt a HashTable In C#
Posted by RSB at 7/15/2004 5:51:37 PM
How do i sort a Hash Table..
Thanks
RSB
... more >>
ASP.NET and my own thread
Posted by Gawel at 7/15/2004 5:46:59 PM
Hajo,
I have created my own thread that makes zips.
It should work only when there are any jobs to do.
Therefore I use Suspend() and Resume(). But this does not help much.
Even when thread is suspended processor goes to 100% :(.
What is more, this situation (100% of processor in suspended mode)... more >>
Creating n-tier solution
Posted by Robin at 7/15/2004 5:42:00 PM
In a current .Net solution (using VB.Net) has a 3 tier architecture of Web
interface, Data Access Layer and Database.
How do I implement business logic and class layers into this solution?
... more >>
Running JSP page under ASP.NET. Is it possible?
Posted by Wolfgang at 7/15/2004 5:14:32 PM
I realize that this may sound heretical, but givent that Microsoft claims to
be able to run almost anything under ASP.NET
(including scripts containing Python or Perl), is it possible to run a JSP
under ASP.NET? What would I have to do to make that possible (other than
installing a Java VM)?
... more >>
movable Div's, MSN's MyPage site
Posted by Ryan Ternier at 7/15/2004 4:55:56 PM
Hello,
I'm looking at creating an application that allows users to create their own
templates, and thought of using the same idea's MS used when creating
http://sympatico.my.msn.com/. I looked at the source, JS files and
everything else referenced with those pages, and it still left more confu... more >>
Some doubt for .NET and HTML/Server button
Posted by Mihir at 7/15/2004 4:54:54 PM
Is CLR a process or a thread? if process then name it... if thread, name its
parent process?
2. Is Garbage Colelctor a process or a thread? if process then name it... if
thread, name its parent process?
3. If HTML Button has this property runat = "server", then what is the
difference left b... more >>
Session variable in a module....
Posted by WilsonSmith at 7/15/2004 4:54:39 PM
When I use a session variable in a module, it says "Name session is not
declared". Is it not possible to use session variable in module?
Wilson
... more >>
...problems with IIS, virtual directory, local path,
Posted by Leonardo at 7/15/2004 4:43:26 PM
Hi guys,
I'm confused when creating a virtual directory on my test environment.
1. If I create the virtual directory manually, it lets me modify the "Local
Path", by using either the Browse button or the textbox.
2. When I create an ASP.NET aplication that option is unavailable.
How was the... more >>
basic ?: sharing variables between functions/subs
Posted by darrel at 7/15/2004 4:42:38 PM
This is something I should know, but I don't.
Say I have this:
Function
dim variable1
dim variable2
do stuff with the variables
otherFunction()
End Function
function OtherFunction()
do stuff with the variables
end function
How can I get the second function to see t... more >>
ASPNET User Permissions?
Posted by James at 7/15/2004 4:41:02 PM
What folders should the ASPNET user have permissions for, & what should they
be?
I keep getting 'Access Denied' or 'Server Access Denied' errors.
I have given the ASPNET user Read & Execute Permissions to my wwwroot
folder, & the application lies within a 'NET' sub folder. However, I get an
... more >>
Why is _ctl added to my servercontrols Id?
Posted by news.microsoft.com at 7/15/2004 4:11:39 PM
Hi,
How do I avoid asp.net from adding a prefix to my Id tag?
I am getting this <select id="_ctl5_language">
which should be <select id="language">
Thanks for any help.
Anders
... more >>
Id is changed on my server control! (_ctl5)
Posted by news.microsoft.com at 7/15/2004 4:07:14 PM
I am sending the values from the servercontrol (HtmlSelect) by the method of
GET and its anoying that ASP.NET changes the Id.
Instead of this: <select id="_ctl5_language"> it should be <select
id="language">.
Any ideas.
Thanks,
Anders
... more >>
Reading browser IP address. .Net way....
Posted by WilsonSmith at 7/15/2004 3:57:56 PM
How to read the IP address of the browser? I am using .Net 1.1.
Thanks,
Wilson
... more >>
how to produce thumbnails
Posted by Daniel at 7/15/2004 3:48:33 PM
hi,
I have a whole lot of pictures needed to transform to the thumbnails to
display on the web, it there any easy to do?
Thanks.... more >>
URGENT PROBLEM...!!!
Posted by Darren Clark at 7/15/2004 3:47:23 PM
I have just copied up a new version of a site to the hoster....
and i am getting the following message.
Can anyone help please?
Server Error in '/staging/v1' Application.
----------------------------------------------------------------------------
----
Compilation Error
Descript... more >>
Selected Item On Bound DDL
Posted by Randy Rubin at 7/15/2004 3:42:39 PM
Does anyone know how to Make an Item selected in a DropDownListBox when
Binding it to data. When it changes it populates another TextBox but the
DDLB does not retain it's selected value.
Thanks
Randy
... more >>
translate VB -> CS
Posted by Eirik Eldorsen at 7/15/2004 3:37:38 PM
Could someone please help me translate this into C#?
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.PreRender
Eirik Eldorsen
... more >>
<asp:table> problems
Posted by Dave Bennett at 7/15/2004 3:16:00 PM
I am hoping someone can help me because I am really beginning to hate IE.
I am using the following code to generate a dynamic table.
private void buildTable(ArrayList Products)
{
//Variables
int cnt = Products.Count;
string key = "";
Control c;
TableRow r = new TableRow();
TableCell... more >>
'Undefined' Client-Side Object Reference
Posted by Felipe at 7/15/2004 3:12:27 PM
In the HTML portion of an ASPX page, I have the following:
<INPUT TYPE=TEXT SIZE=2 NAME=VSpace onchange="Img_Preview()"
ONKEYPRESS="event.returnValue=IsDigit();" style="width:80px;" ID="VSpace">
Note that the <INPUT> control calls Img_Preview().
Img_Preview, amongst other things, execut... more >>
Datagrid & pager
Posted by Ben at 7/15/2004 3:07:11 PM
Hi, I'd like to have a datagrid that has a dropdownlist in the pager control
for setting the page size. I can get the control into the pager inside the
datagrid itemcreated event by checking for ListItemType.Pager. The problem
I'm having is subscribing to the selectedindex changed event. The d... more >>
Pass Credentials when opening Link
Posted by - Steve - at 7/15/2004 3:03:36 PM
I have a website where I use forms based authentication.
There's a couple links in there that go to another website that uses basic
authentication. How can I pass the credentials of the logged in user on the
first site when they click the link to access the second site?
--
Steve Evans... more >>
Identify wich button was pressed!
Posted by bredal Jensen at 7/15/2004 3:00:05 PM
Hello,
I have a web form with three buttons among other things.
I need to know wich one of my buttons was pressed .
The problem is that i want my page to be valid before any of the
buttons "click" routines can do some processing , meaning that they have the
"Causevalidation" property set to... more >>
Treeview
Posted by Bart Schelkens at 7/15/2004 2:46:57 PM
Does anyone know if there is a treeview-control we can use on a webform in
..Net ?
... more >>
ENCTYPE="Multipart/Form-Data" Any Drawbacks?
Posted by Lucas Tam at 7/15/2004 2:38:32 PM
Hi all,
I'm using ASP MasterPages for my templates. As such, I have a couple of
pages which are for file uploads.
Is there any drawbacks in making all my forms of type:
ENCTYPE="Multipart/Form-Data"?
Will this cause resource or security issues?
Thanks.
--
Lucas Tam (REMOVEnntp@r... more >>
Loading Data Message
Posted by Angel at 7/15/2004 2:31:47 PM
Is there a way to display a message using an aspx page with controls on it that the data is loading for the page without having to display one html page then reloading the aspx page. in other words display a message on the aspx page before all the controls are loaded and the data, then display the c... more >>
page to image image to email email to fax
Posted by jason NO[at]SPAM cyberpine.com at 7/15/2004 2:20:16 PM
Hello.
This one is kinda out there.
I have asp.net code that will email my yahoo account a <img> like with
image on the server. When I open it in yahoo I get the full image on
screen. works great.
Any way to create an image (in asp.net on the server) of full web page
- text and all. Curr... more >>
Data grid current page number?
Posted by Brian Henry at 7/15/2004 1:40:44 PM
Hi, I have a data grid that has the following properties
EnableViewState = false
AllowPaging = true
AllowSorting = true
AllowCustomPaging = false
now, when the page switches I want to get the current page number and
display it in a label on the form... but it doesnt seem to return anything... more >>
accessing the readonly properties of a listmenu with a user control?
Posted by Moe Sizlak at 7/15/2004 1:18:17 PM
Hi There,
I am trying to use the to obtain the information from 2 listmenus, if the
user makes a selection the page is submitted and then based on the value
selected is transfererd to another page. This works ok on it's own but I
can't seem to access the actual value of the control or the opt... more >>
Need to pass information into a web page.
Posted by Paul at 7/15/2004 1:15:03 PM
What I am trying to do is as follows.
I have a page with 3 links,that direct the user to 3 different pages when selected after login.
So all link selections will first direct the user to a login page. Once the user logs in then they are directed to the appropriate link.
So for all 3 links they... more >>
Configuration Question regarding Remoting, FormsBased Security, and Web.config
Posted by meaneyedcat NO[at]SPAM hotmail.com at 7/15/2004 1:11:35 PM
I have a web structure that looks like this:
\application
\Noms
-Web.config
-Web.config
I have set up my remoting information in the root Web.config
directory. To set up remoting, I have coded this:
(in Global.assx)
public void Application_Start {
string path = Context.ApplicationInst... more >>
Session and URL problem
Posted by Stephen at 7/15/2004 1:09:43 PM
HI,
I have created an application that has a logout.aspx page. here I clear the
session variables and redirect the user to the login page, but if I dont
close the brower and hit the "back" button. the user is directed to the old
pages.
How do i avoid this?
Please advice,
Stephen
... more >>
get image side via client side script before file uplaod
Posted by moondaddy at 7/15/2004 1:07:45 PM
I need to get the size on an image client side before the client uploads it,
and if its too large, I need to alert the client rather than doing a
postback. The code below successfully writes the file size to the
text-input element on the second click (attempt), but writes -1 on the first
click.... more >>
Client-Side References - Name vs. ID
Posted by Felipe at 7/15/2004 1:05:42 PM
Learning client-side coding... which should be used to refer to an HTML
control - the ID or the Name attribute? Can both be used interchangeably?
Rationalle for which one to use?
Thanks.
... more >>
how to remember asp:listbox's scrollbar position
Posted by Daniel at 7/15/2004 12:52:14 PM
hi,
I had an asp:listbox, and everytime i click item inside, the bar
automatically go to the top, is there any way to keep the scroll position?
I turn on the smartNavigation, it still doesn't work.
Thanks ahead.... more >>
How to validate() User Control at Page submit?
Posted by owingruters NO[at]SPAM hotmail-dot-com.no-spam.invalid at 7/15/2004 12:27:24 PM
Hi all,
I've created an User control. It's an extension of a textbox wich has
some extra properties so that validation becomes a lot faster.
The control wordks great if autopostback is on. When there's a value
in the textbox, the (overridden) textchanged event fires and
validation is perfor... more >>
How do step through javascript
Posted by moondaddy at 7/15/2004 12:22:42 PM
How can i step through the execution of javascript in a aspx page? I'm
running asp.net 1.1
Thanks.
--
moondaddy@nospam.com
... more >>
Shared Public Variables and Shared Methods
Posted by Joe Fallon at 7/15/2004 12:22:04 PM
I have a Shared varibale in a base class and all the Shared methods in the
sub-classes use it (and CHANGE it).
I thought I was saving myself the "trouble" of Dimming this variable inside
each Shared method.
But now I wonder if I will have a problem in a multi-user environment with
code that cha... more >>
Global App Settings for multiple Applications?
Posted by Marc Castrechini at 7/15/2004 12:21:19 PM
Does anyone have ideas on where or how to store standard app settings across
multiple applications? Something like a database server name?
Currently I have this information saved in Web.config for each app but I
would rather move it to one area so I can centralize the setting.
Is there a st... more >>
Help convert ASP to ASPX
Posted by Lee at 7/15/2004 12:16:01 PM
If I please request help on convert ASP page to be ASPX page.
My code is:
If NOT RS.EOF Then
Else
Code...
End If
Me cannot get If..Then...Else work. ASP dot NET not like EOF.
Someone please help find replace code sample.
Much Thanks, Lee
... more >>
CheckBoxes & DataGrids ASP.net
Posted by Randy Rubin at 7/15/2004 11:42:00 AM
Here is what I'm trying to do.
I need the user to make multiple row selections, either using a checkbox
column or selecting Multiple Rows from the DataGrid. Is there a way to do
this and if so can I find some sample code. I'm using VB. Any HELP would
be great.
Thanks
Randy
... more >>
asp:Literal & <!--includes-->
Posted by Mark Rae at 7/15/2004 11:32:09 AM
Hi,
VS.NET 2003 on WinXPPro + all latest service packs etc.
I have a totally standard WebForm wherein I need to include one of several
HTML files according to various parameters etc.
I'm trying to use an <asp:Literal /> control for this, and intend to modify
its Text property in the Page_... more >>
How can I show ie window without menu or buttons?
Posted by Trint Smith at 7/15/2004 11:24:49 AM
I have tried everything with:
<script language=javascript>
window.open("",null,"fullscreen=no,status=no,toolbar=no,menubar=no,lo
cation=no");
</script>
And it doesn't work right for me.
Is there another DHTML Method or something else I can use to NOT show
the menu, buttons, status ba... more >>
how do I get the page no of print-out for aspx?
Posted by sincethe2003 at 7/15/2004 11:07:59 AM
Hi there, I use aspx to create a web page for query output, it contains only
display data and have many pages when print it out, now I need to add a
table of contents list at the beginning of the web page, the table of
contents should contain outline text and page no, the outline text is OK to
... more >>
backup/restore from Program
Posted by G. Dean Blake at 7/15/2004 11:00:20 AM
How can I backup and restore a SQLServer DB from a .net VB program?
Thanks,
G
... more >>
Time Zone question
Posted by Rob T at 7/15/2004 10:52:04 AM
This is just a general question....trying to collect some ideas on how to
approach this issue:
I have a web app that has users across the country. Since they login, I can
make their profiles have a time zone field, so that's no big deal.
My data in question is stored in SQL 2000 in a dateti... more >>
DataGrid - Disallow Postback?
Posted by Rich Wallace at 7/15/2004 10:47:04 AM
Hi all,
Is there a way I can design the datagrid where, if the SelectedIndex changes
and I highlight the selected row, that the grid does not re-write itself and
keep the current page smooth, or avoid the 'flash' of the re-write?
TIA
-Rich
... more >>
How to
Posted by SKG at 7/15/2004 10:41:06 AM
How can i quickly find out whether .net is installed on a machine or not.
TIA
... more >>
DOT.NET Hosts ?
Posted by Andy at 7/15/2004 10:06:10 AM
Hi,
Apologies if this is a little off topic but I'm hoping this would be the
right place to ask.
I'm currently learning and experimenting with asp.net and although I can
test locally I would like to upload my files to a remote hosting company as
well.
As this is non commercial I don't ... more >>
Textboxes and autopostbacks
Posted by Alex Shirley at 7/15/2004 10:04:36 AM
Hi
On my webform I have a textbox in which autopostback is set to true. (nb
I don’t want to disable this because I have manipulating the visibility
of other controls, but for the purposes of the exercise I’ve stripped
that code out for the time being).
What’s happening
a) If I click th... more >>
Status Bar
Posted by Becker at 7/15/2004 9:52:29 AM
I have a need for a status bar or some indication about a query is being
run.
I have seen some ASPX pages where the whole page just temporarily becomes an
amimaged "query running..." graphic and then goes to the page with results.
Something as simple as an animated gif would work too.
I jus... more >>
word interactivity using aspx
Posted by mark at 7/15/2004 9:20:31 AM
i currently have some code that creates a word document on the client side
in an intranet environment - this works fine but i need to take it a step
further - id like the word document to be autopopulated by data thats in the
pages text boxes - is this possible ?
the code i use for creating and ... more >>
globalisation help needed!
Posted by jean Sebastien at 7/15/2004 7:41:10 AM
Can anyone guide which steps i need to follow(code snippets) to achieve
this.
I want to use text files for the translations and use resgen.exe to build
the respectives
resource dlls.
Any help will be highly appreciated.
Thanks in advance
Sebastien
... more >>
RegEx *URGENT*
Posted by Vishal at 7/15/2004 7:26:58 AM
Hi,
I used the RugularExpression class in my winforms to
validate a textfield. Now I am doing a web application but
using a RegularExpressionValidator and I am using the same
regex as in my winforms. However in my web app it only
checks for single chars instead of the complete string. Is... more >>
adding onchange javascript that fires after doPostBack ?
Posted by usenet_daughter NO[at]SPAM yahoo.com at 7/15/2004 7:16:43 AM
I have some javascript I would like to run after a doPostBack occurs:
onchange="javascript:__doPostBack('Text1','');[my JavaScript here]"
The doPostBack is being added dynamically by .NET when it renders the
control.
If anyone can tell me how to tell .NET to add the doPostBack BEFORE
a... more >>
How to trigger textchanged event of a user control on page submit?
Posted by Owin at 7/15/2004 4:49:02 AM
Hi all,
I've created an User control. It's an extension of a textbox wich has some extra properties so that validation becomes a lot faster.
The control wordks great if autopostback is on. When there's a value in the textbox, the (overridden) textchanged event fires and validation is perform... more >>
Check blank text box using custom validator
Posted by Alex Shirley at 7/15/2004 3:42:42 AM
Hi there
I’m simply trying to check for a blank or empty value in a textbox on my
webform. In this instance I do not want to use a requiredfieldvalidator,
I want to use a customvalidator (as I have other code within the
customvalidator which works).
This won’t work (within servervalidate):
... more >>
Render HTML page using ASP
Posted by pummel NO[at]SPAM hotmail.com at 7/15/2004 3:24:31 AM
Hi,
I want to import an html document into my asp.net page and render it
inside a TableCell. The reason for this is i want to simulate the
behaviour of a frames page without using frames. I cannot edit the
source of the HTML. Is there any way of parsing the html to remove
all of the header... more >>
a button inside a grid.
Posted by Asha at 7/15/2004 3:20:01 AM
greetings, i'm building a custom style in a datagrid, and i need to display buttons end of each row. the problem is how do i know which row is selected when a button is click?... more >>
Need dhtml code to make text glow red from black
Posted by moondaddy at 7/15/2004 2:29:11 AM
I have some text in a page that when a certain even happens, I need to make
it glow from black to red (through a spand of 1 second) pause for a few
seconds, and then slowly change from red to black over a span of 1 second
again. Lastly, this needs to be compatible with NS 4 if possible, or if no... more >>
How will I correct the error generated???
Posted by Denzio at 7/15/2004 1:13:02 AM
I am a beginner in web developtment in asp.net using visual basic.net. i was trying to access data in SQL 2000 and display it in a datagrid/listbox, but I kept on getting the same message from the browser :
Server Error in '/Sample2' Application.
-----------------------... more >>
Simple Question on appropriate control???
Posted by Tim::.. at 7/15/2004 12:55:02 AM
Hi,
I'm reasently new to ASP.NET and was wondering what the most appropriate control if any would be best for showing HTML code pulled from a database in a page! I have thought about using a label and also datagrid but I wasn't sure if you could put html code into a datagrid so it just shows up a... more >>
Retrieve Client Screen Width
Posted by Iyigun Cevik at 7/15/2004 12:27:31 AM
Using Request I can get some information about client. But I couldn't get
two of them:
1. Screen Width ( and height ofcourse)
2. System Language.
I can get them with JScript, but I don't want to submit a form to get these
information. Is there any other possible way?
... more >>
password protected access to files hosted by IIS
Posted by www.MSmobiles.com at 7/15/2004 12:01:57 AM
hi,
how can I implement passowrd protected access to IIS located files?
for example:
when somebody tries:
http://x.msmobiles.com/a/dupa.pdf
then page with user name and password should open.
then user enters name and password
then program connects to certain webservice to validate a... more >>
|