|
Check for any inline styles present for the controls. This might be the problem. VS2005 editor automatically adds inline styles to the controls.
|
|
|
|
|
but in this case all the controls are displaying scattered. how can i check the inline styles
|
|
|
|
|
Take source of the page(HTML) and check whether any styles are added to the control tag. Try removing that. What is your outer table's width ? If you want page to be fit on all resolutions, width should be mentioned in percentage.
|
|
|
|
|
following is the sample of one of my controls (HTML) and my outer tables width is 100px
<asp:label id="Label2" runat="server" font-bold="True" style="z-index: 100; left: 33px;
position: absolute; top: 52px" text="Select a date" width="105px">
-- modified at 1:37 Friday 12th October, 2007
|
|
|
|
|
Do one thing Copy source code of your page i.e html content out that in html editor like vs2005 then check the html is properly coded
i think there might be some missing closing tags in your page check that
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
i have checked the html codes and the coding is correct. its working properly in the localhost. but when i host the page, its displaying scattered in some client machines.
|
|
|
|
|
Could you post your html content but while posting make sure you have chacked Ingnore HTML check box while writing your post
or put your html content in code section
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
<asp:image id="Image2" runat="server" height="21px" imageurl="~/Images/banner2.gif"
="" style="z-index: 100; left: 11px; position: absolute; top: 492px" width="941px">
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <asp:label id="Label4" runat="server" style="left: 566px; position: absolute; top: 166px; z-index: 100;"
="" text="User Type" width="68px">
| <asp:dropdownlist id="DropDownList1" runat="server" style="left: 659px; position: absolute;
top: 165px; z-index: 100;" width="204px" tabindex="1">
<asp:listitem>Select
<asp:listitem value="1">Member
<asp:listitem value="2">Admin
<asp:listitem value="3">Team
| | | | | | | <asp:label id="Label2" runat="server" style="z-index: 100; left: 565px; position: absolute;
top: 196px" text="UserName" width="70px">
| <asp:textbox id="Uname" runat="server" style="z-index: 100; left: 659px; position: absolute;
top: 197px" width="197px" tabindex="2">
| | | | | | | <asp:label id="Label3" runat="server" style="z-index: 100; left: 566px; position: absolute;
top: 231px" text="Password" width="62px">
| <asp:textbox id="password" runat="server" style="z-index: 100; left: 659px; position: absolute;
top: 228px" textmode="Password" width="199px" tabindex="3">
| | | | | | | | | | | | | | | | | | | <asp:button id="Button1" runat="server" onclick="Button1_Click1" style="z-index: 100;
left: 759px; position: absolute; top: 258px" text="Login" width="77px">
| | | | | | | | | <asp:label id="Label5" runat="server" style="z-index: 100; left: 658px; position: absolute;
top: 314px" width="145px">
| | | | | | | | | | | | | | | | | | | | | | | | | | | <asp:linkbutton id="LinkButton10" runat="server" forecolor="#404040" onclick="LinkButton10_Click"
="" style="z-index: 100; left: 608px; position: absolute; top: 393px" width="289px">Powered and Hosted by Neosoft Technologies
|
<asp:image id="Image1" runat="server" imageurl="~/Images/neologo.jpg" style="z-index: 101;
left: 12px; position: absolute; top: 0px">
<asp:image id="Image3" runat="server" height="393px" imageurl="~/Images/banner1.gif"
="" style="z-index: 102; left: 234px; position: absolute; top: 99px" width="4px">
<asp:image id="Image4" runat="server" backcolor="SteelBlue" forecolor="SteelBlue"
="" height="17px" style="z-index: 105; left: 10px; position: absolute; top: 83px" width="941px">
|
|
|
|
|
mukesh.mr03 wrote: Style="z-index: 105; left: 10px; position: absolute; top: 83px"
I reiterate, remove these inline styles and check.
|
|
|
|
|
Website www.web1.com is running under 1.1.Under the same website need to create two subdirectory like subdir1 and subdir2.
Subdir1 is using --- version 1.1 -- www.web1.com/subdir1
Subdir2 is using --- version 2.0 -- www.web1.com/subdir2
if i use http://www.web1.com/subdir2,all websites under the webserver,stopped automatically.
Why it is like that.Is it possible to run version 1.1 and version 2.0 under the same website .
radsgr
|
|
|
|
|
Please let know Whether u aree getting problem for both asp.net 1.1 version and also for 2.0 version application or for only 2.0 Version
If U are Getting Problem only with 2.0 Version and working fine 1.1 Version .First add Both these sub Directories as Virtual DIrectories inside Main Application add assign Configuration setting as 1.1.414.. for 1.1 Version in iis and for 2.0 2.0.57057 in IIs ..... If u Get Again any problem only in
asp.net 2.0 Application then change
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
to< configuration>
I Hope this Work .... I have not tested because i dont have both version on my system ....Just Try as Above
And If u have any Problem Plz Submit Stack Information
Just Share Words
|
|
|
|
|
Website www.web1.com is running under 1.1.Under the same website need to create two subdirectory like subdir1 and subdir2.
Subdir1 is using --- version 1.1 -- www.web1.com/subdir1
Subdir2 is using --- version 2.0 -- www.web1.com/subdir2
if i use http://www.web1.com/subdir2,all websites under the webserver,stopped automatically.
Why it is like that.Is it possible to run version 1.1 and version 2.0 under the same website .
radsgr
|
|
|
|
|
I doubt it. I don't thnk the web server can even run 2 different apps with different ASP.NET versions.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
RADSGR wrote: Is it possible to run version 1.1 and version 2.0 under the same website
Nope. IIRC, you'd have to create an entirely seperate website under IIS and tell it which ASP.NET version to use.
|
|
|
|
|
I need to create both applications (one is 1.1 and another one is 2.0) under the same website(which is also 1.1)
Website --> 1.1 -- one appln
-->Subdir1 --> 1.1 -- One appln
-->subdir2 --> 2.0 -- One appln
But I already assigned the version of each appln in IIS.
radsgh.net
|
|
|
|
|
I doubt this is not possible. As Dave suggested, you can create two sepearete websites and assign ASP.NET version
|
|
|
|
|
Asking the same question again won't change the answer.
You can't do what you want. You MUST create two seperate ASP.NET applications in two seperate websites under IIS.
|
|
|
|
|
Sorry not possible dude till this time. U need to deploy them as seperate applications on IIS instead.
Do not forget to tune the Performance
Sudhir Yadav
|
|
|
|
|
Each application can only use one version of the framework.
If you turn the subdirectory into a separate application, you can run it using a different version of the framework. You also have to set up a minimum of one application pool for each version of the framework you are using, as all applications in one pool have to use the same version.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi All,
I've made some enhancements to an application that was built using the User Interface Process Application Block. Some of the enhancements required changing the app pool to run under a service account (previously it was running Network Services).
Since making this change, one of the old pages (untouched by my code, and previously working), now generates the following error:
Requested registry access is not allowed.
mscorlib
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex) at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category) at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID) at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type) at System.Diagnostics.EventLog.WriteEntry(String source, String message) at Microsoft.ApplicationBlocks.UIProcess.WebFormViewManager.GetViewNameForCurrentRequest(IView currentView) at Microsoft.ApplicationBlocks.UIProcess.Navigator.ActivateViewInStateIfNecessary(IView view) at Microsoft.ApplicationBlocks.UIProcess.WebFormView.WebFormView_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I have updated the registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Eventlog\Application\CustomSD
To include the following give all users access to update the application event log: (A;;0x2;;;AU)
But to no avail. I was wondering what other access the Network Services acount might have, that needs to be granted to the new service account? Or does anyone know the name of the eventlog that the UIPAB is trying to create, so that I can manually create it instead?
Thank you,
Alex
|
|
|
|
|
Often when a new user is having problems writing to the event log I add them to the admin group run the app once and then remove them. There is something about the event log that after you have written to it once it works after that. Your user that you are running the app pool will need to do this and will need rights to write to the registry. I think if you add this service user to admin run the app, you won't get the error any more. Then stop the app pool take the user out of the admin group and try it again. It should work.
Hope that helps.
Ben
|
|
|
|
|
Thanks Ben, that worked a treat.
The first time I tried it, it didn't work... Then I realised we're running the application in a cluster, so I had to give the service account admin access on all the servers / nodes before it worked.
For other people out there experiencing the same problem, it looks like the UIPAB is trying to create it's own event log in the regsitry - which it normally doesn't have access to do. Giving it temporary admin access allowed it to create the new log, after which you can remove admin access and the new log will still be there for it to use as normal.
|
|
|
|
|
Glad that worked for you. There is a manual way to do it, but it is much easier to just give the user admin access and then remove it again after it is working.
Ben
|
|
|
|
|
I am learning ASP .NET and am going though an ASP .NET book. I am wondering if you could hopefully help me out. I have a very simple page with text boxes, prompting for a name, age, social security #, and number of children. I have a required field validator but only for the name text box. The name text box is the control to validate. However, for my submit buttons code, my else statement will not run and in the book it does so I'm flabbergasted.
If Page.IsValid then
results.text = "Input is valid..."
Else
results.text = "Input is not valid..."
End If
The first statement will run fine if something is in the text box. Thank you for your help.
|
|
|
|
|
sounds like your aspx page differs from the example. Is your validator doing client side validation ? If so, this server code will never fail.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|