VS 2010 - Adding Data From Another Webpage
Oct 31, 2012
i am developing a web application (ASP.net 2010, VB)in the sale invoice i need the user to select the item from a combobox, rate, qty and calculate the amt. there.now i have a datatable which is as below.
HTML Code:
dTableData = New DataTable
dTableData.Columns.Add(New DataColumn("Item", GetType(String)))
dTableData.Columns.Add(New DataColumn("Qty", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Rate", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Amount", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Category", GetType(String)))
dTableData.Columns.Add(New DataColumn("CatCode", GetType(String)))
dTableData.Columns.Add(New DataColumn("ItemCode", GetType(String)))
dTableData.Columns.Add(New DataColumn("myID", GetType(Integer)))
i am using a panel to enter the data. the panel is hidden which contains the combobox and the textboxes and when the user presses add item, i unhide the panel and get the data.this is working fine. but what i was needing is (as i have seen from a webpage)when the user presses add item, a new, small, webpage opens which contains the combobox and textboxes and when the user enteres the data the same is updated to the above data and then the grid is filled with the added record.
View 3 Replies
Similar Messages:
May 11, 2010
Depending on the data returned from a Stored Procedure, I need to add specific controls to a page and then when they are populated by the user, write them back to the database. What is the easiest way of doing this?
View 9 Replies
Feb 24, 2010
I want to add a tool bar (just like the one above the text area where we type our questions in this forum , with bold,italic etc) to a web page.Is there an easier way of doing this?I am using ASP.Net c# and VS2008.
View 3 Replies
Apr 7, 2010
We have a web site that sits on a DotNetNuke platform and all of our coded modules are written in VB.Net for consistency. However, we have been sent a web page that works as a link and it is written in C# and references a cs file in its App_Code folder. If we try and load this into our website we get an error saying that it is not written in VB we then tried converting the homepage to VB but the reference folder is very complex and written in C#. Can we load the reference file even though it is C# and reference it using VB code. The current all is OurRemService RemService = New OurRemService(); where OurRemService is a file in the App_Code folder in the web page folder. The only other way around this is for us to set it up in IIS as a virtual directory and reference it directly but we would prefer to integrate it into our website.
View 1 Replies
Feb 28, 2011
I use the Entity framework to map an SQL Server database to objects. The EF is then used to fill a Dynamic Data Site. There are 50+ tables and layout isn't really important. Allowing the users to use it for quick data entry while keeping the amount of code as low as possible is.
Basically, I have four work-hours to find a solution to filter some of the tables on the first letter of one (or more) of the fields. (One filter per field.) When I have one, I have another 4 hours to implement it. Any time I spend more on this will not be compensated.
I have full control over the code, the database structure and whatever else. However, I am limited to .NET 3.5/Visual Studio 2008 and am not allowed to include MVC. I'm also not allowed to add more libraries. Can't upgrade to .NET 4.0 either. So, how can I add such filters in a minimum number of hours?
View 1 Replies
Dec 10, 2010
I am working on development of a website. Task is to add a Live weather forecast to my webpage. I am unable to find a good working solution for this.
View 3 Replies
Oct 22, 2010
i have started to do a Asp.net Website Project...Am given few Images , to place it according to the requirement Web Page Sample image given by the client....Am just wondering how to calculatethe exact dimensions of the various parts of a page for Placing Images Perfectly.
Am using Html Divs , Css and a tool called WebPage Maker..Using WebPageMaker Tool i can place images and by running on a browser ,i can calculate the dimensions of that particular part[ For Ex:Header Image] by using FireBug Tool.....
But when using those dimensions[Left,top,Width& Height], at asp.net page by using Divs & CSS...Total page gets collapsed and images just run away.........
Whats the best Approach to do this..??
As of now,am given Few images[Cut], and the original required Image..On seeing that , i should place images accordingly...
But Am not able to calculate dimensions for using at Html Divs and CSS in a ASp.net Page..
View 1 Replies
Jan 28, 2011
I want to put some kind of text editor on my website which allows the user to manipulate the formatting of text. I would also like it to be possible for a user to copy/paste text from an existing webpage and it keep the formatting i.e. markup tags, font weight, bullet points. I just dont know hoe to go about this but the information must be there as when you copy from a web page into ms Word it keeps the format.
View 8 Replies
Oct 18, 2010
I'm trying to implement a media player on my web page using Visual Studio 2010 and it's 'toolkit'.
In the toolbox i right click on general->Choose Item->Com Components and select Windows Media player.
But nothing is happening.
If I right click on the general tab and press 'Show All' both the windows media player accor but the icon are like 'invisible' and you can't drag it into the design window.
A second question, if I want to use a different media player, how does I do that? I.e. VLC...
View 8 Replies
Jul 12, 2010
Let's say I am working on a multiple page web solution and make a small change to one web page. The small change needs to get published but I want to be able to publish it without having to republish the entire site. How do i do that? How do i publish a single page of a multi-page solution in Visual Studio 2010?
View 1 Replies
Sep 16, 2011
I'm populating a GridView with data from an Excel sheet. I'm using some code from MSDN that grabs the data via a range.
VB.NET Code:
Public Sub GetExcelData(ByVal gv As GridView, ByVal path As String)
' Define variables and default values
Dim i As Integer = 0 Dim j As Integer = 0
' Create connection string variable.
Dim strConnection As String = "Provider=Microsoft.ACE.OLEDB.12.0;" _
[Code] ....
Which works great. I have different areas of the intranet where I'm using this. The first page only needs to read the plain data from the Excel sheet. But, now I'm trying to read the data, but also keep the links that are within the sheet.
The data that is populate basically looks like this:
#1 Name Link1 Link2
#2 Name Link1 Link2
#3 Name Link1 Link2
But the links aren't kept. So, how I can accomplish this.
There might be an easier way, but this is what I was thinking. The links correspond to PDFs on the server. When the data loads, I could loop through the list and dynamically change each "link" cell to a hyperlink. The problem is matching up the link to the PDFs. The name of the PDFs aren't exactly the same as the name in the cell. So I'd have to create another table or something, that could reference that data. A Select Case would work, but that's super time consuming and I have to make this as seamless to update as possible.
So I'm not sure I want to do that. If I could just maintain the links as the data has bound, that'd be awesome. But I have a feeling that won't be possible. My searches are coming up short so far.
View 4 Replies
Nov 24, 2013
I am trying to use the ASP Membership database, and I am having trouble getting the provider connected. I added the following to my Web.Config.
Code:
<membership defaultProvider="SqlMembershipProvider">
<providers>
<clear />
<add
name="SqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="NewsletterSQLConnectionString"
/>
</providers>
</membership>
The connectionstring exists, and I am able to use it on the page to load and access a GridView control. In the Website Administration Tool, under Provider, and selecting 'Select a single provider for all site management data', I don't see any providers, indicating that this new provider is not loaded. If I remove the Clear, I do see the AspNetSqlProvider, however when I test it I get the error that it can not connect to the database.
View 3 Replies
Jul 12, 2011
I've never built an ASP.NET application. At my work, we have a bunch of different PDFs, Word and Excel documents, HTML pages, etc, all in one folder. My boss has tasked me with creating a web app to combine all of these items into one interface.
Among the things I'm adding, I need to convert a VB app I made. All the app does is scan our servers for log files and displays them in a ListBox.
Before I start importing the classes and setting up the code, I decided to just add a ListBox to the page and add a ListItem during page load.
VB.NET Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.lbLogs.Items.Add(New ListItem("Test", "C"))End Sub
But, an exception is thrown when I try to run it.
The example I'm using there is the example shown on MSDN. Why this is occurring?
View 13 Replies
Feb 2, 2012
I have a number of .Net web sites built in VS2010 using Framework 4.0that reference a web service to send emails.
My most recent site I created as a web application as opposed to a web site. In the Solution Explorer you can add a 'Service Reference' and, if you click the Advanced button you can then add a reference to a web service.
I did that and now the (web application) site won't build - it says it cannot load the Ajax dll. If I remove the reference to the web service, the site builds okay - if I add the reference back in, the site will not build.
Do I need to abandon the idea of using a 'Web Application' and turn it into a 'Web Site'?
View 9 Replies
Jan 29, 2012
I use the code below to add a table with each datarow
Code:
TableRow rowItem = new TableRow();
TableCell cellColumnInfo = new TableCell();
cellColumnInfo.VerticalAlign = VerticalAlign.Top;
cellColumnInfo.Width = 600;
[Code] ....
It works, but it only add only 1 item per row. all i want to happen is it will display the first 3 on the first row and the 2nd 3 on the second row.. and so on.. How can I do that with asp.net?
View 4 Replies
Mar 19, 2012
I add a DataList control in my asp.net project.. in the datalist, i put a image template.. it works when write the code.. The problem now is i cannot adjust the location of the image inside the datalist like its Left and Top..
View 1 Replies
Feb 16, 2011
I'm working on an ASP.NET webforms app that will serve as a simple intake form to create work items in TFS 2010.The app works correctly when I run it locally in debug mode--the submission completes and the work item is created.
When I publish the form to our dev server, it yellow screens and throws the following error:
[SecurityException: TF50309: The
following account does not have
sufficient permissions to complete the
operation: DOMAINNAMESERVERNAME$. The
following permissions are needed to
perform this operation: View
collection-level information.]
In my code, I'm attempting to access TFS using a service account, and from what I can tell the service account is being used correctly when I run in debug mode.Here's what my C# looks like:
string tfsServerUrl = "http://servername:8080/tfs";
string tfsProject = "Web Team Projects"; [code]....
If I set a breakpoint at the tfs.Authenticate() line, the server object shows the service account name as the current user and IsAuthenticated = true.
The line in the exception that mentions SERVERNAME$ is what's stumping me. It's seems like IIS is deciding to try to access TFS with the app pool identity instead of the credentials that I'm explicitly supplying.Our dev server is a Server 2008 box running IIS 7.
View 1 Replies
Mar 8, 2011
I am working on sharepoint server 2010. I want to add an option to
Site
Librart Tools ribbon
Documents
Share & Track
By default a link called "E-mail a Link". How can i add custom link by using feature enabling programatically.....?
View 1 Replies
Dec 4, 2010
[Code]....
I'm working on the following aspx file, and for some reason VS2010 is messing with my code. I have no idea why, and was hoping one of you could have a look at it.
What happens is that most of the times when I hit ctrl+s, it add some code to the end of the file.
View 1 Replies
Jun 30, 2012
I know a little bit of vb.net but don't know all that much about the asp.net technology. I do some volunteer work for a non profit organization and what I'm trying to do is integrate an image gallery into their site, instead of using an external image service that they use now.
After some searching I found an easy to use program that automatically creates the necessary thumbnails in a table.
However I want to add some functionality; when a user clicks an image for full size I want to add the option to click a button or link, to get to the next image.
I've done a lot of searching but couldn't find how to achieve this. I guess I need to find out the current image and then somehow jump to the next image.
How to implement this. Preferably I'm looking for something that is easy to implement. I'll have a number of different albums with a different amount of images. If possible I'd like to avoid having to rename the images so that they are photo1, photo2 etc.
Currently the image gallery looks like this : [URL] ....
I'm pretty sure I will need to make some changes to the viewimage.aspx file. Currently it only contains:
vb Code:
<img border="0" src="<%=Request.QueryString("img")%>" alt="" />
Not sure if you need to know the code that does the thumbnailing + creating clickable thumbnails, but I'll post it just in case it's needed
vb Code:
<script language="c#" runat="server"> void Page_Load(Object sender, EventArgs e){
// Modify these numbers for the thumbnail size you want const int maxWidth = 200; const int maxHeight = 200;
ArrayList pics = new ArrayList(); string html; int imgHeight; int imgWidth; foreach(string s in Directory.GetFiles(Server.MapPath(""), "*.jpg")){ System.Drawing.Image currentImage = System.Drawing.Image.FromFile(s);
[Code] ....
I got the code from here: [URL] ....
but the contact button doesn't work, otherwise I would have contacted the original author.
View 3 Replies
Jun 27, 2014
I have a SQL table used by a third party application that I have very little control over. The table contains a list of assemblies and their corresponding serial numbers. The tables primary key is a composite of the assembly number and serial number. There is no field I can use, reliably as an index.
I have an application I'm working on that pulls all the serial numbers from that table based on the assembly in a SQL View. I've then written code that pulls the serial numbers from that view based on the part number in a textbox on the form. That functionality works fine but I had both my datatextfield and datavaluefield set to the serial number. I've created another empty listbox that I would like to populate from a serial number or serial numbers being selected in the first. That is not working, I believe, because there is no index for the list.
My question is...How can I add an index value to each serial number as they populate from the SQL table. I've included the code below that I have pulling the serial number values.
This is an ASP.net VB webform.
Code:
Private Sub FillSnAvailList()
Dim strconnect1 As String = ("Data Source=MyDataSource")
Dim con1 As New SqlConnection(strconnect1)
con1.Open()
Dim cmd1 As New SqlCommand("SELECT [sPartNum], [SerialNum] FROM [V_MaxSerialNum] WHERE ([sPartNum] = @sPartNum)", con1)
[Code] ....
View 3 Replies
Jan 20, 2011
I have a code like the following:
Code:
<table>
<col width="50%" />
<col width="50%" />
<tr>
<td>
</td>
<td>
blah blah
</td>
</tr>
</table>
When i switch to design and get back to source view it added the colgroup so my code looks like this:
Code:
<table>
<colgroup>
<col width="50%" />
<col width="50%" />
<tr>
<td>
</td>
<td>
blah blah
</td>
</tr>
</colgroup>
</table>
how to make the IDE stop adding these extra elements? i changed the Target Schema to all possible combination and it didn't help.
View 9 Replies
Nov 30, 2010
I'm trying to migrate an old asp.net 1.1 application to target the new .net 4.0 framework. There are good guides available on this [URL]. However, all approaches start with the assumption that the 1.1 project contains a solution file which one has to open using VS 2010 and go through the conversion wizard.
In my case, the project does not have any solution file, giving me a sort of chicken and egg issue.
Is there a way to add a 1.1 .net soution file with or without VS 2010? Using command line tools? What is so special about a solution file anyway?
View 3 Replies
Nov 7, 2010
i just downloaded an RSS Toolkit for .net.
where do i need to place it? in which folder so it will become available on my visual toolbars?
and what types of files do i need to place in this folders? is it the *.dll only or more?
View 1 Replies
Jul 29, 2010
VS 2010 crashes instantly when I press = when adding the class attribute to anything.
The exact error I get is
Microsoft visual studio 2010 has stopped working.
Adding any other attribute works fine.
View 4 Replies