I am working on an asp webform that pulls from an ODBC datasource then puts the data in an sql server. Once the data is in the sql server several queries pull data from it to provide information for a report.
This is an example of what I am talking about private void ODBCpdEmployeeAb()
{ [code].....
The first part gets the data from the ODBC connection and the next part stores it in an sql server table.
I have set the primary keys on my SQL server tables already but it just loads an error page now when the app runs due to duplicate id's
Is there a way to append the most recent data from the ODBC table to the sql server ?
what is the best way to append data onto a file download? I figure that i can make my own class that implements InputStream and just consolidates two input streams (the file first, my additional data to append second.) but is there an existing view class that i can use to just return an InputStream or will i have to roll my own view class as well?
Ive done it before, but cant recall and cant find the code..how can i append the current sites name ex. (http://www.mysite.com/) to a custom file name that im creating?
Im building a string that will contain the domain name like about plus my custom file name at the end like so
I want to create a function that will make a treeView out of link buttons. Then I want to tie all the link buttons to one click event. So each time the user does somethingI will append the users name to the current linkbuttons if the user clicks one of the link buttons a click event is raised and I can extract the text of that button.
Here is an example:
Nick ...user does something...now the link string says Nick > Jeff ...user does something...now the link string says Nick > Jeff > Charlie and so on.
Now I want to give the user the ability to click one of these link buttons (there are 3 in this example). If the user clicks one of the buttons a click event is raised and I can extract the name out of the text of teh link button.
is appending to body but js codes are always requesting some js files didn't load or some functions are below of the script. How can i append scripts that i generated dynamically to the bottom of body?
declare @stateQuery as nvarchar(200) if @stateid is null set @stateQuery='' if @stateid is not null set @stateQuery='and tbl_city.stateid ='+cast(@stateid as nvarchar(10)) set @length=(select top 1 len(dbo.Tbl_city.cityName) FROM dbo.tbl_city INNER JOIN tbl_cityinfonew ON dbo.tbl_city.cityId = tbl_cityinfonew.cityId where (tbl_cityinfonew.language =@language )+cast( @stateQuery as nvarchar(100)) order by tbl_cityinfonew.createdate desc)
When appending parameters to an ADODB.Command should the parameters add to the command text. When I get to the point where it sends to the database the command text of the adodb.command is "{ call PKG_WORKPLAN.ADD_PROJECT(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) }"
I then get a ORA-06502: PL/SQL: numeric or value error: character to number conversion error ORA-06512: at line 1 error. I think i may be getting it from the question mark.
Also is there any way to what sql is inserted if that isn't it.
I can't stand appending a concatenated string. Isn't that the purpose of using a stringbuilder? This is another developer's code and I am adding onto another part of it, but I want to change this too. Or should I just let still waters lie, as the saying goes?
How can I prevent Visual Studio from naming the classes for new pages that are in folders from being named with the folder name? Does this method not set "right" with anyone else?
I am developing a simple rating system for my employer's profile based web-app. Here is my problem:
The actual page is domain.com/review.aspx?user=username, but I use the url-rewrite module in IIS to use domain.com/username/review The page contains a repeater control that displays reviews for that username, as well as a form for people to create new reviewsWhen the form is submitted, asp.net re-appends the (hidden) querystring to the url on postback.The post-back url is now domian.com/username/review?user=username&review, causing the page to break if refreshed.
Is there any way to keep asp.net from re-appending the querystrings that are actually already present, but re-written with IIS
Live link <- submit a review, and then refresh the page (edit) by clicking in the address bar! Beautiful yellow error message.
I have 40 Drop Down Lists that I want to fill using an XML file. Based on what is in the XML file i will add an item to a specific Drop down list. I don't want to manually loop thorugh each control by name. the ids for all of the controls start with DDLSession and then they have a suffix such as A2 or B4. What I want to do in the C# Code is ads items dynamically to the control like this:
I'm new to asp.net. I have an exercise about datagridview.
Basically it's like this, I created a sql database in visual studio, added some tables and records. I added a gridview to my page and change the datasource to 1 of my tables. It displays every thing fine.
Now my exercise is, I need to add a new record to that table from a textbox control and button submit, and display in gridview after page reload.
I have developed an application which has a database [access] and i have a gridview which showsthe records from the database. Now i want the grid view to be updated with some additional recordswith out removing the exesting records.
I am working on an asp webform that pulls from an ODBC datasource then puts the data in an sql server. Once the data is in the sql server several queries pull data from it to provide information for a report.
This is an example of what I am talking about
private void ODBCpdEmployeeAb() { DataTable dt = new DataTable();
[Code]....
The first part gets the data from the ODBC connection and the next part stores it in an sql server table. The problem is I have these methods in the page load event of the webform so everytime it loads it just puts the exact same data in the sql server table which would then provide incorrect information on the report.
Is there a way to append the most recent data from the ODBC table to the sql server ?
Is there a way of filtering large CSS files for the only required selectors on a page, and creating css files that contain just these selectors?
Case: I have a very large CSS file that I want to filter on a per page basis, so that the file size is cut down and can be cached by mobile devices. I was thinking along the lines of something like a server side dust me selectors tool.The particular project I am working on is using ASP.NET MVC.
I have created a CSV file on the server and want to send it to the user using the following code:
Dim strPhysicalPath As String strPhysicalPath = Server.MapPath( "CSV/" & PathVirtual) Dim objFileInfo As System.IO.FileInfo = New System.IO.FileInfo(strPhysicalPath) Response.Clear() Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("Content-Disposition", "attachment; filename=" & objFileInfo.Name) Response.AddHeader("Content-Length", objFileInfo.Length.ToString()) Response.WriteFile(strPhysicalPath) Response.Flush() Response.End()
This seems to work fine except when the downloaded file is viewed in Excell the html code behind the page from which it came is also appended to the file. Does anyone have any idea why it does this?
I have web application where i want to show pdf files in web page. in my page there are 5 pdf files i have to show at a time.it's taking much time to load page. and also user has to wait until all files are loaded in page.is there any free components to show pdf files.
Just before (or during) rendering page I would like to append a piece of code (java script). However when I try to add new LiteralControl via Page.Controls property I get an error: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Here's what I'm seeing in FireFox when viewing a Facebook generated cookie coming from facebook: But when I go and get this cookie and shove it into an HttpCookie object, now it's appending this stupid "" to the beginning and end causing me all sorts of issues..one with the first key/value pair and then the uid ends up containing a "" after the uid value (WHY would it be appending this crap?):