all groups > asp.net > april 2004 > threads for thursday april 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
how to store info in a file with asp
Posted by EMW at 4/15/2004 11:25:33 PM
My ASPX file is opened with two arguments, namely the Width and Height of
the browser window.
Since I've got more ASPX files, I need to keep these values.
I was thinking of writing them in an XML file, but when I do this I get an
error telling me my application does not have the right to write t... more >>
getting arguments from a HTML page
Posted by EMW at 4/15/2004 10:22:38 PM
I have created an INDEX.HTML file that uses javascript to get the browser
window size and then redirects immidiately to my ASPX file with
"fshome.aspx?width=1122,height=633"
But how do I read these values in my aspx file?
rg,
Eric
... more >>
User & application-state variables...
Posted by Jeremy at 4/15/2004 10:04:09 PM
I am relativly new to ASP.NET, and my question is this:
Is it better to create a wrapper class that contains all the running
settings for the application and then load that into the app state, or is it
better to load the scalar variables and store them individually?
In case I'm not making my... more >>
postback doesn't work in ascx
Posted by Maersa at 4/15/2004 9:20:43 PM
Hi all,
i've got a control that has a button and when clicked on it would send a
postback, all of this works fine when the control is placed on a webform
(aspx) but doesn't work when placing it in a webcontrol (.ascx).
any ideas what may be the problem ?
thanks,
... more >>
dynamic objects
Posted by Shaul Feldman at 4/15/2004 8:52:35 PM
The question is quiet difficult to explain -
I need to give the users ability to append to a table rows, that means I
have to reconstruct it every time there's a PostBack i nOnInit event. The
question how can I remember how many rows were sent to client before the
last submit? I've read a little... more >>
Regular Expressions
Posted by Murphy at 4/15/2004 7:52:17 PM
Can a regular expression validator force a user to enter exactly 10 numeric
digits ?
Thanks
Murphy
... more >>
Calling a .NET web service from classic ASP
Posted by Julian Hershel at 4/15/2004 7:38:25 PM
Hi.
I have a very simple web service that I am trying to call from a classic ASP
page. The web service project and the ASP page are both on my development
machine. That's the code of my web service:
<WebService(Namespace:="http://tempuri.org/")> _
Public Class TextData
Inherits System.... more >>
encoding problem on ASP .net page
Posted by WEIWEIWEI at 4/15/2004 7:31:08 PM
Hi Al
I'd like to encode a string submitted from a utf-8 form in a aspx page to big5
Any ideas on how to do that
I try sth like
public static string unicode_big5(string src) {
Encoding big5 = Encoding.GetEncoding("big5")
Encoding unicode = Encoding.UTF8
byte[] unicodeBytes = unicode.GetB... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
XML - traversing in VB
Posted by asadikhan NO[at]SPAM hotmail.com at 4/15/2004 6:49:38 PM
Hi, I have an XML file that looks something like this:
- <Geo>
<state>Alabama</state>
<capital>Montgomery</capital>
<abbrev>AL</abbrev>
<timezone>C</timezone>
</Geo>
- <Geo>
<state>Alaska</state>
<capital>Juneau</capital>
<abbrev>AK</abbrev>
<timezone>A</timezo... more >>
Length cannot be less than zero
Posted by John Mason at 4/15/2004 6:37:35 PM
Hi,
I have developed an asp.net application that uses forms authentication.
I have a local install and a remotely hosted install of the application.
Intermittently the remote application falls over with an error (see
below for details).
This seems to happen on different pages after an asp f... more >>
help! right problems
Posted by Mike Schwarz at 4/15/2004 5:48:48 PM
hi
me migrated to new webserver 2003
now, aspnet is not working anymore
following error
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263
[HttpException (0x80004005): ASP.NET-Initialisierungsfehler]
... more >>
IE 6.0 sockets number (TCP/IP channels number) for the same Site ???
Posted by taras at 4/15/2004 5:43:30 PM
IE 6.0 sockets number (TCP/IP channels number) for the same Site ???
I've discovered the restriction: IE 6.0 has 2 sockets only to the same
Server (ASP.NET Site).
Where can I find any kind of information about this limitation?
P.S.
IE 6.0 from Windows 2003 Server has the same limitation,
... more >>
querystring in masterpages - please help
Posted by suzy at 4/15/2004 5:34:42 PM
Hello,
I have created a template for my website using the masterpages template
technique.
It's working fine, except when I try to print the value of a querystring
parameter in my HTML code, I get the following error:
"The Controls collection cannot be modified because the control contains
... more >>
n00b needs SQL Server
Posted by newgenre at 4/15/2004 5:21:44 PM
I am trying to implement a package of pre-built code under ASP.NET which
creates an internet forum on your website. It asks me to know my sql server
name, username, password, etc..
As I am relatively new to this game, and do not have the resources to buy a
$5000 sql server; is there a way around... more >>
Weird problem :-(
Posted by Simon Harvey at 4/15/2004 4:58:53 PM
Hi everyone
I am having the following very bizzare and annoying problem:
I have a page that contains amongst other things, a check box that is set
according to a session variable.
When the page loads, the check box is set according to the session variable.
Now here's the weird bit. If I... more >>
forcing an http request to sleep/delay
Posted by Robert Huie at 4/15/2004 4:55:39 PM
Hi all,
I'm trying to use asp.net to code a chat window and I would like to make the
http request delay as long as possible till the process/thread detects a new
incoming message.
basically something like the following:
while(nonewmessages) {
nonewmessages = checkfornewmessages();
... more >>
javadocs equivalent for .net
Posted by ashish at 4/15/2004 4:41:51 PM
iam wondering if there is a java docs equivalent for .net available..,
i want other developers to be able to see comments with my methods and
properties when they are using intellisense, like iam able to when i use
..net objects ( in the hint portion of intellisense )
i dont know if i expr... more >>
Creating an Event Handler for dymanically generated controls
Posted by Steve Caliendo at 4/15/2004 4:32:21 PM
Hi,
My last post was not worded correctly. What I really need to know is how
(what to type) to create an event handler for some ImageButtons that I
generate at run-time. I tried this:
Private Sub ImageButton_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Stop
End ... more >>
asp:label in asp:datalist - Setting Text Value Does not work!
Posted by harrysingh1976 NO[at]SPAM hotmail.com at 4/15/2004 4:02:33 PM
Hi,
Can anyone tell me why the below code does not work.
I dont get any errors, but nor does the Text for the asp:label get
set.
Thanks in advance as always
H
protected void Page_Load(object source,
System.Web.UI.WebControls.DataListCommandEventArgs e)
{
if (Request.QueryString["... more >>
Return to an specific area of page after a post-back
Posted by Charlie NO[at]SPAM CBFC at 4/15/2004 3:58:01 PM
Hi:
After posting back, I would like to return to a specific area of page. For
example, when my "add to cart" handler posts back, I would like returned
page to scroll to where button was pushed. Returning to top of page when a
button near button of page was last pushed looks confusing.
Th... more >>
DataSet bound DataGrid with hyperlinks question
Posted by Alex at 4/15/2004 3:28:37 PM
I'm reposting my issue with some more info.
I would like to use a DataGrid to display my DataSet.
My DataSet is from a table in a SQL DB.
Both columns in the table are strings.
I would like it to look like the following where the URL column is
clickable.
---------------------------------... more >>
Event handling of dynamic controls
Posted by Steve Caliendo at 4/15/2004 3:17:55 PM
Hi,
I'm creating 5 ImageButton controls in the panel control, and I have a
unique ID specified for each one.
When I click on any one of them, the Page_Load executes (Of course), but how
do I know which ImageButton caused the post back ? Does it get handled in
the Page_Load or do I need to ... more >>
Two Projects under one Solution?
Posted by Raterus at 4/15/2004 3:11:36 PM
Hi,
I've got a Visual Studio solution that contains two projects, P1 is my =
main application, P2 is a project that contains custom server controls =
I've created. I would like to have these Projects set up in Visual =
studio so if I make a change to P2 and recompile, P1 will automatically =
... more >>
Open new browser window in ASP.net. What i am doing wrong?
Posted by Miguel Dias Moura at 4/15/2004 3:02:02 PM
Hello,
i want to open a new window when a button is clicked. I am working in
ASP.net / VB. However my code is not working.
This is my Script Code:
<script runat="server">
Private Sub openNewWindow(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Response.Write("<script>win... more >>
Dynamic Menu's
Posted by brian at 4/15/2004 2:58:12 PM
I am looking at purchasing or creating a dynamic
navigational menu system that would be binded to SQL
server 2000 data. The users id is stored in the SQL
server and based on the id is what the navigational menu
would show.
I would perfer to gain the experieance of building it
myself bu... more >>
storing serialized object in DB problem
Posted by Marcel Balcarek at 4/15/2004 2:37:38 PM
I have serialized an object:
Dim formatter As New
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
Dim currentStream As New System.IO.MemoryStream
formatter.Serialize(currentStream, Me._testKey)
I then set my datarow varBinary column to currentStream:
currentDataRow("Data... more >>
web.config and location...
Posted by Natan at 4/15/2004 2:24:20 PM
I have an directory structure like this:
localhost/site/myapp
localhost/site/myapp/author/
localhost/site/myapp/revisor/
localhost/site/myapp/editor/
localhost/site/myapp/admin/
myapp is an application and is where my web.config is located. I must
create 4 completely separated areas for ... more >>
Click in Image to open Link?
Posted by Miguel Dias Moura at 4/15/2004 2:22:45 PM
Hello,
i have an image with the following code:
<img src="image/panel.gif" width="20" height="80"
onClick="fnLoadNewWindow('http://www.google.com');">
When i click the image the Javascript Function fnLoadNewWindow opens a new
window with google.com.
The problem is that the mouse doesn't ... more >>
Session Dies very quickly
Posted by Raj at 4/15/2004 2:16:04 PM
Hi
Please help me out.
I have specified a Session timeout of 30 mins in my web.config file. I'm using the InProc mode. But my session is expirng very quickly max 5 mins. There are almost 200 users who will be logging into system everyday. I'm running my application on Win 2000 with IIS 5.0 ... more >>
Object Types in Application & Session
Posted by Alex Maghen at 4/15/2004 2:01:08 PM
Let's say I store a real simple value in the Session as follows
Session["MyName"] = "Alex"
Later, in a different page, I try to do something like
SomeLabel.Text = Session["MyName"]
When I do this, I get a compilation error "CS0029: Cannot implicitly convert type 'object' to 'string'
Is t... more >>
display all colors
Posted by Mark at 4/15/2004 1:45:22 PM
Is there a programatic way to iterate through all the named colors?
Something like:
HtmlTable ht = new HtmlTable();
HtmlTableRow htr;
HtmlTableCell htc;
foreach (Color c in [collection of all colors]) //I CAN'T FIND COLLECTION OF
ALL COLORS
{
htr = new HtmlTableRow();
htc = new Ht... more >>
dynamically adding controls, saving, viewing change on page??
Posted by Greg at 4/15/2004 1:12:21 PM
In my ASP.NET application I have a button that when pressed, data needs to
be saved based on what the user typed in. I have other controls on the same
page that should be updated as a result of the save, which are all
dynamically created in the code behind and have event handlers registered.
I... more >>
Datagrid question
Posted by C Downey at 4/15/2004 1:06:47 PM
I have a web page that I displays the search results from another form. The
way I have it developed right now, my data access layer returns me the
results as an array (first name, lastname, id). When the results are
returned I want to display them in a table that allows paging if too many
resu... more >>
[BUG] in IIS ? webshared directory problem !
Posted by Lloyd Dupont at 4/15/2004 12:58:58 PM
where is the webshared directory information ?
I create a Webapplication called Counter in C:\IntePub\wwwroot\Counter
the Counter directory was webshared under the name 'Counter'.
I copied the Counter directory on D:
Deleted the C:\....\Counter directory (without unsharing first, *Mistake*)
I... more >>
Dropdownlist control
Posted by Jerry at 4/15/2004 12:58:01 PM
I have a DropDownList control on a web form and the
onSelectedIndexChanged event is not firing. Any
suggestions?
Thanks,
Jerry... more >>
Serialize object to database example
Posted by Marcel Balcarek at 4/15/2004 12:19:20 PM
Does anyone have an example of serializing an object to a database table?
... more >>
strange error when deploying new code-behind assemblies
Posted by Jiho Han at 4/15/2004 12:14:55 PM
I have an asp.net application that is running and I updated code behind
assemblies after I modified some internal logic.
Then I tried to view the page and got a very strange error, something like
the following:
Could not find file "C:\WINDOWS\TEMP\qoqdmvbc.dll".
I get errors like that in ... more >>
Regular expression problem
Posted by Dan at 4/15/2004 12:14:12 PM
I'm trying to remove the word 'AND' (apostrophes included) from a string but
can't seem to get the correct expression.
I've got:
Dim regRemove As New System.Text.RegularExpressions.Regex("\b'AND'\b")
Dim strInput As String = "One 'AND' Two"
Response.Write(regRemove.Replace(strInput, ""))
... more >>
Security Question
Posted by Robbie Wallis at 4/15/2004 12:00:52 PM
Hello,
Could anyone provide me with an idea of the impact that the following change
would make to security
Modifying the machine.config file and set the "allowDefinition" attribute to
"everywhere"
Thanks
Robbie
... more >>
DataGrid user color selection
Posted by Patrick Delifer at 4/15/2004 11:45:42 AM
HI,
I have a DataGrid displaying a list of orders. I want to give the user the
possibility of changing the row color (that he can select from a drop down
or something else). Is there a way to do this without affecting my DB? (I
was thinking of adding a Color column in my DB that would save his c... more >>
Using Application Object
Posted by Diego F. at 4/15/2004 11:37:04 AM
Hello. I have a web service with a hast table. I want it to store the hash
table in the Application object so the client (Windows application) can
retreive this data at any time during the execution.
I'm not sure about using this object. I have two web methods: one sends data
necessary to crea... more >>
Connection String in Registry
Posted by Jason MacKenzie at 4/15/2004 11:34:19 AM
I store my connection string in the registry. Is it possible to access this
value from the web.config file? If so any help is appreciated.
Thanks,
Jason
... more >>
asp with sharepoint services
Posted by ms NO[at]SPAM fullermetric.com at 4/15/2004 11:09:40 AM
Not sure if I'm posting in the right group but here goes.
I am getting the following error when trying to browse to an .aspx
page which I have set up in a virtual directory under the default
companyweb sharepoint site on Microsoft SBS 2003. I've tried various
suggestions I've seen in other po... more >>
Scheduling App
Posted by Alphonse Giambrone at 4/15/2004 11:05:38 AM
Can anyone point me toward a good example of an asp.net scheduling app?
Preferrably in vb.net.
TIA
--
Alphonse Giambrone
Email: a-giam at customdatasolutions dot us
... more >>
Frustrated: Can't Debug ASP.NET Project
Posted by Dan at 4/15/2004 11:00:39 AM
I get nothing but problems when trying to debug an ASP.Net project on our
development server (I can debug projects locally on my computer fine). It
keeps giving me this error when trying to debug on the server:
"Error while trying to run project: Unable to start debugging on the web
server. Y... more >>
souce code
Posted by Rogerio Leite via .NET 247 at 4/15/2004 10:46:28 AM
Friends please send me a souce code corrent article.
--------------------------------
From: Rogerio Leite
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>C9HxqEAcekqJuDd/cPjJAQ==</Id>... more >>
A little help with debugging on a remote server
Posted by Simon Harvey at 4/15/2004 10:36:03 AM
Hi all,
I'm hoping someone can help me with the following:
I've read the microsoft documents on how to setup debugging on a remote
server. I have the application set up in Visual Studio ok but I'm getting
the Access is Denied message when I try to debug.
The documentation states that the ... more >>
Object persistence
Posted by Marcel Balcarek at 4/15/2004 10:34:00 AM
Hello,
I have a page (page1.aspx) that builds some complex .NET objects.
I successfully pass these objects to another different window (page2.aspx).
How can I persist these objects on a POST back of the same window
(page2.aspx)?
Thank you
Marcel
... more >>
Finding out the name of the current aspx page.
Posted by Simon Harvey at 4/15/2004 10:30:38 AM
Hi,
Does anyone know if its possible to find out the name of the current page,
less any directories in front of it? I just want the page.aspx part
Thanks all
Simon
... more >>
Help with datagrid paging in C#
Posted by charliekunkel NO[at]SPAM hotmail.com at 4/15/2004 9:56:46 AM
I can't get my datagrid to page correctly and I think it's just the
order of events that's confusing me. What's happening as it stands
now is, I hit the Search button, which fires the btnSearch_Click
method, which sets stored procedure parameters and executes the stored
procedure then rebinds t... more >>
Dynamic Composite Controls And Their Child Control Collection
Posted by robinsoh NO[at]SPAM vu.union.edu at 4/15/2004 9:41:00 AM
Hello,
I have a composite WebControl that I'm dynamically instantiating at
runtime using Reflection. When I create a new instance of my control I
immediately iterate through it's child control collection (it has
about 4 child controls). The problem is none of these controls are
loaded or access... more >>
Third-party Grid recommendation?
Posted by Jim Corey at 4/15/2004 9:28:23 AM
Hello,
I've been using the datagrid, but now I need to sort
on the columns, and I really want to do this on the client
to save performance time.
I had a third-party grid I used in ASP that worked great, but it was
difficult to work with.
So my list of requirements are simply:
-- Sort ... more >>
Resize image
Posted by Andrew Banks at 4/15/2004 9:28:16 AM
I have an image stored in a SQL DB. All the images are stored at the largest
size I will need to display them at.
I now want to be able to generat a thumbnail of this image on the fly. Is
this possible and if so how would I go about it?
... more >>
FrontPage files in ASP.NET?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 4/15/2004 9:24:36 AM
Greetings all,
I'm seeking your advice on this issue:
I'm planing to use FrontPage(2003) files(saved as .aspx) in asp.net.
That is, I will create frontpage files with same path as asp.net
projects, do ONLY interface design for web pages , save them as .aspx
and then include them in asp.ne... more >>
ASP.NET session state lost!!!
Posted by ASP.Confused at 4/15/2004 9:21:07 AM
Any ASP.NET web application I put on my web server looses session state! I tried the exact same script on two different web servers, and they work perfectly
Got any suggestions of what could be going wrong
First things first, I will tell you everything I have already checked
* I do h... more >>
Vertical datagrid for one record form
Posted by dan_williams NO[at]SPAM newcross-nursing.com at 4/15/2004 9:09:08 AM
Anyone know if i can take advantage of the datagrid features and use
it in a vertical format to view and edit one record from a database?
For example,
Name:
Address:
Town:
County:
Post Code:
Email Address:
Telephone:
Mobile:
etc...
Can anyone point me to some examples of how to ... more >>
Making a popup appear
Posted by Simon Harvey at 4/15/2004 9:04:10 AM
Hi,
I need to respond to a button click by loading some info into the users
session and then opening a popup window. I know how to do this in javascript
but I don't know how to make it happen in my code behind.
Any help would be great.
Thanks all
Simon
... more >>
Post back to an Assembly or web custom control URGENT!!!
Posted by Chris at 4/15/2004 8:40:17 AM
Does anyone know how to postback to an inherited custom control from a
pop-up window? Or a Assembly on the server???
Thanks in advance.
... more >>
frames
Posted by Mike at 4/15/2004 8:20:57 AM
I'm creating a web site "portal" that is using frames, a top frame and the
left side frame. At times the left side nav frame is slow to display. I
would like to stop using the frames but have the frame look to it.
Is there anyway I can have my web site look like a frame and be one page?
What i... more >>
The check of the signature failed
Posted by r.loupatty NO[at]SPAM miodevelopment.nl at 4/15/2004 8:18:25 AM
Hi all,
Does someone know what this mean:
The check of the signature failed for assembly
'Infragistics.WebUI.UltraWebGrid.v2'
I also did a post to Infragistics but maybe this is a general problem
and someone can tell me about it?
Richard Loupatty
MIO Development
the Netherlan... more >>
Formatting Numbers
Posted by Plunaldo at 4/15/2004 7:31:09 AM
I have some questions about Numberformatting
What is the best way to format a number that will be shown to a user? is it
CultureInfo cultureInfo = CultureInfo.CurrentCulture
int.Parse(summaryObjectArray[0].ToString()).ToString("N",cultureInfo)
how can i assign less/more decimal digits to a n... more >>
issues running asp.net code in old asp
Posted by DaveF at 4/15/2004 6:52:56 AM
What are the issues doing this. Recommendations?
--
David Fetrow
Helixpoint LLC.
davef@helixpoint.com
... more >>
Display all fields in a datalist
Posted by Roland Wolters at 4/15/2004 6:36:22 AM
Hi,
This tast seems so simple but I can't seem to crack it:
I have some data in a dataset. I can bind the dataset to a datalist control
and show the fieldvalues but i would have to hardcode the filednames.
Problem is that I just want to show ALL the fields without knowing what
table is ... more >>
DataGrid paging
Posted by johno at 4/15/2004 5:36:04 AM
Hello everybody, I got myself a strange problem
I have a DataGrid in the page, nothing special about it, only it connects datasource programatically and it supports paging.y. So the code is something like this
private void Page_Load(object sender, System.EventArgs e
if (!IsPostBack
Gri... more >>
ADO.net and SQL Server
Posted by Sunil Sabir at 4/15/2004 4:51:03 AM
Dear All
I am having a problem trying to establish a connection with SQL Server using ASP.net page. I am using Server Explore
to establish a connection. The connection is perfectly established if I use Northwind or pubs Database. But I am unabl
to establish a connection if I make my own d... more >>
Hot to open a page in a new window from a hyperlink of a crystal reports pdf file
Posted by dgeisenhoff NO[at]SPAM microteq.ch at 4/15/2004 4:17:23 AM
Does anyone know how to open a page in a new window when clicking onto
a field of a pdf file created by crystal reports.Net 2003 having a
hyperlink?
Many thanks in advance.
Daniel.... more >>
Microsoft Data Access Application Block
Posted by Alex Smotritsky at 4/15/2004 3:58:27 AM
I'm calling a sproc with SqlHelper.ExecuteDataset to get 2 result sets
that the sproc will return if everything is fine. If everything is not
fine, there are lots of return values that the sproc will return like
return -98, return -60 etc... depending on what's wrong. Does the sproc
need to have... more >>
asp.net
Posted by edward.gillan NO[at]SPAM tiscali.co.uk at 4/15/2004 3:06:28 AM
Hi there,
I need some feedback on this page
http://www.thephoenixgroupuk.com/selfdrive_hire.aspx
I have build my database and now uploaded to my hosts server. And this
form on this page gets information from it (obviously), but what i
have a problem with is, if you select a vehicle, lets ... more >>
HttpException after Session Timeout
Posted by rolf.gossen NO[at]SPAM gmx.de at 4/15/2004 2:40:45 AM
Hello NG,
In my Web-Application I want to redirect the User to the Login-Page
whenever his Session has timed out. According to a lot of NewsGroup
Entries this can be achieved by the following code in global.asax
public Global()
{
InitializeComponent();
this.PreRequestHandlerExecute += new... more >>
HOWTO : passing values between ASP.NET applications ?
Posted by arkam NO[at]SPAM caramail.com at 4/15/2004 1:25:17 AM
Well everything is in the title !
Arkam... more >>
Hello everyone...
Posted by Nugs at 4/15/2004 12:27:24 AM
Hi there everyone, I'm new to this newsgroup so I hope you don't mind me =
just asking a question, but it has been working me for way to long now =
and I need some help. I'm fairly new to ASP.NET and VB.NET but have been =
cramming for weeks now and hit a snag.It has to do with forms =
authentic... more >>
Newbie questions on Crystal Reporter
Posted by Raymond Du at 4/15/2004 12:26:02 AM
Hi,
I am using VS.Net to create web applications. Inside the Web Forms toolbox ,
there is a CrystalReportViewer control. Questions:
(1) How do I create a Crystal Report?
(2) Is it worth it to learn it and use it in a web form?
TIA
... more >>
|