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

Using DetailsView to add User ID?

$
0
0

Hey guys I'm pretty new with all this stuff and I'm stuck! Basically I'm using the Sqlserver aspnet_regsql.exe for my database. I have added my own tables to this database, these tables are just for items. In one of my items tables I have an "user_id" row so I can tell which user posts an item. So I was just wondering, when a logged in user uses my details view to post an item, how can I automatically add their user id to the table? I am using VB, not C#. I'm not sure which code to use to get their user ID and store it along with the other details they type in.

thankkkksssss


Visual studio IDE 2012 issue

$
0
0

i just installed VS2012 IDE but i found no reference section which people expand to see what are the assemblies are added.....do i need to turn on any option to get reference section in project explorer? plzz guide. thanks

Microsoft Visual Studio Community 2013 and IntelliSense for Razor

$
0
0

Hello,

I have used WebMatrix program for 2 years. After some recent forums, I decided to try Community.

But I tried some simple codes, it is not showing razor intellisense.

For example if (Is..) I start writing Is.. but there is no "IsPost".

or I start writing Req.., but there is no "Request".

How can I get IntelliSense for Razor?

publish web site

$
0
0
Hi All
I am able to create application in iis eg
http://localhost/ccc/
can i publish it over the internet
i am using vs 2013
thanking you all in advance

Text is not allowed between the opening and closing tags for element SqlDataSource

$
0
0

when I put a break line in my SelectCommand=".. I get this error with green squiggle line

as soon as I stack my full query onto a single line it goes away.

since my query if 8 lines I rather keep it formatted into lines I can see (instead of 1 stacked line)

page works fine - is there a way to tell this control to not flag when the select command is multilined?

Visual Studio debugger not updating files correctly Once again

$
0
0

I have a JS file.  I made a mistake in the ContractEvents.js file whereby I failed to enter two functions that I was calling. When I ran it in debug VS stopped at that line in the ContractEvents.js dynamic file and reported the function it was calling as being undefined.   So I changed the ContractEvents.js file to add those two functions.  The I ran the app again.  The same thing happened.  And the dynamic file still did not show those two functions.  Puzzled I uncommented a "debugger" line in the function call the "missing' function.  The debugger never was hit and when the  ContractEvents.js dynamic file open to show the error, the "debugger" line was still commented out.  At which point I realized that Visual Studio was running a cached version of my application.

Now when this used to happen in IIS on the server, we used to bounce IIS to clear its cache.  However, when I stop debugging in VS, when I am using IIS Express, then as I understood it IIS Express stops when debugging stops.  So I am already bouncing IIS Express just by running the VS Debug.

So I am baffled as to where to go from here as I have not found anything useful on the web (Stuff like Press ctl + shift + delete + enter, or "don't use Visual Studio")

 

Visual Studio Shortcuts not working

$
0
0

Dears,

I installed VS 2010 and i found that shortcuts keyboard not working such as (F12) how can i solve this problem

Thank you.

css glyph / icons in intellisense

$
0
0

Hi, 

In VS2013 (or possibly a web-essentials add-on), when I choose a class in the html editor there are "normal glyphs" or "bootstrap glyphs". In other words I can instantly see which classes relate to bootstrap. Does anyone know how this can be added for custom css files. so, e.g. I want to add a specific responsive css file and assign all its classes / ids to a custom glyph. Any ideas?


Creating and then Using Visual Studio 2010 Templates

$
0
0

I created a simple Vb.Net Web Project in Visual Studio 2010 and then exported it as a Visual Basic project template and chose Automatically Import the template into Visual Studio. When I opened VS again and chose new project, I expected the project template to be there, but it was not. Help me figure out what is wrong.

The project template was exported to \\sydata1\me$\My Documents\Visual Studio 2010\My Exported Templates\New Web Site.zip

VS Express 2012 for Web : Unable to covert a folder Web Application

$
0
0

I have a project in VS Express 2012 for Web. I am unable to convert an folder under the root folder into a Web Applicatin from within Context menu by right clicking the folder and selection Convert to Web Application. I get a warning and click Yes. But the folder does not show a Globe sign similar to the root folder.

VS Express 2012 Soln Explorer

When I View the page in IE using Ctrl +Shift + W, I get following error:

