|
Yes thanks Luc, seen that finally, all works as it should. Tired.
|
|
|
|
|
Ok thanks for the reply, got it sorted, stupidly didnot use the correct variable in the foreach loop to reference the dataveiwrow. Couldn't see for looking.
|
|
|
|
|
|
Have you checked the configuration of IIS[^] and you firewall? Did you get any exceptions?
I are Troll
|
|
|
|
|
Hi there,
I know there's no RowDataBound event for the WinForms DataGridView. But there is CellFormatting event in WinForms DataGridView. So Cellformatting event is very very slow.
Is there any solutions like RowDataBound event in WinForms DataGridView (Other then Cellformatting) ?
Thanks for all.
|
|
|
|
|
|
When I create open WPF program examples I see Window1.xaml and a Window1.xaml.cs file
neatly grouped together, the .cs files having a link arrow showing the relation or depency between the two files.
But when I add a xaml file, paste some xml (xaml) into it from another project, I have to
create a separate class file Window1.xaml.cs for example. This file, when added as a new item, is in the same tree hierarchy than the .xaml file and is not showing this arrow icon.
Am I doing something wrong?
--
Christoph
|
|
|
|
|
Make sure they share the same namespaces.....if they do, try reopening your solution again and they should be within the same tree hierarchy.
My signature "sucks" today
|
|
|
|
|
In visual studio if you right click on your project and select "Add"->"New Item" and then select a WPF window, or user control visual studio will automatically add both the xaml and the xaml.cs files which you can paste your code into.
However, if this doesn't suit you, or they somehow become disconnected - which does seem to happen sometimes - you can reattach them like this:
1) Right click on the project and select "Unload project"
2) Now your project is unloaded, right click again and select "Edit [projectname].csproj".
3) This will open the the project file for editing manually, it's just a regular xml file so is fairly easy to read.
4) Search within the xml of the csproj file for the name of your unlinked files.
5) To link a .xaml file with it's child .xaml.cs file it should look something like this:
<Page Include="Window1.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Compile Include="Window1.xaml.cs">
<DependentUpon>Window1.xaml</DependentUpon>
</Compile>
(You may find that the two files are not next to each other in the .csproj file.)
If they are not correctly linked, you may find that the .xaml.cs reference is missing the dependant tag. If you just added them as regular files, you may also find the tags aren't quite correct.
6) You just need to edit you file to match this layout.
7) Now save the .csproj file. Right click on the project and select "Reload project". You two files should now be linked.
Simon
|
|
|
|
|
I am not very sure of the exact answer. So, I am posting it to find the correct answer.
But i guess Web.config is an xml configuration file. This never gets called directly unless we need to retrieve the configuration setting.
I am not dam sure but i think this should happen.
Reasons are not Important but Results are Important.
http://www.sql4professional.blogspot.com
Swati Tripathi
|
|
|
|
|
Well...yes and no.
It doesn't just hold your own configuration settings, it holds settings for the application so the file will automatically be read every time the application/application pool is restarted and is read into memory. Because of this, every time you change the web.config, the app will do a re-pre-compile to reread it into memory.
So by rights, in ordinary use, it's only really called when the application is started.
That being said, I've had to write custom web.config readers for specific projects but that's my custom code reading the physical file, not the normal operating procedure for the overall project.
|
|
|
|
|
Thanks for your reply but i have one query so pls correct me if i m wrong
This is how the minimal Web.config file should look like:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
I do agree that Web.config file is a perfect place to store ASP.NET application configuration settings but if i have above web.config then my other configuration must be in machine.config then how cum web.config called when application pool restarted.
I may be wrong but pls give your glance and guide me ...
Reasons are not Important but Results are Important.
http://www.sql4professional.blogspot.com
Swati Tripathi
|
|
|
|
|
Because as far as I know, you cannot stop a web application from checking web.config. Just because it's empty is no reason for it not to still read it into memory. This is inbuilt behaviour as far as I know.
I also wouldn't use machine.config to hold settings for you. If you are concerned about security, you can encrypt sections of the web.config and the .NET service will decrypt it automatically for you so you don't even need to chagne your code.
|
|
|
|
|
ohhkkk
Thanks for your reply now i am clear with my question actually i was confused just because of machine.config.
Thanks once again for your reply.
Reasons are not Important but Results are Important.
http://www.sql4professional.blogspot.com
Swati Tripathi
|
|
|
|
|
http://msdn.microsoft.com/en-us/library/aa719558(VS.71).aspx[^]
Multiple configuration files, all named Web.config, can appear in multiple directories on an ASP.NET Web application server. Each Web.config file applies configuration settings to its own directory and all child directories below it. Configuration files in child directories can supply configuration information in addition to that inherited from parent directories, and the child directory configuration settings can override or modify settings defined in parent directories. The root configuration file named systemroot\Microsoft.NET\Framework\versionNumber\CONFIG\Machine.config provides ASP.NET configuration settings for the entire Web server.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
My understanding (from reading a WCF book) is that web.config is used by IIS when it runs your application.
Your application is basically a plug-in that IIS runs if it has been configured to do so.
I would put my own configuration information somewhere else.
|
|
|
|
|
i got little problem with opening a webpage in masterpage's contentplaceholder.
To open a webpage in contentplaceholder of masterpage i need to do is
remove html tag , head and title... and doctype tag too. along with
this i need to remove runat=server from form tag and put action
instead. and on the top most line '@page' i need to add masterpagefile
attribute. All code except for the first line has to be placed in
asp:content control with ref to master contentplaceholder......
but what i do if my webpage has style sheet ..i cant remove head tag
bcoz it contains style sheet link..and if dont remove style from the
head and try to run removing html tags and doctype....the webpage
opens in masterpage but on clicking on tab which is in webpage takes
me to homepage instead of opening tab.
master page code:
<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Pathology.master.vb"
Inherits="PATHOLOGY.Pathology" %>
<title>Pathology
webpage code .aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestStandards.aspx.vb"
Inherits="PATHOLOGY.TestStandards" %>
<title>Standards
<asp:table id="maintab" runat="server">
<asp:tablerow>
<asp:tablecell>
<asp:table id="content" runat="server">
<asp:tablerow>
<asp:tablecell>
Test Name:
<asp:tablecell>
<asp:dropdownlist id="testnameddl" runat="server">
<asp:tablerow>
<asp:tablecell>
Technique Name:
<asp:tablecell>
<asp:dropdownlist id="techniqddl" runat="server">
<asp:menu id="teststdmenu" borderwidth="0" width="150px" runat="server" orientation="Horizontal"
="" staticmenuitemstyle-cssclass="tab" staticselectedstyle-cssclass="selectedTab" cssclass="tabs" onmenuitemclick="teststd_MenuItemClick" height="16px">
<items>
<asp:menuitem text="Pre-Test & Post-Test" value="0">
<asp:menuitem text="Procedure & Protocols " value="1">
<asp:table runat="server" id="teststdmultiview">
<asp:tablerow cssclass="ViewStyle">
<asp:tablecell>
<asp:multiview id="STDmultiview" runat="server">
<asp:view id="pptestview" runat="server">
<asp:table width="600" height="400" cellpadding="0" cellspacing="0" id="pretesttable"
="" runat="server">
<asp:tablerow verticalalign="top">
<asp:tablecell width="600px">
TAB VIEW 1
<asp:tablerow>
<asp:tablecell>
<asp:button id="pptestbackbtn" runat="server" text="BACK">
<asp:button id="pptestsearchbtn" runat="server" text="SEARCH">
<asp:view id="prprview" runat="server">
<asp:table width="600" height="400" cellpadding="0" cellspacing="0" id="protocoltable"
="" runat="server">
<asp:tablerow verticalalign="top">
<asp:tablecell width="600px">
TAB VIEW 2
<asp:tablerow>
<asp:tablecell>
<asp:button id="prprbackbtn" runat="server" text="BACK">
<asp:button id="prprsearchbtn" runat="server" text="SEARCH">
webpage code .vb
Public Partial Class TestStandards
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub teststd_MenuItemClick(ByVal sender As Object, _
ByVal e As MenuEventArgs) Handles teststdmenu.MenuItemClick
STDmultiview.ActiveViewIndex = Int32.Parse(e.Item.Value)
Dim i As Integer
'Make the selected menu item reflect the correct imageurl
End Sub
End Class
|
|
|
|
|
This is the wrong forum, try Web Development or ASP.NET. Also read the message at the top "How to get an answer".
It's time for a new signature.
|
|
|
|
|
You can use Skins and set the SkinID of the master page in the page load of your page. You could put some javascript in the page that sets the href on the link tag. You could put all your styles in one stylesheet and have the master refer to that rather than having lots of different stylsheets that you need to switch between. There are lots of options.
|
|
|
|
|
<script language="JavaScript">
<!--
/*
No rightclick script v.2.5
(c) 1998 barts1000
barts1000@aol.com
Don't delete this header!
*/
var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED";
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
-- Modified Wednesday, May 26, 2010 3:06 AM
|
|
|
|
|
You should try to clarify your question first.
Read the thread on the top of the forum messages "How to get an answer of your question".
Life is a stage and we are all actors!
|
|
|
|
|
Please go through this post before posting a question.
My signature "sucks" today
|
|
|
|
|
Are you sprinkling the world with random JavaScript you didn't write??
|
|
|
|
|
You do realise you can simply view the page source without using the right button click?
^-^-^-@@-^-^-^
(..)-----;
||---||
^^ ^^
Moose.
|
|
|
|
|
Hi,
I'm searching for Microsoft .NET Framework 3.0 Configuration tool in VISTA, to see and manage the assemblies and code groups etc.
I didn't find Microsoft .Net Configuration in Administrative Tools. May be I didn't install framework SDK. Can you let me know where I can get the free SDK download. I googled, but didn't find the freeware. Thanks in advance..
|
|
|
|