Showing posts with label click. Show all posts
Showing posts with label click. Show all posts

Monday, March 26, 2012

Atlas VSI installer error: String cannot have zero length

Hi,

I downloaded the January CTP release/vsi installer. When I double click ASPNETAtlas.vsi I get the following dialog box error:

*************
A problem occured while running the installer. Please contact the content author for problems with content.

Error message:
String cannot have zero length
*************

Any advice would be appreciated.

I've seen several posts related to different install errors using the .vsi installer, most of these errors appear to be caused because of different combinations of the ATLAS releases and the .NET/VS 2005 versions. My recommendation is that if you can't get to install it succesfully, the installer only adds a "project template", so instead, if you're able to extract the contents of the .vsi file there are 2 zip files, each containing the project files you need for either C# or VB .NET, you can use either zip file as your project "template".
Thanks. Still no luck. Tried renaming .vsi to .zip and still cannot read or view the contents. Tried on two seperate PCs and no luck. Are there any other .vsi viewer/extractor tools? I wish Microsoft would offer a zip version in addition to the vsi. Sounds like vsi is a mixed bag at best. Leaves the rest of us out of luck.
Yeah, I don't think the .vsi is really a zip file, however if you were able to launch it, there is an option to view files in Windows Explorer, which will show you the 2 zip files and a .vscontent file. I have a copy of these files, if you provide me a contact e-mail I can send them over.
Tried Windows Explorer and didn't find any option to view the contents of a VSI file.
I am having this same issue and cannot find a way to open the VSI. Windows Explorer doesn't allow me to do that.
If you're not able to launch the .VSI, then you will not see the "View Files in Windows Explorer" option. Nevertheless theMarch release is out, and this comes in the form of a .msi installer, so you may have better luck with this...

Atlas updatepanel triggered by user control event

I created a user control which has a imagebuttton in it, I then exposed the click event of the button to the page the user control was placed on using the following code:

Public Event ImageButton1_Click(ByVal senderAs Object,ByVal eAs EventArgs)Private Sub eventXYZ(ByVal senderAs Object,ByVal eAs System.Web.UI.ImageClickEventArgs)Handles ImageButton1.ClickRaiseEvent ImageButton1_Click(sender, e)End Sub

I can use this event from the ASPX page with no problems, however when I use the event as an Atlas trigger for the updatepanel the page always posts back. Is there any way to wire this event up to the upatepanel and avoid the postback (btw the user control was not added dynamically).

Any chance you've found a resolution to this? I'm having the same issue but with a dropdown in a user control....

Thanks.


hello.

well, not something supported out of the box...maybe this tip will help you:

http://forums.asp.net/thread/1345407.aspx

Atlas UpdatePanel and Button Event

I do put the button inside UpdatePanel , i want when i click that button it will do something() , but the problem here that sometime it work and aslo sometime not work . Anyone fall into the situation the same as me ? Can u give give gor me any hint to recover this problem.

Thanks

hello.

not sure on what you mean...can you post a small example here?


----------------

UserControl.ascx

<%

@.ControlLanguage="C#"AutoEventWireup="true"CodeFile="UserControl.ascx.cs"Inherits="SurveyUserControl" %><atlas:UpdatePanelrunat="server"ID="UpdatePanel"> <ContentTemplate>

<

asp:ButtonID="Button"runat="server"OnClick="Button_Click"Text="Click"/>

<atlas:Panelrunat="server"ID="Panel1" >

<asp:LabelID="Label1"runat="server" tex></asp:Label>

</atlas:Panel>

<atlas:Panelrunat="server"ID="Panel2"visbile="false">

<asp:LabelID="Label2"runat="server"></asp:Label>

</atlas:Panel>

</ContentTemplate></atlas:UpdatePanel>

UserControl.ascx.cs

protected

void Button_Click(object sender,EventArgs e){

Panel1.visible = false;

Panel2.visible = true;

dosomething();

}

Default.aspx

<%

@.RegisterSrc="~/UserControl.ascx"TagName="UserControl"TagPrefix="uc1" %>

<

asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"runat="Server"><atlas:ScriptManagerID="MasterScriptManager"runat="Server"EnablePartialRendering="True"EnableScriptGlobalization="false"></atlas:ScriptManager>

<

PanelID="SurveyUserControlDnaVjfFieldSetPanel"runat="server"></Panel>

Default.aspx.cs

protected

overridevoid OnInit(EventArgs e)

{

UserControl userControl = (UserControl)Page.LoadControl("~/UserControl.ascx");

Panel.Controls.Add(userControl);

base.OnInit(e);

}

----------------

that is my code , I want when i click it just postback inside it not whole the Default page , but when i click the button sometime it work sometime does not .


hello.

man, this is not a working sample...what doesn't work as you expect?


Divide and conquer, my friend.

Try taking your system and try reducing it to the simplest scenario with a little test web application and getting your problem to duplicate. If you can, post it to a public site so we can see what you're talking about; if you can't, then at least post the sample code (that works) for this simple app and we'll help.

Millions of things could be causing this to "not work".


Sorry , maybe i mistake . Right now maybe i figure out in a bit .I dont know that is bug of UpdatePanel or not ? That error (it does not show the

<

divstyle="width: 100; border: solid 1 blue"><divstyle="width:<%# Eval("someval")%>; background-color: Red;"></div></div>

at the layout or it does nothing) occur only if i fire a button event at the loading time (because i do many thing on my page so it does take time for loading) . If i fire event after it is completed loading , everything is ok . Any idea to help me . I can post all the code ,beacuse it too much that why it take time for loading .

Saturday, March 24, 2012

ATLAS template install error

Hi,
I am trying to install the ATLAS template provided by microsoft..
but when i double click the file, an error comes saying "unknown stream header byte sequence"...
Can anyone help me in installing this template??
I have MSVS 2005 BETA2 installed..
Thanks..

Atlas is not supported on Beta 2. See similarthread.

David