Hi,
The CSS trick for gridview fixed headers may not help in all browsers consitently.
Try to use javascript or jquery to manipulate with client widht & height after rendering the HTML. Bit of extra working but certain in all browsers.
aspdotnetuser.
User Profile
Collapse
-
Hi,
I am able to make that you are submitting and employee information, which reflects in the gridview after inserting into DB.
You need to repopulate gridview values by select query from DB for every insert you do. For binding dropdown in gridview try to perform it inside "gridview_rowda tabound" event.
aspdotnetuserLeave a comment:
-
aspdotnetuser replied to How to export data into Excel which is diaplayed using GridView in Visual Studio 2008in ASP .NETHi Ewan,
With this render control option did you try a gridview with hyperlinkedtext columns and template columns? I think there it fails and the format in excel is incorrect.
May be give a try with "DoddleRepo rt" available @ http://doddlereport.codeplex.com/.Leave a comment:
-
enclose the gridview inside a asp:Panel.Perfo rm show/hide of the panel rather the gridview..Hope this works..Leave a comment:
-
Are you looking for something like date control?
Please take help of ajax datecontrol extender or jQuery date control extender...Leave a comment:
-
1. Delete the events.
2. At the top of the page in visual studio, you have two dropdowns one for controls other for events.Choose the control and choose the event. it creates the code for the event.
3. Now your compilation/runtime error vanishes.Leave a comment:
-
-
Just keep the user identification in the session variable as a key. check for the key during every login and allow user if key is null else skip saying user already online..when user is already online, key exists and parallel login is prevented. This way even if your client machine exits in a haphazard manner..session is cleared and user is allowed login again.Leave a comment:
-
To create actions in gridview, you need to have templatefield. For dynamic templatefields you need to implement 'ITemplate' interface.
I dont know whether URL reference is allowed in this forum. but still to help, hit "Dynamicall y Adding Template Columns to a GridView" in google search, you will land up in the right example i guess.Leave a comment:
-
Hi,
If i am right, you can create parsing zones in text files using comments. say you can haven this way
Line 1:
..
..
'User comment #START
Line 15:
Lline 120:
'User Comment #END
So during parsing line by line, need not to worry about line no 15 or XY, just start parsing after you hit #START and stop parsing once you hit #END. This way you could make...Leave a comment:
-
If you are in Asp .Net 4.0 it offers a feature like switching OFF the page level viewstate and switching ON the control level viewstate..so that all unnecessary controls viewstate are not maintained.Chec k that might help a bit, not a big leapLeave a comment:
-
aspdotnetuser replied to how to retrieve selected value of dropdownlist filled from datasource in asp.netin ASP .NETDataValueField and DataTextField are distinguished incase to have different values for display and selection.
In your case both can be same since you dont expect other than the value from ddl..moreover you have not queried any other column values from database to bind against "UserName". .
Code:DDLCat.DataValueField = "UserName" DDLCat.DataTextField = "UserName"
Last edited by Frinavale; Dec 6 '10, 02:59 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.Leave a comment:
-
Try this...
Code:Dim frmtimestring As TimeSpan = New TimeSpan("7", "30", "0") Dim toTimeString As TimeSpan = New TimeSpan("18", "0", "0") Dim diffTime As TimeSpan = toTimeString.Subtract(frmtimestring) MsgBox(diffTime.Hours.ToString + " : " + diffTime.Minutes.ToString + " : " + diffTime.Seconds.ToString)Last edited by Frinavale; Dec 6 '10, 02:58 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.Leave a comment:
-
Just refactoring your code.Can it be like this..
instead of splitting, looping and comparingCode:InString.Contains(input) output = IIf(InString.Contains(input), Chr(120), Chr(111)) (OR) InString.IndexOf(input) output = IIf(InString.IndexOf(input) <> -1, Chr(120), Chr(111))Last edited by Frinavale; Dec 6 '10, 02:57 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.Leave a comment:
-
Hi,
whats the density of records your application grid has?
if the count is more, use custom pagination by limiting records to say 10/25/50/100 to any suitable number.
Because, though you apply pagination asp.net request all of the records from server before paginating...Leave a comment:
-
Just use this example to fit to your requirement
Dim ddlValue As New ListItem
ddlValue.Text = "Value Visible in Dropdown"
ddlValue.Value = "Value on Selection"
DropDownList1.I tems.Add(ddlVal ue)Leave a comment:
-
-
Here's a solution..a bit complicated but gives you a performance profit
Use limit in your query to fetch only limited records and keep it in your session variable. once you reach the exhaustion limit on either side (say 10 in <next> or 1 in <prev>), then query the next 10 records.
So user will have only the limit of records in session to view and querying the whole load information is avoidedLeave a comment:
No activity results to display
Show More
Leave a comment: