Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Wednesday, March 28, 2012

Why there is no *.aspx.designer.vb files in Visual studio 2005?

On my computer windows XP, I use visual studio 2005 for development. I create a atlas project for my work.

Everytime when I create a new aspx or ascx file, there is no *.aspx.designer.vb file. But on some other computers(same environment), when create a new webform, VS will gerenate 3 files:

*.aspx, *.aspx.vb., *.aspx.designer.vb

Why? any settings related to this issue?

Hi,

the *.aspx.vb will not generate if you unselect checkbox "Place code in separate file" when you create a web form.

hope can help you.


Thanks for you reply. I knew that.

But I am not taliking about *.aspx.vb, I am talking about *.aspx.designer.vb

This *.aspx.designer.vb will hold all control variables declared in page *.aspx


Hi,

The computer where you can see the aspx.designer.vb file has the addin "Visual Studio 2005 Web Application Projects" available athttp://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx. Be aware that by installing the addin you do loose some feature at the moment like "profile", there is a work around available also, check the code project to get the addon.

Hope this helps you.

PS: I hope that microsoft changes there mind on the designer files, i love partial classes but i do not like loosing view of the main class.

VBS1


Thanks.

So if aspx.designer.vb is invisible on my computer under a wep application inside a solution, anyway can find out this aspx.designer.vb file for webform?

Monday, March 26, 2012

Windows 2000 not supported on v1.0 Beta release?

Surprised that Windows 2000 is not supported on the v1.0 Beta release. States: Windows Server 2003; Windows Vista; Windows XP and will not install on Windows 2000. We still have a lot of W2000 servers that cannot be upgraded immediately, but would love to use Atlas framework with. Right now we are on the July CTP. Any plans to add support for 2000?

Thanks

Probably not because the OS is almost 7 years old right now. I think the main reason is because of lack of features in IIS, but I would think this would also apply to Windows XP since it also uses IIS 5. I would be interested in hearing if it actually does install on Windows 2000, it might be worth a try.

The v1.0 Beta release is supported on Windows 2000. I see the OS is not listed on the "install docs" page so I'll get that fixed.

Have you actually tried to do the install yet? Should work fine.

Thanks,
Mark

Windows 2000 issue(s) with ModalPopupExtender ?

Hi,

I Have a webform containing a ModalPopupExtender, and I've just seen that the associated panel (the one that is displayed as a popup by the extender) is always visible on the page if I'm testing the page under Win2K, but this problem does not appear under Win XP (except a little and unwanted flashing).

Moreover, the panel is not displayed by the extender, it's acting as if the extender did not exist and the panel was always displayed as a simple panel on the page instead of beeing shown/hidden when required.

Win2K doest not like AJAX ?

Hi,

According to my knowledge, it should work on both win2000 & win xp. Please check the generated html to see if the source for ajax control toolkit is injected.

Like this:

Sys.Application.add_init(function() {
$create(AjaxControlToolkit.ModalPopupBehavior, {"OkControlID":"Button2","PopupControlID":"Panel1","PopupDragHandleControlID":"Panel2","X":500,"Y":500,"dynamicServicePath":"/MyAJAXSampleSite/AjaxToolKit/ModalPopupExtender.aspx","id":"mpe"}, null, null, $get("Button1"));
});
  

Windows 2000 Server

Does ATLAS run on Windows Advanced server 2000?

This server is now serving up ASP.NET pages and I dont need any additional functionality ?

But using ATLAS would be greet.

I can see in the specs for the March CTP it only runs on 2003 Server and higher but is this realy the case?

Atlas will run on any platform that can run ASP.NET 2.0, so you should be fine.

David

Windows forms like Grid

Hello,

I have been working on converting a windows app to web app. Windows app has nice grid where users can enter data or edit by just clicking on the column.

For web environment, I tried to use gridview/detailsview but it requires users to click on update or insert button. Is there something built-in or AJAX based or any solution (not too costly) that provides windows like grid in asp.net 2.0?


Thanks,

VP

None that I can think of.

Thanks for giving details about the implementations. Though is seems like a lot of form elements making it heavy during postbacks. Has anybody done what you are suggestions or something similar? It would be great to get hands on it.

Here's what I might end up buying:

dhtmlxgrid

or codethatgrid

Thanks,

vp


Ofcourse there is a solution for that :-)

With just some creativity, you can create something like that, with a gridview and Ajax.

One direction to create a direct click grid, is to put the gridview in a updatepanel.
After that put a linkbutton in every cell to hold your data.
Attach a edit row_command to the linkbutton .
Use some css to have the linkbutton a 100% (cell) height and width.

In the codebehind of the row_command event, you can easily track the cell that is clicked.
You can even use the row databound event to open a textbox in the clicked cell , or someting like that.

Marchu


Hello,

You are right about the heavy postback, ± 50 rows with 32 cells make a 730 kb page. (in my case)
What i do is, when i change 1 cell, i change this cell directly in the grid, so i dont have to load the full data again. (only Ajax must draw the grid again, what take some time...5secs)

It is not a perfect solutions this, but i been looking and experimenting for a better one.
If i found one, i will post it here.

Marchu


I decided to go withdHTMLxGrid which seems to meet my needs.

I can add data to the grid from code-behing by emitting javascript and then read data back using javascript and copying data to a hidden text field in CSV format which I grab on postbacks. This is the only grid I found which has cell + rows tabbing and allows editing cells without needing any extra keystrokes.

Standard version is free and pro is $150

Thanks for your responses


vp

Windows Integrated Authentication prompting for password, Ajax calls are fully qualifying

Alright, here's my very strange story: I have an ASP.NET 2.0 webapp that utilizes Ajax, for some reason even if I type in "http://ServerName/DirectoryName" it will prompt for a password and it will show "Connect to ServerName.DomainName.com" instead of just "Connect To ServerName". If I choose not to authenticate it will still load the page, but none of the Ajax stuff will load, and on any ajax asynch callbacks it will prompt me to authenticate again. Also, I have manually added the fully qualified server url to my Local Intranet zone and am still getting prompted, and I have tried (just for troubleshooting) to set the Authentication settings for my Internet zone to always send username and password information, but it still prompts me for a username and password! Any help would be greatly appreciated, my biggest question iswhy are my Ajax callbacks using the fully qualified url instead of the shorter one I actually typed in?

Thanks!

Mark Ransom

So I've been hacking through this for weeks now (on and off) and as soon as I post my question to this forum I figure out what's wrong. Basically in Internet Explorer under Advanced Settings there's an option that says "Enable Integrated Windows Authentication", which you would think would need to be checked for this type of authentication to work correctly. You'd think so, and you'd be wrong (at least in my situation) because unchecking that box and restarting IE allowed my users to log directly into my app and all my Ajax calls work without prompting for authentication. This may or may not be of use to anyone else, but it took me a lot of head banging (against a wall) to figure out this backwards fix.

Thanks

Mark

Windows live style info panels

Hello,

I just logged on to my windows live email account and noticed that they did an update to the interface.

When the page loaded, there was next to some textfields and buttons a yellow balloon with information about the corresponding field. There was also a link in the balloons to close all the balloons on the page. Does anyone know if this is possbile with the Ajax control toolkit ?

I did not see an extender to do that in the previous version, however yesterday MS just release the new MS AJAX library (Atlas) with more controls, download them maybe you lucky, you can always create it and submit it to MS using their library

Windows Media Player incompatible with AJAX?

Here's an odd one. I have the Windows Media Player imbedded in a page. I have links on the page which fire a javascript to set the player url and start the player. So far so good. Everything works.

