Feed on
Subscription

Teach you how to restore a missing data file



Kamus asked about a problem yesterday,If have a cold backup,But be short of lost document of among them a data,But put in all file,How should restore data file.

Start work try,It is following measure probably:

...

RSS is made (C#) - use XML DOM



The RSS of the website cites with two kinds of forms commonly.One kind is the Xml file that has existed,Undertake updating to its when updating a database next,Perhaps use other to safeguard a program to be updated for its.Another kind is RSS file is made in trends,When visitting certain address namely,The service carries a method to be read from the database take newest record,Make RSS file,The person that return a visit.

...

How to read take XML file content




It is the content in taking Xml file through reading shows the case in Textbox below:

Using System;Using System.Data;Using System.Configuration;Using System.Web;Using System.Web.Security;Using System.Web.UI;Using System.Web.UI.WebControls;Using System.Web.UI.WebControls.WebParts;Using System.Web.UI.HtmlControls;Using System.Xml;Using System.Xml.XPath;

...

The attributive problem that Asp.net project runs



A problem is encountered in be being developed recently,Expended two days of time,Solved . eventuallySum up,Consult in order to offer everybody .

I download an Asp.net project from mailbox to this locality machine,Build fictitious list next,Open with VS,Move debug,Occurrence mistake .
Next,Open Ie, input fictitious catalog, appear to visit the wrong . of folder without attributive

...

Asp.net identity test and verify and accredit



At a loose end is dull today .Thought . of ASP.NET identity test and verifyFeel good .Stick a following code: Login.aspx HTML code


Test and verify of identity of 1%26lt;%@ Page Language=%26quot;c#%26quot; Codebehind=%26quot;02Login.aspx.cs%26quot; AutoEventWireup=%26quot;false%26quot; Inherits=%26quot; . _02Login%26quot; %%26gt;
2%26lt; ! DOCTYPE HTML PUBLIC %26quot;-//W3C//DTD HTML 4.0 Transitional//EN%26quot; %26gt;
3%26lt;HTML%26gt;
4 %26lt;HEAD%26gt;
5 %26lt;title%26gt;02Login%26lt;/title%26gt;
6 %26lt;meta Name=%26quot;GENERATOR%26quot; Content=%26quot;Microsoft Visual Studio.NET 7.1%26quot;%26gt;
7 %26lt;meta Name=%26quot;CODE_LANGUAGE%26quot; Content=%26quot;C#%26quot;%26gt;
8 %26lt;meta Name=%26quot;vs_defaultClientScript%26quot; Content=%26quot;javascript%26quot;%26gt;
9 %26lt;meta Name=%26quot;vs_targetSchema%26quot; Content=%26quot;http://schemas.microsoft.com/intellisense/ie5%26quot;%26gt;
10 %26lt;/HEAD%26gt;
11 %26lt;body MS_POSITIONING=%26quot;GridLayout%26quot;%26gt;
12 %26lt;form Id=%26quot;Form1%26quot; Method=%26quot;post%26quot; Runat=%26quot;server%26quot;%26gt;
13 %26quot;%26gt; of body of %26lt;FONT Face=%26quot; the Song Dynasty
14 %26lt;TABLE Id=%26quot;Table1%26quot; Style=%26quot;Z-INDEX: 102; LEFT: 152px; WIDTH: 446px; POSITION: Absolute; TOP: 80px; HEIGHT: 72px "
15 CellSpacing=%26quot;1%26quot; CellPadding=%26quot;1%26quot; Width=%26quot;446%26quot; Border=%26quot;1%26quot;%26gt;
16 %26lt;TR%26gt;
17 %26lt;TD%26gt;
18 %26lt;asp:lName of user of Abel Id=%26quot;Label1%26quot; Runat=%26quot;server%26quot;%26gt; :%26lt;/asp:lAbel%26gt;%26lt;/TD%26gt;
19 %26lt;TD%26gt;
20 %26lt;asp:tExtbox Id=%26quot;tbName%26quot; Runat=%26quot;server%26quot; Width=%26quot;183px%26quot;%26gt;%26lt;/asp:tExtbox%26gt;%26lt;/TD%26gt;
21 %26lt;TD%26gt;
22 %26lt;asp:rName of user of Equiredfieldvalidator Id="RequiredFieldValidator1" Runat="server" ErrorMessage=" cannot is empty!%26quot;ControlToValidate=%26quot;tbName%26quot;%26gt;%26lt;/asp:rEquiredfieldvalidator%26gt;%26lt;/TD%26gt;
23 %26lt;/TR%26gt;
24 %26lt;TR%26gt;
25 %26lt;TD%26gt;
26 %26lt;asp:lPassword of Abel Id=%26quot;Label2%26quot; Runat=%26quot;server%26quot;%26gt; :%26lt;/asp:lAbel%26gt;%26lt;/TD%26gt;
27 %26lt;TD%26gt;
28 %26lt;asp:tExtbox Id=%26quot;tbPass%26quot; Runat=%26quot;server%26quot; Width=%26quot;183px%26quot;%26gt;%26lt;/asp:tExtbox%26gt;%26lt;/TD%26gt;
29 %26lt;TD%26gt;
30 %26lt;asp:rPassword of Equiredfieldvalidator Id="RequiredFieldValidator2" Runat="server" ErrorMessage=" cannot is empty!%26quot;ControlToValidate=%26quot;tbPass%26quot;%26gt;%26lt;/asp:rEquiredfieldvalidator%26gt;%26lt;/TD%26gt;
31 %26lt;/TR%26gt;
32 %26lt;TR%26gt;
33 Whether does %26quot;%26gt; of body of %26lt;TD%26gt;%26lt;FONT Face=%26quot; the Song Dynasty save Cookie%26lt;/FONT%26gt;%26lt;/TD%26gt;
34 %26lt;TD%26gt;
35 %26lt;asp:cHeckbox Id=%26quot;PersistCookie%26quot; Runat=%26quot;server%26quot;%26gt;%26lt;/asp:cHeckbox%26gt;%26lt;/TD%26gt;
36 %26lt;TD%26gt;%26lt;/TD%26gt;
37 %26lt;/TR%26gt;
38 %26lt;/TABLE%26gt;
39 %26lt;asp:bUtton Id="btnLoginBetter" Style="Z-INDEX: 101; LEFT: 288px; POSITION: Absolute; TOP: 240px "
40 Runat=%26quot;server%26quot; Width=%26quot;78px%26quot; Text=%26quot; logs onto %26quot;%26gt;%26lt;/asp:bUtton%26gt;
41 %26lt;asp:HYperLink Id="HyperLink1" Style="Z-INDEX: 103; LEFT: 456px; POSITION: Absolute; TOP: 240px "
42 Runat=%26quot;server%26quot; NavigateUrl=%26quot;Default.aspx%26quot;%26gt;HyperLink%26lt;/asp:HYperLink%26gt;%26lt;/FONT%26gt;
43 %26lt;/form%26gt;
44 %26lt;/body%26gt;
45%26lt;/HTML%26gt;Login.aspx.cs code is as follows

...

Visit ACCESS database problem with C#



The database that     is used in this project recently is ACCESS,Begin to have link without use password:

String ConnectionString = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=";ConnectionString += @"c:\Data\db\db.mdb";
OleDbConnection Con = New OleDbConnection(connectionString);Con.Open();

...

Be in as a child see C#.net rubbish reclaim



If need not MDI will realize advocate when window body opens system of much stature window,

From body of a window (advocate window body) open (the window body of another of Only One) (child window body) implementation

Father window body:MainForm

...

Dish individual event and task column pushbutton are added in menu of IE right key



One, if where,IE adds dish individual event in right key menu
If had used the friend of Netants,the likelihood knows,NetAnts added function of right key menu in IE,Want a link in the page only
The file that Down By Netants chooses to be able to call Netants to download this link point to in menu after right key perhaps is being clicked on the picture.Be in this
How does the author in article come to the introduction realize such function through VB.
The function that should come true to add dish individual event in menu of IE right key,Want ordinal implementation the following measure:
1, in register watch HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt a next building
New,the caption that the name appears in menu already,For example the caption of dish individual event that you think to build is Add URL,Build the name is
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Add URL
2, will build acquiescent cost set is an URL address,After the user clicks dish individual event,IE can call the base in the page that URL points to
This,The MenuArguments attribute of the External target that offers through visitting IE in the script of target page can visit IE in medium page
All sorts of objects,For example the link, picture, region that express sheet, be waited for by the text of pitch on.Detailed help consults please in MSDN about InternetExplore Object
help,The script below the understanding that was familiar with Window object to just can have been compared.
To how realizing the program of oneself to visit the problem of MenuArguments,We are OK and imitated the practice of Netants,Build above all
OLE Automation object,Call this boy or girl friend in script next,Pass page information the object to handle.We need to be built through VB above all below
An object:
Open VB,Click menu:File | New,An ActiveX DLL is built by affirmatory key after ActiveX Dll chooses in building project window
Project.Change in the Name attribute of Class1 of lieutenant general of project list window next for NetAPI,Add following code in the code window of NetAPI next:
Public Sub AddURL(URL As String, info As String)
MsgBox Info, vbOKOnly, URL
End Sub
Save a file,Save project file NetSamp.vbp.Choose File in menu next | Make NetSamp.dll builds object trends
Join library.
It is to register a library next,Regsvr32.exe is found below Windows catalog,Copy its Netsamp.dll to be in catalog to fall next,WillOf Netsamp.dll icon procrastinates to be unlocked to Regsvr32.exe,At this moment Regsvr32.exe can play a dialog box to hint the object registers a success.
Open UltraEdit(or other text editor) in inputting the script code below the editor:
%26lt;script Language=%26quot;VBScript%26quot;%26gt;

...

The dealing program that a C++ writes



[brief interpose]     can show one, two, three, four card,Basically be to train my card to feel (the ability) that notes a shop sign, to having keep in mind at gamble or the comrade of bridge facilities still may be used a bit,Compile for Bd.exe, "bd -h" of use method input sees a help.

...

C# learns the first day



Introductive

0.1 abstract

The welcome is read " show C# " (Presenting C#) .This book is a shortcut that you raise business programming language.When programming language of this kind of business contains services of next generation programming language to move (NGWS Runtime) :C#(pronunciation "C Sharp") .

...
« 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 »