
wayneph
Members-
Posts
25 -
Joined
-
Last visited
About wayneph
- Birthday 06/18/1979
wayneph's Achievements
Newbie (1/14)
0
Reputation
-
We have a 3rd party app that has been installed to one of our network servers and is to be run from a share. In the documentation that came with the program, the company has stated that they wanted the Local Intranet CAS settings ste to Full Trust. I don't have a huge problem with that, but it seems like a bit of overkill to me. There are also about 500 users (many without local admin rights) that would need to update this, and I don't want to have to go to every machine. I know that caspol.exe will allow me to update settings, and I can also specify just a specific share to give privledges to. The network group can probably push it out as a script that updates the entire network in one swoop. The problem is that for the life of me, I can't come up with the right combination of switches... Can anyone provide some samples that use caspol to give Full Trust to a share? (or the entire Local Intranet for that matter...) I'll need to run this for both the 1.1 and 2.0 frameworks, but I assume that once I have one command line, the other will be the same.
-
Here's a JavaScript function from one of the sister sites: http://www.xtremevbtalk.com/showthread.php?p=390844
-
Do you need to PostBack? Or do you just want to bring it up like a link. The easiest way is to Add a Target Attribute to a link. Otherwise if you just need to bring up a link you can use client side JavaScript. If it posts back, then during the page rendering you'll need to spit out some JavaScript to tell Frame2 to change as well. (One possible JavaScript example is here: http://www.pageresource.com/jscript/jframe2.htm)
-
OK, I am finally getting around to playing with 2.0 and the new Data Web Controls that we have available. I must say it will be nice being able to do more things with out having to go into the code. However, I hit a snag. To limit round trips to the database, I often create stored procedures that return multiple resultsets. When using a Dataset, they just get put in as multiple tables, I set a Data Relation between them and everything is happy. Now I am trying to do something similar with a SQLDataSource. So far I have been able to set up the Select Query and populate a control with the contents of the first result, but I haven't found a way to the second table or a way to define the relation between the tables. Has anyone done anything similar, or know of a way to work with this?
-
Assuming your Header uses TH you can try something like this: TH {border-bottom: 1px solid #99CCCC;} Otherwise just give the heading a separate class name and chage the Style definition from TH to what ever new class you set up.
-
Exporting to Excel, refining data exported.
wayneph replied to mike55's topic in Database / XML / Reporting
Instead of doing select *, I would select the exact columns that you need. Then you can use SQL to return the blanks directly from the database. The syntax will be a little different depending on what database you're using but in SQL Server, it would be the CASE WHEN construct, and in Access it would be an IIf(...) statement. Then you're ASP code doesn't have to worry about the value at all. It's already taken care of. -
I'd use something like this to prevent the user from clicking edit. It will clear out the controls from the "Edit" column in the ItemDataBound so that the buttons don't even show up. Private Sub dgRecs_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) _ Handles dgRecs.ItemDataBound If IsDate(e.Item.Cells(8).Text) Then 'Replace the index with the column of your Edit Column e.Item.Cells(10).Controls.Clear() End If End Sub
-
2 extra clicks on their site takes you to their Free for home use version: http://www.grisoft.com/doc/289/lng/us/tpl/tpl01
-
The code from your "MostrarSTgrupo" Sub needs to be executed as part of the Page_Load. The ID needs to be set and added back into the forms controls collection before it will fire the events. Otherwise, the rest looks OK.
-
My suggestion would be to use the ItemDataBound function with some Static variables. and do something like this... (untested because I don't have time to set up a database right now) Public Sub HideCells(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Static col1Value as String Static col2Value as String Dim dr as DataRow = CType(e.Item.DataItem, DataRow) If e.Item.ItemType = ListItemType.AlternatingItem Or _ e.Item.ItemType = ListItemType.Item Then If dr.Item("col1Name") <> col1Value Then e.Item.FindControl("lblCol1").visible = true col1Value = dr.Item("col1Name") e.Item.FindControl("lblCol2").visible = true col2Value = dr.Item("col2Name") ElseIf dr.Item("col2Name") <> col2Value Then e.Item.FindControl("lblCol1").visible = false e.Item.FindControl("lblCol2").visible = true col2Value = dr.Item("col2Name") Else e.Item.FindControl("lblCol1").visible = false e.Item.FindControl("lblCol2").visible = false End If End If End Sub if column 1 and column two always change together, you can probably get away with just the first and last part of the conditional. This loop will handle the following situation: Header1 Header2 Header3 asdf qwer 1234 2345 yuio 4564 3456 9876 hjkl vbnm 7667 ...
-
This isn't new to 2003: Go to IIS - Right Click on the Web Site and go to Properties. Go to the Home Directory Tab and click on Configuration. On the AppDebugging Tab you can tell it to send a generic message or the error details.
-
I'm going to suggest global.asax, but not the Session sub. Can you do it as part of the Begin Request? This fires each and everytime a page from the application is requested. Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) ' Fires at the beginning of each request End Sub
-
I would actually use multiple controls. Set up your data in a DataSet with a Customers DataTable and Address DataTable and a Data Relation between them. Then I'd use a DataList for the Customers Information, and Nest either a DataGrid or another DataList in the ItemTemplate for the Address informaiton. The DataSource for the nested table would be based on the DataRelation between the two datatables. This article has some sample code and a pretty detailed description of using the DataGrid. You'll just have to apply the same techniques to a DataList.
-
I haven't had a chance to play with it yet, but I have to agree that I don't have many problems with IE 6... As far as tabbed browsing goes, I like the way it currently works in XP when you have the taskbar grouping turned on. It's the benefit of Tabbed browsing when you need it. If they can move it into an MDI type form and keep my Alt-Tab to each browser page while tabbing between programs at the same time I would accept that as well. I think I'll start the download tonight, and try to get it installed on one of my machines I just replaced.
-
<a href='WindowTreatment_Home.aspx?IDDepartment=<%# DataBinder.Eval(Container.DataItem, "DepartmentID") %>&IDCompany=<%# DataBinder.Eval(Container.DataItem, "CompanyID") %>'> Or you can create a Link Button and have your code-behind form add as many variables you like