Line 472:   <location path="adminui">
Line 473:       <system.web>
Line 474:           <authentication mode="Forms">
Line 475:               <forms name=".SAFEadmin" loginUrl="adminLogon.aspx"/>
Line 476:           </authentication>

Source File: C:\Users\pvarma\Documents\Visual Studio 2012\Projects\WebSites\SAFEDealerNet\web.config    Line: 474

Rest of the website works file.

What can I do please?

Visual Studio 2013 "There is no working folder mapping for *****" when adding existing items

$
0
0

I'm trying to add existing files to my project, but when I do the error log shows

"There is no working folder mapping for C:\WhereTheFilesAre."

How can I resolve?

Shortcut per webform in visual web developer

$
0
0

Ho creato una webform in ambiente Visual Web Developer 2010 su cui devo rendere disponibile un comando da tastiera del tipo CTRL+CARATTERE.

Per esempio un CTRL+H che apre una form di help. Vorrei evitare l'overriding del WndProc. Leggendo 'in giro' sui forum ho trovato una soluzione javascript che

però non funziona se rendo non visibile il bottone associato all'apertura della webform di help. Il codice utilizzato è il seguente:

<asp:Label ID="MyLabel" runat="server" AccessKey="H"  AssociatedControlID="btnChiamaHelp" Text="HELP DETTAGLIO SQL = ALT H">
</asp:Label>    
    <div style="display:none"><asp:button id="btnChiamaHelp" runat="server" OnClientClick="ShowHelp()" /></div>
    <script type="text/javascript" >
        function ShowHelp()
     {
         window.open("HTMLPageHelp.htm");
     }
     </script>

Avete qualche idea?   

Grazie in anticipo.

Sergio

Getting error message when trying to deploy the SQL project after making some changes

$
0
0

I’m getting the below error message, when I’m trying to deploy the project by making some changes.

 In detail, The project was deployed successfully at first time. Later I did some changes(Added 1 more table) and I tried to deploy, but it was not success.

 Error message: Cannot upgrade the DAC for database CTR_FIN_FINNOTE_DB because the compatibility level is 70 or lower. Alter the database to support a compatibility level of 80 or higher

 I checked in SQL, the compatibility level is 110 which is higher than 70. 

Can anyone help me out to overcome with this.

 Regards

Srinivas Kondapalli

Trace and cursor question

$
0
0

At one time when I set a trace in my Web VB code I could place the cursor on a veriable that had already pass the trace and I would get the value of the variable.  Now for some reason the trace work but when I place the curor over a variable I do not get the value of the variable.  What did I turn off without knowing and how do I put things back to normal?

ASP.NET website edit during debug stopped working

$
0
0

Environment: Win7 Pro, VS2013 Utimate, ASP.NET Website, VB.NET

