Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all 3509 articles
Browse latest View live

This application is currently offline. To enable the application, remove the app_offline.htm file from the application root directory

$
0
0

This application is currently offline. To enable the application, remove the app_offline.htm file from the application root directory

CAN SOMEONE TELL ME HOW TO SOLVE THIS?


Context sensitivity in classes

$
0
0

Why is there no context sensitive help when I create a .VB class file?  Is there a way to turn this on?  It is fine if I am working in a .aspx or code behind file.  As soon as I create a class file in app_code, I don't seem to have any context sensitivity.  It would speed things up if I did.

P.S. I'm using VS2010

Website publishing error : Publication (web): Object reference not set to an instance of an object

$
0
0

First of all, i find runtime exception when publishing a website pretty odd. This error pops up semi-randomly in two different ASP.NET solutions that I have in Visual Studio 2008.

Odd things like deleting a sub folder (just the contents aren't enough) resolve the issue temporarily til I need to publish again. These solutions "Build Solution" with no errors or warnings, but die when I try to publish.

Specifically, this happens after the "Pre-compiling Web Site" stage.

How to transfer a webapp project (source) from Visual Web Dev Express to a new machine

$
0
0

Hi All,

I have created a webapp project in Visual Web Developer Express on my machine at home. I wish to now transfer that project to another machine at the client site for example (and then update the references to databases to new locations etc). What is the simplest way of doing this, as I cannot seem to find a copy project menu item. I have managed to find the project folder on the object browser and copied that onto a pen drive. Will I be able to open this as a project on the other machine (also running visual web dev express). I am also a bit confused as I would also like to 'save a copy of the project as' while I am working on it - a sort of version increment so I can keep the original and then make changes to the new copy. I cant seem to do this in the same way that I can in a visual basic project.

Thanks in advance for any assistance.

Visual studio 2012 and database project (CLR)

$
0
0

Hi, we have a project written in vs2010 using database clr, we call a webservice with this application and it works great.

But now we have upgraded to vs2012 and it seems like we cant add service/web reference to the project anymore...

Is this something that has been removed from this type of project or are we missing something?

Format the whole document is not working in 2012

$
0
0

The "Format the whole document" feature is not working in Visual Studio 2012 Ultimate.  Can anyone tell me how to fix that?

Thank you in advance.

David

Can't add a reference to a DLL in Visual Studio

$
0
0

Has anyone ever experience problems adding a reference to a DLL in Visual Studio?  I have a website that I copied from our development server and placed it on a virutual pc on my local machine.  I updated all the references to all the DLLs. However, when I open the property pages window, the only references I see are ones to the GAC.  When I try to add a reference to a DLL it adds it to the bin directory, but it will not show in the properties pages and the reference is not resolved and I still get the error that the type is not defined.  I've tried deleting the DLL and adding it again, but nothing seems to work.  Has anyone experienced this problem?

No overload för method ' ' takes 0 arguments

$
0
0

hi guys. Im a beginner at VB and im trying to make a prog that asks for the price and the amount paid by the customer, but my code seems to be wrong somewehere. Im getting the messege "No overload för method 'summera  ' takes 0 arguments".

Heres my code. I would really appreaciate it if somebody could help me outLaughing.

class Program
    {

        public static void Main()
        {

           
            summera();


            //skiv_ut();



        }



        public static int summera(int pris, int betalt)
        {

           int z = 0;  //mina variabler
            Console.WriteLine(" Vad är priset?");  // uppmanar användaren uppger priset
            pris = Convert.ToInt32(Console.ReadLine());  // läser in priset
            Console.WriteLine("Hur mycket betalt fick du av kunden?");  //uppmanar användaren uppger betalt
            betalt = Convert.ToInt32(Console.ReadLine());  // läser in betalt

            if (betalt >= pris) //if sats som garanterar att betalt är >= pris
            {

                z = (betalt - pris); // räknar ut vad växeln blir

                //return växel;
                /*  StringBuilder MyStringBuilder = new StringBuilder("Din växel är: "); // Tar bort newline
                  MyStringBuilder.AppendFormat("{0:C} ", växel); // Format för svenskar pengar exempelvis 35;00kr
                  Console.WriteLine(MyStringBuilder);
                  */
            }

            else if ((betalt < pris) || (betalt <= 0)) //villkoren i fall betalt<pris eller betalt<=0
            {

                Main(); // Main anropas i fall else if villkoren uppfylls

            }


           return z;


            
        }

    }
}


