Blog Home  Home Feed your aggregator (RSS 2.0)  
Software Code Help blogs
newtelligence powered
 
 Thursday, November 13, 2008

Hi.

I have created a Typed Data Set using visual studio 2005 designer. I drag-dropped a table from database and it created a typed data table into it. When I insert data into this table using TableAdapter generated by Visual sudio designer it does not insert in physical database.

I can retrieve it till application is running and lost as the inserted data is in memory not in physical database.

here is the sample code I wrote:

DefectTrackerDataSetTableAdapters.tblDefectsTableAdapter ta = new DefectTracker.DefectTrackerDataSetTableAdapters.tblDefectsTableAdapter();

ta.InsertDefect(Convert.ToInt32(txtDefectNo.Text), "MQC", dpAssignDate.Value, "Open");

 

Thursday, November 13, 2008 4:55:41 AM (GMT Standard Time, UTC+00:00)  #    Comments [1]    | 
 Monday, October 13, 2008

Problem:

I am getting following error while running the project in Visual Studio 2005 by hitting F5

"Unable to strat debugging on the web server.  The COM+ registry database detected a system error."

what can be the cause?

 

Answer

 

After searching some internet,
I added the ASPNET user to Local Administrator group and restarted IIS and it started working.

However somewhere it is written that even after removing from Administrator group it kept on working, but not in my case. I removed from the group and restarted IIS and it stopped working again.

Monday, October 13, 2008 10:28:18 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]    | 
 Wednesday, September 17, 2008

Hi,

Whenever I run sfc /scannow it asks for a CD. How can i point it to some other path where my installation source files reside.

Answer:

In Registry using regedit locate

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Setup\SourcePath

Set its value to the location where I386 foler is located. Provide the parent folder path of I386 and not of I386 itself.

Also update ServicePackSourcePath and add to Installation Sources as well.

Wednesday, September 17, 2008 11:41:06 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]    | 
 Monday, September 01, 2008

Question:

 

HI,

I have got a strange problem. I am opening a webpage using javascript's showModelessDialog fuction. the page contains a calender.

When I click a date on calender (opened with showModelessDialog) it openes a new window showing the javascript function like: javascript:__doPostBack('MyCalendar','3132')

Please provide your valuable comments.

 

Answer:

 

 

use :

<base target="_self">

in the showModelessDialog or showModalDialog page in head section.

Monday, September 01, 2008 3:57:27 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]    | 

here is the working code:

<form id="form1" runat="server">

<div>

<asp:TextBox runat="server" ID="txt1" TextMode="MultiLine" />

<asp:HiddenField runat="server" ID="hidSelectedText" />

<asp:Button runat="server" ID="showselected" Text="Show selected" OnClientClick="doselection();" OnClick="showselected_Click" />

<script type="text/javascript">

function doselection()

{

if (window.getSelection)

{

txt = window.getSelection();

}

else if (document.getSelection)

{

txt = document.getSelection();

}

else if (document.selection)

{

txt = document.selection.createRange().text;

}

else

{

alert('selection not supported');

}

document.getElementById('<%=hidSelectedText.ClientID %>').value = txt;

}

</script>

</div>

</form>

 

-----------------------------------------------------------------------

protected void showselected_Click(object sender, EventArgs e)

{

Response.Write(hidSelectedText.Value);

}

Monday, September 01, 2008 3:50:18 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]    | 
 Wednesday, August 13, 2008

Go to

Tools > Options 

Expand "Projects And Solutions"

Check "Track Active item in Solution Explorer"

 

Wednesday, August 13, 2008 4:57:41 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]    | 
 Friday, August 01, 2008

Use

Server.UrlEncode

Friday, August 01, 2008 1:50:01 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]   C# | Interview Question ASP.NET  | 
Copyright © 2009 Software Code Help. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: