Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #11.7K
Ranked #2K
~7K People Reached

16 Posted Topics

Member Avatar for Varunkrishna

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); } }

Member Avatar for |-|x
0
2K
Member Avatar for jaejoong

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"]);

Member Avatar for zid8ne
0
86
Member Avatar for esedee

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"); }

Member Avatar for esedee
0
162
Member Avatar for George_91

http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx

Member Avatar for skatamatic
0
1K
Member Avatar for xzero1

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

Member Avatar for zid8ne
0
132
Member Avatar for AngelicOne

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 …

Member Avatar for AngelicOne
0
163
Member Avatar for sasikala123

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

Member Avatar for zid8ne
0
191
Member Avatar for mduncan8

using XmlReader is the fastest way to read data from the xml file then use XPath to traverse to the node of your data

Member Avatar for mduncan8
0
737
Member Avatar for sniigg
Member Avatar for jamshed ahmed

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]

Member Avatar for kvprajapati
0
166
Member Avatar for nccsbim071

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]

Member Avatar for zid8ne
0
138
Member Avatar for tibebu.s

script sample for inserting data using select statement INSERT INTO [tablename] ( column1, column2 ) SELECT column1, column2 FROM [sourcetablename]

Member Avatar for zid8ne
0
110
Member Avatar for jd_davis

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] …

Member Avatar for MattBerry
1
864
Member Avatar for moorcroft

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

Member Avatar for moorcroft
0
632
Member Avatar for vinnijain

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

Member Avatar for vinnijain
2
177
Member Avatar for Stretcher75

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

Member Avatar for zid8ne
0
125

The End.