all groups > asp.net > november 2004 > threads for wednesday november 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
recommended method to add row to db
Posted by Eirik Eldorsen at 11/24/2004 11:02:32 PM
What is the recommended method to add a row to a db? I've used the following
code since I started using ASP.NET. It's simple, but it gets very hard to
manage when the tables get big. And I have to check the inputdata for , and
'
public static int Create(int areaID, int createdByID, bool... more >>
Why Response.Redirect is not working in Session_End event?
Posted by Ravindra at 11/24/2004 10:59:03 PM
Hi,
Im trying to use Response.Redirect in Session_End event in Global.asax page,
which is not working. Why this is not working? And if this not works here,
how do I hanlde this? Any possible and best solutions will be helpful.
N.B.: Here my intention is to redirect to, say Login page, when t... more >>
free combobox control
Posted by Dufus at 11/24/2004 10:02:59 PM
Hi,
Does anyone know of a good (free) combobox control?
I have already tried http://www.lostinet.com/en/LWSampleCS/ (problems with
style rendering)
Thanks in advance.
... more >>
how to reload data based on condition
Posted by Suresh at 11/24/2004 8:49:07 PM
I have a combo and a datagrid in a page.
Combo box values are loaded on page_Load.
Datagrid is populated based on values selected in the combo (I am using
selectedIndexchange event)
I need to make a default value for the combo(first value available) and
populate the datagrid based on this v... more >>
BrowserCaps
Posted by jimmymjoy NO[at]SPAM gmail.com at 11/24/2004 8:40:54 PM
I'm very new to web development using ASP.NET. I'm developing a site
using ASP.NET. My site looks fine if you use IE but if you open it in
NS it's not displaying properly. And this display will very for
different versions of NS also.
Finally after a long search I found some article about brows... more >>
RegisterScriptBlock - Can Script Blocks Be Read / Accessed?
Posted by Michael A. Vickers at 11/24/2004 7:17:07 PM
Hi,
Does anybody have a method by which they can read script blocks that have been
registered via RegisterScriptBlock or RegisterStartupScript? I'd like to
manipulate registered script blocks prior to them being rendered to the
client.
Thank you.
Michael
--
Have a round and reme... more >>
Can`t debug asp.net application
Posted by Serg at 11/24/2004 6:08:13 PM
I have created simplest asp.net application. And it starts normally. But i
can`t debug it.
I am always getting an error:
"You do not have permisssion to debug the server. Verify that you are member
of the DebuggerUsers "
But I am a member of Debugger Users group and I am a local admin.
I have ... more >>
Best practice approach to caching dropdown values
Posted by oaguayo75 NO[at]SPAM yahoo.com at 11/24/2004 5:23:37 PM
Could anyone provide some approaches that are used to cache dropdown
list control values to share globally beteween all users? Currently,
each time a page is loaded all the dropdown values for each dropdown
list control are retrieved from the database. I would like to go away
from this approach.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Outputing Xml from ASPX
Posted by Alex Maghen at 11/24/2004 5:17:02 PM
Hi. I want to write an .ASPX page that does nothing but returns a proper XML
document to the client (IE or whatever). If I have a fully composed
"XmlDocument" object in my .ASPX file's Page_Load() and I want to output the
Xml in that object and have to xml document returned have the proper hea... more >>
running command line progs in a controlled manner
Posted by kevin bailey at 11/24/2004 4:11:50 PM
hi,
i am swamped by all the documentation and i can't find something relatively
simple.
a company has an intranet and they want a browser based application to
control data import/export. i need an apsx page to run dts packages on a
separate server.
after asking here and further investig... more >>
How to create a searh in a database field?
Posted by Miguel Dias Moura at 11/24/2004 3:34:43 PM
Hello,
I need to create a simple search in a web site.
I have an input text where the user writes the words for search.
When it clicks the "search" button a new page will appear with all the
records of the database which TITLE field includes those words.
Well, if this would be just one... more >>
Create custom server variable, it's possible?
Posted by joun at 11/24/2004 3:28:18 PM
Hi all,
i want to create in my asp.net application a custom server variable, so i
can retrieve later in other pages (even asp or perl) with
request.servervariables("HTTP_mycustomvariable")
i've tried with response.appendheader("mycustomvariable", "somevalue") but
this doesn't work, or the... more >>
pop up window
Posted by Andy G at 11/24/2004 3:24:17 PM
I have an application that once you login it creates a new window using
script (see below). This window is the window the client needs to use to do
their work (don't ask why we need a window to pop up, it's a client
request). The obvious problem...POP UP BLOCKERS! I love them when I'm on
the ... more >>
changing the text of one value in a drop-down list
Posted by darrel at 11/24/2004 3:16:57 PM
I'm binding data to a drop down list. Then, via another query, selecting one
of the items from that list by default.
What I'd like to do is change the text of that particular item as well. Can
that be done?
For instance, the list may be:
apple
orange
banana
then, I make the second qu... more >>
Measuring serialized session "size"
Posted by Bill Cohagan at 11/24/2004 2:33:35 PM
We are attempting to convert an already existing application over to using
multiple worker processes; thus we need to store state via session state
server rather than in process. Since this app previously used in process
state there was little back pressure against storing objects in the session.... more >>
convert bytes to long value
Posted by Paul at 11/24/2004 2:10:44 PM
I need to convert 4 bytes into a long. In C I would do long l = *(long
*)&buffer[10]; buffer is an array of bytes read from a file. What's the
C# syntax?
... more >>
Validators in other browsers
Posted by MattB at 11/24/2004 2:09:25 PM
I just loaded my application in Firefox in it's default state to see how
it would look and work. There were some formatting issues, but the most
problematic thing was none of my validation controls work.
Now I was under the impression that asp.net was supposed to adjust
output to whatever bro... more >>
How to Display Error?
Posted by Bill Patel at 11/24/2004 1:57:55 PM
In asp, error would display in the browser. In asp.net, I get runtime error.
How do I display error with line number and column?
begin 666 runtime.gif
M1TE&.#=A" 0(`W<``"P`````" 0(`X<```" ````@ " @ ```(" `( `@(#
MP,# W,"FRO ````1$1$<'!P``#,`,P``,S,S```S,P`B(B(I*2DR,C(Y.3D*
M)&H,)FL,)FP.*&T... more >>
screen scrape + login
Posted by nathanjlaw NO[at]SPAM yahoo.com at 11/24/2004 1:55:23 PM
Hi,
Hi have to do the followign and have been racking my brain with
various solutions that have had no so great results.
I want to use the System.Net.WebClient to submit data to a form (log a
user in) and then redirect to the correct article.
Here is the scenerio.
If you are not logged i... more >>
Multiple URL Fields in a datagrid
Posted by carlor at 11/24/2004 1:45:03 PM
Hi there,
I have a datagrid that is bound to a datasource. The grid has a hyperlink
column and I want to generate the URL using the URL Field and URL Format
String fields in the Property Builder.
The problem I'm running into is trying to generate the URL with more than
one URL Field ent... more >>
String Formatting question
Posted by Alex at 11/24/2004 1:35:07 PM
This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C4D22A.69C5DA10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have a string being returned to my in my ascx file. I get access to it =
like this... <%# DataBinder.Eval(C... more >>
ASP.Net, Session_End, Sql Server 2003
Posted by howard39 NO[at]SPAM nospam.nospam at 11/24/2004 1:11:02 PM
When SQL Server 2003 is *not* configured in IIS5 isolation mode, is it true
that the Session_End event can not be depended on? If so, what is a good way
to clean up unmanaged resources that were created in abandoned user sessions?
... more >>
Server controls are not getting processed.
Posted by Allen at 11/24/2004 12:58:52 PM
I have an .ASPX page with server side text box (..WebControls.TextBox). In
my development laptop when I browse this page it works fine. When I hosted
this on server A, it works fine. However for Server B it is not working.
Server B has .Net FrameWork 1.1 Installed. Not sure where I should get
st... more >>
disappearing session state variables
Posted by Wiktor Zychla at 11/24/2004 12:52:12 PM
Hello there,
I've just encountered a strange problem with Session. In one particular
scenario it is cleared between pages but the scenario is so specific that I
am really, really startled. I've tried to look for similar situations in the
group archive and it seems that few people have o... more >>
Cannot acces my web page onwindows 2003 server.
Posted by Jensen Bredal at 11/24/2004 12:32:56 PM
Hello,
I'm doing localhost developpement on a win2k3 server .
When i lunch the default page i get the following.
How do i resolve it?
many thanks in advance
Server Error in '/MultiTest' Application.
----------------------------------------------------------------------------
----
A... more >>
Tracking session state within business object class
Posted by oaguayo75 NO[at]SPAM yahoo.com at 11/24/2004 12:16:17 PM
Could someone explain to me why the following code snippet throws an
"Object Reference not set to an instance of an object error":
public void SetActiveStaffMember(int staffMemberId)
{
DAL.StaffMemberDataSet smDS = new DAL.StaffMemberDataSet();
if(GetStaffMemberById(staffMemberId)... more >>
Losing Session State
Posted by Jayhawktuba at 11/24/2004 12:13:01 PM
I work as a IIS Admin for a company and we have migrated some ASP.NET apps
from IIS 5 to IIS 6. They worked fine under IIS 5. They had their session
state set to time out after 120 minutes and they were using InProc,
cookieless="false". The Machine.config file did not get analyzed before
mig... more >>
Access Is Denied...
Posted by James Goodman at 11/24/2004 11:59:12 AM
Ok, I had an ASP.NET application which after much trouble worked on a
server, SERVER1. I need to move this application to another server, DC2.
Both are domain controllers, both are running the same OS, SP etc.
The files are stored in C:\NET\App on SERVER1 & D:\NET\App on DC2.
I tried manu... more >>
Receiving error about enableSessionState; Its already set to true
Posted by Sean W. at 11/24/2004 11:55:05 AM
I keep getting this error.
"Session state can only be used when enableSessionState is set to true,
either in a configuration file or in the Page directive"
This occurs when I try to add a session variable.
....
Session.Add("Nameplate", 1)
....
That is in a button click event.
I'... more >>
var doesnt show up in context.items but others do
Posted by drdave NO[at]SPAM canoemail.com at 11/24/2004 11:20:44 AM
This little problem is driving me nuts!!
On my webform page I create 2 variables..
Protected p_dml As String = "I"
Public Const mwv_id As Integer = 0
' originally had mwv_id as Protected
then in my form button click I set up my context items..
Private Sub btnAddRecord_Click(ByVa... more >>
Dropdownlist
Posted by Jennyfer J Barco at 11/24/2004 11:15:32 AM
Hello is there a way to create a dropdownlist inside a <input
type='dropdownlist'> or there is an equivalent to create other than
<asp:DropDownList id="drop1" runat="server"> . I need this because it's a
dynamic page and I need to create the dropdown control in any position
needed depending on ... more >>
Which is better?
Posted by Paul at 11/24/2004 11:03:08 AM
With respect to performance, is either of these better?
Dim myTextBox As New TextBox
or
Dim myTextBox As TextBox
myTextBox = New TextBox
or
Dim myTextBox As TextBox = New TextBox
... more >>
replace '
Posted by Mike at 11/24/2004 10:59:07 AM
I'm getting a data set returned from a web service and populating a datalist
on my page. There are times that a dataitem has ' in it (ex: car's, truck's,
etc), how can I remove the ' from the words?
instead of seeing car's i want to see cars, trucks, etc.
in VB.NET... more >>
get handle for new window from hyperlink column
Posted by Paul at 11/24/2004 10:53:01 AM
Hi this is kind of related to a post from yesterday, closing a child window
from actions on the parent window. Anyhow I was able to get this to work
using java script, and setting up open and close functions with a handle. I
have another case where a child window is opened from a datagrid hy... more >>
OpenFileDialog vs Javascript
Posted by Zagor at 11/24/2004 10:52:29 AM
Hi All,
I was wondering if it is possible to use(if it will work) the OpenFileDialog
class in ASP.NET. Currently I am using the classic javascript
but I have I need to customize the browse button.
Does anyone knows some good source of information?
Thank you for your time.
Frank
... more >>
What is ASP.net
Posted by aaj at 11/24/2004 10:45:38 AM
Hi all
can I ask a genuine question (by that I mean I'm not trolling)
We are a small company and for a few years we have been building internal
web apps in ASP connecting to databases etc.
We see that just about everyone is moving to .net, but I'm curious about
practicle reasons for doi... more >>
DirectorySearcher first access speed
Posted by cameron at 11/24/2004 10:38:35 AM
I have always been under the impression that LDAP was optimized for
speed. Fast queries, fast access, slower writes. I have a block of data
in LDAP and in SQL. Exact same data. The query is fast but the first
access to the result set takes longer that to do the query in SQL and
process the s... more >>
session timeout
Posted by gg at 11/24/2004 10:32:54 AM
It appears that the statment:
Response.AddHeader("Refresh", Convert.ToString(15))
is causing my session to expire. Does this make sense?
... more >>
Visual Studio Error When creating a New Project
Posted by Gummy at 11/24/2004 9:52:11 AM
Hello All,
I know this has been posted many times, but I cannot seem to find the
solution in all the many, many, searches I've done.
Whenever I try and create a new project I get the error:
'http://localhost/webapplication1.' 'HTTP/1.1 500 Internal Server Error.'
Here's what I've done so ... more >>
Accessing a code behind variable from ASPX
Posted by Ryan Taylor at 11/24/2004 9:31:09 AM
Hi.
I need to be able to access a public code behind variable within my ASPX
page. The reason is that I have a user control "Header" which defines a
table layout, and is included in all my pages, at various levels in the
website heirarchy. The table requires a background image. My images folde... more >>
asp.net data to word
Posted by BG at 11/24/2004 9:25:02 AM
what is the best way to create reports that could be opened in word.
- i could embed a client script within the asp page that uses the word
active x but this is too slow.
- i could also create an rtf file but for some reason, i could never figure
out how to include pictures by reference (wit... more >>
Time bar
Posted by simon at 11/24/2004 9:13:15 AM
when I execute aspx page, it works about 5 minutes - I calculate some
statistics.
Is there some way, that I can show user time bar or smething similar? That
he nows, that page is working.
Thank you,
Simon
... more >>
One item dropdowns
Posted by Jon at 11/24/2004 9:10:48 AM
I am using cascading dropdowns, where one dropdown determines the data in
the next, etc...
If a dropdown has only one item in it, the SelectedIndexChanged event is
never fired, even if you click on the dropdown and "reselect" the single
item. This also happens when there are multiple items... more >>
Session State and Cache data?????
Posted by DaveF at 11/24/2004 8:56:35 AM
What is the difference, and are there any good articles on this?
--
David
... more >>
client screen size and MS suggestion
Posted by Chris at 11/24/2004 8:55:06 AM
I think I placed this in the wrong news group so I'm moving it here.
Suggestion to Microsoft make the categories more clear and make better
sense. ASP.NET should be its own group, why bury under Framework. And I see
others doing the same mis-posting to dotnet.general which appears to be
ge... more >>
DropDown question
Posted by Jon at 11/24/2004 8:49:27 AM
I am using cascading dropdowns, where the selection in one determines what
fills another. In regular ASP I simply loaded a giant dataset into
javascript array and when you clicked on one dropdown, it populated the
others accordingly.
In ASP.Net, I was looking for a way to do this without j... more >>
Is there a code snippet showing how to do a Redirect on a TreeView event
Posted by Tom at 11/24/2004 8:41:39 AM
Sorry... new to this. I trying to figure out how to do a page redirect when
someone clicks a treeview node. Does someone have a code snippet for this?
... more >>
Client side validation stopped working
Posted by vzaffiro at 11/24/2004 8:37:03 AM
Our Development Server (windows 2003, framework 1.1) was working great for
months, then one day all the client side validators stopped working. Only the
server side validation is working. Our code was ported to other servers and
the client side validation works fine.
This makes me believe ... more >>
Dynamically added controls and events
Posted by Paul at 11/24/2004 8:34:47 AM
An early Happy Thanksgiving to you and yours...
We develop data driven apps. We dynamically place controls on a panel which
may be then be placed on a web form or another control. My problem is that I
can't get the events of the hosted controls to fire.
e.g.
' myUserControl.ascx. is placed ... more >>
Chicago
Posted by Kevin Spencer at 11/24/2004 8:32:18 AM
I just flew in from Chicago with an elephant with a wooden leg named Smith.
How he got in my pajamas, I'll never know. So I bit him.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
... more >>
Access is denied
Posted by HNguyen at 11/24/2004 8:21:47 AM
Hi all,
I have a problem with the access to the folder for uploading the file into
that folder by using ASP.NET program. The error message was : "Access is
denied ..." to the location I save the file. This problem didn't happen
when I ran my ASP.NET program with my localhost server on my per... more >>
Best Practice, creating a composite of controls
Posted by M K at 11/24/2004 7:49:13 AM
I have a collection of controls I am using on several pages. I have:
1 Image
2 Labels
I want to combine these so that I will also have certain properties
available programatically.
I want to be able to set a 'photoId' Property, that, when set, will call
data from a database, set the Imag... more >>
Split a Datagrid
Posted by dtesche NO[at]SPAM program4.com at 11/24/2004 7:35:02 AM
I'm trying to split a datagrid after 30 rows and I dont want to use it
for paging purposes so please dont suggest the PageSize="30" option.
:)
--------------------------------------------------------------------------
This is one of my first thoughts but of course it doesnt work or else
I would... more >>
Concatenate
Posted by Mike Moore at 11/24/2004 6:49:14 AM
Is there an easy way to concatenate two columns (i.e. last name and first
name columns) in a data set so both can show up in a data text field of a
combo box?... more >>
is this too heavy
Posted by rodchar at 11/24/2004 5:57:04 AM
hey all,
i was wondering if the following code, in general, if it wouldn't always be
a good idea or if there's a better way to do it.
Private Sub DataGrid2_ItemDataBound(ByVal sender As Obj...
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.Alternating... more >>
How does client know when postback finished?
Posted by adolf garlic at 11/24/2004 5:29:13 AM
A postback I'm doing takes ages to get the data which it then uses to
populate a table.
What I want to know is:
How can I get the client side to fire a 'resize' event when the postback
thing has finished?... more >>
The web serve has been locked down and is blocking the Debug verb.
Posted by Reza Solouki at 11/24/2004 5:01:09 AM
Hello,
I ran the Microsoft Baseline Security analyzer 1.2 on my developement
machine, then as one of the requests. Also updated the machine 1.1 Framework
with service pack 1.
Now everytime I try to run a project on debug or release mode get this
message:
"Error while trying to run the... more >>
Strange behaviour with formauthentication and breakpoints
Posted by sub NO[at]SPAM pox.nl at 11/24/2004 4:22:45 AM
Hi there,
I 've an .aspx page which uses formsauthentication.
The formsauthentication works fine however. When I insert breakpoints
in the code which does the actual authentication, for example the
loginbutton click event, the breakpoints are ignored.
Now the most weird part comes:
Every sixth... more >>
Next button in aspx page
Posted by srinivasam NO[at]SPAM bsil-dot-com.no-spam.invalid at 11/24/2004 3:57:48 AM
:(
Hi,
I have aspx pages, in all pages i am placing next button, which will
take us to next screen. if i click next button with mouse, it is
going to next page and functionality is working fine.
If i press the enter key through my keybord, it is going to next
page, but functionality... more >>
finding location of root web directory
Posted by spacehopper_man NO[at]SPAM yahoo.com at 11/24/2004 3:20:47 AM
hi all..
Is there a way I can find out the location on disk of my root web
directory.
Typically this will be C:\Inetpub\wwwroot.
I am *not* running a web application under IIS when I need this info
(actually it's part of a unit test).
ta very much,
Oli.... more >>
Independent Web.config for different applications
Posted by dmessenger NO[at]SPAM verdantsys.com at 11/24/2004 3:08:24 AM
I have a webservice that is implemented as an IIS application. What I
now need to do is scale this up as 10 separate webservices (identical
codebase), with 10 different web.config files as 10 separate IIS
applications. I can do this by copying the code 10 times, and
providing unique config files... more >>
Datagrid custom template help
Posted by Kasey Rybic at 11/24/2004 2:55:31 AM
I am trying to put data from a field of a query in to the HeaderText arg and
I keep getting an error.
<asp:DataGrid id="dgMainCompany" runat="server" width="55%"
HorizontalAlign="Left"
AutoGenerateColumns="False"
BackColor="WhiteSmoke"
Font-Name="Verdana"
Font-Size="11pt">
... more >>
form won't post!
Posted by Lucas Fletcher at 11/24/2004 2:17:44 AM
Hi,
For some reason ASP.NET forms do not post on my live server, although they
work fine in dev. The only difference I can see between the two is that the
framework version on live is:
1.1.4322.2032
and on dev:
1.1.4322.573
Also when I view the source on both I see some difference... more >>
Could not load type error message
Posted by scottf35 NO[at]SPAM hotmail.com at 11/24/2004 1:39:57 AM
Hi,
For some reason asp.net will not let me publish a new Webpage.
I am able to create a new page however when I set it as the start page
and hit run, I recieve "Could not load type" error message. The first
line of the html is highlighted.
I have tried to create a second page with the s... more >>
Creating IIS Web Server Virtual Directories
Posted by news.iq.ca at 11/24/2004 1:32:36 AM
Hello.
Under
C:\Documents and Settings\Administrator\My Documents\My Projects\
I have created a folder, "ASPNET" where I plan to keep my projects.
I have started Administrative Tools -> Internet Information Services and
under "Default Web Site" I have created a virtual folder with the... more >>
Generating Record ID Key
Posted by Justin at 11/24/2004 1:03:03 AM
I am trying to insert data from a dataset into the source database. I get an
error when calling update on the data adapter. Here is the error:
Cannot insert the value NULL into column 'KeyID', table 'dbo.Reservations';
column does not allow nulls. INSERT fails.
KeyID is an autogenerated n... more >>
|