Now add the AJAX bits and make the links asp:LinkButtons. I fire the javascript on the OnClientClick method. The <object> tags for the video player are outside of the UpdatePanel so it doesn't get refreshed. Remember, I want to update it with javascript. So when I click a link, the player loads the correct URL, but will not play! I have to press the play button manually to get it to play.

So what is AJAX doing that prohibits WMP from starting the stream? I have tried starting the player with an addtional command (document.Player.controls.play()) and that doesn't work either. Yet as soon as I remove the AJAX bits, it works just fine. Here's my test .aspx page (minus the code behind page. I'm not triggering any server code in this example). Also, the reason I'm using a LinkButton control is because in my real app, the video links are being displayed in a datagrid.

"C#" AutoEventWireup="true" CodeFile="vidTest.aspx.cs" Inherits="VideoLibrary_vidTest" %> 
1<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true" CodeFile="vidTest.aspx.cs" Inherits="VideoLibrary_vidTest" %>2<%@dotnet.itags.org. Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">4<html xmlns="http://www.w3.org/1999/xhtml">5<head runat="server">6<title>Untitled Page</title>78<script type="text/javascript" language="javascript">9function StartPlayer(filename)10{11document.Player.url = "mms://communitymedical.org/" + filename;12document.Player.controls.play();13}14</script>1516</head>17<body id="link">18<form id="form1" runat="server">19<asp:ScriptManager ID="ScriptManager1" runat="server">20</asp:ScriptManager>21<div>22<object id="Player" height="320" width="320" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">23<param name="autoStart" value="True">24</object>25<br />26<br />27<asp:UpdatePanel ID="UpdatePanel1" runat="server">28<ContentTemplate>29<asp:LinkButton ID="linkButton" runat="server" OnClientClick="javascript:StartPlayer('flex.wmv')">30Click Me</asp:LinkButton>31</ContentTemplate>32</asp:UpdatePanel>33</div>34</form>35</body>36</html>
"text/javascript" language="javascript">function StartPlayer(filename){document.Player.url ="mms://communitymedical.org/" + filename;//document.Player.controls.play();}</script></head><body id="link"><form id="form1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager><div><object id="Player" height="320" width="320" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"><param name="autoStart" value="True"></object><br /><br /><asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:LinkButton ID="linkButton" runat="server" OnClientClick="javascript:StartPlayer('flex.wmv')">Click Me
"text/javascript" language="javascript">11function StartPlayer(filename)12{13document.Player.url ="mms://communitymedical.org/" + filename;14//document.Player.controls.play();15}16</script>1718</head>19<body id="link">20<form id="form1" runat="server">21<asp:ScriptManager ID="ScriptManager1" runat="server">22</asp:ScriptManager>23<div>24<object id="Player" height="320" width="320" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">25<param name="autoStart" value="True">26</object>27<br />28<br />29<asp:UpdatePanel ID="UpdatePanel1" runat="server">30<ContentTemplate>31<asp:LinkButton ID="linkButton" runat="server" OnClientClick="javascript:StartPlayer('flex.wmv')">32Click Me333435363738

the player is compatible, but the onclientclick in an update panel isn't. look at the client script manager to register a script block in the update panel.

-- bruce (sqlwork.com)


The thing is, the script actually fires. The player knows what video it's supposed to play. If I put an alert() command in the script, it will fire the alert. So I know the script is being executed. I just don't understand why the player won't PLAY, when it plays fine without AJAX enabled.

But I'm willing to try workarounds... how do I register a script block in the update panel? Is that different from just using Page.ClientScript.RegisterScriptBlock(...)?

Thanks

D


Got it fixed. That was it. Once I registered the script to the UpdatePanel, the video player worked fine. I can't say that I understand it.... but it works now. Thanks!

Dana

Whiplash:

The thing is, the script actually fires. The player knows what video it's supposed to play. If I put an alert() command in the script, it will fire the alert. So I know the script is being executed. I just don't understand why the player won't PLAY, when it plays fine without AJAX enabled.

But I'm willing to try workarounds... how do I register a script block in the update panel? Is that different from just using Page.ClientScript.RegisterScriptBlock(...)?

Thanks

D

Windows XP-Like Folder Browser

Hi I'm not sure whether I'm posting to the correct place. I am trying to create a page that allows users to create a page to my website. This page contains a "Store" button, which when clicked calls a popup window (using ModalPopupExtender), which will then prompt the user where the page is to be stored. I was thinking of making this popup look similar to a "Save File As..." dialog box in Windows. My problem is I have no idea what controls to choose or how to even start on this popup. I am fairly new to asp.net and ajax and would like to hear your feedbacks/suggestions. Thanks.Hello gulrnpink,

why not to use the standard one? Just prepare the file to store and use the
following code for this

Response.Clear
Response.AddHeader("Content-Disposition", "attachment; filename=" + targetFile.Name)

Response.AddHeader("Content-Length", targetFile.Length.ToString)
Response.ContentType = "application/"
Response.WriteFile(targetFile.FullName)

g> Hi I'm not sure whether I'm posting to the correct place. I am
g> trying to create a page that allows users to create a page to my
g> website. This page contains a "Store" button, which when clicked
g> calls a popup window (using ModalPopupExtender), which will then
g> prompt the user where the page is to be stored. I was thinking of
g> making this popup look similar to a "Save File As..." dialog box in
g> Windows. My problem is I have no idea what controls to choose or how
g> to even start on this popup. I am fairly new to asp.net and ajax and
g> would like to hear your feedbacks/suggestions. Thanks.
g>
The page will actually be stored in a table called directory, which will then be called by another page using a treeview structure. This "Folder Browser" control will be populated using the data in my directory table. The control will not be displaying the folder structure within their Windows OS. Any suggestion? Thanks.

I think you can use Membership class which is built in .NET 2.0

There you can create profile per user and about storing page you have to create folder in web root

Store the pages under that folder


Actually, before users can access my website, they are prompted to enter their logon credentials. When the logon info entered has a match in my user table, the user is then granted access to my website. Things displayed inside the website will vary depending on the user's rights.

The thing I am looking for is how I can create a folder browser much like a Windows XP's "Save File As..." dialog. In this dialog box, I am planning to have a "Path" area where in the parent folder (first level) is displayed on the top maybe using a dropdownlist by default with a box underneath containing all the subfolders at the second folder. If such subfolder contains subfolders (third level), then double-clicking on that particular folder will cause its subfolders to be displayed and replacing the "Path" area to display the parent folder of the subfolders currently being displayed. All of the said folders will be coming directly from a table in my Oracle database. I can't find any documentation to help me get started on this project. Any suggestions?


Checkout the following, it has a nice filebrowsing features based upon update panel:
http://mattberseth.com/blog/2007/07/ajax_style_folder_browser_part.html
http://mattberseth.com/blog/2007/07/hwo_to_create_an_aspnet_ajax_s.html


Thanks, Kazi. Those were some helpful sites. I can use the gridview technique to populate my child nodes. My only problem now is how I would be able to populate the dropdownlist above the gridview to show a treeview structure of my whole directory. Thanks.

I think you can modify it to suite your need.


Thats cool example

Wednesday, March 21, 2012

x64 server

I have an x64 system running Windows 2003 for x64. Will there be any issues at this point as a server for x64 systems? I'm just wondering how the development experience is at this point.
WallyThere shouldn't be any issues using Atlas on any type of server. If you are only using the Atlas client controls (as opposed to the ASP.net Atlas server controls), then you don't even need to be running a Windows server, because they are just plain old JavaScript files in a plain old HTML file. However, if you are using the Atlas server controls (<atlas:ScriptManager>, <atlas:Script>, <atlas:TextBox>, etc.) then you server must be running Windows, IIS, and ASP.net 2.0 Beta 2. There shouldn't be any differences between different CPU architectures since it's all .NET managed code running.
Thanks,
Eilon