Printing indented vertical lines of my ASP.Net source code

$
0
0

Hi,

I know this question could as well be placed somewhere else but I think it is valid to post it here too ... can't find a reason why can this question be moved to another place by moderators ... I work using this technology so I ask here ... which is BTW the only forum I visit 

I have downloaded in VS2012 an "Indent Guide" extension which looks pretty good and amazxzin on screen .... BUT when it comes to print it .... vertical indentation lines are simply gone !!!

Is there a way or another tool (I have searched but couldn't find .. that's whay I'm asking) which can be used to acomplish what I need

Carlos N. Porras
(El Salvador) 

I copied a project directory from one computer to another. And in the other VS says Project Unavailable. help?

$
0
0

I copied a project directory from one computer to another. And in the other VS says Project Unavailable. help?

I googled and all I can seem to come up with is deleting the .suo files. 2 different people with the same "product unavaible" when vs opens it said deleting the .suo files did the trick. but not for me.

Any ideas?

Regexp Question

$
0
0

Hi,

How can I use regexp (using vb) to replace following youtube video embed code, width and height to 
640x360 regardless of the sizes already in there? So when the following string goes
through the regexpr code, the output should come out with the same string but different
values for width="640" and height="360". In the following code there could be different 
numbers other than 420 and 315. Thanks!

<iframe width="420" height="315" src="http://www.youtube.com/embed/tW2DjqQbZtw" frameborder="0" allowfullscreen></iframe>

sql and visual studio

$
0
0

i have one table in database in visual studio, call product, there is one photourl field that has a datatype image how would i add a new image in the field as it generate always an error when i put the image url

mix razor view with handlebar templates

$
0
0

I'm using ASP MVC with Razor view engine to build web application.

I'm also using EmberJS on some views for client side rich application framework. EmberJS uses handlebar templates.

The problem is that visual studio lose the ability to color-code the HTML elements inside the handlebar script tab like so:

<script type="text/x-handlebars">
 <div>
 <div>@ShowRes.NumberOfNodesInNetwork: {{App.nodesController.arrangedContent.length}}</div>
<div>@ShowRes.NumberOfLinksInNetwork: {{App.linksController.arrangedContent.length}}</div> 
</div> 
</scrtip>

The div element inside the script tag is not color-coded.

Any idea how to cause VS2012 to ignore the script tag and simply treat the HTML elements as if no script element exist?

Silly problem with viewing control popups in editing mode

$
0
0

I have a laptop at home with a max screen resolution of 1366x768.

I have a web project with some third party controls that have really big 'task' popups (or whatever they're called.  Those > buttons you click on the right hand side of the control for more editing options.)

Some of these popups are so tall they run off the bottom of the page and I can't get to some of the options at the botton of the list.

Any way around this?

Passing ID From Master Page To Details Page

$
0
0

Hi this is my first post and I have just started learning ASP.NET using Visual Studio 2010 and am having a major problem and need some help please. I have a page (master page) that is using a Repeater to display images of movie covers of now showing movies at a cinema inside of a JQuery Carousel that seems to be working okay. I want to be able to click on one of these images which should take me to a details page that uses a Form View to display details about the selected movie. On the details page the URL shows that the Movie ID is being appended to the URL appropriately for the movie selected but no data is being displayed. As a test in the details page I hard coded a movie ID into the Query String's Default Value & the page displays all of the films details just fine. The thing is I need this to be dynamic and display details for whatever movie I select on the master page. Can someone look at my code and help me fix this problem because I can't continue on with the rest of this project untill I can get this part working.

Master Page

<asp:Repeater 
        ID="Repeater1" runat="server" DataSourceID="MovieCoverNowShowing">
        <HeaderTemplate>  
             <ul>     
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
              <asp:ImageButton ID="ImageButton2" runat = "server" PostBackUrl ='<%# DataBinder.Eval(Container.DataItem, "MovieID", "NowShowingFilmDetails.aspx?query={0}") %>' ImageUrl = '<%#Eval("MovieCover") %>'  Height="150px" Width="100px" />
                   <br /><br />                             
<asp:Label ID="MovieNameLabel" runat ="server" Text = '<%#Eval("MovieName")%>'> </asp:Label>  
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater></div>   
    <asp:SqlDataSource ID="MovieCoverNowShowing" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MovieTix %>" 
        SelectCommand="SELECT DISTINCT MovieCover, MovieName, ShowingFrom, ShowingTo, MovieID FROM Movie WHERE (ShowingFrom &lt;= @ShowingFrom) AND (ShowingTo &gt; @ShowingTo)">
        <SelectParameters>
            <asp:ControlParameter ControlID="DateTimeField" DbType="Date" 
                Name="ShowingFrom" PropertyName="Value" />
            <asp:ControlParameter ControlID="DateTimeField" DbType="Date" Name="ShowingTo" 
                PropertyName="Value" />
        </SelectParameters>
    </asp:SqlDataSource>

Details Page

<asp:FormView ID="FormView1" runat="server" DataKeyNames="MovieID" 
        DataSourceID="Movie_Details">        
        <ItemTemplate>        
            <asp:Image ID="MovieRatingIconLabel" runat="server" ImageUrl='<%# Eval("MovieRatingIcon") %>' CssClass="MovieRatingIcon" />           
            <asp:Label ID="MovieNameLabel" runat="server" Text='<%# Bind("MovieName") %>' CssClass="MovieName" />
             <br />
             <div class="details">
             <img src="images/filmdetailicons/genreIcon.png" alt="Genre Icon" width="18" height="20" />&nbsp;&nbsp;<asp:Label ID="GenreLabel" runat="server" Text='<%# Bind("Genre") %>' />
             <br /><br />
             <img src="images/filmdetailicons/runtimeIcon.png" alt="Run Time Icon" width="18" height="20" />&nbsp;&nbsp;<asp:Label ID="MovieLengthLabel" runat="server" Text='<%# Bind("MovieLength") %>' /> minutes
             <br /><br />
             <img src="images/filmdetailicons/advisoryIcon.png" alt="Advisory Icon" width="18" height="20" />&nbsp;&nbsp;<asp:Label ID="MovieRatingDescriptionLabel" runat="server" Text='<%# Bind("MovieRatingDescription") %>' />
             <br /><br />
             <img src="images/filmdetailicons/directorIcon.png" alt="Director Icon" width="18" height="20" />&nbsp;&nbsp;<asp:Label ID="DirectorLabel" runat="server" Text='<%# Bind("Director") %>' />
             <br /><br />
             <img src="images/filmdetailicons/releaseIcon.png" alt="Release Icon" width="18" height="20" />&nbsp;&nbsp;Commencing:<br /><asp:Label ID="ShowingFromLabel" runat="server" Text='<%# Bind("ShowingFrom") %>' />
             <br /><br />
             <img src="images/filmdetailicons/releaseIcon.png" alt="Release Icon" width="18" height="20" />&nbsp;&nbsp;Ending:<br /><asp:Label ID="ShowingToLabel" runat="server" Text='<%# Bind("ShowingTo") %>' />
             <br /><br />
             <img src="images/filmdetailicons/releaseIcon.png" alt="Release Icon" width="18" height="20" />&nbsp;&nbsp;Movie Type:&nbsp;&nbsp;<asp:Label ID="MovieTypeLabel" runat="server" Text='<%# Bind("MovieType") %>' />
             </div>
             <div class="moviepreview">
             <asp:Image ID="MovieCoverLabel" runat="server" ImageUrl='<%# Eval("MovieCover") %>' CssClass="MovieCoverLabel" />
             <asp:Image ID="MovieTrailerLabel" runat="server" ImageUrl='<%# Eval("MovieTrailer") %>' CssClass="MovieTrailerLabel" />
             </div>
             <div class="clear"></div>             
             <div class="grid_9"><p></p></div><!-- end .grid_9 --><div class="clear"></div>             
             <div class="details"><h5>Cast</h5><asp:Label ID="CastLabel" runat="server" Text='<%# Bind("Cast") %>' /></div>
             <div class="synopsis"><h5>Film Synopsis</h5><asp:Label ID="MovieSynopsisLabel" runat="server" 
                Text='<%# Bind("MovieSynopsis") %>' /></div>
             <br /><br />
        </ItemTemplate>
    </asp:FormView>  
    <asp:SqlDataSource ID="Movie_Details" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MovieTix %>"        
        SelectCommand="SELECT * FROM [Movie] WHERE ([MovieID] = @MovieID)">
        <SelectParameters>
            <asp:QueryStringParameter Name="MovieID" QueryStringField="MovieID" 
                Type="Int32" DefaultValue =""/>
        </SelectParameters>
    </asp:SqlDataSource>

Can I link tasks to specific locations in code?

$
0
0

Hi,

In VS 2012, is there a way for me to create a task and link it to, say, line 350 in an action method in a controller?

The idea is to create tasks for people in my team where they can open their tasks and by clicking a link, they can get to the section in the code where they need to do their work.

Update not correct in my system

$
0
0

MY system not correct update

when i click linkbutton update in gridview it is updated in other textbox

no updated in same cloumn

 

Upgrading VS 2005 Web Application to VS 2010

$
0
0

Hi All,

I have upgraded my Vistual Studio environment from 2005 to 2010, too late!!! I know!.
I have a web application written in c# using Visual Studio 2005 that uses .net membership, javascript and ajax quite a lot with some jquery as well as SSRS and reportviewer and google maps api and a tool set called componentart (if anyone is familliar with it). I can run the web app and it workds fine when I navigate around the website. However, to make 100% sure that it is safe to convert my web app  to 2010 version, I would like to know what exactly should I be checking before I go live with the new version. In other words, to pass an upgrade test, what do I need to check exactly.

Also what changes do I need to make to my web.config. In regards with IIS What are the specifics I have to check?

Can anyone please buletpoint the steps for me.

Thanks in advance for your help.

Drop down box that will let users type if not on the list

$
0
0

Hello,

 

I'm a new user of asp.net with limited programming experience.  I developed a tool that lets the user edit the data on an SQl database.  I wanted to modify my dropdowns in such a way that if a user don't see the data he/she would like to input will allow the user to type in new data.  I've search the web and the threads I've read pointed me to use Combo box but its on Ajax control toolkit.  Is there an easier way to do this?

Thanks,

newASP_user

Question On WebParts

$
0
0

Hi.  I'm trying to make a change to an existing web application.  I have a fair handle on C#, but my knowledge of jscript and asp is minimal, so please forgive the ignorance.  :)

I have a webpart that is a checkbox.  On the menu bar I see "minimize, close, edit and connect".

From my research so far, I guess these are called verbs?  Anyway, in a specific condition, I don't want the zoneeditor to show up for a specific field.  So I searched and found code where I added the if statement:

CurrentWebPart.AllowClose = false;
CurrentWebPart.AllowMinimize = false;

if (somecondition)
  CurrentWebPart.AllowEdit = false;

The way this was treated was an empty ZoneEditor.  What I want is to intercept the event and not show anything when the condition has been met.  Basically, when the "Edit" verb is clicked I want it to fall thru and act like it wasn't clicked on.  I figure if I find the event, I could put some code like "if (condition) then exit".  How do I locate the C# or jscript event that's triggered by clicking the edit verb? 

Viewing all 3509 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>