- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
16 Posted Topics
ab.AutoFillYr(2000, 20); public void AutoFillYr(int startYear, int noYear) { List<int> list = new List<int>(); for (int i = 0; i < noYear; i++) { int y = startYear; int z = y + 1; startYear = z; list.Add(z); } }
aspx page <asp:LinkButton Id="lnkBtn" runat="server" Text="Your Link" /> code behind lnkBtn.PostBackUrl = string.format("~/Test.aspx?strRole={0}&strFullName={1}",Request.QueryString["Role"],Request.QueryString["Fullname"]);
int cnt = 0; this.button1.Click += new System.EventHandler(button_Click); this.button2.Click += new System.EventHandler(button_Click); this.button3.Click += new System.EventHandler(button_Click); void button_Click(object sender, System.EventArgs e) { cnt++; if (cnt >= 3) MessageBox.Show("Click Three Times"); }
http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx
string htmlstring = string.empty; HttpWebRequest hwRequest = (HttpWebRequest)HttpWebRequest.Create(Url); hwRequest.Method = "GET" HttpWebResponse hwResponse = (HttpWebResponse)hwRequest.GetResponse(); using (StreamReader sr = new StreamReader(hwResponse.GetResponseStream())) { htmlstring = sr.ReadToEnd(); } hwResponse.Close(); then use regular expression to extract "p" tag in htmlstring
you should perform multiple INSERT since the data is a seperate record to be added to the database Record 1: Book 1, Author 1 Record 2: Book 1, Author 2 [CODE] foreach (string @authorname in authorclb.SelectedItems) { cmd.Parameter.Add("@bookname", SqlDbType.NvarChar).Value = BookName; cmd.Parameter.Add("@authorname", SqlDbType.NvarChar).Value = authorclb.SelectedItem; //then execute your INSERT query …
you can also use ISNULL function in your query since your are getting the data from the database SELECT ISNULL(COUNTRY, '') AS COUNTRY FROM TABLENAME
using XmlReader is the fastest way to read data from the xml file then use XPath to traverse to the node of your data
the properties value of your object are stored in your database?
you can use System.Text.RegularExpressions.Regex or RegularExpressionValidator Control here are some sample link of regularexpression [url]http://regexlib.com/DisplayPatterns.aspx?cattabindex=2&categoryId=3[/url]
you should use Threading then create class that allows you to queue your specific task inside the thread. here is the link for more information [url]http://www.albahari.com/threading/part4.aspx[/url]
script sample for inserting data using select statement INSERT INTO [tablename] ( column1, column2 ) SELECT column1, column2 FROM [sourcetablename]
all the objects within using block will be disposed once it exit the block so the System.IO.Stream will be disposed If you call Close() method of the stream object that object is still instantiated and that object can still be use. For more information you can check this articles: [url]http://msdn.microsoft.com/en-us/library/yh598w02%28VS.80%29.aspx[/url] …
to precompile your web application just use the aspnet_compiler located in your .Net Framework C:\Windows\Microsoft.Net\Framework\V1.0.3705 - .Net 1.1 framework C:\Windows\Microsoft.Net\Framewrok\V2.0.50727 - >Net 2.o framework aspnet_compiler -v /YourVirtualDirectory -p /Source /Destination
1. just set the reference of the control to your current project 2. then go to your toolbox in your IDE 3. just double click the control to add in your form
strSQL += "', Customer_Status='" & Request("TabContainer1$TabPanel1$Customer_Status") Customer_Status = 'value' Conversion failed when converting the varchar value 'on' to data type int. do not include a single quote when you try to update int data type UPDATE table SET Customer_Status = 23
The End.
zid8ne