|
I don't know if this will help you at all, and bear with me as I am very much a beginner, but I am using a checkbox field in my gridview as well, however I didn't create it the way you have I used an Item Template and whacked in the checkbox on the page there, something like this
<asp:TemplateField HeaderText="Open" SortExpression="active">
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("active") %>' Enabled="False" />
</ItemTemplate>
</asp:TemplateField>
the active field that i am binding on is a simple int field in the database with either 0 for unchecked and -1 (although i believe and int will do cept 0)for checked. Dunno if that helps you out any?
Cheers
Ian Caddick
|
|
|
|
|
Hi,
Thanks that's what I have
|
|
|
|
|
Check, r u updating the data before populating (loading) again?
Regards
R.Arockiapathinathan
|
|
|
|
|
No,
I am simply reloading the page, executing the stored procedure to return a subset of the original view and then databinding those results to the gridview.
I use the gvUserList_RowDataBound event to tie up the checkboxes after the bind but even though it seems to all happen correctly in debug when my page is redisplayed it looks as though the checkboxes have picked up the values from the previous view, even though I have Enableviewstate="false" in the page directive, on the form, gridview, and controls themselves.
Any idea what is happening?
|
|
|
|
|
Hi i am using editable Grid when i select edit button on grid then after postback the row is not shown? i have to scroll the page to see the selected row? could anybody give me how to maintain the selected row to visible without scrolling the page?
thanx in advance
-- modified at 7:55 Wednesday 2nd May, 2007
Sachin M Narangale
.Net can make everything...if we mould it properly!
MCA
9860019526
|
|
|
|
|
If you are using editable grid, then i think you can't. I did the same think using template columns and manually specifying row value to be edited as query strings. Using anchor you can bring the page to the row which you are going to edit.
|
|
|
|
|
Hi,
I'm facing a problem while using tabbed windows with IE 7. I log in as a test user, say User1 in to my web application. I open another tab (new tab) in my browser (IE 7) and login to the same application as User 2. Here User1 is connected to SQL Server 2000, and User2 is connected to Oracle.
When I refresh any of the two tabs, it displays data present in the other tab. For example, both the tabs have a form, say form1 which has a datagrid. When I refresh, the datagrid in the refreshed tab displays value of the datagrid in the other IE tab.
We check the user details from the session and thats how the connection preferences are set. So when I refresh the tab, I believe the session is not stored and session of the adjacent window is taken by the refreshed window.
Is this a bug in IE 7? Does this happen with tabbed windows in Firefox?
Any thoughts on this would be greatly appreciated!
|
|
|
|
|
blumenhause wrote: Is this a bug in IE 7?
No. That is exactly how it is supposed to work. The session is unique for the instance of the browser, not for each window/tab in the instance. If it were, you would lose the session every time you navigate to a different page, making sessions totally useless.
If you want separate sessions, you have to start separate instances of the browser.
blumenhause wrote: Does this happen with tabbed windows in Firefox?
Yes. Actually as Firefox never opens separate instances of the browser, all windows in Firefox also belong to the same session.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
Thanks for the reply. But i'm confused, excuse me.
When I refresh the browser tab, why does it take session values from the adjacent browser tab? Does a new tab mean a separate instance of IE? Does that mean the Admin user has to open two different IE windows to connect to different Database for the same application because he needs separate session. Then whats the purpose of tabbed windows.
Could you eloborate on this a bit, I do not have lot of experience with web programming, so I'm confused now.
Regards,
Blumen
|
|
|
|
|
Yes in order to be connected to 2 different sessions you have to have IE (or Firefox) opened twice, not just 2 tabs. The purpose of tabbed browsing (as I understand it) is to allow you to surf several pages at once with the browser opened once, this does not mean that each tab is a separate instance of the browser, its the same session.
" In the next millennium there are two kinds of business, those on the Internet and those out of business"
Bill Gates
"Be nice to nerds. Chances are you'll end up working for one."
Bill Gates
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
Wouldn't it be nice if I could open two of my yahoo accounts in different tabs of my browser, checking emails switching the browsers!
Is there any reason why browsers are designed this way, opening same instance in different tabs, any security concerns here?
Regards,
Blumen
|
|
|
|
|
blumenhause wrote: Is there any reason why browsers are designed this way
Economics of scale probably. Less memory overhead. No duplication of data.
For the most part few people need the functionality because they are login into separate websites.
When developing stuff I often have IE and FF open at once on the same site to get two different views of the data.
|
|
|
|
|
When I'm developing ASP.Net applications I use Firefox with a plug-in that actually allows the user of the IE rendering engine within Firefox so its the same as using IE, I have one FF tab open and one using the IE rendering engine that way, like Colin, I get views in both browsers.
" In the next millennium there are two kinds of business, those on the Internet and those out of business"
Bill Gates
"Be nice to nerds. Chances are you'll end up working for one."
Bill Gates
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
i have a usercontrol.i want to keep that control at the bottom of the page.some times the user control is going to upwards.is there any setting to keep my user control at the bottom always?......
|
|
|
|
|
Place your user control in the Placeholder which should be at the bottom of the page But make sure that you are populating the data in properly
-- modified at 6:25 Wednesday 2nd May, 2007
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Hi
I think the problem is not with the User Control, the problem might be with the data above this user control...
Once you placed your user control at bottom means it will come in the bottom only....there will not be any settings to keep a user control at the bottom always...
Regards
Sandeep Kumar V
|
|
|
|
|
Try putting inline frames and assigning the footer page to there. align this frame to the down of page.
|
|
|
|
|
create a CSS Style for the ocntrol and set up the positioning values of that style to keep the control where you want it on the page.
|
|
|
|
|
I am passing one parameter to the Crystal Report. I have writen the code of accepting parameter's value in button click event. When first time i am passing parameter, it works fine by showing report immediately. But, when second time i pass the different value to the parameter, it shows me the default page of accepting parameter.How to bypass this further also?
|
|
|
|
|
Dear All,
I'm asked to solve this problem in an old project implmented on ASP.net 2003
After some minutes of use the aspnet_wp.exe memory usage exceeds 100 MB because of the sessions and values in sessions. Tere datasets filled set as session values!
I want to free the memory from the session variable when the user clicks "Sign Out"
i tries these stuff on the button call:
Session.Abandon()
Session.Clear()
Session.RemoveAll()
but the memory used by aspnet_wp.exe is still the same
i put this code in the Global.asax where the sessions are initialized in both Session_End and Application_End subs but with the same results
So how can i free the memory?
I would really appreciate any help or keys
Best Regards
3ala2
|
|
|
|
|
|
Yeah thank u
I already used the GC.Collect() in two in both the log off button and the login page load so the problem was solved
Thanks again
Best Regards
3ala2
|
|
|
|
|
Hello!
I am developing a shopping cart having different merchants!
u user or buyer can purchase from different merchants and all the merchants are having different paypal accounts. Now i want to transfer money payed my the buyer into the accounts of different merchants if he has purchased from different merchants.
for eg.
If he purchased an item of 100 from "A" merchant
and another item of 200 from "B" merchant
Then 100 should go to the account of "A"
and 200 should go to the account of "B"
Payment gateway i am using is PayPal
Regards
|
|
|
|
|
Im using UpdatePanel ajax extension in asp.net 2.0. I have one checkbox and few texboxes in an UpdatePanel. The checkbox has an event which persorm some task when checked or unchecked. When ever i check or uncheck my CheckBox it loses its control. I've found article for set focus on TextBoxes only, those solution aren't helpful for my problem. Please give my any solution I've searched the whole of internet!
Thanks
|
|
|
|
|
Hi friends
I have bit problem in following line
String.Format("{0:t}","11/19/2007 10:00 AM");
I want to get Sort time format:- 10:00 AM
Thanks in advance
pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|