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

51 Posted Topics

Member Avatar for sbglobal

Have you tried? [CODE] <asp:GridView ID="dad" runat="server"> <Columns> <asp:BoundField ItemStyle-Width="500px" /> </Columns> </asp:GridView> [/CODE]

Member Avatar for grovalmitchul
0
590
Member Avatar for croker10

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 …

Member Avatar for RH-Calvin
0
125
Member Avatar for skliz

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 …

Member Avatar for skliz
0
170
Member Avatar for chenschel

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 …

Member Avatar for chenschel
0
990
Member Avatar for Netcode

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

Member Avatar for Pgmer
-1
105
Member Avatar for croker10

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 …

Member Avatar for thines01
0
244
Member Avatar for johny2011

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

Member Avatar for johny2011
0
513
Member Avatar for rino_abraham

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 …

Member Avatar for rino_abraham
0
287
Member Avatar for MARKAND911

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.

Member Avatar for croker10
0
141
Member Avatar for apanimesh061

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.

Member Avatar for crishlay
0
114
Member Avatar for samreen36

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 …

Member Avatar for croker10
0
174
Member Avatar for xaveri

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 …

Member Avatar for xaveri
0
157
Member Avatar for gogs85

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.: …

Member Avatar for aspproject
0
647
Member Avatar for sherinpoulose

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 …

Member Avatar for sherinpoulose
0
103
Member Avatar for danholding

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?

Member Avatar for danholding
0
532
Member Avatar for croker10

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

Member Avatar for croker10
0
140
Member Avatar for 123mehran

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 …

Member Avatar for MamathaS
0
157
Member Avatar for MARKAND911

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 …

Member Avatar for kvprajapati
0
138
Member Avatar for croker10

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 …

Member Avatar for croker10
0
198
Member Avatar for abdul saboor

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.

Member Avatar for croker10
-1
111
Member Avatar for ImranShafiq

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.

Member Avatar for croker10
0
91
Member Avatar for abdul saboor

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]

Member Avatar for croker10
0
93
Member Avatar for shmy789

Can you post your gridview markup as well? That would help to see what you are doing and what may be causing the problems.

Member Avatar for croker10
0
71
Member Avatar for ryathegr8

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 …

Member Avatar for ryathegr8
0
154
Member Avatar for Mr.BunyRabit

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 …

Member Avatar for Mr.BunyRabit
0
87
Member Avatar for ans2007kumar

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]

Member Avatar for croker10
0
169
Member Avatar for shallug

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 …

Member Avatar for umamahesh2020
0
227
Member Avatar for croker10

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 …

Member Avatar for croker10
0
236
Member Avatar for croker10

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

Member Avatar for croker10
0
689
Member Avatar for GoogleEyedBass

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 …

Member Avatar for croker10
0
152
Member Avatar for bharanidharanit

[URL="http://webmasterformat.com/blog/top-asp-net-cmss"]http://webmasterformat.com/blog/top-asp-net-cmss[/URL]

Member Avatar for Borzoi
0
213
Member Avatar for bravo659

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 …

Member Avatar for croker10
0
227
Member Avatar for bisiii

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 …

Member Avatar for ddanbe
0
212
Member Avatar for balrogf

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 …

Member Avatar for balrogf
0
159
Member Avatar for destruct0

[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

Member Avatar for croker10
0
96
Member Avatar for erum

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 …

Member Avatar for croker10
0
180
Member Avatar for NewOrder

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 …

Member Avatar for croker10
0
138
Member Avatar for 080346

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

Member Avatar for croker10
0
171
Member Avatar for TheDocterd

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

Member Avatar for TheDocterd
0
113
Member Avatar for TJVR

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.

Member Avatar for catherine sea
0
204
Member Avatar for kaaviya

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 …

Member Avatar for croker10
0
154
Member Avatar for pharindra

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

Member Avatar for croker10
0
98
Member Avatar for croker10

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 …

0
161
Member Avatar for groberts1980

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

Member Avatar for groberts1980
0
211
Member Avatar for Roses89

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 …

Member Avatar for Roses89
0
112
Member Avatar for amar_devloper

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 …

Member Avatar for rohand
0
1K
Member Avatar for malashukla

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"; …

Member Avatar for croker10
0
209
Member Avatar for Lazarevski

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 …

Member Avatar for croker10
0
136
Member Avatar for croker10

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 …

Member Avatar for croker10
0
143
Member Avatar for croker10

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 …

Member Avatar for croker10
0
3K

The End.