- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
52 Posted Topics
Re: As mentioned by [B]leonpwhirl[/B] ASP.net is the web development piece of the .net framework. .Net Framework is the platform, where the application runs. The applications are of 3 types - Windows Forms, Web and Console applications. Normally, the web application part of the .Net Framework is known as asp.net . … | |
Re: If you want to update the graphical view of the form, then you need to use forms Refresh() method. But I think you are loading the data from external resources such as database or file to the forms fields like textbox, checkbox etc while [B]Loading the form[/B]. If this is … | |
Re: Check this: [url]http://stackoverflow.com/questions/1437382/get-file-type-in-net[/url] | |
| |
Re: You can set the TabIndex property of the buttons accordingly. Ex: TabIndex of First Button to 0, Second Button to 1 & so on. | |
Re: The class diagrams are used to identify how the objects are designed and how they are interacting with each other. Altering the code to create a diagram doesn't make any sense! What is the problem, how you have find solution for that problem using oops(I mean how you have designed … | |
Re: Try using [B]ColumnMappings[/B] [CODE] bc.ColumnMappings.Add(yourSourceColumnName,yourDestinationCoulmnName); [/CODE] In the above code, replace yourSourceColumnName with exact ColumnName of the DataTable and replace yourDestinationCoulmnName with exact ColumnName of the database. Before doing that, when you create the datatable you need to add the columns with the corresponding datatype: [CODE] yourDataTable.Columns.Add(new DataColumn("yourColumnName", Type.GetType("System.DateTime"))); //Then … | |
Re: [QUOTE]if(//get property to get the value of combo box == "")[/QUOTE] [B]Text [/B]is one of the property of ComboBox right? what is the problem you are facing? | |
Re: This error occurs, if the object which you are referring is Null. So, modify your last code block to: [CODE] catch (Exception aa) { MessageBox.Show("x " + aa); } finally { if (Adapter.InsertCommand.Connection != null) Adapter.InsertCommand.Connection.Close(); } [/CODE] | |
Re: Create the functions: [CODE]create function idToRow(@ProductID as int) returns Varchar(500) as begin declare @temp varchar(100) set @temp='' select @temp+=CAST(id as varchar)+',' from yourTableName where ProductID=@ProductID return @temp end[/CODE] and [B]TaxDescriptionToRow[/B](same like idToRow), then call it like: [CODE]select ProductID,idToRow(ProductID),TaxDescriptionToRow(ProductID) from @table group by ProductID[/CODE] | |
Re: If you are using framework 3.5 or above you can write LINQ query & bind it to listview. | |
Re: I'm not sure about why this is happening...but I also came across with the same situation once. My Validation controls are not at all validating, then I used the below code on server side to force the validation. [CODE] if (!Page.IsValid) { return; } [/CODE] | |
Re: Check this: [url]http://www.codeproject.com/KB/vb/downloadFileswProgressbar.aspx[/url] | |
Re: [QUOTE]is there one more generic specification except T?[/QUOTE] T is just a place holder! you can change it anything that you want. [CODE]public class LinkedSet<T> : ISet<T> { public LinkedListElement<T> Root; public LinkedListElement<T> Focus; public class LinkedListElement<U> { //Below, use T instead if you mean this is a outer type(Then … | |
Re: [B]You can not define a class inside a method.[/B] [CODE] public class Class1 { private void Method1() { //Body of Method1 } private void Method2() { //Body of Method2 } } public class Class2 { private void Method1() { //Body of Method1 } private void Method2() { //Body of Method2 … | |
Re: [QUOTE]I have a label which shows a record from DB. DateTime. I need to format it someway that instead of "Birth: 15/10/2000 00:00:00" it will show only "Birth: 15/10/2000".[/QUOTE] You can do it in many ways, In Code: String.Format("{0:dd/MM/yyyy}", yourDateTime); Or In SQL: SELECT CONVERT(varchar(10),yourDateTimeTyeColumnName,103) | |
Re: You have declared the list [B]Totals [/B] local to the event handler [B]Averagebtn_Click[/B]. Hence, each time when the button is clicked, a new list is created. Instead, just declare it in the scope of the class. | |
Re: Programming means not only(strictly saying NOT) a front end design. It is a way to find a solution for a problem. Any automated tool cannot give a solution for a problem by itself, but it will help to solve the problem. VS-IDE is not .Net architecture! its just a tool … | |
Re: Does the website is hosted on shared hosting? Does it works if you revert back to older version? | |
Re: In the GridView1_RowCommand event, you have to use [CODE] DropDownList ddl = (DropDownList)GridView1.Rows[Convert.ToInt32(e.CommandArgument)].FindControl("DropDownList1"); [/CODE] | |
Re: [CODE] Select SUBSTRING(TESTNAME,0,CHARINDEX('-',TESTNAME)) --Parameters Of SUBSTRING: Expression,from,until --From is passed as 0, because you need first part of the string. --CHARINDEX is used to get the Index of '-' in TESTNAME [/CODE] | |
Re: In which line you are getting the error? It would be better, if you provide only few lines of code which causes or seems to cause the error! | |
Re: [QUOTE]But My property window is different from the one shown by you!!!! [/QUOTE] The screen shot provided by [B]Momerath[/B] is the [B]Asp.Net web application[/B] and the options you are looking for is [B]Asp.Net websites[/B]. Just look @ the link: [url]http://forums.asp.net/p/1429006/3207001.aspx[/url], I guess you will get some useful info there. | |
Re: The [B]Contains()[/B] method of a string will return [B]true[/B] only, if the given string is matched exactly to the source. So, you need to split the second string into individual characters and can use [B]Contains()[/B] method of the source string like, [CODE] string a = "1 2 2 4 5"; … | |
Re: [B]Int32.Parse()[/B] will throw [B]Format exception[/B], if the values is other than [B]integer[/B]. [QUOTE] int Hisclass =Int32.Parse(ddlClasses.DataValueField.ToString()); [/QUOTE] Do you mean to use [B]int Hisclass =Int32.Parse(ddlClasses.SelectedValue);[/B]? | |
![]() | Re: [Quote]The book goes on about overloading constructors but it hasn't actually said what overloading actually is [/Quote] In simple words Overloading is.... Multiple methods with the [COLOR="Green"]same name and different number of arguments[/COLOR] or [COLOR="Green"]same number of argument list with different data types[/COLOR]. Overloading the constructors is known as [B]Constructor … ![]() |
Re: I executed the below query on MS-SQL 2008 and it worked as expected. [CODE] DECLARE @table as table(A datetime,B datetime) insert into @table values('2011-04-01 00:00:00.000','2011-03-25 15:45:56.457') insert into @table values('2011-04-01 00:00:00.000','2011-03-25 15:52:37.933') insert into @table values('2011-04-09 00:00:00.000','2011-03-25 15:54:37.197') insert into @table values('2011-04-01 00:00:00.000','2011-03-25 16:05:30.023') insert into @table values('2011-03-31 00:00:00.000','2011-03-27 00:43:23.713') … | |
Re: From the [B]Balance [/B] table you can take the latest row using the query: [CODE] select b1.* from @Balance b1 inner join ( select dep_id,MAX(Date) [Date] from @Balance where Date between '2011-03-01' and '2011-03-29' group by dep_id ) as b2 on b1.dep_id=b2.dep_id and b1.Date=b2.Date [/CODE] In order to get the … | |
Re: You can use foreach loop to your listbox to fetch individual item and add it to the listbox. However, the contents of your listbox items are not comfortable with the type [B]double[/B]. | |
Re: What exactly the issue that you are experiencing? are you asking DB query? | |
Re: What exactly the error message that you are receiving? The possible issues that might occur while working on such function is [B]permission issue[/B] or the file is locked by some process. | |
Re: Check: [url]http://forums.asp.net/t/1112458.aspx/1?Invalid+postback+or+callback+argument[/url] | |
Re: You can just abandon the section using: [B]session.abandon[/B] | |
Re: Could you please provide [B]StackTrace [/B]of the exception? | |
Re: You can force the user using [B]OpenFileDialog[/B] itself. i.e. if the user is not selected desired drive or folder, prompt the dialog again or show some error. | |
Re: The SQL server stores the date along with the time. Hence, when you are writing the query like: [B]date_of_req='2011-03-15'[/B] The server need to convert the string to date format. While doing so it will append the time as 00:00:00. So the query will return the result only when the [B]date_of_req[/B] … | |
Re: Take a look @ this: [url]http://stackoverflow.com/questions/905419/image-in-datatable[/url] [url]http://www.codeproject.com/KB/recipes/ImageConverter.aspx[/url] | |
Re: [QUOTE]smtp.Host = SMTP;[/QUOTE] is proper? | |
Re: You can do it in 2 ways: 1. Store the image in a folder(@ any location on server). 2. Store the path of that folder on database. [B]OR[/B] 1. Convert the image to byte stream and 2. Store it in the database. While retrieving do the reverse process. | |
Re: You need to use [CODE]System.IO.Path.GetFileName(FileName_With_Path_And_Extension)[/CODE] Instead of [B]StreamReader[/B] | |
![]() | |
Re: Since you have set the BodyFormat as MailFormat.Html, you can use [B]<br>[/B] for new line. | |
Re: In Form1, 1. Store the combobox's selected value in the instance of structure. 2. When the button is pressed, pass that struct object to [B]Form2[/B]. In Form2, 1. Receive the struct object. 2. When the button is pressed, show the stored text by calling its method. | |
Re: I think [B]session [/B]is the best way to do this. What is your problem with the [B]Sessions?[/B] | |
Re: Your code seems to be updating the same row of the destination table. [CODE] foreach (DataRow dr in _dtequityData.Rows) { DataRow r = drnew.NewRow(); drnew["fldDate"] = Convert.ToDateTime((dr["flddate"]).ToString(); drnew.Rows.Add(r); } [/CODE] | |
Re: Store the connection string in [B]web.config[/B] file and keep it constant on the server. I think the link [url]http://www.asp.net/hosting/tutorials/asp-net-hosting-options-cs[/url] is helpful for whole deployement process. Check [URL="http://www.asp.net/security/tutorials"]this link[/URL] too. | |
Re: If I understood your question properly, this is what you are looking for: [CODE]<div> <div style="width: 694px; height: 30px"> <div style="float: left; text-align: right; width: 340px;"> <asp:Label ID="Label1" runat="server" Text="User Name:"></asp:Label> </div> <div style="float: right; width: 340px;"> <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox> </div> </div> <div style="width: 694px; height: 30px"> <div style="float: left; … | |
Re: You can use the following code to display the stack trace: [CODE] StackTrace ObjStackTrace = new StackTrace(); StackFrame[] ObjStackFrameArray = ObjStackTrace.GetFrames(); foreach (StackFrame stackFrame in ObjStackFrameArray) { Response.Write(stackFrame.GetMethod().Name); Response.Write("<br><br>"); } [/CODE] | |
Re: In general, object is a thing which you can realize, which you can identify, which you can able to call with a specific name. Ex: Book, Mobile, Vehicle, Water, Human etc... Lets consider that a bundle of pages are there in a table. That is neatly arranged by putting 2 … |
The End.