I'm using Visual Web Designer 2010, VB. I would like to know if there is a way to export selected Sql tables (approximately 13) to Excel, placing them all in the same spreadsheet but placing each table on a separate Excel (2003) worksheet? Can this be done with one single command (I hope) or would it be necessary for a separate command for each table? I'm a newbie and this is above my level at this point. Thanks!
Export selected sql tables to Excel as separate pages
aspnet_regsql FAILURE
I am trying to create an aspnetdb.mdb database file for use with Membership/Login. I am using aspnet_regsql and get the following error:
Unable to connect to SQL Server database
I am well experienced in Expression Web 4 but not experienced in Visual Studio.
What is my problem and what is the solution?
Web Developer Tools FAILURE
I have installed Visual Studio 2012 Express for Web and loaded an existing web site. I ran Web Developer Tools and selected Security. I got the following error message:
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected
to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Unable to connect to SQL Server database.
I have created the web site in Expression Web 4 and I have installed Members Login. I am not experienced in Visual Studio.
What is my problem and what is the solution?
VS2013 compatibility SQLServer2008
Hello
I am using VS2010 Professional and Full SQLServer2008
I am wanting to migrate to VS2013 Professional or Premium or Ultimate, and am wondering if it is possible to use it (compatible) with SQLServer2008 Full in web applications?
NOTE: I develop only web
Problem reading Excel spreadsheet into SQL in Visual Web Designer 2010
I'm using Visual Web Designer 2010, VB. I'm trying to create a routing whereby I can read an Excel file, manipulate the data (by adding additional columns and information) and output it back to Excel. I found the routine (a starting point) below on the web but cannot get it to work. The first thing I did was to create an empty table in the SQL database named ExtendedBOM. The problem is now with Button3, the "For Each dr AS DataRow In ds1.Tables(0).Rows" , I get the message: "Cannot find Table 0." and I'm at a complete loss as to what the problem is. Does anybody have any suggestions what I can try next? The spreadsheet I'm trying to read in has 5 columns (Item, Quantity, Part_Number, Reference_Designators, Description) and the first line contains the header text. Thanks!
Imports System.Data Imports System.Data.OleDb Imports System.Data.SqlClient Partial Class Excel Inherits System.Web.UI.Page Dim ds1 As New DataSet Dim ds2 As New DataSet Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim _filename As String = "C:\new.xls" Dim _conn As String _conn = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & _filename & ";" & "Extended Properties=Excel 8.0;" Dim _connection As OleDbConnection = New OleDbConnection(_conn) Dim da As OleDbDataAdapter = New OleDbDataAdapter() Dim _command As OleDbCommand = New OleDbCommand() _command.Connection = _connection _command.CommandText = "SELECT * FROM [Sheet1$]" da.SelectCommand = _command Try da.Fill(ds1, "sheet1") Response.Write("The import is complete!") Me.DataGridView1.DataSource = ds1 Me.DataGridView1.DataMember = "sheet1" Catch e1 As Exception Response.Write("Import Failed, correct Column name in the sheet!") End Try End Sub Dim da As SqlDataAdapter Dim conn As SqlConnection Dim cb As SqlCommandBuilder Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim conn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("conCString").ConnectionString) Dim sel As String = "SELECT * FROM ExtendedBOM" da = New SqlDataAdapter(sel, conn) cb = New SqlCommandBuilder(da) da.MissingSchemaAction = MissingSchemaAction.AddWithKey da.Fill(ds2, "ExtendedBOM") Me.DataGridView1.DataSource = ds2 Me.DataGridView1.DataMember = "ExtendedBOM" End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click For Each dr As DataRow In ds1.Tables(0).Rows 'ERROR THIS LINE Dim expression As String expression = "myId =" + CType(dr.Item(0), Integer).ToString Dim drs() As DataRow = ds2.Tables(0).Select(expression) If (drs.Length = 1) Then For i As Integer = 1 To ds2.Tables(0).Columns.Count - 1 drs(0).Item(i) = dr.Item(i) Next Else Dim drnew As DataRow = ds2.Tables(0).NewRow For i As Integer = 0 To ds2.Tables(0).Columns.Count - 1 drnew.Item(i) = dr.Item(i) Next ds2.Tables(0).Rows.Add(drnew) End If Next Me.DataGridView1.DataSource = ds2 Me.DataGridView1.DataMember = "ExtendedBOM" da.Update(ds2.Tables(0)) End Sub End Class
The asp portion is below:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Excel.aspx.vb" Debug="true" Inherits="Excel" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title></head><body><form id="form1" runat="server"><div><asp:Button ID="Button1" runat="server" Text="Button" /><br /><asp:Button ID="Button2" runat="server" Text="Button" /><br /><asp:Button ID="Button3" runat="server" Text="Button" /><br /><br /></div><asp:GridView ID="DataGridView1" runat="server"></asp:GridView></form></body></html>
bookmark problem.
Hi
i am using visual studio 2010.
I have problem in saveing bookmark.
it is no problem when i save bookmark in project.
but after close project and open project , bookmark's location is not maintained.
for example) if i save bookmark which is 200 line, after open solution , this bookmark is located 250 line.
How can i adjust this problem?
visual studio 2013 show hidden tags in design mode
In visual studio if you have an hidden field,
eg:
<div style="display:none"> This content is not visible in design time</div>
In design mode one cannot see the content of the div.
Are there any settings in Visual Studio 2013 to make invisible tags to be seen in design mode?
i've found this:
http://msdn.microsoft.com/en-us/library/ms178152%28v=vs.90%29.aspx
, but this doesn't pply to vs2013
Process With ID 6632 is not running in VS 2013
I'm trying debug my mvc application but every time I'm getting this Error "Process with ID 6632 is not running "
I searched on google and found some solution but none of them are working. what I have tried so far is
1- Rename IISExpress folder 2- Conrol Panel => System => Advanced System Settings => Environment variable => and then set variable name = _CSRUN_DISABLE_WORKAROUNDS variable value = 1. then rebooted my pc but facing same problem .
I got reference from there
https://connect.microsoft.com/VisualStudio/feedback/details/806692/vs-2010-2012-2013-ultimate-iis-express-process-with-id-of-xxxx-is-not-running
Web Application and Class Library Instances
Hi there, I have a small problem that I'm hoping some clever clogs can help me with. I have a class library and a web application. The web application sets up an instance of the class library and stores it in a session variable called localSession, this works really well on the web side. However, when two users access the same page the second of the two class library instances becomes dominant and all New object calls go through this instance. The trouble is the instances are loaded with the data for just that person and a little field I like to keep with the last updater keeps defaulting to the second user (the same thing happens with the collection handling but that's of lesser concern). Incidentally the class library instance refers to itself as myCurrentSession which I set in the constructor for the controlling class, the variable is held as a global in a module within the class library. Is there a more cute way to maintain separate instancing? Thanks, Davy
To add some context:
The code in the Application Start event is:
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) ' Code that runs when a new session is started Dim user As New TimeData.TimeCardData Session.Add("localSession", user) Session.Add("selDate", 0) user.RunMode = "Web" End Sub
Referring to CType(Session("localSession"),TimeData.TimeCardData) returns the appropriate object - I ran watches with two browser instances, in each case of a referral from the web form I got the correct object. However, when I instance a class directly from a web form (Dim tr as New TimeData.TimeCardRecord) it is always the second instance that creates the TimeCardRecord object. I even tried adding an instance creation method within the controlling class and even though it was the correct master object doing the calling the TimeCardRecord item created was still instanced by the second web instance.
The master class is not Shared - I made that mistake previously!
Visual app studio
I think Microsoft should call visual studio Visual App Studio don't you think? where i can suggest it?
HTML formatting
How to format asp.net control in HTML page? For example, the code like below
<asp:TextBox ID="txtSearch" runat="server" Style="z-index: 1; left: 15px; position: absolute;
top: 5px; width: 220px"></asp:TextBox>
I want to format automatically like below
<asp:TextBox ID="txtSearch" runat="server" Style="z-index: 1; left: 15px; position: absolute;
top: 5px; width: 220px">
</asp:TextBox>
I went Tools-Options->Text Editor->HTML-Format->Tag Specific Options but it still don't work for asp.net controls, such as label, textbox.
Session variables continually being lost on our production system
When running an asp web site in production, my users frequent fail to be able to save entered information to a page throwing a Null Reference Exception because the stored session variables had been cleared. This would be normal providing the user had went beyond the 20-minute default session timeout value, but these continually occur long before the session timeout. It had become a problem when the IIS and SQL 2012 servers were converted to a server farm with virtual server, but I had changed the application web.config to include the line <sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="Data Source=CFCO06DEVSQ100;Database=ASPState;User ID=XXXXXXXXXX; Password=XXXXXXXX" timeout="120" />
but still it is looking like the session state is still dropping the session variables when the physical server changes. Can someone advise where else to look or add to prevent this from happening?
Converting Website to Web Application Causes Multiple "has multiple definitions with identical signatures." Errors.
Hi, we are converting our first website to a web application. We followed the tutorial. When we compile, we get hundreds of "has multiple definitions with identical signatures." errors. I see lots of articles about this issue, but none about what to actually DO about the issue. Any help?
It's a VB project.
Error 20 'Protected Sub btnRunReport_Click(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures.
Error 21 'Protected Sub Page_Load(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures.
"The web project xxxx requires SQL Server Express..... "
I have sql server express installed and I can safely ignore this warning that pops up whenever I start the project in VS2013 and the app runs perfectly fine. How do I stop the pesky warning from happening?
Regarding Visual Studio 2015
i download VS2013 last time....you are talking about VS 2015. so when VS2014 was released?
VS 2015 has been released? where to download or how to upgrade my VS2013 so all new feature of VS2015 i could enjoy from VS2013. please guide me thanks.
SQLite Membersip file
How can I read the SQLite ASPNETDB.MDF file? I am trying to read with Delphi XE3 and errors indicate that the file is encrypted and password protected. I created the file with Visual Web Developer and I used no password.
Several years ago I had no problem reading the SQLite data into Delphi 7.
How can I solve thos problem?
error after update 4 SetSite failed for package [AutoLoadPackagePackage]
Get this error every time I start up after installing update 4
SetSite failed for package [AutoLoadPackagePackage] |
any help, thanks
I got error when i tries to uninstall/change microsoft visual studio express 2013
microsoft visual studio express 2013 for web - ENU with has stopped working
How to host MVC 6 application in IIS (VS 2015 + Win 8.1)
Hello, everyone!
I am really confusing about the way how to create MVC 6 web site in Visual Studio 2015.When I select "New Web Site", then VS does not give me an option to MVC web site. It allows, however, to do it when I select "New Project", and then it gives me "ASP.NET 5 Starter Web". But I don't need application - I need site. But, anyway, even in case of application, I didn't find the way how to host it in IIS (Windows 8.1). Please, tell me how to create MVC 6 web site or, at least, to host MVC6 application in IIS. Thanks beforehand!
Modify what is collapsed in Outlining
Is there a way to modify what is considered Outlining (what would be collapsed by a Ctrl+M, Ctrl+L via Edit.ToggleAllOutlining)?
Specifically I would like to not toggle namespaces, classes, and for loops.
Thanks!