|
I am using PWS.I have installed it from NT option pack from MS site.I am doing web based intranet application.
|
|
|
|
|
(Haven't got much time right now to flesh this thought out, but please feel free to develop it further)
Is ASP.NET really a step in the right direction when it comes to creating web sites?
The reason I ask is that I am having a tough time reconcilling ASP.NET into the XML and XSL (producing (X)HTML) vision of the web.
Yes, ASP.NET brings some wonderful features to the table. Being able to use a fully fledged language (like C#) instead of a handicapped scripting language is great. So is the concept of web forms with VB like controls (though they have a long way towards being really useful when you have cross browser and accessibility considerations.)
My concerns really have to do with when you are attempting to manage a large website which has both content-driven (e.g. an article page) and function-driven (e.g. a e-commerce ordering page) pages.
Currently we strive to ensure content is stored in XML files with XSL outputting XHTML to the client. This is great especially when you need to repurpose to different devices or you need to syndicate your content to other sites or applications.
When we need a functional page however it becomes a bit more complex tying it all together, but nothing too hectic.
Now however we have ASP.NET with code behind files. Programatically producing an Web Form is a lot trickier than a normal ASP page. Things need to be re-compiled, classes can't have duplicates etc. etc. This gives a CMS system a lot of extra stick really.
So just how does ASP.NET fit into the bigger picture of producing extensible, standards compliant and manageable websites?
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Tim Smith wrote:
Over here in the third world of humor (a.k.a. BBC America),
peterchen wrote:
We should petition microsoft to a "target=_Paul" attribute.
|
|
|
|
|
Hello all,
Internet Explorer (5.5/6.0) SaveAs dialog using Javascript :
-----------------------------------------------------------
Can document.execCommand('SaveAs') be used to invoke webpage SaveAs dialog
type as
"Web Page, complete (*.htm;*.html)". OR
"Web Archive,single file(*.mht)"
OR Any other code.
I used document.execCommand("SaveAs",null,"Testpage.htm"),but it saves
without images.I want to save it as webpage complete/archive.
All suggestions are welcomed.
Thanks!!
Regards,
Sunil B,
Enterprise Optimus,
DSR Solutions Ltd.
|
|
|
|
|
Hi,
I have a small program written in VC which waits
for some client to connect to my listening socket
and then after some processing transmits a file to the
client
Now I want that my ASP page connects to that IP and socket
and retreives some information.
How can i do it in ASP.
Please help
Sameer
|
|
|
|
|
well! i dont know about ur problem ! sorry about that !
but u can solve my problem!! can u send me ur application which u have created
if u can my address is zaki_01@yahoo.com
Thanx
|
|
|
|
|
I have a COM+ application that I can successfully use from a C# Windows Forms application. I am able to access the COM+ components via both early and late binding. No problem.
However, when I try to use the same COM+ app from an ASP.Net (C# code behind) application, I get a run-time error. If I use early binding I get an InvalidCastException for QueryInterface indicating the interface query failed.
If I use late binding I get a TargetInvocationException indicating the target does not implement IDispatch.
In the case of the early binding test, I've created an interop assembly via VS.Net, set a reference to it, etc. just as in the Windows Forms application. In both cases, I've set aspcompat=true in the aspx page. I've read the (very good) CP article on COM Interop by Aravind Corera as well as Tom Archer's C# (2ndEd) book, Adam Nathan's book on interop and others but I'm clearly missing something here.
What am I missing?
|
|
|
|
|
Just after posting, I discovered the problem. I'm posting the solution here in hopes it will help someone else in the future.
It turned out to be an authentication issue. Adding the following line to the Web.config file took care of it. (So far...)
< identity impersonate="true" />
|
|
|
|
|
I seem to be having some trouble making a simple asp.net page. I don't know if it's because I'm simply to inexperianced or there is just some setting that I'm forgetting about in IE or IIS.
In VS.NET I create a new web application on localhost (yes, I do have IIS). I then double click on WebForm1.aspx and add a label, textbox, and button. I double click the button and type
Button1.Text = "Hello"
This is just something simple to get me started. Anyway, I build the solution and then click start w/o debugging. For some reason only the label is there. WHY???????????????????
|
|
|
|
|
Are these server-side controls (e.g. <asp:button> ). If these are, did you remember to specify "runat=server"?
|
|
|
|
|
I made a custom webcontrol that reads records from a database and displays them in a webpage (as a list). However, I want each record to be clickable; and depending on the ID the control should do another query to update the list. I believe it's done with postback data but I can't find a good example or tutorial about this.
Does anyone have a good example of how to implement a custom webcontrol that handles postback data?
Already thanks!
Ludwig
|
|
|
|
|
|
hi,
How can I know, whether the client has left to another site, without logging out from a page in my site?I want the session to expire when he returns back to my site using the back button...
Ann
|
|
|
|
|
The validator controls (for example, the required field validator) does not seem to work in the netscape navigator browser. Has anybody come across this problem? Please provide me a solution. I could not progress in my work as I am stuck with this.
Thanks..
|
|
|
|
|
They only work in IE5 I believe since they make use of DHTML.
Todd Smith
|
|
|
|
|
Why i see this?
Welcome to the Microsoft .Net Framework SDK QuickStart Tutorials
The QuickStart Tutorials are the fastest way to understand what the .Net Framework technology offers leading-edge developers.
Inside you'll find information about the most compelling features of the .Net Framework technology, including how to put them immediately to work for you or your company.
To get started, follow the links below.
The ASP.NET QuickStart ASP.NET is a rich
programming framework for building web-based applications. It offers
outstanding support for both developers and administrators, providing
improved ease-of-use, tool support, reliability, scalability,
administration and security. The ASP.NET QuickStart walks through a series
of sample code and concepts to teach you how to make the most of this
powerful technology.
The Windows Forms QuickStart Windows Forms is
a rich programming framework for building Win32 client applications. It
offers great support for Win32 developers, providing improved ease-of-use,
superb tool support, rock solid reliability, much lower deployment costs
and associated reductions in total cost of ownership. The Windows Forms
QuickStart walks through a series of sample code and concepts to teach you
how to make the most of this powerful technology.
How Do I...? The How Do I? section
demonstrates some of the more common tasks that developers need to
accomplish, such as reading and parsing XML, performing data access, and
accessing services like Active Directory or Win32 APIs.
INTEAD OF SEEING THE SCRIPT INTERPRETEITING BY MY BROWSER,
SINCE I HAVE IIS RUNNING IN THE BACKGROUND?
WHAT OTHER SETTINGS DO I NEED?
TNAX
|
|
|
|
|
Hmm... maybe this is the default.asp of the root of your web?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Hi all,
I am having trouble posting a form from a WinForm client.
-----------------------------------------------------------
// Winform code
WebClient myWebClient = new WebClient();
NameValueCollection myNameValueCollection = new NameValueCollection();
myNameValueCollection.Add("user", username);
myNameValueCollection.Add("pass", password);
byte[] responseArray = myWebClient.UploadValues("http://localhost/cent/Login.aspx", myNameValueCollection);
// Login.aspx code
string username, password;
username = Request.QueryString.Get("user");
if (username != null) username.Trim().ToUpper();
password = Request.QueryString.Get("pass");
if (password != null) password.Trim();
-----------------------------------------------------------
When I run it, asp.net never gets the username and password. What am I doing wrong? Thanks
|
|
|
|
|
It's Request.Form instead of Request.QueryString.
|
|
|
|
|
I have a dll for encrypt/decrypt. I can use it by P/Invoke from a C# desktop application without any problem. But if I call it from a ASP.NET application (also written in C#), it always fail to acquire a handle to the default key container (CryptAcquireContext) and create default key container (CryptAcquireContext). So could any one tell me what's the defference to call the dll from ASP.NET codes?
|
|
|
|
|
Have to change the flag to CRYPT_VERIFYCONTEXT when try to acquire the key container.
|
|
|
|
|
I´m developing a web application in ASP using Visual Studio .NET (VB code). I´ve enabled page.smartnavigation to alleviate postback flashing and scroll repositioning, but it doesn´t seem to make a difference. The feature only works in debug mode on my development machine. Even then, it only works until I invoke the server.transfer method. I´ve found very little documentation on this matter. I agree that server controls allow quicker overall deployment, but the side effects of the postback event are barely worth it. I´m hoping someone has a solution other than reauthoring the app in java.
|
|
|
|
|
It only works for IE5 and up. Other than that I haven't seen much on it either. My book only has a short paragraph about it.
Todd Smith
|
|
|
|
|
Need help on using ActiveX COM object in ASP.NET
on AAAA.aspx file:
<object id="test" runat="server" classid="clsid:55CCD719-8676-431E-9B6E-787281D914D0" viewastext="">
on AAAA.aspx.cs file, defined the following:
using System.Runtime.InteropServices;
[ComImport, Guid("55CCD719-8676-431E-9B6E-787281D914D0")]
class ActiveXctrl {}
private void Page_Load(object sender, System.EventArgs e)
{
ActiveXctrl test = new ActiveXctrl();
}
At runtime, encountered the following error:
Parser Error Message: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
|
|
|
|
|
This partly goes to chris, but anyone with good (or bad) ideas is welcome to response.
The pages at code samples are called directly (e.x. <a href="http://www.codeproject.com/directx/killtux.asp">http://www.codeproject.com/directx/killtux.asp</a>) but each one has a fixed footer and a header, (CP-logo, banners, links, side-menus, etc). How did you do that? Do you call some code in RequestStart() and RequestEnd()?
What i generally do is using a single page and pass to it the filename or the ID of the page (ex \page.aspx?PageID=54 ) but i have also use the application.cfm and OnEngRequest.cfm files (which i think is equevelant to RequestStart() and RequestEnd() of ASP).
Both of those ways have their adv/disadv but in general are working the same. It's good for sites with simple structured site-tree.
But soon you will find a page which doesn't contain just text but it's an index for another databasetable. You will find that this new page is similar to page.aspx and you end up with urls like: \page.aspx?PageID=56&Category=4
And can go on like: \page.aspx?PageID=56&Category=4&Letter=B
Something is wrong here, it sould work the other way.
Here is what i though:
We assume that all pages contain XML code. tranditional html can be placed in <htmlcode>CDATA[[ ]]</htmlcode> sections.
1) In the Application_OnReguestStart() we get the path of the executed script.
2) we check in the same path for a similar file ending in .xsl and perform the translation.
3) we open the file enginc.xml (or whatever...) that contains a list of aspx files, we execute those files and add the reasults to the response. then from the same file (enginc.xml) we get a list of .xsl files and perform the transformations to the response.
4) we move one folder closer to the root, and repeat step 3 till we reach the root.
This is just a draff and it's sure that it will get more complex, i just wonted to know what you think, and if you have done anything like that before.
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|
|
I am sorry for this short and not very precise description, but the problem is not mine (yet ), so i haven't seen the source code.
I have been involved in a project that looks like this: A JSP application that delivers HTML and JavaScript to client browsers.
After passing way over the deadline they finally succeeded reeding (spelling?) out the worst bugs, but then: release of the IE 6!.
Now rows in tables disappear at random for no reason.
Though our customers have only paid for compatibility with IE 5, it was considered a better solution to clean up this mess. But now the HTML is 100% pure according to W3C, but still rows are disappearing (yes, they DO figure in the source HTML).
Do anybody know if this is a known bug, and i really would appreciate a workaround.
"It could have been worse, it could have been ME!"
|
|
|
|