.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

while changingMode page_load data not showing....

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :ASP.Net
Hi... i am having insertpage.aspx where i am fetching systemdate but when i am changingMode in for data Insert, systemdate not showing that time and same as EditMode also. I am sending codebehind code .....please help me out..... /*********************************************************/ using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using VehicleApp.library; public partial class InsertPage : System.Web.UI.Page {     library lib = new library();     protected void Page_Load(object sender, EventArgs e)     {         if (!IsPostBack)         {             BindFormView();             Label mydate = (Label)VehicleFormView.Row.FindControl("dateLabel");             mydate.Text = DateTime.Now.Date.ToShortDateString();         }     }     private void BindFormView()     {         if (Session["strTemp"] != null)  &nb

View Complete Post

More Related Resource Links

Dynamic Data Entities Modal GridViewPager not showing


I am using the ModalEF template, converted to a web application.

The GridViewPager is not showing up, though everything else works fine (filters, updates, etc).

I have tried several things in the last two weeks, to no avail.

Any assistance would be greatly appreciated.

The GridViewPager.ascx.cs Page_Load fires, but the Page_PreRender does not.




<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="True" CodeBehind="ListDetailsModal.aspx.cs" Inherits="DATTWeb.DynamicData.PageTemplates.ListDetailsModal" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolKit" %>
<%@ Register Assembly="System.Web.Entity, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Web.UI.WebControls" tagprefix="asp" %>

<%@ Register src="~/DynamicData/Content/GridViewPager.ascx" tagname="GridViewPager" tagprefix="asp" %>
<%@ Register src="~/DynamicData/Content/FilterUserControl.ascx" tagname="DynamicFilter" tagprefix="asp" %>

<asp:Content ID="Content2&quo

Custom SSIS Data Flow Component Not Showing in Toolbox or GAC

Hello - I have created a very simple data flow component for SSIS (Actually, I am following this example:  http://www.microsoft.com/downloads/details.aspx?familyid=1C2A7DD2-3EC3-4641-9407-A5A337BEA7D3&displaylang=en).  However, when I register the DLL to the GAC, I am unable to find the assembly in C:\Windows\Assembly - even though the GACUTIL says "Assembly Registered Successfully".  Furthermore, after copying the DLL to the PipelineComponents folder for SSIS (C:\Program Files (x86)\Microsoft SQL Server\100\DTS\PipelineComponents), it does not show in the "Choose Items . . ." dialog box of SSIS.   I am running SQL Server 2008 Dev edition, Visual Studio 2010 with .NET 4.0, and Windows 7 Enterprise 64-bit edition.  Any assistance/thoughts would be appreciated. Thanks!

showing modalpopup and saving data to database simultaneously using ajaxtoolkit and javascript

hi,i have a button ,i want that when i click on that button the data should be saved in the database as well as at the same time a modal popup should display the customerid .i have written the code as <asp:button id="save1" runat="server" onclick="Button4_Click" style=""z-index:" mode="hold" xmlns:asp="#unknown" /> left: 740px; position: absolute; top: 304px" Text="save"/> <asp:panel id="panel" runat="server" xmlns:asp="#unknown">  /asp:Panel> <ajaxtoolkit:modalpopupextender id="MPE" runat="server" targetcontrolid="save1" xmlns:ajaxtoolkit="#unknown"> PopupControlID="panel" DropShadow="true" BackgroundCssClass="modalBackground/> protected void Button4_Click(object sender, EventArgs e) { string id = TextBox1.Text; string name = TextBox2.Text; string cn = "Data Source=hcl;Initial Catalog=mydata;Integrated Security=True"; SqlConnection con = new SqlConnection(cn); SqlCommand cmd = new SqlCommand("insert into customer values (@id,@name)", con); con.Open(); cmd.CommandType = CommandType.Text; cmd.Parameters.Add("@id", id); cmd.Parameters.Add("@name",name); cmd.ExecuteNonQuery(); con.Close(); CUSTID.Text = id.ToString(); MPE.Show(); }

Parallel Groupings are not showing the data in Reporting Service 2008.

Hi All, My main goal is to show rows under two adjecent groups (say A another one is B) which have one parent group lat call it as AB (all are row sections) and i have one column group for "months".The details inside the group A under the "months" group is not showing any values or expressions it returing me blank. Adjacent groups in SSRS 2008 still shows blank lines for invisible rows (why?). Any ideas.Please let me know. Veeren.

ReportViewer Not showing all data from table

Hello all,I am new to the forum and have done a search but can't seem to find anyone who has the same problem I do.  I am using ReportViewer with Visual Web Developer Express, I am doing a very simple query which should return two rows in the report.  Testing the query using query builder does return the two rows, but when I build and run the report it only shows the one row.  Hide duplicates is not turned on.  I can create a gridview not using the reportviewer and both rows appear after the build and run.The query:SELECT     defect_seq, ticket_numFROM         def2ticWHERE     (defect_seq = 15190002)ORDER BY defect_seqThis will return two rows when it is run against the database...Any ideas?  I have been killing myself trying different options..  Is there something built in to not show duplicates?  Am I enetering the fields wrong in the matrix?Also is there any good documentation on the ReportViewer for Visual Web express, besides the walkthrough?Thanks!!!!John

Data Sources Tab not showing Data Set


I am using Vb 2008 & Access Databases.

I am getting following Error while viewing Data Sets in data sources window

Object reference not set to an instance of an object.

1.   Hide Call Stack
at Microsoft.VisualStudio.DataTools.Providers.OleDB.OleDBUtilities.GetRegisteredProviders()
at Microsoft.VisualStudio.DataTools.Providers.OleDB.OleDBUtilities.ExpandProvider(String provider)
at Microsoft.VisualStudio.DataTools.Providers.OleDB.OleDBUtilities.GetDataSource(String provider)
at Microsoft.VisualStudio.DataTools.Providers.OleDB.OleDBDataSourceSpecializer.DeriveDataSource(String connectionString)
at Microsoft.VisualStudio.Data.Compatibility.NewSourceSpecializer.DeriveSource(String connectionString)
at Microsoft.VisualStudio.Data.Compatibility.NewProviderObjectFactory.DeriveSource(String connectionString)
at Microsoft.VisualStudio.Data.Package.DataProvider.DeriveSource(String connectionString)
at Microsoft.VSDesigner.Data.ProviderManager.GetVsDataSource(String invariantName, String connectionString, Boolean encrypted)

Error While Showing data in Combobox




I am developing a WPF appliction in .net 4.0 which has got one user control. For simplicity, this user control has got only one combox which gets its value from view model's observable collection. This observable colletion is populated via a call to EF entity which gets its data from a view. The combobox's itemssource property is bound to the observable collection with necessary values in SelectedValuePath and DisplayMembePath.

Now when I run this application, the combox does populates the list but instead of showing individual item from the view it just repeats the first item returned by view for total number of rows in the view. For eg.g

Combobox should show following




Instead it is showing




I tried everything but still not able to find the solution. Is it somekind of bug in WPF comboxo or I am doing something wrong.

PS: The view internally uses Union in order to join multiple values. The Query for the view is as follows


Append changes to list data not showing in customised edit form

Sharepoint version 3.0 running on Sql Server 2005

My Notes field in a list has the append changes to list ticked so that we can see who added notes and when. This works fine until I attempt to customise the edit form, at this point the previous notes (which had appeared underneath the field) vanish.  How do I get them back? I know they are still there as I can see them when I use the DispForm.aspx view, they dont appear when ever I cuistomise the EditForm.aspx

Assuming I must be missing something obvious as everything else is easy to configure.. Any help or guidance appreciated.

SQL Server 2008 R2 Disk Usage report showing incorrect data file


When I go to ANY database (System, AdventureWorks*, user) in Managemant Studio, I right-click on the db, select Reports, select Standard Reports, and select Disk Usage.  The disk usage report shows the correct db on top, but always only shows AdventureWorks_Data.mdf when I expand Disk Space Used by Data Files section.  This happens to any db I try.  When I look at Database Properties/Files for that database, the logical and physical file names are correct.

Since the correct files appear in Database Properties/Files, I'm hoping it's just a bug in the report.  Same thing happens if I run a Disk Usage by Table report for ANY database,  The tables for AdventureWorks always only appear,

Thanks,  Mike

showing the same data in gridview


in my page i have grid view and a add button which insert data in the grid view.  when a new user (a) open that page and add few items in the grid view, then another user (b) open that page from another computer, the grid view is filled with the item those the user (a) added. but what i want, user will have the grid view with empty. 

its showing weird binary data from the BDC data column in list

Hello Gentlemen,

Here I am experimenting the BDC with a simple example of pulling distinct data from a sql server 2005 to a sharepoint list column "SELECT distinct Color FROM Product" .


when i configured the bdc using Business Data List the data showing correct. But when I use this it in a list column with bdc data type its returnig me the binary type of data.
No exact match was found.

However in the bdc picker the data is displaying properly. The data type in sql is nvarchar. I tried changing different data types but its showing the same kind of it.

Here is the BDC:

Textboxes on form not showing data from dataset row item when data is there


This procedure is call from the page load:

    Private Sub ImportDataFromDataset()
        Dim dsImport As New DataSet
        Dim drImport As DataRow
        dsImport = Session("ComponentTypeImportDataset")
        drImport = dsImport.Tables(0).Rows(0)
        With drImport

Utility Managed Instance Showing No Data Available

I have a server setup as a Utility Control Point and I have several managed instances.  One of those instances began to show "No Data Available".  About the same time I started seeing wmiprvse.exe errors in the Event Log.  I can connect to WMI from the Utility Control Point.  Please help.

SSRS popup page not showing the updated data untill it is refreshed(javascript,asp.net)


i am having a report which shows report data ,once the report item is clicked ,a popup(.aspx) will open theni update the data and close the popup.

issue: when i close the popup i am landing on the parent page but, i have to refresh the page to see the update i did on the popup page.How to resolve this,

thanks in advance

Data Source Configuration Wizard not showing in VS2008 web applications


 When I use VS2008 to create a new form application, I am able to go to the Data menu select "Show Data Sources" then the "Data Sources" window appears. Then I am able to "Add New Data Source" and so on.


But when I create a new Web Application. I can not do that.

Am I not able to create a Data Source on web applications???


Showing data from more than one table in Custome PageTemplate Using dynamic data


I want to display data from more than one table in one of my custom page template of my ASP.NET Dynamic data web app.

The query would be something like the one given below:

CREATE VIEW [dbo].[EmployeeDetail_V]
SELECT Emp.EmployeeID, Emp.FirstName, Emp.LastName,
Emp.MailID, Dept.Name, Desig.Designation
From Employee Emp
INNER JOIN Department Dept ON Emp.DepartmentID = Dept.DepartmentID
INNER JOIN Designation Desig ON Emp.DesignationID = Desig.DesignationID

I know, I can do this using sql views but I want that user should also be able to edit the records also.

Is there a framework or step to do this using VS 2010?

sharepoint List data not showing in content query web part


hi friends,

i am displaying data from sharepoint list into content query web part.

i have also mentioned column name in commonfield properties after exporting web part and save it.

but it is showing only two column name.

i have also inserted images url in sharepoint list, but i am not able to see images in CQWP.


<xsl:template name="News" match="Row[@Style='News']" mode="itemstyle">
  <xsl:param name="CurPos" />
  <xsl:param name="LastRow" />
  <xsl:variable name="SafeLinkUrl">
    <xsl:call-template name="OuterTemplate.GetSafeLink">
      <xsl:with-param name="images" select="'@images'"/>
  <xsl:variable name="SafeImageUrl">
    <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
      <xsl:with-param name="images" select="'@images'"/>

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend