 |
 |
Index ‹ Web Programming ‹ IIS
|
- Previous
- 1
- ASP.Net >> GridView on Delete Method problemHi there,
I'm using ASP.NET 2.0 and SQL Server 2005 with VS 2005 Pro.
I have a Price page (my website require login) with GridView with the
following columns
PriceID, Amount, Approved, CrtdUser and Date
And Edit and Delete buttons
I created a function to retrive the current user
Protected Function GetUserName() As String
Return User.Identity.Name
End Function
And on SQLDatasource1 I added
Protected Sub SqlDataSource1_Updating(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles
SqlDataSource1.Updating
e.Command.Parameters("@CrtdUser").Value = GetUserName()
End Sub
I converted the CrtdUser into a template and changed the Field binding
from crtdUser to GetUserName() function
Also I created a Trigger for Update which basically insert updated records
into a log table from Inserted = NEW and deleted = Old
Everything works fine
I also created a trigger for Delete look like this
CREATE TRIGGER [dbo].[tr_Price_Delete]
ON [dbo].[Price]
AFTER DELETE
AS
BEGIN
SET NOCOUNT ON;
Insert into dbo.PriceArchive
Select
'New','D',
Price_ID,Amount,Store_ID,BSP,ALC_ID,GN_ID,Approved,CrtdUser,GetDate()
From Deleted
END
Because the delete trigger is from deleted every times when user delete
record the log table populated with the original user name that create the
record
I also changed the label on the GridView with GetUserName() so now it show
only the current user name (overrite the acual record) but it dsen't
populate the table with current user name
The crtdUser show old values insted of new.
How do I retreived the current user on delete method whith this GridView
control?
Thanks,
Ed Dror
- 2
- Frontpage Client >> Confirmation Page and [Back] buttonHi. On my online ordering form I use browser cookies to keep track of
users items. My confirmation page reads:
"If any of this information is incorrect, please go back to the order
form and change it. We thank you for your patronage.".
Question. At what point will I be able to delete my cookies? If I
delete them before posting the online form, then they won't be available
if customers [go back] from the confirmation page.
In the confirmation page, I was thinking maybe a <body
onunload="del_cookie()">. I tried it, but it didn't seem to work. Does
the [Back] button activate onunload?
- 3
- ASP.Net >> null reference in application objectI am trying to move an application that i created to my isp. My application
runs on my local machine. Howerever I am gettting a null reference point to
an application variable I created.
In my default.aspx page I have the following line in my page load event
TextBox1.Text = Application["BaseURL"].ToString();
This triggers the
Object reference not set to an instance of an object.
error.
Could there be something wrong with the way my isp has configured my asp.net
application? Any help is appreciated.
regards,
Jim Meisterich
- 4
- ASP.Net >> question on system.net.mail.snmtpHi all,
I am trying to upgrade an app under 1.0 to 2.0, and one of the features
is to use the .net.mail.snmtp namespace instead of web.mail.
I got an exception that says:
Command not implemented. The server response was: Command not Supported
When using my snmtp server. Now, when I used our exchange server with
internal addresses the command was successful.
Can anybody share any ideas ?
Thanks in advance,
Carlos.
- 5
- ASP/Active Server Pages >> a name was started with invalid characterTeaching myself ASP.NET, using Microsoft Press book called ASP.NET 2.0 by
George Shepherd.
Ch. 2, it says to type the following code:
<%@ Page Language="C#" %>
<html>
<body>
<h1>Hello World</h1>
Nothing really showing here yet, except some HTML...
</body>
</html>
Here's what I see in the browser:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource
'http://localhost/ASPNETStepByStep/HelloWorld.aspx'...
<%@ Page Language="C#" %>
-^----------------Because of wrapping, you may or may not be able to tell,
but the arrow is pointing to the percent sign, the 2nd character of the
entire page.I am quite sure I followed all directions correctly, and have
spent hours going back over them. Part of those instructions involve setting
up a virtual directory in IIS. I'm running on WinXP SP2. If anyone has any
insights on this, please let me know. TIA.
- 6
- ASP/Active Server Pages >> Where can I get avg rate info?Dear Group:
Can anyone tell me how to set my rates for billing? I have a reasonable
amount of HTML experience along with Java and JavaScript but I don't know
where I can find salary/rate information for ASP design work. Any help would
be greatly appreciated.
Thanks in advance,
Carl
- 7
- IIS >> Frontpage Extensions (2000) and Restricted GroupsGreetings, we have a Windows 2000 DC which was upgraded from NT4 running IIS
5.0. I have just recently configured restricted groups for trusts to other
domains and since I have done that only users who are members of domain
admins can logon to their frontpage enabled web site (for editing)?
Can anybody tell me why this is so? Perhaps you could point me to some good
documentation on Frontpage extensions. The Win2k resorce kit has very little
information on properly deploying Frontpage!
- 8
- ASP.Net >> Blogging Components: Trackback and Pingback ProtocolsI'm looking to create a blogging component (or find one) that would basically be a "drop in" on an
ASP.NET page (i.e., I don't want full blown blog theme management and page configuration
capabilities).
I've looked into BlogX and dasBlog, which both seem to be good, but full blown, packages. Does
anyone know of a more limited blogging component?
Also, I'm willing to roll my own, but am unclear about how the Trackback and Pingback protocols need
to be implemented. What I could find on google wasn't terribly useful from a development
perspective. Does anyone have a good reference or two on implementation of those protocols that they
could pass along?
Thanx in advance for your help!
- Mark
- 9
- IIS >> Plagued by server crashesHello,
I am in desperate need for some help here please.
I have server 2003 enterprise and for the last 6 months I
have been plagued with intermittant server crashes.
I have obtained and installed from MS these
following KB article hotfixes.
835438
840216
830098
837432
This has greatly increased the resolution to the problem
but at
2 am USA eatern time on September 22 2004 the server went
down again.
It has been over a week since my last crash. All crashes
are now only at this time of the morning, coincidentally
at the same time my Antivirus does a complete system scan.
I have found this in the event viewer:
Error code 0000000a, parameter1 fff24e0e, parameter2
00000002, parameter3 00000000, parameter4 e0b79019.
and this:
The reason supplied by user TIMEMACHINE\Administrator for
the last unexpected shutdown of this computer is: System
Failure: Stop error
Reason Code: 0x805000f
Bug ID:
Bugcheck String: 0x0000000a (0xfff24e0e, 0x00000002,
0x00000000, 0xe0b79019)
Comment: 0x0000000a (0xfff24e0e, 0x00000002, 0x00000000,
0xe0b79019)
I really need some help here from my Newsgroup community.
This problem is wearing me out trying to fix it.
Thanks so much
Joe
- 10
- ASP.Net >> Strange behaviour in Production environnementHello experts,
I have the following peice of code in my Global.asax
void Application_Error(object sender, EventArgs e)
{
//get reference to the source of the exception chain
Log log = new Log();
Exception ex = Server.GetLastError();
log.AddLogEntry(Request, ex);
log.SaveData();
Response.Redirect("~/Error.aspx");
}
This code works well on my test server Win2k3 , IIS 6. It write to my
erro.log text file and displays Error.aspx as expected.
In Production( Win2k3 , IIS 6) , it open the file error.log(Can be seen on
last modified date) but the expection is not written to the file. Neither is
Error.aspx displayed. Can someone tell were i should be looking?
Many thanks in advance .
S
- 11
- ASP.Net >> Failed To load viewstate when loading usercontrolsI have linkButtons on my page, onclick of the link button I want to
load the proper usercontrol, this works fine the 1st time I click but
when I click the 2nd linkButton
I get "Failed to load viewstate. The control tree into which
viewstate is being loaded must match the control tree that was used to
save viewstate during the previous request. For example, when adding
controls dynamically, the controls added during a post-back must match
the type and position of the controls added during the initial
request. "
This is all the code I have on my page. Any help pls.Thanks
protected void LButton1_Click(object sender, EventArgs e)
{
plcH.Controls.Add(LoadControl("Control1.ascx"));
}
protected void LButton2_Click(object sender, EventArgs e)
{
plcH.Controls.Add(LoadControl("Control2.ascx"));
}
I'm assuming I need to reload the controls in Page_Init()
Do I check again which button is clicked inorder to reload the
controls?
- 12
- ASP.Net >> Windows 2000 Server and ASP.NETHello All
I have built an ASP.NET web application using VS2003 and v1.1 of the
framework. On my development system, Windows XP SP1a, all works well.
When I transfer the application to Windows 2000 Server (v1.1 of the
framework) the application breaks.
I am using "Deploying a Web Solution" walkthrough from VS on-line help to
install the app onto the 2k server and that seems to work fine on both the
server and my development PC.
It seems Windows 2000 Server has problems executing managed code. I have
tried running aspnet_regiis -i to reinstall ASP.NET to IIS, and still don't
have any luck.
Does any one have any suggestions?
Thanks In Advance
Wayne Taylor
- 13
- ASP.Net >> Exchange 2003Hi,
I need to read data from Exchange public folders.
Can anyone please send me a link, some code or any kind of help about this
topic.
Thanx, Neven
- 14
- 15
- ASP/Active Server Pages >> IIS/NT Security - simple question (I think)How do I stop the NT login popup box from coming up when accessing a web
page that has anonymous access disabled, and Integrated Windows
authentication set. If I click OK without entering anything in the popup
box, it brings up the page, so I know I have access to it. (If I click
cancel, it does NOT bring up the page). I just need to stop the box from
popping up. Any help would be greatly appreciated.
|
| Author |
Message |
Domarp

|
Posted: Mon Sep 22 20:13:36 CDT 2003 |
Top |
IIS >> Using PhP.
I'm trying to setup phpBB forum software on my PC's local IIS folder. I've
copied all the files to the IIS folder (c:\InetPub\wwwroot\MyForum). The
readme says:
1.. Using your web browser visit the location you placed phpBB 2 with the
addition of install/install.php, e.g.
http://www.mydomain.com/phpBB2/install/install.php,
http://www.mydomain.com/forum/install/install.php etc.
Where I am to fill in the forms. But I can't open the php file. I put into
the address bar of IE6:
http://127.0.0.1:8080/MyForum/install/install.php
and nothing happens.
I'm using WinXP and I'm a noob when it comes to IIS, so please be gentle~!
--
Julian Milano
Web Programming301
|
| |
|
| |
 |
Jonathan

|
Posted: Mon Sep 22 20:13:36 CDT 2003 |
Top |
IIS >> Using PhP.
Let's start with the basics
Do you have PHP installed?
Do you have your site running on port 8080?
Any error messages?
I'm sure you're aware that XP has a 10 connection limit, and by default IE
opens 2 to each server it connects to, therefore if you have 5 users at your
site at the same time, the site will be unavailable to the 6th until one
disconnects.
--
--Jonathan Maltz [Microsoft MVP - Windows Server]
http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
tutorial site :-)
Only reply by newsgroup. If I see an email I didn't ask for, it will be
deleted without reading.
"Julian Milano" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> I'm trying to setup phpBB forum software on my PC's local IIS folder. I've
> copied all the files to the IIS folder (c:\InetPub\wwwroot\MyForum). The
> readme says:
>
> 1.. Using your web browser visit the location you placed phpBB 2 with
the
> addition of install/install.php, e.g.
> http://www.mydomain.com/phpBB2/install/install.php,
> http://www.mydomain.com/forum/install/install.php etc.
> Where I am to fill in the forms. But I can't open the php file. I put into
> the address bar of IE6:
>
> http://127.0.0.1:8080/MyForum/install/install.php
>
> and nothing happens.
>
> I'm using WinXP and I'm a noob when it comes to IIS, so please be gentle~!
>
>
>
> --
>
>
> Julian Milano
>
>
|
| |
|
| |
 |
