Problems with donwloading file from server
I'm trying to download files from server but I allways receive that message from server could not be parsed. My files folder is on different disc and I'll rather not to use URI because I can't hardcode...
View Articleusing selectcommand on code behind with gridview
I have a sqldatascource that I need to pass null values to it and then use the selectcommand specified by a stored procedure and then using the result query to populate a gridview on the page...
View ArticleUsing datatable as parameter for SqlDatasource Update
I am trying to send multiple records back to the database simultaneously by passing a datatable as a parameter to the sqldatasource update however I cannot seem to find the correct type (i.e. form,...
View ArticleHow can I hide/ignore the first row from a datasource in a gridview?
We are using a gridview which pulls in data from a sql table.Is it possible to hide the latest/newest row in the grid view?Here's what we are trying to do: Currently, the gridview works as a notice...
View Articleconvert DataTable to DataSet
Edited by SomeNewKid. Please post code between <code> and </code> tags. Can anybody tell me how convert DataTable to DataSet ? public DataTable GetTable(string strTableName) { try { if...
View ArticleDecrypt encrypted SQL Stored Procedure
Hi,Could you please tell is there any way to decrypt Encrepted Stored Procedure in SQl 2008?Thanks,Sepid
View ArticleProblem with multiple tybles and the MySqlAdapter.Update() command
Hello there,I'm kind of new to this topic so forgive me if it's a trivial question.I have the following code:adapter.SelectCommand = new MySqlCommand(" SELECT" + .. a lot of columns" FROM orders AS o "...
View ArticleProblem With Query- "UNION Operation not Allowed in SubQuery" help?
<div class="usertext-body"> <div class="md">This Query Dose NOT work in Access 2000 SELECT (Members.First_Name + " " + Members.Last_Name)AS Member, ( (SELECT Friend_E_Mail, FROM...
View ArticleASP.NET/C# - Convert Datatable to string?
Hi guys, do anyone know how i can convert a datatable to string? As i will be using the string variable to populate my listbox, as i require to split the comma values(through the .Split function) of my...
View Article"string or binary data would be truncated" when deleting row
Hey everyone, Im using Microsoft SQL Server Management Studio Express to connect to our SQL Server 2005 (think its 2005, its version 9.000 something something). I have a table with one column that...
View ArticleDistributed Transactions
Hi,I have two methods both of which are in different assemblies which perform some database operations, and i am trying to include those methods in transaction using ASP.NET TransactionScope, i.e. if...
View ArticleNumber of rows returned from an objectdatasource
Hi,I have an ObjectDataSource that feed a GridView with pagination ON.I need to display a message like "N results on M".How I can get N from the ObjectDataSource? I tried to query AffectedRow into the...
View ArticleWhere is the datasource menu?
I have just purchased VS2012 having ued VSE2010 for some time. My reason was so that I could write a couple of services and write some reports.I have added a report viewer to a form, gone to the 'new...
View ArticleHow do I post the currentdatetime (now) into a DateTime field in SQLserver...
How do I post the currentdatetime (now) into a DateTime field in SQLserver using a formview? I tried a couple different techniques, but had problems with both:1. TRY ONE: I created a date time field on...
View ArticleDataList template
Hello. I want to show users nicknames from sql database in datalist or gridview. I'd like to make the nickname a hyperlink which redirect to "User.aspx?ID=123" page (where I can load more info about...
View ArticleHow to check complete query when updating - SqlDataSource
Hi,I would like to see the complete UpdateQuery, which also include the value of the parameters, of a SqlDataSource. When I press shift+F9 I can write "SqlDataSource.UpdateCommand.ToString()", but this...
View ArticleFormView - Update - A first chance exception of type...
HiCan someone help me. I have a formview which is populated with a datatable. This is working fine. However, in my edit view I have an update button which when I click runs the code below:protected...
View Articlehow to take sql database backup into csv files?
hi,i want to take backup of database into csv files when user clicks on "take backup" button in my mvc application.as i m new to mvc i dont know how to do this.please help me with this problem.thanking...
View ArticleExecute a stored procedure with parameters from .aspx - no return values
I am trying to create a web application that passes values to a sproc which in turn send out an SMS message upon a button click event. The DBA set up the sproc, all I am trying to do is pass the...
View Articlenever do the rowdatabaound
HI all:I have a gridview. In some moments the rowdatabound event doesn't fire even the gridview has 10 records. Can it be possible?
View Article