all groups > asp.net > august 2003 > threads for tuesday august 12
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
Back Functionality
Posted by girishpal NO[at]SPAM hotmail.com at 8/12/2003 11:54:53 PM
How could i disable that the users won't be taken back if they click
back button but only Page Expired Page will be displayed.
Thank You.... more >>
Need Help, MTS component in ASP.NET
Posted by Dinesh Upare at 8/12/2003 11:20:22 PM
Hello,
Can somebody help me out?
GetObjectContext method is already implemented in a MTS component, but
when I create a wrapper of the object and use it in asp.net, the
GetObjectContext is not
able to get hold of HTTPcontext in ASp.NET and returns the null object.
Thanks
Dinesh
... more >>
how to redirect to a frames-based html page and load the right html when coming from an ASP.NET page
Posted by Mark Kamoski at 8/12/2003 10:11:30 PM
Hi--
I need a code sample of how to redirect from an ASP.NET page to a
frames-based html page and specifying what should load in the destination's
frames.
Any ideas?
(Even air-code is much appreciated.)
The long story is this. I have 2 sites. One is in DotNet and one is html
and fra... more >>
merge two asp.net website?
Posted by mark at 8/12/2003 9:38:18 PM
How to merge two asp.net website? they will use one request.isauthenticated
attribute.
It looks redirect URL from one project to another will make
request.isauthyenticated change to false. (if it's true before redirect)
... more >>
Multiple-Window/Download Question
Posted by hunt n peck at 8/12/2003 8:42:18 PM
I have had some trouble resolving this issue. Here is what I am trying to
do:
I use ADO.NET to grab data from a DB and then use ASP.NET to display it in a
table.
I want to add a button to the page that pops up a new window with the same
table of data as an Excel spreadsheet.
I want the AS... more >>
Cookies and Code-Behind?
Posted by Jack at 8/12/2003 8:24:22 PM
Hello,
Will Cookies work in a code-behind aspx and aspx.vb page?
I am trying to set a cookie on one page and the read it on another page.
If anyone can help, let me know.
Thanks in advance for your time,
Jack
... more >>
Dynamic Meta Tags
Posted by Eric Levin at 8/12/2003 8:11:48 PM
I would like to load the Meta Tags in the page from Code:
Currently they don't come up.
The Source that I have:
private void LoadHeaders()
{
DataSet oDs = new DataSet();
oDs = MetaTags_Select("default.aspx");
foreach (DataRow dr in oDs.Tables[0].Rows)
{
string TagName = dr["... more >>
accessing an asp:label from inside a .dll
Posted by Will at 8/12/2003 7:30:39 PM
I'm building a component and I want to access the .Text
property of an asp:label that is on the asp.net page from
a method in my assembly file. Can someone tell me how to
do this? Thanks
Will... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Bulk edit in DataGrid
Posted by Stan at 8/12/2003 5:46:57 PM
I would like to avoid editing the items in a datagrid one by one because it
requires two additional clicks per each row - one click to put the grid in
edit mode and another one to save or cancel.
What would be the best way to edit multiple items at once and then save
them? Is there any third-... more >>
No Page_Load event when aspx is in iFrame?
Posted by Stevie_mac at 8/12/2003 5:29:30 PM
It might be me but...
I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I
do geta Page_Load event when an item on the ASPX (inside the iFrame) is
clicked but then IsPostBack=False by now!. The ASPX is opened via client
side script (into an iFrame) inside a .HTM file... more >>
Access DataGrid declared in derived class from base class??
Posted by Jonas at 8/12/2003 5:16:14 PM
Hi!
I have a base class called ListBase.vb, from which I derive
EmplList.ascx.vb. In EmplList.ascx.vb I declared a
System.Web.UI.WebControls.DataGrid. Now I want to add functionality to the
base class ListBase.vb that can access the DataGrid object. How can I
accomplish this "backwards" inher... more >>
How to add " " to list item text
Posted by Naveen K Kohli at 8/12/2003 5:07:27 PM
I am try to set the text of the drop down list item as
ListItem li = new ListItem();
li.Text = " "+"MyValue";
myDropDown.Items.Add("li);
The intent is to add a spacing in front of the text. Its not doing what I am
trying to do. The text shows up as "&MyValue"
How can this be ac... more >>
Remote Scripting - Migrate ASP to ASP.NET
Posted by Xavier MT at 8/12/2003 4:24:57 PM
Hi, does anybody use remote scripting on your asp pages?
I want to upgrade to asp.net but I cannot include the remote scripting
because I'm already using VB as a server language.
Any ideas?
... more >>
FrameSet, Access another page's method from server?
Posted by terry at 8/12/2003 3:09:38 PM
Hi,
I am using a FrameSet with three frames. In server code
(c# code behind) is it possible for a page to call a
function in another page of the frameset? I suspect that
it is not possible but it sure would be nice.
Thanks for your help,
Terry ... more >>
HELP: Custom DataReader Function - Tricky issue
Posted by VB Programmer at 8/12/2003 3:05:50 PM
I have a function that returns a datareader. The problem is that in the
function's FINALLY I close the datareader and set it to nothing. But,
BEFORE the Finally I "Return" the datareader (in the Try).
The problem is, by the time it's "returned" it says I already closed it. Any
ideas how I can... more >>
webform buttons
Posted by Pegter at 8/12/2003 3:00:59 PM
Hi
Why cant i see my webform buttons in de IE????
thanks... more >>
Strange Error While Debugging
Posted by John Kraft at 8/12/2003 3:00:40 PM
I put a break point in the Page_Load function but when I tell it to run
till breakpoint, a little question mark appears inside the breakpoint
stop sign and the popup says that the breakpoint will not be hit because
there are currently no symbols loaded for this document.
What does that mean... more >>
Questions regarding CR.NET
Posted by TaeHo Yoo at 8/12/2003 2:53:28 PM
Hi Guru,
I am just about to study CR.NET. At the moment, I don't have any clue
about what I could do with it.
So that is why I am asking a few questions here.
First of all, we have .NET. does it include CR.NET license or should we
have to buy CR.NET license seperatly?
Secondly, is it f... more >>
User Message
Posted by szabelin at 8/12/2003 2:51:27 PM
Hi I want to pop up a little window (sort of a message
box), so I call MessageBoxA function during postback, and
I get "error on page" icon. What's the way to popup a new
window? Thanks!
public static void MessageBoxA(string message)
{
HttpContext.Current.Response.Write("<script
lang... more >>
How do I prevent users from viewing a webpage directly by typing in its URL?
Posted by swbaz at 8/12/2003 2:42:25 PM
What is an effect way to prevent users from viewing a webpage directly by
typing in its URL?
For example: If a default page is set up as a login screen with user name
and password.
The user types in correct information and clicks the submit button.
The next webpage comes up, displaying it... more >>
Validators not working on Server 2003
Posted by Brent at 8/12/2003 2:34:47 PM
Hi,
I have a C# asp.net app. My validators all worked fine on 2000, and now I
moved my app to 2003 and the validators are not working. I added
if(!IsValid)
return;
as a workaround to my buttons for now so it does it server side or whatever
but I still would like this to work. I saw in anot... more >>
how to do a server push
Posted by DesignerX at 8/12/2003 2:07:11 PM
At a certain page in my web app I'm entering users into a Queue for
processing, how can I do a server push (like the expedia 'searching for
flights' screen) that can display a progress page then update when the
users.
Note: I'm not interested in client refresh.
Thanks,
Stan
... more >>
ASPNet with IIS on XP with SP1
Posted by DevBoy at 8/12/2003 2:04:40 PM
I have Visual Studio.Net installed and have been using it. However, I want
to start converting some old asp solutions to aspnet. Is this going to be
possible using XP Pro with SP1?
Anyone know of any good examples of this anywhere?
... more >>
Global.asa File ?????
Posted by DevBoy at 8/12/2003 2:03:29 PM
I need to store many parameters for a web app. I remember with aspp they
used to reference a file named global.asa (I believe). Is this still the
case with aspnet or it is something different now?
Anyone know of any good examples of this anywhere?
... more >>
files client
Posted by cedced at 8/12/2003 1:58:40 PM
Hello,
is it possible to access client files in VB.NET?
What?
I have doing that but it isn't good (VB.NET take file on pc server and not
on pc client):
(thanks)
Dim fichier As StreamReader
Dim name As String
fichier = File.OpenText("C:\liste.txt")
name = fichier.ReadLine()
Response... more >>
Looking for sample: get links out of page.
Posted by Arjen at 8/12/2003 1:54:44 PM
Hello,
I am looking for a sample that can get links out of a webpage.
Can some body help me?
Thanks!
... more >>
calling class library from ASP.net
Posted by Alpesh Parmar at 8/12/2003 1:47:02 PM
Hi Frens,
I've made a class library project in Visual Basic using
visual studio.net 2003. Now after i m done I copy the dll
from the \bin dir. of this project to my web application
project using ASP.net 's bin dir to use it.
and Then I am trying to use this dll in my .aspx page but
it gi... more >>
Relative Pathnames in an ASP program
Posted by Ted Polak at 8/12/2003 1:29:03 PM
I am trying to use a relative pathname to connect to a Database in a folder
in my wwwroot directory. However, when I test the connection to the
database, I get this error:
'C:\WINNT\system32\Database\CBSWeb.mdb' is not a valid path. Make sure that
the path name is spelled correctly and that you... more >>
Set up applications
Posted by Ton at 8/12/2003 1:27:23 PM
Hi every body, I have a simple question: How can I see a
ASP.Net project in my machine, I mean see this
http://localhost/ProjectName? in the browser, I have the
IIS alredy installed, what else I need to do?
Thanks a lot for the help.... more >>
ASP.Net on server
Posted by John at 8/12/2003 1:19:27 PM
I am a programmer and needing to explain what is need to
the tech side of the house what is needed to run asp.net
pages on the server.
From what I can tell you need the .net framework and
asp.net installed on the server. I think the .net
framework was installed as part of an update and p... more >>
an alternative to Crystal?
Posted by george d lake at 8/12/2003 12:29:55 PM
an alternative to Crystal?
Does anyone know of something that will create simple reports like Crystal?
export to Excel and PDF?
Thanks.
... more >>
Get value from datagrid DDL cell OnSelectedIndexChange
Posted by steve roszko at 8/12/2003 12:28:34 PM
I have a dropdownlist in a column of my datagrid. When
the user
changes the value in the ddl, I want to fire off
OnSelectedIndexChange
event and do an update based on the id held in a hidden
column of the
grid. But I cannot seem to get to that cell info from my
OnSelectedIndexChange pr... more >>
Client Side Java Script
Posted by Suhail A, Salman at 8/12/2003 12:12:48 PM
Hi,
am not a ASP.NET programmer, and it seems that i have to learn web
development, so i need help learning java script.
any links to some good sites would be very helpfull.
thanks
... more >>
Hiding and Showing User Control Dynamically
Posted by John Kraft at 8/12/2003 12:11:39 PM
Hey guys,
I created a little user control that is basically a table with a login
and password field. I have this control on all my pages, but I want to
hide it or show it based on whether or not the person viewing the page
has logged in. I can't seem to get it to work.
I put a conditio... more >>
Pasing a reference to my page's Response.Cookies collection
Posted by hillscottc NO[at]SPAM hotmail.com at 8/12/2003 12:10:38 PM
I would like to have my ASPX page call a function intended to make
changes the the current Page.Response.Cookies. I had thought that to
allow the function to modify the Cookies, I would have top pass the
collection by REFERENCE. But I am getting
"A property or
indexer may not be passed as an... more >>
VB6/VB.Net difference question
Posted by Dave at 8/12/2003 12:05:37 PM
What are the VB.Net equivalents of the VB6 "Class
Initialize" and "Class Terminate"?... more >>
<asp:checkbox>
Posted by C at 8/12/2003 10:57:12 AM
Hi,
I have an asp server side checkbox as below.
I have a page where users can edit their user record.
I set this checkbox to true based on a value in a
database.
<asp:checkbox id="chkTest" Runat="server"></asp:checkbox>
If the user unchecks the checkbox and submits the page I
upd... more >>
Empty DataGrid Formatting
Posted by Matthew Wieder at 8/12/2003 10:45:31 AM
Hi - I have a datagrid that has a black header and the rows alternate
white and gray. The problem is that until items are added to the grid,
the grid appears as a large black rectangle, which is quite ugly. The
black area is larger then it is once an item is added. How can I solve
this pro... more >>
WebClient.DownloadData without cache
Posted by YA at 8/12/2003 10:16:29 AM
I am using WebClient to download a text file from the net every 2 minutes.
The problem is that I think I am reading the file from cache since when the
file is change I still get the old file.
Here is my code:
Dim myWebClient As New WebClient()
Dim responseArray As Byte() = myWebClient.DownloadD... more >>
parameter
Posted by cedced at 8/12/2003 10:09:59 AM
Hello,
How use a variable Javascript in a fonction VB.NET?
(Variable Javascript is executed in page_load but fonction VB.NET is
executed in asp button on_click)
IS it possible?
Thanks you.
... more >>
object persistence
Posted by matif NO[at]SPAM hotmail.com at 8/12/2003 10:05:20 AM
I instatiate an object first time when an asp.net page loads. But when
the page reloads after Post Back, I get an error saying the object
does not exist. What do I need too do to make object persistant on
server?
Help appreciated.... more >>
Problem sending mail on Server 2003 "SendUsing" configuration is invalid
Posted by Brent at 8/12/2003 9:48:28 AM
Hi, I have a C# asp.net app that sent mail fine on server 2000 or win 2000,
but now I moved it to our new 2003 box, and it's giving me "The 'SendUsing'
configuration is invalid"
This is the code now...
MailMessage mail = new MailMessage();
mail.From = from;
mail.To = email;
mail.Sub... more >>
The problem with Try Catch Finally...
Posted by VB Programmer at 8/12/2003 9:15:18 AM
Variable scope doesn't make sense to me when it comes to Try Catch Finally.
Example: In order to close/dispose a db connection you have to dim the
connection outside of the Try Catch Finally block. But, I prefer to dim them
"on the fly" only if needed (save as much resources as possible). A lit... more >>
Disabling a field when editing an existing record in a Datagrid
Posted by mperona NO[at]SPAM earthlink.net at 8/12/2003 9:11:50 AM
I created an ASP.net form with an editable datagrid on it. I can
create new records, and update and delete existing records. The
problem I have is that I want a field in the grid to be editible when
I'm editing a new record, but disabled when editable an existing
record. Any ideas
Mark... more >>
print asp:datagrid with local formatting
Posted by Paresh at 8/12/2003 8:35:51 AM
Hi
I need to Print asp:datagrid with formatting, which will
avoid my writing of crystal reports and can directly
print with click of a button.
I do not just want to print the current page, I want to
print all the pages in that datagrid, as I have used
paging in the datagrid (there is an ... more >>
ASP.NET application slowing down
Posted by dev NO[at]SPAM thevalley.f9.co.uk at 8/12/2003 8:25:56 AM
We have written an ASP.NET application in VB connecting to a SQL
Server database. It is run across an internal network at a client
site, with around 30 users on the site. They open the application each
morning an over the course of the day it gets slower and slower. If
they close IE, open a new ... more >>
How can i get the previous value of a control when editing a data grid?
Posted by Blake Versiga at 8/12/2003 8:22:37 AM
When editing a datagrid (C#)
I need to know if the user changed the value of cell AND what the previous
value was.
Is this possible? If so how do I get the previous value or at least if the
cell has changed?
TIA
Blake
... more >>
Changing Pictures On Page
Posted by brian at 8/12/2003 7:39:07 AM
I am new to .net technology. I have a home page built
for my company using asp.net. On the bottom of the home
page I want to embed a "dilbert comic strip" which is gif
format. I have the strips in the directory
c:/dilbert/"then by year for sub directories". I would
like to have the page... more >>
Print asp:datagrid with formatting
Posted by Paresh at 8/12/2003 6:39:08 AM
Hi
I need to Print asp:datagrid with formatting, which will
avoid my writing of crystal reports and can directly
print with click of a button.
any kind of information is appreciated
Thanks
Paresh.... more >>
Data Access Problem when importing custom file
Posted by alex NO[at]SPAM hotpop.com at 8/12/2003 5:59:10 AM
Hi,
I have an aspx file that creates a custom class object and calls a
method which should return a DataSet. It throws a:
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your ... more >>
Open a *new* window?
Posted by David Albany at 8/12/2003 3:33:01 AM
I would like my web app to open a new browser window,
similar to a standard target="_blank" form tag.
The new page must preserve Session information, and have
control passed to the Form_Load event.
I have tried Server.Transfer, Response.Redirect and
setting the form target to "_blank", b... more >>
Simple question
Posted by Steve S at 8/12/2003 2:18:43 AM
In the code, how do you reference the web directory that the files sit in?
Thanks
... more >>
Release Mode
Posted by mike NO[at]SPAM my-syte.com at 8/12/2003 2:01:29 AM
My ASP.NET is running slowly so I build it in release mode to check
real performance. However when I run my app throught IE there seems to
no difference in performance. Do I need to copy files somewhere or do
something else?... more >>
Button's text
Posted by Jenny at 8/12/2003 1:32:51 AM
Hi,
I'm using a button, generated in the code behind:
Dim button As New System.Web.UI.HtmlControls.HtmlButton
button.Attributes.Add("value", "I'm a Button")
button.Style.Add("width", "100px")
Page.Controls.Add(button)
The width statement works properly but setting the text on
the button... more >>
Open linked PDF-Files from a PDF-File
Posted by Paul Kuebler at 8/12/2003 1:11:36 AM
?????????????????????????????????????????????????????????????????????????=
?????????????????????????????????????????????????????????????????????????=
?????????????????????????????????????????????????????????????????????????=
????????????????????????????????????????????????????????????????????????... more >>
Sending mail to Hotmail - Using Smtpserver
Posted by Jayakumar at 8/12/2003 12:26:50 AM
HI,
I am using System.web.mail class in my application to
send mails. I am using SMTP server for the same. I can
send mail to the intranet addresses, But when i send mails
to Hotmail or other domains the mails are not sent. What
should i do for the sending mails to hotmail and other
a... more >>
|