Julian

|
Posted: Wed Sep 24 02:33:55 CDT 2003 |
Top |
IIS >> Using PhP.
Thanks Jonathan,
I installed PHP and it's working now.
> I'm sure you're aware that XP has a 10 connection limit, ....
Really? Can it be bypassed?
--
Julian Milano
"Jonathan Maltz [MS-MVP]" <EMail@HideDomain.com> wrote in message
news:u4Wrl$EMail@HideDomain.com...
> Let's start with the basics
> Do you have PHP installed?
> Do you have your site running on port 8080?
> Any error messages?
>
> I'm sure you're aware that XP has a 10 connection limit, and by default IE
> opens 2 to each server it connects to, therefore if you have 5 users at
your
> site at the same time, the site will be unavailable to the 6th until one
> disconnects.
>
> --
> --Jonathan Maltz [Microsoft MVP - Windows Server]
> http://www.imbored.biz - A Windows Server 2003 visual, step-by-step
> tutorial site :-)
> Only reply by newsgroup. If I see an email I didn't ask for, it will be
> deleted without reading.
>
>
> "Julian Milano" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> > I'm trying to setup phpBB forum software on my PC's local IIS folder.
I've
> > copied all the files to the IIS folder (c:\InetPub\wwwroot\MyForum). The
> > readme says:
> >
> > 1.. Using your web browser visit the location you placed phpBB 2 with
> the
> > addition of install/install.php, e.g.
> > http://www.mydomain.com/phpBB2/install/install.php,
> > http://www.mydomain.com/forum/install/install.php etc.
> > Where I am to fill in the forms. But I can't open the php file. I put
into
> > the address bar of IE6:
> >
> > http://127.0.0.1:8080/MyForum/install/install.php
> >
> > and nothing happens.
> >
> > I'm using WinXP and I'm a noob when it comes to IIS, so please be
gentle~!
> >
> >
> >
> > --
> >
> >
> > Julian Milano
> >
> >
>
>
|
| |
|
| |
 |
