all groups > asp.net > april 2005 > threads for friday april 22
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
Debugger does not work
Posted by Gopalan at 4/22/2005 9:22:13 PM
Hi
The debugger in VS.NET is giving error "Auto-attach.....".
Windows XP SP2 machine
I followed the procedures in some of the websites and it is not working
properly.
Please help me in solving this issue
Thanks
BG
... more >>
using .ascx file to create server control
Posted by Steve Richter at 4/22/2005 8:04:50 PM
I like the idea of being able to place server controls in an assembly
and use them in all of my web applications. On the other hand I like
the ease of using an .ascx file when I write user controls.
so far in my practice drills to learn server controls I have done a lot
of rendering calls to... more >>
when updating record: it takes old values of textbox
Posted by nicholas at 4/22/2005 7:13:58 PM
have an update form with a textbox and button.
the textbox is filled with the data found in the dbase.
the user can change this and update the record.
the weird thing is that the value that is inserted is the first value, not
the one the user inputed.
even if I type response.write(thetext... more >>
How to display a field value from a DataReader?
Posted by Shapper at 4/22/2005 6:02:44 PM
Hello,
I have a working DataReader on a web page. I used it on a DataGrid.
Something like:
id name city
1 John London
2 Mary New York
How can I display the [city] value from one of the records in my page?
Thank You,
Miguel
... more >>
Response.TransmitFile fail in the middle for modem user?
Posted by Oct NO[at]SPAM ESI at 4/22/2005 6:00:01 PM
I have implemented an ISAPI filter to authenticate user download based on SQL
data. It works great for all high speed users but it fail after 20-30 mins
download on modem (yes, 56k!) user. The error message on the client side is
"The connection with the server has been reset".
I have tried ... more >>
How do u set classic ASP session variables from an ASP.NET application???
Posted by Chris Newby at 4/22/2005 5:59:49 PM
My project currently requires that I integrate an ASP.NET application with
an ASP application. One of the issues I'm having is that I have some very
long strings being created in an ASP.NET application that need to somehow
appear in a classic ASP session. The strings are too long for cookies or
... more >>
about the duwamish 7.0
Posted by Kylin at 4/22/2005 5:44:28 PM
In PageBase.cs file,
private const String KEY_CACHECART = "Cache:ShoppingCart:";
..
..
..
..
Cart returnValue = (Cart)(Session[KEY_CACHECART]);
meaning ?
any help or document about this ?
... more >>
CheckBoxList Clear - client side?
Posted by Tina at 4/22/2005 5:35:54 PM
Is there anyway to clear a checkbox list (uncheck all items) on the client
side without causing a trip to the server?
If so, could someone show me how?
Thanks,
T
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Place connectionString in web.config. Why is not working?
Posted by Shapper at 4/22/2005 5:21:14 PM
Hello,
I have this connectionString in a DataReader:
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;
Ole DB Services=-4; Data Source=C:\db.mdb"
It's working fine. Now i replaced this line with this one:
Dim connectionString As String =
System.Configuration.Configu... more >>
WebServices Return DataSet + String as Object
Posted by SMG at 4/22/2005 4:34:49 PM
Hi All,
I have a Web Service, which returns a DataSet and I am able to consume.
This is ok.
Now I want to return two things,
1. DataSet
2. String
Through one request only, I thot of using object as a return type to the
webservices but then how do I re cast it to string and dataset. Wi... more >>
Variable and DataReader Question. Help Please. I looked everywhere. Thanks.
Posted by Shapper at 4/22/2005 4:02:12 PM
Hello,
I have a DataReader which returns only one record from a database:
ID Name Content
12 hello world
Is it possible to create a variable named var_hello which value is
"world"?
It would be creating something like this:
var_[Name(ID)]=Content(ID) ,where ID=12.
I looked ... more >>
Edit a web site when having more than one locally
Posted by Magnus Blomberg at 4/22/2005 3:54:59 PM
Hello!
I have a WinServer 2003 with IIS and VS.Net 2005 beta.
I have two web sites responding at port 80.
The first one without a host header and the second with a host header.
Now I want to edit my second web site from VS.Net 2005. Everything seems to
work, but when running my project th... more >>
HtmlInputFile corrupts Excel 2003 (C#)
Posted by Rik Moed at 4/22/2005 3:51:22 PM
Hi,
I am having a problem with Excel 2003 worksheets when I upload them using
the HtmlIputFile. After the upload, I start to download the worksheet and it
appears to be currupt.
I recieve the error:
<FileName> cannot be accessed. The file may be read-only, or you may be
trying to acces... more >>
Is This Possible: Client Side Web Parts Disappear
Posted by Steve Commisso at 4/22/2005 3:04:06 PM
I'm working with the following scenario:
I'm building a wizard. Each 'step' of the wizard is its own User Control
page. I'm trying to minimize the 'round trips' (e.g. runat=server) I
make to the server so I want to try to do the following:
When the user clicks the 'next' button on one user c... more >>
Simple Question: Bind DataReader to DatagGrid
Posted by Shapper at 4/22/2005 3:02:59 PM
Hello,
I have this code to bind a DataGrid to a DataReader when page loads:
Sub Page_Load(Sender As Object, e As EventArgs)
dgContent.DataSource = drContent
dgContent.DataBind()
End Sub
It's not working.
What is wrong?
Thanks,
Miguel
P.S: This is my DataReader Function:
... more >>
need guidance on users "session data" management.
Posted by jensen bredal at 4/22/2005 2:14:45 PM
I need to keep track on user "session data" while still turning session off
as
i do not want users login to expire?
Thanks
JB
... more >>
Usig Credit Card Reader
Posted by Jerry Camel at 4/22/2005 1:29:58 PM
I'm writing and ASP.net app using vb .net. I need to interact with a credit
card reader. I have one that sits inline with the keyboard. Works great,
except for the fact that no matter what field the user is in on the
transaction page (Name, Address, Credit Card number) the reader will dump
th... more >>
Button Column
Posted by Chris at 4/22/2005 12:59:27 PM
I need to add a button column to my datagrid. I need to be able to do this
at runtime. I can not have the tag <columns></columns> in my aspx page.
This is where I am at
Private Function CreateProjectDataSource(ByVal projectds As DataSet, ByVal
dg As DataGrid) As ICollection
Try
Dim btn A... more >>
Q: loop for a dropdwon list
Posted by JIM.H. at 4/22/2005 12:58:01 PM
Hello,
How can I loop through the items in a dropwdown list: myDDL in C# to see if
there is a string: “xyz�
Thanks,
Jim.
... more >>
<TD> style Q
Posted by George Durzi at 4/22/2005 12:54:05 PM
I'm trying to mimic an Excel feature where you can put a background in a
sheet cell for example, diagonal lines.
I'm trying to mimic this in Html, I saved that sheet in Html, and copied the
styles to give it a shot, but no luck.
Here are the styles, any idea?
td {mso-background-source:a... more >>
Page Load not called
Posted by Joey Lee at 4/22/2005 12:37:00 PM
Hi,
Is there any situation where the PageLoad event is not called when a
postback is made from and event?
Strangely, I am facing a situation where DataGrid ItemCreated event is
called first without going thru pageload when a postback is made? Any idea y
this happen?
Thank
Joey
... more >>
Q: only number in a textbox
Posted by JIM.H. at 4/22/2005 12:19:05 PM
Hello,
I am trying to allow only number in a textbox. I need to put it into
database as double. So Convert.ToDouble should not fail. How should I do this?
Thanks,
Jim.
... more >>
Convert hashed password to 128-bit binary
Posted by Bill Borg at 4/22/2005 12:18:01 PM
Hello,
I am using hashpasswordforstoringinconfigfile with md5 to generate a
32-character hashed password. But, since that string is only hex characters
and is really only 128 bits (16 bytes), I'd like to shrink it down to that
size and store as a 'binary' in the database. My goal is to cut ... more >>
Q: datagrid header/footer
Posted by JIM.H. at 4/22/2005 11:59:04 AM
Hello,
Is it possible to change a datagrid Header and Footer text in code behind
dynamically?
Thanks,
Jim.
... more >>
Returning a varchar from a stored procedure
Posted by Maziar Aflatoun at 4/22/2005 10:35:26 AM
Hi,
How do I return a varchar value from a stored procedure?
Ex.
SELECT GotoURL FROM MarketingCampaigns WHERE CampaignID=@CampaignID
I like to return the GotoURL as a string? I don't want to put the whole
result set in a dataset and then grab the GotoURL.
Thank you
Maz.
... more >>
Please help !! Problem about HttpWebRequest - GetResponse()
Posted by japslam japslam via DotNetMonster.com at 4/22/2005 10:10:02 AM
Hi all,
I have problem when I use HttpWebRequest and take long time to call to my
service server. If at that time there are many request comes in
semultaneous, I will get this exception
System.Net.WebException: The underlying connection was closed: The request
was canceled. ---> System.IO... more >>
Textbox size with Firefiox?
Posted by emde at 4/22/2005 10:06:20 AM
Is anyone aware of an issue where the textbox size is ignored by
firefox, or not correctly rendered for firefox with aspnet? If I
manually add the size= tag to the textbox it works, but that defeats
the purpose of letting dotnet render the browser specific code for you.
I have seen references ... more >>
Dealing with Long running tasks in ASP.NET app
Posted by LP at 4/22/2005 9:57:47 AM
Hello,
I am supporting one ASP.NET application. A web form in this application
updates records in SQL Server db through a SP. Usually this SP doesn't take
more than 5 sec, but time to time it slows down to 1 to 5 min. Then DBA does
some "magic" with indexes and it goes back down to 5 sec. agai... more >>
ObjectDataSource non-primitive data fields
Posted by DoesDotNet at 4/22/2005 9:55:39 AM
HI All
I have a class called program with a class called Investor as one of
its Properties.
Now, I wish I could do this:
<asp:BoundField DataField="Investor.Name" HeaderText="Investor"
SortExpression="Investor.Name" />
but it won't let me...
A field or property with the name 'Investor... more >>
2 different datalists on same aspx page
Posted by Chumley Walrus at 4/22/2005 9:30:30 AM
I'm trying to display two different datalists on the same page; only
the first datalist displays, while the second does not display (and it
does have data matching the where clause):
<%@ Page Language="vb" Debug="true"%>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data... more >>
How to access the Form from the code behind? VB.NET
Posted by Chris Lane at 4/22/2005 9:12:01 AM
I have a form declared like this in the html
<form id="SearchResults" method="post" runat="server" name="frmMain"></form>
I don't see the form anywhere in the codebehind and I am not able to access
it like this
Me.frmMain or Me.SearchResults.
Is it not possible to access the form from th... more >>
Return XML from SQL Server
Posted by Tor Inge Rislaa at 4/22/2005 8:57:07 AM
By using Virtual Directory I can return XML Data to my browser by either
using Transact SQL directly in my URL as below:
http://localhost/MyVirualDirector?sql=SELECT+ CustomerID+ CompanyName +FROM+
Customers +FOR+XML+AUTO,+ELEMENTS&root= MyList
Or by include my query within an XML and call... more >>
Displaying output
Posted by bijoy at 4/22/2005 8:55:15 AM
The solution is probably pretty straight forward, but I am struggling
with it.. must be the cold I am suffering from :)
I issue a large query which results in something like this (listing
field names here)
id,user1,user2,.....,user100 (in a dataset)
I need the output to be of the form:
... more >>
Good_morning_or_good_evening_depending_upon_your_location._I_want_to_ask_you_the_most_important_question_of_your_life._Your_joy_or_sorrow_for_all_eter
Posted by RonGrossi382785 NO[at]SPAM yahoo.com at 4/22/2005 7:55:37 AM
The reason some people don't know for sure
if they are going to Heaven when they die
is because they just don't know.
The good news is that you can know for
sure that you are going to Heaven which is
described in the Holy Bible as a beautiful
place with no death, sorrow, sickness or
pain.... more >>
UTF-8 Encoding
Posted by jmhmaine at 4/22/2005 7:49:17 AM
During the course of development cycle I receive HTML files from designers
that use Macs and PCs, but use tools other then Visual Studio. So these files
sometimes are not UTF-8 Encoded.
I see that Visual Studio creates a globalization tag with UTF-8 as the
requestEndcoding and responseEncod... more >>
Login popup on anonymous allowed application
Posted by Hiten at 4/22/2005 7:43:54 AM
I have a asp.net web application on windows 2000 advanced server having
latest security updates installed and .net framework 1.1. with latest patch.
Eventhough application is configured to allow anonymous, when I try to
access the application using its IP address, it shows a dialog asking log... more >>
RequiredFieldValidator not working in Firefox or on MAC
Posted by Brian at 4/22/2005 7:15:06 AM
I have a field that is required.. If the user doesn't put anything in
that field, it throws a "Argument 'Length' must be greater or equal to
zero." error.. Is there anyway to fix this?
... more >>
Opinions: Is Remote Scripting Worthwhile?
Posted by lisa NO[at]SPAM starways.net at 4/22/2005 7:08:02 AM
One of the things I hate the most about ASP.NET is the postback of an
entire page just to update a single field. So I was looking around,
and I came across Remote Scripting.
See, when I write ASP pages, I usually have a hidden iframe on the page
that I post to. And onload, that hidden page c... more >>
how to share the connection?
Posted by dollar at 4/22/2005 6:40:12 AM
I am a newbie in asp.net , I want to share the sql connection
functions, class, variables etc. between my web forms, what is the bes
way to do that , pls help
-
dolla
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------... more >>
MS need to do more for MVPs
Posted by mavrick101 at 4/22/2005 5:59:05 AM
You go on a Java board and post a question and you get replie(SSSS) in
minutes and you post a question for a .net problem and you wait for days to
some one actually respond to it.
I don't know what, but MS should consider to inspire and deperately
encourage people to contribute on the messa... more >>
of type 'TextBox' must be placed inside a form tag with runat=serv
Posted by Alixx Skevington at 4/22/2005 5:44:03 AM
Hi there peeps,
I am having a problem have just started to use usercontrols, and I am
hitting a problem.
I get the error message above, now each control has a table, and 1
asp:textbox control. Now when I first got this error I just put the form
tags around the table in the control with ... more >>
UrlDecode !!! retrieving querystring from an 'escaped' url
Posted by mavrick101 at 4/22/2005 5:24:11 AM
Patrick,
Thanks for your response. Actually, UrlDecode would decode the url, but then
how do I use request.querystring? Do I have to 'manually' parse the
querystring?
Thanx
"Patrick" wrote:
> Hi Maverick,
>
> you can use "System.Web.HttpUtility.UrlEncode" or "UrlDecode".
>
> Reg... more >>
Script w/ FileSystemObject, error creating object
Posted by kermit at 4/22/2005 4:24:04 AM
I keep seeing that you can use the FileSystemObject in either VB script, or
Javascript on an aspx page.
I added a refrence to the scrrun.dll
I added importing namespaces for 'System.Object', 'Scripting',
'Scripting.FileSystemObject', and a few others
However, when I try to create the ... more >>
server application aspnet_wp.exe stopped unexpectedly unavailable
Posted by phancey NO[at]SPAM 2bytes.co.uk at 4/22/2005 3:14:35 AM
hi,
I'm having an absolute nightmare with this!
I've seen many posts on the subject but still can't quite figure it
out.
I'm using csharp and Framework 1.1.4322.537 on Windows2000 Professional
5.00.2195 Service Pack 4
I click a hyperlink which takes me to an aspx page with a document I... more >>
How to open a web form with a button??
Posted by rasha_cs_99 NO[at]SPAM hotmail.com at 4/22/2005 2:18:47 AM
Hi all,
I am a beginner in using ASP.net, and I want to ask: If I have two
web-forms in the same project(Web-Application) and I want one of them
to open the another via a button? How can I do it? And what if I have
each one in a different project??? How can this be done?
Regards,
RASHRAS... more >>
Would It be a bug of ASPNET?
Posted by David Zhu at 4/22/2005 1:25:04 AM
When using "//" to comment the server side code in a web page, I found that
aspnet would only comment the first line of the gernerated code of result
page,
and that might produces an error when the gernerated code is multi-line,
because
the rest lines wouldn't be commented at all!
... more >>
add sorting to a repeater ?
Posted by TJS at 4/22/2005 1:08:49 AM
Any examples or tips on how to add sorting to a repeater column header ?
... more >>
URL Path problem
Posted by bernardpace NO[at]SPAM yahoo.com at 4/22/2005 12:42:41 AM
Hi,
I have the following situation:
MyProject\Test.aspx
MyProject\Personal\View.aspx
Now I am in Page "View.aspx", and would like to be redirected in a
previous layer folder, ie into "MyProject\Test.aspx"
In the View.aspx, I am using Response.Redirect(@"Test.aspx"); but that
is giving m... more >>
|