|
I get this sometimes, when I don't specify a page in the url and don't have an appropriate "default" page.
If I navigate to an actual page, then all is good, and if I add the non-standardly named page as a default document, then all gravy....
Could this be the issue in your case?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
it is because of default page.
the code write in web.config
when not any page like "default.aspx" then it will give error.
so u should create page like default.aspx or redirect the page by writting response.write("anyfile.aspx")
Dipan Patel.
|
|
|
|
|
Hi all
I have created a asp.net project under visual studio .net 2 and it all works fine. However when I upload it to my server it will not run because it is not a virtual directory that it resides in. Is there any way to make it so that I don’t have to use virtual directories and some how get it to work out where my dll’s are? Iv been looking at the config file to see if there is any way I can hard code where to point to the bin folder but as of yet I have not had much luck.
Any help would be grate.
Thx Scott.
|
|
|
|
|
Why can you not just make it a virtual directory?
|
|
|
|
|
I do not have the option to create them with the web host I am with. I know that you don't need them if you don't use code behind but it rather not have to go through all my code and stick it into the same file.
|
|
|
|
|
New web host maybe
|
|
|
|
|
As long as MasterPage and WebForm are in the same directory the JavaScript file works but when the directories are different I get javascript error cuz the file was not found.
I tried to google this problem and found that if you put the script block within the < HEAD >, ASP.NET 2.0 runtime will resolve the URL but for some odd reason that is not the case here.
Here is how I am doing it:
the file is inside a folder called JavaScript which is right under root folder.
I tried this first:
<head>
<script src="/Javascript/x.js" type="text/javascript"></script>
</head>
Then I tried this:
<head>
<script src="x.js" type="text/javascript"></script>
</head>
Then I tried this, but I got an ugly error:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
<head>
<script src=<%= ResolveClientUrl("x.js") %> type="text/javascript"></script>
</head>
Can someone tell me how to take care of this problem . Thanks in advance.
-- modified at 8:58 Thursday 4th May, 2006
|
|
|
|
|
Hi,
Try below code,
<script src="../Javascript/x.js" type="text/javascript"></script>
Hope it works...
|
|
|
|
|
Thanks for the reply, but
<script src="../Javascript/x.js" type="text/javascript"></script>
does not work.
|
|
|
|
|
Hi,
Try below code,
<script src="../Javascript/x.js" type="text/javascript"></script>
Hope it works..
|
|
|
|
|
Check if the framework resolves this:
<script src="~/Javascript/x.js" type="text/javascript"></script>
---
b { font-weight: normal; }
|
|
|
|
|
I have the following DataList
<div style="overflow:scroll;">
<asp:DataList ID="dlAvatar" runat="server" DataKeyField="FileName" RepeatLayout="Flow" RepeatDirection="Horizontal" SelectedItemStyle-BorderStyle="Inset" >
<ItemTemplate>
<asp:ImageButton ID="imgAvatarSelect" runat="server" OnCommand="Buttons_CommandEvent" ImageUrl='<%# Eval("FileName") %>' CommandArgument='<%# Eval("FileName") %>' CommandName="Select"/>
</ItemTemplate>
</asp:DataList>
</div>
I had it working in the file "ViewUser.aspx". Then I moved it to a page called "ChooseAvatar.aspx". It was working there too. Then, I moved it back to "ViewUser.aspx". And now it doesn't work.
It doesn't fire my event which is defined as so.
public void Buttons_CommandEvent(object sender, CommandEventArgs e)
{
int i = 0;
User user = Session["user"] as User;
if (user != null)
{
user.Avatar = Convert.ToString(e.CommandArgument);
user.Update();
if (user != null)
imgAvatar.ImageUrl = user.Avatar;
}
}
Is there some option is VS2005 IDE to get it to re-sync my page? Any ideas?
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Nevermind. The IDE is a piece of crap. I re-created the button and it finds the event now.
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
hi,
suppose that i have the string value "http://www.google.com" as NavigationUrl.
how can i load this page into a div running at server?
thanx
|
|
|
|
|
|
but how?
because "TreeNode.Target", having the value of iframe id "ifrUrl", did not work.
Do i have to run javascript? how?
thanx
|
|
|
|
|
Hello Friends,
I have a webform. There are 11 "RequiredFieldValidator" controls on this web form. If something goes wrong then validation controls warn me. That's ok.
There is another button on this webform that navigates to another webform.When I click this button validation controls dont allow me to navigate.
But suppose that I will do nothing on this page and I will navigate another page..How can I disable the effect of these validationcontrols when I click the button.
Please Help..
|
|
|
|
|
Hi innocent73,
just make the "CausesValidation" property of that Button(for which you dont want the validation to be executed)to
"False".
Tirthadip
|
|
|
|
|
Thank you so much....That's the answer!!
|
|
|
|
|
Good Question.
I just face this problem and find the solution.
So i glad to help to anybody.
see , when u create the requirefieldvalidatio at design time... set the property of it "EANBLED=FALSE"
so when u want to enable it then write the code for it like "requirefieldvalidator1.Enabled=True" and when u want to disable it then set the property "False"
i will give one more example
there is two button. like " save " and "cancle"
so u want "cancle" button cant fire the requirefieldvalidator then set the property of "cancle"
like "causevalidation=False"
it will work 100%
so enjoy..
Dipan Patel.
|
|
|
|
|
System.Data.OleDb.OleDbException: Could not find installable ISAM.
at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
at System.Data.OleDb.OleDbConnection.InitializeProvider()
at System.Data.OleDb.OleDbConnection.Open()
at DreamweaverCtrls.DataSet.DoInit()
-----------
All works fine on local test server and all pages other than the ONE works fine on live (The connection and web.config files must thus be correct????)
ALL data in the DB has got valid data in as well and although the file does also include canvas methods to display graphics I don't know if this is the problem. PLEASE any help?
It dose write the cookie data as well and retrieves it correctly it seems. ANY thing else it could be?
TOp part of my file is
-----------------------
<%@ Page Language="C#" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<mm:dataset
id="DataSet1"
runat="Server"
isstoredprocedure="false"
connectionstring="<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_GKAUser"] %>"
databasetype="<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_GKAUser"] %>"
commandtext="<%# "SELECT * FROM tblWOL WHERE usern = ? ORDER BY usern ASC" %>"
failureurl="<%# "noaccess.htm" %>"
debug="true"
=""><parameters><parameter name="@usern" value="<%# (Request.Cookies["AuthenticateGKDUser"] != null) ? Request.Cookies["AuthenticateGKDUser"].Value : "" %>" type="WChar">
<mm:pagebind runat="server" postbackbind="true">
<%@ Register TagPrefix="Portal" TagName="ImageCanvas" Src="ImageCanvas.ascx" %>
<%@ import Namespace="System.Drawing" %>
this is me
|
|
|
|
|
In my program.
i m displaying radio button in datagrid. not bind with database.
using Itemtemplate.
when i select any radio button. and click on any button it's retain checked but when i select any value from combo box it's become uncheck.
can any body help me out,
It's Urgent
|
|
|
|
|
Hi,
On Combobox selection the page is getting submitted so grid is binded again,
check for the 'AutoPostBack' of the combobox if it is 'true' make it to 'false'.
Hope this helps u..
|
|
|
|
|
Does anyone know a programmatic method of opening an external web page, populating input controls on that page and then submitting it?
The reason I am trying to do this is that I want to submit details to an external web site but I wish to do this via a page that I have created (so that I can capture the information also).
Any assistance with this would be greatly appreciated.
Thanks.
|
|
|
|
|
+ You can use the HttpWebRequest[^] object to submit data to an external web page, then read the result from the Response object. You can read more about this in MSDN[^].
+ Another option is to use the WebBrowser control to load the web page, then you can read the document object to get reference to the input controls and populate them, and finally submit the web page.
|
|
|
|