all groups > asp.net > july 2004 > threads for thursday july 29
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
strong naming assembly
Posted by Derrick at 7/29/2004 11:29:09 PM
I am attempting trying to create an assembly with strong name
Here is what I have done:
called sn -k Tesstkey.snk
placed this code in my class:
using System.Reflection;
[assembly:AssemblyKeyFileAttribute("TestKey.snk")]
I am getting an error saying it cannot read the key file
First, W... more >>
When you bind an array to a datagrid, what's the field name?
Posted by AFN at 7/29/2004 7:53:05 PM
In VB.NET, I can successfully bind a generic datagrid to a 1 dimensional
array. But, now I want to add a button column, and so I think I need to
make the first column (the one having data in the array) a "BoundColumn" and
the 2nd column my button column. The problem is that the BoundColumn wan... more >>
Move to Server is not Working.. need help
Posted by RSB at 7/29/2004 7:52:43 PM
Hi Every One,
i am trying to move my ASP.net application from LocalMachine to a Server..
And when i try to acces the page i am getting the error
"Server Application Unavailable "
And when i looked at the Event Viewer on the Server the Error log had the
following message ..
what am i missing he... more >>
Code Error
Posted by Viktor Popov at 7/29/2004 7:29:04 PM
Hi,
I'm trying to execute stored procedure and I collect its parameters from
WebForm. There is an error: Error converting data type varchar to int.
What could be the problem? Thanks! Here it is the code:
private void Button2_Click(object sender, System.EventArgs e)
{
SqlConnection conn... more >>
How to get child controls not be treated as properties ?
Posted by Dmitriy Zakharov at 7/29/2004 7:22:26 PM
Hi,
I'm trying to create a control that contains other controls. But the problem
is that child controls are treated as properties, and page could not be
parsed.
Parser Error Message: Type 'DataEntryPage' does not have a property named
'asp:Button'.
Source Error:
Line 46: ... more >>
handling int value...
Posted by Asha at 7/29/2004 6:37:02 PM
greetings,
i'm converting my value to int value using int32.parse()
the problem is that, if its an empty value it returns me an error. what can i do to handle this error besides using a if condition to handle it. ... more >>
db grid display of duplicates
Posted by Raja at 7/29/2004 6:23:01 PM
I have a question about how to display (or not to display) a column value that is same as the previous row.
For eg.
I have data in the database like this,
City Name Telephone
New York Abc 123434432
New York ... more >>
quick fix nulls
Posted by Chris at 7/29/2004 6:13:01 PM
I know the reason why I get an error when the fields are set to null, but I'm working with old data that contains them. Any quick fixes? was hoping to avoid writing out every field in sql statement for ISNULL and avoid the long check on the make equal to value. Ideas?
Sql statement (I know I coul... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Access is denied...
Posted by James at 7/29/2004 5:43:37 PM
I developed a small data-entry ASP.NET app on my workstation (WinXP Pro).
It connects to a SQL Server 2000 DB using integrated security. This is
located on a server, SERVER1.
SERVER1 is also our web server.
I then built the solution, & copied its folder into the wwwroot folder on
SERVER1.
I mo... more >>
How to implement mixed asp.net authentication
Posted by Invalidlastname at 7/29/2004 4:22:17 PM
Hi,
Here is the issue: we have an ASP.NET application which is protected by Form
authentication. The web application is hosted in the web-farm environment on
multiple web servers. There are several asmx webservices pages used for
inter-server communications, e.g. invalidate the cached items, s... more >>
taking the value from dropdownlist
Posted by Viktor Popov at 7/29/2004 4:12:27 PM
Hi,
I'd like to ask how could be taken the value from DropDownList and to
appropriate it to
cmd.Parameters["@CITY"].Value = DropDownList1......
I know that it must be something like this above.
Could you help me!
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus sy... more >>
Question: CSV export file displayed in Datagrid or Table - How?
Posted by VB Programmer at 7/29/2004 4:03:34 PM
I have a comma delimited export file with 10 columns. I want to display the
first 5 and the last 2 columns in a datagrid or table. Is there any way to
do this automatically? If not, does anyone have any ideas how I can do
this?
Thanks!
... more >>
ASP.NET Chat
Posted by John Wright at 7/29/2004 3:47:11 PM
I am trying to create a very simple chat program using UDP through a web
page. I am having problems getting this going. All the examples I've seen
deal with remoting or application variables, or web services, etc. Does
anyone have any resources to point me to (either VB.NET or C#) that explain... more >>
Another DataGrid Sorting problem
Posted by darindaniel NO[at]SPAM yahoo.com at 7/29/2004 3:37:08 PM
I have read many posts and seen many papers on the different
techniques for sort and filtering datagrids. Many do re-queries
against the dB ala Fritz Onion. I am trying to leverage the Dataview.
The following control simply responds to a sort request and/or a
pageing reqeust with an empty table ... more >>
web page in 2 languages
Posted by Eric Sabine at 7/29/2004 2:51:39 PM
I have a web site that needs to exist in English and German. I certainly
could write it twice in both languages (one page for each language), but
what is the preferred method for multiple languages? I could be required
later to add a few more.
Thanks,
Eric
... more >>
how to close a frame (*.htm) window
Posted by Paul at 7/29/2004 2:31:55 PM
Hi I have a frame and have a logg off button that I want to close the window and end the application. Since it is a frame not quite sure how to do this? Tried
<script language="javascript" event="onclick()" for="btn_logoff">
window.close();
</script>
but did not seem to work.
thanks
-... more >>
Customizing validators
Posted by Frédéric Mayot at 7/29/2004 2:30:52 PM
Hi,
I would like to create custom validators to change one little thing :
I want the ErrorMessage to be displayed only in the validation summary while
I just want an image or another text to be displayed where the control
positionned in the HTML code. In other words, I would like to specify two
... more >>
retrieve a record from a dataset?????
Posted by DaveF at 7/29/2004 2:25:25 PM
How can I retrieve display_names
Dim custDS As DataSet = New DataSet
Dim mySQL, mySQL2, mySQL3 As String
mySQL = "SELECT id,GBL_NO,TCN,TRAC_NO,SHIP_NAME, CAT FROM(SELECT
id,GBL_NO,TCN,TRAC_NO,CAT,SHIP_NAME, ROW_NUMBER() OVER ( PARTITION BY TCN
ORDER BY TCN, TRAC_NO, CAT ) as row_n... more >>
datagrid got corrupt
Posted by Sree at 7/29/2004 2:19:10 PM
I have a datagrid and have a bound column(select) to select the row that was populated from Database.
When I select a particular row it selects the wrong row meaning it highlights the worng row and the data gets reordered each time.
It was working fine so far and no changes to the code was done.... more >>
System.Runtime.Serialization.SerializationException:
Posted by Really stuck at 7/29/2004 1:43:26 PM
Hello,
I'm getting the following error now with my aplication, but only when I run it ocally on my machine:
System.Runtime.Serialization.SerializationException: Cannot find member name System.Data.SqlClient.SqlError.
If I push the same build to a production server it runs without issue. This bega... more >>
VS2005, Port problem
Posted by Han at 7/29/2004 1:35:39 PM
Hi
In debug mode, my asp.net page works under port: 13064 which is
automatically set by the program. However when I browse to my asp.net page
without the port number, error. How can I set the port as 80. I've searched
the port number on my config folder without success.
... more >>
Converting C# to VB
Posted by Nathon Dalton at 7/29/2004 1:31:57 PM
Hey there everyone. I posted a question a while back and someone told me of
a web site that converts C# code to VB. Could someone please tell me again
what that site is? It was really cool and I lost the link.
Thanks!!
... more >>
What I have Done...
Posted by Mike Curry at 7/29/2004 1:26:57 PM
Just thought I'd post a few links to what I've done to share with others
(not that its anything great, but I think starting a thread like this would
be a good way for others to see what most of us have done- will be
interesting!). Check them out... Any comments, questions or interest, just
emai... more >>
drawing lines on a webform
Posted by Paul at 7/29/2004 12:56:17 PM
Hi just wondering if there is an easy way to a box around a bunch of controls like
-----------------------------------------------------
| control1 control2 control3 |
| |
-------------------------------------... more >>
trouble retrieving data from ASPState Database
Posted by Glenn Venzke at 7/29/2004 12:51:38 PM
I'm trying to put together a web form that lists all current session information. The session info is stored in SQL server database (ASPState) and I'm trying to retreive and display using a SQLDataReader. I seem to have no trouble querying the "ASPStateTempSessions" table but when I try to write it ... more >>
Using XML file as a data source - concurrency problem?
Posted by Artur Sorszegi at 7/29/2004 12:44:02 PM
Hi!
There a lot of examples and talk about using an XML file as a datasource.
Given a DataSet object, you can easily load data from the XML file, and
display it in for example a DataGrid, or bind the data to other controls.
You could even edit the data, and save it back using the DataSet objec... more >>
Binding Array of DataRows to Repeater
Posted by George Durzi at 7/29/2004 12:28:59 PM
Don't know why I'm having trouble with this:
Dim arNewsletters As DataRow() = dsPubs.Tables(0).Select("CategoryName =
'Newsletters'")
If (arNewsletters.Length > 0) Then
rptNewsletters.DataSource = arNewsletters
rptNewsletters.DataBind()
End If
The code compiles, but if (for the sa... more >>
Emailing From Asp.net
Posted by Mike Moore at 7/29/2004 12:06:07 PM
What is the best way to launch outlook from an asp.net web page? Can you do this using MAPI or is there a control that you can purchase? We are unable to use SMTP. We use MS Exhange and MAPI currently for our client/server apps.... more >>
Problem with Session State being shared between users!
Posted by Philip Tepedino at 7/29/2004 11:34:12 AM
I'm having an odd problem. My website's session state is getting shared
between users!
This problem only happens when a user tries to access the site from inside
our corporate LAN. The user, instead of getting a unique session ID, gets
somehow confused as another session and has access to all of... more >>
Changing Response.Cookie from Instance to Shared (Static) Problem
Posted by Earl Teigrob at 7/29/2004 11:29:16 AM
When I write inline code on a aspx page using Page.Response.Cookies() to read a cookie, everything works fine, as in the following code.
Dim x As Object = Request.Cookies("thing")
If x Is Nothing Then
CurrentValue.Text = "No Cookie Defined"
Else
... more >>
Urgent: looking for a hosting service to host several web sites
Posted by Miguel Dias Moura at 7/29/2004 11:21:58 AM
Hello,
I need to host several web sites of my clients in an ASP.net server.
Can someone tell me a good service for it?
I was thinking in maybe a service where I could add and delete web
sites.
Thank You,
Miguel
... more >>
Validation in ASPX
Posted by Paul King at 7/29/2004 11:00:54 AM
Hi there,
I have a RequiredFieldValidator for one of my ASP textboxes. In addition, I
have another TextBox where the user can enter date information. I would
therefore like to validate the input so that only the format dd/mm/yy is
correct.
At present, if someone types a character in this ... more >>
db connection function
Posted by IGotYourDotNet at 7/29/2004 10:57:08 AM
I have a sub named ConnectToDb which has my db connections commands in it.
When I call it from another page that sub routine will not execute and i can't connect to the DB via that sub.
why is it not allowing me to connect?
code:
public sub ConnectToDB()
conn.connectionstring = ConfigurationS... more >>
Response.Write
Posted by Toby Boogerd at 7/29/2004 10:52:10 AM
Below I note that my response.write is adding spaces after the characters. I
use this code as Middleware, an application calls this page passing the
LogonID and the page is suppose to returen the password from the database.
It does but then when I open the file where I save this i notice I have
... more >>
Session state between ASP and ASPX
Posted by Chris at 7/29/2004 10:48:17 AM
I can't seem to figure out why; when I have an ASP page set the Session varibale (Session("loggedin") = true) and attempt to access an ASPX page on the domain and website it is not recogized? It shows this to be = to blank.
If I use one of the ASPX pages to "login" and set the session variable (Se... more >>
asp.net and divs
Posted by mikieg_99 at 7/29/2004 10:43:15 AM
I'd like to build a really basic site using no tables, only divs.
Obviously this will rely on CSS for formatting and positioning.
I have a left-hand navigation div. Is it possible to target a link in this
div into the main content div?
Thanks in advance!
Mike
... more >>
Read config setting from web.config performance?
Posted by Hardy Wang at 7/29/2004 10:15:16 AM
Hello all,
Do you think reading config settings from web.config (app.config) kills
system's performance?
I installed a DevPartner Profiler, and noticed
ConfigurationSetting.AppSettings is a little bit costly.
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
... more >>
Basic Security
Posted by Chris Kennedy at 7/29/2004 10:12:19 AM
Got everything working in my application including database security. The
final thing I am having a problem with is:
When a user goes to the application page they are redirected to the login
page and they logout they are redirected again back to it.
When a user goes directly to the login page, w... more >>
Storing structured types in request
Posted by Dharmesh at 7/29/2004 9:45:27 AM
Hi every1,
I am learning ASP.NET and came accross problem of storing my classes object
and I want its scope to be request. Is there a way do that. I found the only
way to store structured values in with scope request was with ViewState, but
for the ViewState to work the page has to post back t... more >>
Clearing the data....
Posted by Paul King at 7/29/2004 9:43:11 AM
I have created a form on the web that allows us to update a table on our SQL
server using the INSERT function.
The way the page is constructed is that the results panel refreshes with the
new data after a post has been issued. This is fine and dandy, but if we
were to refresh the browser, thi... more >>
Option Strict On........
Posted by WilsonSmith at 7/29/2004 9:39:42 AM
Is it not possible to use optional feature for the function parameter when
the option strict is on.
I am using .Net Frame work 1.1
Thanks,
wilson
... more >>
"Compilation Error" after Copy Project
Posted by VB Programmer at 7/29/2004 9:39:36 AM
I created a ASP.NET app locally and it works great. Uploaded it to my
server and I get this error when trying to view a page. Any ideas?
Server Error in '/earlyalert3' Application.
----------------------------------------------------------------------------
----
Compilation Error
Des... more >>
Default Browser
Posted by Brian Shannon at 7/29/2004 9:21:54 AM
I have been having problems with IE 6 so I am temperarily using Mozilla.
Does anyone know how to change the default browser that .NET studio opens
when you are testing/compiling a project?
I can't figure this out. I set Mozilla to my default browser in XP's
control panel but vs.net still open... more >>
Displaying Bitmap (simple question I think)
Posted by lvpaul NO[at]SPAM gmx.net at 7/29/2004 8:56:13 AM
Hello !
I have a Bitmap and this works fine:
Dim objC As New clsCounter
Dim objBmp As Bitmap
objBmp = objC.bcGetGraphicalCounter(5)
objBmp.Save(Response.OutputStream, ImageFormat.Jpeg)
But I dont want to use:
objBmp.Save(Response.OutputStream, Image... more >>
debugging in asp.net
Posted by tangolp NO[at]SPAM yahoo.com at 7/29/2004 7:48:15 AM
I have an ASP.NET web application on a virtual directory that is set
to require SSL. After making the settings in IIS I try to debug from
VS.NET and I get a message that the project is not configured to
debug. However, the project has all the settings and I can debug it if
I remove the SSL requi... more >>
how can I sort data?
Posted by Taly at 7/29/2004 7:46:10 AM
Hi allI have a data in datagrid
how can it be sort in the client ?(according to what the user select?)
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
How to refelect CSS changes on screen at design time
Posted by damiensawyer NO[at]SPAM yahoo.com.au at 7/29/2004 6:52:24 AM
Hi,
I'm playing around with stylesheets in VS.NET 2003's HTML/Webform
editor.
I have two documents open, one my ASPX page, the other my CSS file.
When I make a change in the CSS file, it doesn't reflect in the ASPX
designer. I've tried saving the css, building the project, saving the
C... more >>
Bug in double precision computing?
Posted by dgeisenhoff NO[at]SPAM microteq.ch at 7/29/2004 4:19:37 AM
Hi all,
can anyone explain to me why cdbl(2.8+2.16+2.85) does result in
7.81000000005 instead of 7.81 ?
Our configuration:
Win2k Server SP4
PIII-550
Dot Net Framework 1.1
VS 2003
Many thanks in advance.
Daniel.... more >>
How to populate a word file from within ASP.NET and stream it out to the client?
Posted by Daniel Walzenbach at 7/29/2004 2:36:53 AM
Hi,
=20
I need to know how I could populate a word file from within ASP.NET and =
stream it out to some user (I can rely on all users have at least Word =
XP installed).
The preferable solution would be to have a word template on the server =
which is populated in the asp.net application and t... more >>
Deserialization Error--End of Stream
Posted by Solel Software at 7/29/2004 1:23:28 AM
Hello,
I am attempting to serialize an object for storage in a DB field and them deserialize it later on. I have managed to Serialize it using
private string SerializeObject(object ObjectToSerialize)
{
MemoryStream ms = new MemoryStream();
string theSerializedObject;
Syst... more >>
Deserialization Error--End Of Stream
Posted by Solel Software at 7/29/2004 1:22:15 AM
Hello,
I am attempting to serialize an object for storage in a DB field and them deserialize it later on. I have managed to Serialize it using
private string SerializeObject(object ObjectToSerialize)
{
MemoryStream ms = new MemoryStream();
string theSerializedObject;
System... more >>
HKCU Registry Hive & ASP.NET impersonated application
Posted by Robert Drozdz at 7/29/2004 1:17:07 AM
Hello everybody!
There are many posts here concerning registry access and some derived problems.
I couldn't find however any simple answer to this basic question:
How can an impersonifited ASP.NET application access the HKCU registry hive of the user on whose behalf it runs?
It is obvious ... more >>
|