Home » Directory

DotNet

Datagrid controlSat, 30 Dec 1899 00:00:00 GMT

I have developed a discussion forum in ASP.net 2.0 and SQL Server 2000I have an option which allows the users to submit new posts.Each of these posts have an autogenerated ID associated to it.But suppose I have 10 posts submitted.When I delete say, 9 posts.After that if new posts aresubmitted t...

Comments (4) | Promote | Bookmark

formview controlSat, 30 Dec 1899 00:00:00 GMT

Hi Guys,I am working with formview control, i have 2 tables country and populationtable country has two fields countryid( primary key) and countrynametable population which has fields population id( primary key) , population, population year and countyid(foriegn key)i have a formview in which...

Comments (3) | Promote | Bookmark

server explorerSat, 30 Dec 1899 00:00:00 GMT

I need a control that does exactly the same thing the server explorer on visual studio i.e. select a database from and returns a connection string. Does anyone now a commercial component that could help me?, I don't have the time to develop all that. can the server control on VS be used? Sa...

Comments (3) | Promote | Bookmark

Enumeration ColumnSat, 30 Dec 1899 00:00:00 GMT

Hello,I have a data table I build on runtime, using Columns.Add.I wanted to know if there is a way to set values contraints on a spefict column. For exmpale I want a column with the three string choices: "RED", "GREEN", "BLUE"Is there a type of data column I can ...

Comments (2) | Promote | Bookmark

linkbutton in datalist ,how to execute both processSat, 30 Dec 1899 00:00:00 GMT

I am learning asp.net recently ,i met a problem these days.Hope someone can help me.Thank you!the sourcecode:<asp:DataList id="ItemsList" DataKeyField ="id" CellPadding="2"OnItemCommand ="item_command" RepeatDirection="Horizontal" CellSpacing="0" RepeatColumns="...

Comments (2) | Promote | Bookmark

ASP.NET 2.0: Accessing web control values in code-behindSat, 30 Dec 1899 00:00:00 GMT

Hi, I have some code in my PreRender event to get the values of various web controls as follows : DropDownList drpCur1 =(DropDownList)FormView1.FindControl("EditDropDownCur1"); DropDownList drpCur2 =(DropDownList)FormView1.FindControl("EditDropDownCur2");...

Comments (2) | Promote | Bookmark

GridView not updating when I hit "update"Sat, 30 Dec 1899 00:00:00 GMT

Hi All,I've got the following code: <asp:GridView ID="SearchResults" runat="server" AutoGenerateColumns="true" AutoGenerateEditButton="true" AutoGenerateSelectButton="true" DataKeyNames="ElertID" DataSourceID="MailingListDataS...

Comments (2) | Promote | Bookmark

Dynamically adding a TemplateFieldSat, 30 Dec 1899 00:00:00 GMT

I have a GridView in which I will have 1 BoundField followed byn TemplateFields. The number of TemplateFields is not known until run-time.How can I programmatically define these TemplateFields and dynamically add them to a GridView?Thanks,Darren...

Comments (1) | Promote | Bookmark

Paging Variables with DataList & ObjectDataSourceSat, 30 Dec 1899 00:00:00 GMT

I have a database table of documents which I am displaying in a datalist. My datalist is connected to an objectdatasource, where the select method calls GetAllDocuments. In my App_Code I have three files. DocumentsComponents, DocumentsDAL, and Document.This all works fine, however I am not sure...

Comments (1) | Promote | Bookmark

Help with datagridSat, 30 Dec 1899 00:00:00 GMT

I'm trying to populate a DataGrid with a table from Access and I'm pretty sure I got everything right but it keeps popping up saying the following ( Line 144 is the Highlighted line):No value given for one or more required parameters.Description: An unhandled exception occurred during...

Comments (1) | Promote | Bookmark

How to find last entry in tableSat, 30 Dec 1899 00:00:00 GMT

Hi. I have a table with the key-field set to auto. I have a query against a different table where I need the last item from the first table. Right now I am using a query and sorting ascending gets me the last item. But isnt there a function that can do this better? /J...

Comments (1) | Promote | Bookmark

Urgent-Problem with datasetSat, 30 Dec 1899 00:00:00 GMT

I have used a dataset. I have defined a relation. I have two datarows, one parent and one child. Its showing the data properly. But I have one more table relating to the parent and i want to display that other tables data also. For e.g'-------dst1 = New DataSet dada1 = New SqlDataAdapter("S...

Comments (1) | Promote | Bookmark

How can i install a ODBC for Oracle in Win 98Sat, 30 Dec 1899 00:00:00 GMT

I had install Oracle 8 and JDK1.3 but i cant create a ODBC driver for OracleWhat have i to do now??With best regardsTrong Van Ho...

Comments (1) | Promote | Bookmark

Virtual ServerSat, 30 Dec 1899 00:00:00 GMT

Hi all,When I run my ASP.NET application from vs2005, the virutal server runs, which is fine. My app makes a simply call to a SQL Server DB and pulls menu options based on a userid. I've found that if I close the IE window and run it again from VS, the virtual server will retain the same...

Comments (1) | Promote | Bookmark

Question about Delete Command in DataGridSat, 30 Dec 1899 00:00:00 GMT

Hi, I am wondering if the Delete Command (or update and etc) in DataGrid ... after the user hit on the command button, does the page appears as new .. that means NOT POSTBACK? Thanks....

Comments (1) | Promote | Bookmark

Only Display X RecordsSat, 30 Dec 1899 00:00:00 GMT

Is there an easy way to only display a number of records in a data grid? What I'm trying to do is display the top 10 of a database ... so I select <column names> from <table> order by <ranking> ... and then I only want to bind the top 10 of that order to the data grid ......

Comments (1) | Promote | Bookmark

Manipulating data inside (or outside) a repeater...Sat, 30 Dec 1899 00:00:00 GMT

Cheers!Can anyone help me with this problem. Shouldn't be too tough for you crackshot coders.Instead of displaying the actual value of a variable within my repeater, I want to replace it with an image depending on whether or not it is NULL.The variable in mention is "bpo."Here is my code, a...

Comments (0) | Promote | Bookmark

Getting a list of SQL Server databases into a dropdownlistSat, 30 Dec 1899 00:00:00 GMT

I have an asp.net app that populates a dropdown list with SQL Server instance names by reading web.config. The app allows me to run a standard set of queries for reports against multiple SQL Server instances. So far so good but I want to create a variation of this app to do database level rep...

Comments (0) | Promote | Bookmark

Of Format strings, Deletes, & optimistic concurrencySat, 30 Dec 1899 00:00:00 GMT

I have a little problem and want to make sure I'm handling it the best way. I'm using a DetailsView to update & delete data that includes some currency values. So I'm using the format string {0:c} to apply the currency format. I'm leaving ApplyFormatInEditMode=false, so this...

Comments (0) | Promote | Bookmark

setting DataSource for a Repeater in a DataGridSat, 30 Dec 1899 00:00:00 GMT

HiI have a problem setting the data source for Repeater in a data grid. I have a collection of Adjudications.Each Adjudication has a collection of Reasons. I have a DataGrid which takes all the Properties of Adjudication except Reasons.I am trying to get reasons for a Adjudication into the Repea...

Comments (0) | Promote | Bookmark