- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
51 Posted Topics
Re: Have you tried? [CODE] <asp:GridView ID="dad" runat="server"> <Columns> <asp:BoundField ItemStyle-Width="500px" /> </Columns> </asp:GridView> [/CODE] | |
Hey All, Hopefully some of you have some great creative ideas. My company, and IT consulting firm, is partnering with a charity that operates in the Philippines to supply refurbished computers to students who would otherwise not have access to them. We are looking to get a name for the … | |
Re: the function(){} segment is meant to fire on success, it sounds like that may not be happening. Is there any chance you can debug your script and see what's going on? I normally code in VS2010, which allows for debugging of JavaScript. Determining success or failure status would be my … | |
Re: It has been a bit since I've done something similar to this, but the thought that comes to mind is that ddRoles is inside an edit item template. I believe that this is only rendered when the item is being selected for edit. So any reference to that object would … | |
Re: chibex64, My first thought is to debug and make sure that the event is actually getting fired, I'm guessing you know how to do that and have done so already. That said, I'm using the same set up as you are VS 2010 Professional. I normally use [CODE] TextBox.Text = … | |
Hi All, I am trying to use to linq to retrieve some data, and creating my queries dynamically with where clauses added to an IQueryable object. The problem I am running into is filtering for days of the week. In the table, I have a datetime of a call. I … | |
Re: Johny2011, I'm not familiar with a method of doing this without using code, however, take that with a grain of salt, as I'm not a fan of doing everything on the asp page, seperating with a code file makes for cleaner asp markup and code pages, in my humble opinion. … | |
Re: rino abraham, Assuming that your error is occuring at the line with all the >>>>>>>>>>>>>>>>>>, the first thought that comes to mind is that there are no columns being populated except for the command buttons, which are rendered as linkbuttons. That said, it is difficult to tell from what you … | |
Re: MarkAnd911, Take a look at [URL="http://stackoverflow.com/questions/628115/dynamically-changing-css-style-in-c"]this page[/URL]. It's not exactly the same as what you are looking for, but the idea is to dynamically change the css, so this should do the trick. Hope it helps. | |
Re: Continuing on what stbuchok mentioned, to avoid this, you can set a default start page. i.e. default.aspx, by right clicking on it and selecting "Set as Start Page". Just the same, you can't try to debug the program from a .cs as stated above. | |
Re: samreen36, A couple things. First, when entering code in the comments please use the "CODE" and "/CODE" tags. It makes the code a lot easier to read for the rest of us. You can find them on the top of the text editor. Onto your problem. I would suggest displaying … | |
Re: xaveri, It's been a little while since I have used GridViews, so you'll have to bear with me. You may try adding the "OnEvent" values to the GridView tag. Such as "OnRowDeleting" or "OnRowDeleted" you can either add code behind or add script to your page to alert the page … | |
Re: The simplest way to do this is to use the AutoPostBack and OnSelectedIndexChanged properties. When AutoPostBack is set to true, the OnSelectedIndexChanged property will tell application which function to fire. From there you can check out what value was selected, and if it's an acceptable value, redirect as needed. i.e.: … | |
Re: As per what jfarrugia mentioned, try using DropDownList1.Items.Clear(); It is a good idea to do this before any databinding. It will ensure there is no data in the drop down list when the new data is added. Also, you are using two if statements and not an if else statement … | |
Re: danholding, When you say it won't populate hours with the selection from the dropdown list, do you mean that it only populates the grid once, and wont do it again when it changes, or that it doesn't show any values in the hours column at all? | |
Hi all, More of general question, than just about drop down objects, but that's where I noticed first, so I'm using that as my example. In the project I am working on, one of the programmers created a new drop down item using [CODE] new ListItem() {Text = "stuff", Value="someValue"}; … | |
Re: 123mehran, I mostly use C#, so my VB may be a little rusty, but from what I see, the Exit For statement will be executed on the first iteration of the loop every time. From what I think you are trying to do, simply removing that line should do the … | |
Re: I'm not sure if the stack trace is really what you are looking for here. While I have not heard of or used anything such tool in asp.net, a suggestion, or idea for a method comes to mind: Set a session variable in your global.asax on session start that is … | |
Hi All, Hopefully someone has had this problem in the past and can point me in the right direction. In the last couple days the ASP.NET development server has slowed down to nearly a halt when starting and stopping debugging, by that I mean anywhere from 5-7 minutes before the … | |
Re: Have you tried searching Google or Bing for "creating a user login in asp.net tutorial"? I tried that and was given several thousand results. Perhaps one of them can help you. | |
Re: You may try something like [CODE] <asp:Button ID="btnNewEntry" runat="Server" CssClass="button" Text="New Entry" OnClick="btnNewEntry_Click" OnClientClick="aspnetForm.target ='_blank';"/> [/CODE] Hope that works for you. | |
Re: It is possible to send e-mails, I'm not sure about receiving, as I have never tried, nor can I think of an instance when it is needed. Check out this tutorial and hopefully it will help you out. [URL="http://asp.net-tutorials.com/misc/sending-mails/"]http://asp.net-tutorials.com/misc/sending-mails/[/URL] | |
Re: Can you post your gridview markup as well? That would help to see what you are doing and what may be causing the problems. | |
Re: Have you tried inserting the variable inside single quotes? ie: [CODE] string query = "Select * from EmpInfo where Department='" + dd_AdmViewProf_dep.SelectedItem.Value + "' and Grade ='" + dd_admViewProf_Grade.SelectedItem.Value +"'"; [/CODE] In sql queries, when a string is used as a where paramter, they normally need to be enclosed in … | |
Re: Ruan, Why do you think that it is giving you the 2nd to last row? Are you viewing the data yourself and sure that it is the second to last row? Generally speaking .Rows[index] is zero based. Therefore requesting an index that is equal to the number of rows would … | |
Re: I would recommend you try the split function. [URL="http://msdn.microsoft.com/en-us/library/ms228388(VS.80).aspx"]http://msdn.microsoft.com/[/URL] | |
Re: This is a little vague. Are you trying to verify that the user is valid? Or are you trying to make sure the credentials they enter, e-mail address for username etc., are valid? If you are looking to validate the user, you will need to query a database for authenticated … | |
This is more than likely the dumbest sounding problem most of you will have ever heard of, but after three days of attempting to fix this myself, I have gotten no where. I am working on an older project, it works fine, but I need to upgrade it an add … | |
Hi All, I am trying to output an excel workbook that I created else where in the program through a Response.Write() call. The issue I am having is that when I call the Response.Write(); it shows the download dialog for the excel file which it is supposed, but when opened, … | |
Re: GoogleEyedBass, A loop of some sort should suffice, such as for or while. Something like [CODE] int i = 0; int[] numbers = int[100];//array to hold first 100 items for(int j = 0; j < ArrayOfNumbersToTest.Count; j ++) { if(//check if number in initail array is prime here) { //add … | |
Re: [URL="http://webmasterformat.com/blog/top-asp-net-cmss"]http://webmasterformat.com/blog/top-asp-net-cmss[/URL] | |
Re: bravo659, Are you using the tag DataSourceID = "something here" in your asp markup? If so, try removing that. As long as the btnBattingAverage_Click is triggered prior to when you want it viewed (page load, after a button click etc) you should be okay. Posting your asp mark up would … | |
Re: Where is Stevilo changed? I don't see any calls to any methods in the loop, so even if it is a global variable, without being changed, if it is not == 0 to start with, it will never be changed. Perhaps I am missing something, but that is hard to … | |
Re: balrogf, the underlying issue here is two fold. One is the way that you are updating your variables recrank and recrank2, recrank may work okay with the ++ method, since a straight is more or les i, i++, (i++)++ ... etc, but recrank2 has to start on a different number … | |
Re: [CODE] List<List<T>> ListOfLists = new List<List<T>>(); [/CODE] Which I see is what is in the link Mitja supplied.... Check that out for a better description | |
Re: erum, You can use a FilteredTextBoxExtender for this. It is part of the AJAX toolkit that is used in asp.net. You should be able to add AjaxControlToolkit to your project references. [CODE] <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" TargetControlID="Number_TextBox" FilterMode="ValidChars" ValidChars="0123456789" runat="server" /> [/CODE] This will force the … | |
Re: New Order, Just out of curiosity, why are you trying to use a string array for this? It seems that making a space object and an array or list of spaces would be a much more simple and intuitive solution. Unless you absolutely have to, I would advise against the … | |
Re: Hi 080346, Thats an interesting name you have. This is assuming you are using an asp:Table control ie: [CODE] <asp:Table ID="MyTable" runat="server"> <asp:TableHeaderRow> <asp:TableCell>Header 1</asp:TableCell> <asp:TableCell>Header 2</asp:TableCell> </asp:TableHeaderRow> </asp:Table> [/CODE] Then, in your code, try this: [CODE] TableRow tr = new TableRow(); TableCell tc1 = new TableCell(); TableCell tc2 = … | |
Re: TheDocterd: DataGrids use the DataSource property to assign a set of data to show in the actual grid. I do not use DataGrids too often any more, you may want to look into using gridviews, but the basic way that I used to do this was to create a DataTable, … | |
Re: While I doubt it is the reason for your error, is there a reason you are using Session["FirstName"] in the CommandText? You have already created the variable Firstname from Session["FirstName"] and cast it as a string. | |
Re: kaaviya, Have you tried using a session variable? This is a trick I use often to tell what page I am navigating from. To do this I do: [CODE] HttpContext.Current.Session["PreviousPage"] = "form2"; [/CODE] and then on form 1, do something like, [CODE] if(HttpContext.Current.Session["PreviousPage"] != null && HttpContext.Current.Session["PreviousPage"] == "form2") Gridview2.visible … | |
Re: pharindra, Can you please supply your code for the the GridView? That would help a lot in trying to find any problems that may be in the code. Thanks | |
Hi all, I have a grid view I am trying to use, and it displays a large number of pill codes, (thousands) that I would like to be able to filter down. I have set up a dropdown list that gives the different options to filter on, basically every letter … | |
Re: To isolate a certian cell you can use this: [CODE] DataTable dt = new DataTable(); DataRow dr = new DataRow(); for (int i = 0; i < dt.Rows.Count; i++) { for (int j = 0; j < dt.Columns.Count; j++) { if (dt.Rows[i][j] == some condition) dt.Rows[i][j] = something; } } … | |
Re: From the sounds of what you are trying to do, I would suggest you try adding an OnSelectedIndexChanged property to your dropdown list. This property will allow you to call a method that can be used populate a textbox or label. For example, I used a drop down box like … | |
Re: Hi Amar, I'm a little confused by what you are trying to do here. Are you saying that you cannot get the row to delete? You have OnRowDeleting defined in your GridView, but the function stated there is not seen in the rest of the program. Additionally, OnRowDeleting may not … | |
Re: Are you trying to simplify your code? If that is the case, I would recommend something along the lines of setting all the values to a default of "none" as that is most often the case, and changing only the values that need it. See below: [code] watercalc.Style["display"] = "none"; … | |
Re: I would wager a good guess that is is due to the fact that you are trying to compare query and query1 to UserName and Password, respectively. query and query1, by the linq syntax you provided will actually be of type korisnik. You should be able to do something like … | |
All: I created two asp.net projects with c# behind. One is an interface with options to create new users etc, the other is a reporting interface. I would like users to be able to click on links from the admin interface and go to the reporting interface. It doesn't really … | |
Hi all, I am trying to create a table of user created filters for a data set and then display the filters in an ASP:Table. Displaying the filters works fine, and I have no problem there. The issue I am having is that the buttons I am trying to add … |
The End.