Keith

|
Posted: Wed Sep 24 10:48:31 CDT 2003 |
Top |
IIS >> Using PhP.
> Really? Can it be bypassed?
Yes. And no. If you need more than 10, you need to buy a server package
(or use BSD :)
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ IIS |
- Next
- 1
- ASP.Net >> AppDomain and SecurityI'm creating a web application that accesses a database. I'm thinking
of restricting the rights of the default appdomain and allowing
database access only from a separate appdomain. Will that
configuration actually increase the security of my application or am I
creating unneccesary work for no reason? Thanks
mm
- 2
- 3
- Frontpage Client >> Computer Problem need help PLEASE!I have a beep when I turn on the computer. I am not sure
what the problem is and need desperate help. The monitor
when I turn it on says,"check for signal".
Could someone please give me some insight into what the
problem might be.
thank you
Jackie
- 4
- Frontpage Programming >> password for members-only sectionI was asked by my club to put a password on our members-
only section. There needn't be a different password for
everyone; just a word we all know (let's say "parrot") to
validate against.
I tried doing this with a form, but there were two
problems:
1) it wants to send the data to a file or email. i don't
want the data
2) even though I set it to be a password field, when the
wrong password is put in, the validation message comes
back saying "Please enter a value equal to "parrot" in the
Password field". Sort of defeats the purpose!
What's the right approach in FP2002 for this sort of thing?
- 5
- 6
- Frontpage Client >> website problemI've got a problem on my website; When you look at my home page everything is
in place (Nav bar, header links, right column boxes etc.) However, when you
look at some pages the box that is on the right side column (on the Homepage)
is on the left side where the nav bar is supposed to be, and there is no
links across the top(on my header) . I have tried opening my remote webiste
and recalulating hyperlinks, to no avail. I do not know what to do. can
anyone help? For quick reference take a look at it.
http://www.hardcoresupplements.com (When you open it, go to the jump menu
"Shop by brand" and select "Atkins". You'll se what I'm talking about)
Thanks in advance for your help.
Henry Contreras
- 7
- 8
- Frontpage Client >> transferring flash 8 files into frontpagei am in the process of building a website using frontpage 2000 i have also
been using macromedia flash 8 pro to create a web header for my site. having
created the header i now need to transfer the file to frontpage. as a novice
i am struggling to work out how to do this. i would appreciate some advice
thanks
- 9
- ASP.Net >> Control to grab a web page and all it's components?There are tools like WebCopier which grab webpages with the html, css, js,
images..etc, transform the links so the page can be viewed offline from the
HD.
I was wondering if there's a control or component that does the same
functionality which I can use in my own programs. While I probably can
develop this myself, I need a ready made control.
John Dalberg
- 10
- ASP.Net >> Errro when running projectHi
When I try to run my project in vs.net 2003 I get this error; "...Unable to
start debugging on the server - error...". I am using windows 2000 server.
What do I need to do to fix this?
Thanks
Regards
- 11
- ASP.Net >> Problem using master page in Ajax Enabled WebsiteHi All,
I have created a sample Application for Ajax Enabled Website and in
that i have used master page. The Application is working fine but i
got the following error in HTML Source Page.
Error 1 Element 'ScriptManager' is not a known element. This can occur
if
there is a compilation error in the Web site.
Error 2 Element 'UpdateProgress' is not a known element. This can
occur if
there is a compilation error in the Web site.
Error 7 Element 'DropDownList' is not a known element. This can occur
if
there is a compilation error in the Web site.
Is this will affect while we published the website on Net?
Is it desing problem ?
Is there any problem in web.config file?
Pls help me to resolve this problem ASAP.
Thanks in Advance.....
Regards,
Therasa.
- 12
- ASP.Net >> Namespace problemHi,
I have a bunch of classes that are named c1.cs, c2.cs, c3.cs. The
c1, c2, c3 C# files are in the namespace name1.name2 {.
In c1 class I refer to the class c2. I am compiling these cs files
into a single assembly, like this : csc /t:library
/out:bin/name1.name2.dll c1.cs c2.cs c3.cs.
However, I am getting a compile time error in c1 here, saying that it
cant find c2.
What am I missing?
- 13
- 14
- ASP.Net >> free hostingHello - uhm, this might be off topic, but are there arny free services for
hosting my domain and asp.net app?
TIA.
Cheers!
- 15
- ASP.Net >> window.open using onmouseover vs onclickI want to trigger a download using the onmouseover event. If I open the
browser window using the onmouseover or onclick event and window.open
method, it shows the Open/Save/Cancel dialog like I would expect and want.
However, when I click Open or Save when it was opened using onclick, it asks
you where to save the file and downloads as expected, but if it was opened
using onmouseover clicking Open or Save just closes the dialog, and does not
do the download. Here is a page that I used to test this:
<%@ Page Language="vb" AutoEventWireup="false"
CodeBehind="downloadtester.aspx.vb" Inherits="FileManageTest.downloadtester"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Download Tester</title>
</head>
<body id="BodyTag" runat="server">
<form id="form1" runat="server">
<asp:Label ID="lblClick" runat="server" Text="click"
Font-Bold="true" Font-Size="Large"/><br/>
<div id="div1"
style="background-color:Teal;width:300px;height:300px;"></div><br/><br/><br/>
<asp:Label ID="lblMouseOver" runat="server" Text="mouseover"
Font-Bold="true" Font-Size="Large"/><br/>
<div id="div2"
style="background-color:Green;width:300px;height:300px;"></div>
</form>
</body>
</html>
Partial Public Class downloadtester : Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Me.BodyTag.Attributes.Add("onclick",
String.Format("if(event.type=='click'&&event.srcElement.id=='div1'){{window.open('downloadfile.aspx?filepath={0}&extension={1}','newwindow');}}",
Server.UrlEncode("C:|config.sys"), Server.UrlEncode(".sys")))
Me.BodyTag.Attributes.Add("onmouseover",
String.Format("if(event.type=='mouseover'&&event.srcElement.id=='div2'){{window.open('downloadfile.aspx?filepath={0}&extension={1}','newwindow');}}",
Server.UrlEncode("C:|config.sys"), Server.UrlEncode(".sys")))
End Sub
End Class
As you can see, the window.open() statements for both the onclick and
onmouseover events are identical, and even though they both ask you if you
want to do the download, only the onclick actually allows you to do it. Why
is this, and what can I do to fix it? The browser that these experiments
were done with is IE7 on Windows Vista. Thank you for any help you can give.
|
|
|