I was for many months (or at least I thought I was) editing vb.net class modules and codebehind modules while running debug.  Very useful to be able to watch the forms operate and make changes to the code without having to stop to recompile (even though the changes don't take effect until recompile). 

However, that stopped working a couple/three weeks ago, for no apparent reason.  Now, as soon as debug starts, the code is frozen.  I can still edit aspx pages, js and css, but not vb.net.

I originally thought this was an Edit and Continue problem however I've finally understood that Edit and Continue is really dynamic recompilation, where the newly edited code actually gets executed.  

So this is different. This is in a website, which again, I finally understand is not "smart" enough to support Edit and Continue. 

The best resolution I have is to open the website fresh from the file menu each time, bypassing the solutions file in the start window, which however omits all the settings from the previous debug settings.  Then I can edit during debug.  I can also delete the solutions file, which has the same effect, but is not necessary.  However, as soon as I save a new solutions file (VS asks for it every time) and reopen the site through that solutions file, I can no longer edit vb.net during debug.  

I can go through that cycle as many times as I want.  So it seems like something in the solutions file is preventing edit during debug.

I built a small test website to demonstrate the problem, attached.   I'm hoping someone has seen the same behavior and figured out what might be done about it.  Or might be able to explain that I'm asking for something that's specifically not supposed to work.  (I've considered changing from website to web application however considering budget, time and skill set that's not a good option at this point).

Any suggestions on this would be appreciated.  Thanks!

webconfig

    <?xml version="1.0"?>
     
    <configuration>
        <system.web>
          <compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
          <httpRuntime />
        </system.web>
    
    </configuration>
    
   
=== page
    
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Test" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:Label runat="server"
                ID="Label1"
                text="Whoa" />
    
            <asp:Button runat="server"
                ID ="Button1"
                text ="Test"
                />
        </div>
        </form>
    </body>
    </html>

==== Code behind

    Partial Class Test
        Inherits System.Web.UI.Page
    
        Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            Select Case Me.Label1.Text
                Case "Whoa"
                    Me.Label1.Text = "Wow"
                Case "Wow"
                    Me.Label1.Text = "Whoa"
            End Select
        End Sub
    End Class

=== solutions file

    Microsoft Visual Studio Solution File, Format Version 12.00
    # Visual Studio 2013
    VisualStudioVersion = 12.0.31101.0
    MinimumVisualStudioVersion = 10.0.40219.1
    Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "0005_EnCTest(1)", "http://localhost:2039", "{4B173594-D476-4283-B656-A17B8972BABA}"
          ProjectSection(WebsiteProperties) = preProject
                UseIISExpress = "true"
                TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
                Debug.AspNetCompiler.VirtualPath = "/localhost_2039"
                Debug.AspNetCompiler.PhysicalPath = "D:\4500_TESTS\0005_EnCTest\"
                Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_2039\"
                Debug.AspNetCompiler.Updateable = "true"
                Debug.AspNetCompiler.ForceOverwrite = "true"
                Debug.AspNetCompiler.FixedNames = "false"
                Debug.AspNetCompiler.Debug = "True"
                Release.AspNetCompiler.VirtualPath = "/localhost_2039"
                Release.AspNetCompiler.PhysicalPath = "D:\4500_TESTS\0005_EnCTest\"
                Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_2039\"
                Release.AspNetCompiler.Updateable = "true"
                Release.AspNetCompiler.ForceOverwrite = "true"
                Release.AspNetCompiler.FixedNames = "false"
                Release.AspNetCompiler.Debug = "False"
                SlnRelativePath = "D:\4500_TESTS\0005_EnCTest\"
          EndProjectSection
    EndProject
    Global
          GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Any CPU = Debug|Any CPU
          EndGlobalSection
          GlobalSection(ProjectConfigurationPlatforms) = postSolution
                {4B173594-D476-4283-B656-A17B8972BABA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
                {4B173594-D476-4283-B656-A17B8972BABA}.Debug|Any CPU.Build.0 = Debug|Any CPU
          EndGlobalSection
          GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
          EndGlobalSection
    EndGlobal


Invalid URI: The hostname could not be parted

$
0
0

Hello All,

I'm a beginner with VS web development.  I created a test web application to see how deployment works with VS.  I'm getting the "Invalid URI: The hostname could not be parted." message when validating the connection.  Please let me know what is needed on my development machine and the server that the website will be on.  I looked online and cannot find anything to tell me what's needed.  

Thank you for you help.

CSS 3.0 not working with VS 2012

$
0
0

Hi,

I'm using vs2012 ultimate ed. when i write CSS 3.0 code I'm getting the help of intellsense but these changes  cant be seen in preview. [ ex:min-height and linear-gradient ].

i have tested both HTML + CSS File with a text editor it was OK. also i renewed Internet Explorer to ver 11 but all of this was useless.

do i have to install some updates or component ?

i couldn't figure where is the mistake.

Thanks.

Visual Studio 2013, SP4 - The debugger cannot continue

$
0
0

I am debugging a complex MVC application.  About 10 times a day, the debugger will stop at a break point, and then cannot continue.  I the the message 'The debugger cannot continue running the process.  The operation could not be completed.  A retry should be performed.'

This is most concerning.  It takes 5-7 minutes to get to the place where I can debug the portion of the application that is being tested.  If I place a breakpoint in the javascript and try to continue, I get this error at least 10 times per day.

I have search for solution on google and don't see any solution.  It cannot be reproduced but happens randomly.

What is the correct mechanism to get MSFT to look at and correct this issue?

JPL.

Configure Code information Indicator in VS 2013 Premium with Update 4

$
0
0

How to Configure Code information Indicator in VS 2013 Premium with Update 4.

I can't see option for 'Show Reference' in VS 2013 Premium.

Please can anyone help me on this?

Thanks

why vs2012 dose not color revserd words

$
0
0

like DataTable or SqlConnection are all written in black not blue

Viewing all 3509 articles
Browse latest View live




Latest Images

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