|
You wrote: Unable to start debugging on web server
Okay. got you.. (At least, you should re-write the error message instead of saying "subject error".)
I and my team used to face that problem sometime ago. I will tell you all attempts that we made while trying to solve that problem. I'm not sure which attempts actually solved the problem but I'm sure the problem will be solved after trying all attempts.
Check-out this link. I posted about this last month..
[Weekly - QASW] - Questions and Answers in Software Development
Hope it helps..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I am a newbie and developing a web application in ASP.NET 2005. In one of my page I am having three different Usercontrols. However when I run my page in FF everything seems fine even after postback. But in IE after Pageload when i click buttons or even change options from Dropdown nothing appears to happen.(My dropdown is having event "SelecetedIndexChanged" and Autopostback is also set as true). Although the page postbacks, but rather to go in any event handlers (except Page_Load) it directly jumps to usercontrols.cs file after checking postback property and leaves from there right only rather to continue with specific eventhandlers. I tried by removing one of my user controls and everything works fine. I don't know how to solve this problem. I have also used EventValidation="false" in Page property section but of no use.
Just surprised to see FF is working fine with the same user controls and I even dont have any particular settings for my IE browser.
I modified, developed a new Usercontrol but alas of no use.
My Usercontrols HTML code is satisfying all W3c norms and nothing seems wrong in it (I hope so) and attached here.
Need Immediate Help,
Any Replies appreciated.
Thanks,
naresh511@gmail.com
User Controls HTML Code:
| | | Forgot Username or password? |
|
|
|
|
Naresh
|
|
|
|
|
Your HTML Code that you pasted doesn't show properly in your post. What about making small sample ASP.NET project that works fine in FF and not in IE and show to us?
We will download and try to reproduce your error at our site. then, will let u know the result.. what do you say?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I am trying to make a start on creating a website (something I don't have a huge amount of experience with). I choose the asp.net website template and the solution is created and loaded for me. The problem is that when I go to look in the solution folder I find 2 folders, Website1 and Website1(2). Website1 contains the code files, Website1(2) contains the solution files.
Can someone please tell me why this is behaving like this?
Thanks.
|
|
|
|
|
jimbaloo wrote: I am trying to make a start on creating a website (something I don't have a huge amount of experience with). I choose the asp.net website template and the solution is created and loaded for me. The problem is that when I go to look in the solution folder I find 2 folders, Website1 and Website1(2). Website1 contains the code files, Website1(2) contains the solution files.
Can someone please tell me why this is behaving like this?
As default, Visual Studio used to create two folders for website.
1. WebSite Code : %userprofile%\Documents\Visual Studio 2005\WebSites\MyWebSite
2. Solution file : %userprofile%\Documents\Visual Studio 2005\Projects\MyWebSite
Normally, the name of folder under Projects and the folder name under Websites will be the same. but I think the reason why the name (WebSite1 and Website1(2)) are different in your case is that there might be one folder called Website1 already exists in that path so that the name automatically changed from Website1 to Website1(2).
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I have a GridView which has a non data bound CheckBoxField:
<asp:templatefield headertext="Sel">
<itemtemplate>
<asp:checkbox runat="server" id="SelectCheckBox">
The user can check or uncheck data rows (done on the client side). The user can then perform various functions (print, view, e-mail etc.) on the checked rows. Since these functions are activated by Buttons, I can read and save the checked status of each row within the function call code. Upon return from the function, I set the checked status to where it was (I restore the status in the GridView_OnRowDataBound call). This works fine.
However, each data row also has a separate HyperLinkField. The problem I have is when the HyperLink is clicked, I can't read the checked status of the rows so that I can later restore them. It looks like the GridView is destroyed prior to the HyperLink transfer.
Any suggestions?
Jim
|
|
|
|
|
in my project i have a class which has some shared methods and ENUMs. Its work when developing but at web servwer it doesnt. that class stands in APP_CODE folder.
What ca i do?
|
|
|
|
|
greekius@hotmail.com wrote:
but at web servwer it doesnt. that class stands in APP_CODE folder.
What error you are getting ? ASP.NET treats APP_CODE as a single assembly. Post sample code where you are getting error.
|
|
|
|
|
Hi,
I'm having a problem selecting records from my database to display on the web page. I want to select all records with a specific name, and on a specific date. The code I'm using looks like this:
<br />
StrConnect = Server.MapPath("./MyDataBase.mdb")<br />
cn = Server.CreateObject("ADODB.Connection")<br />
cn.Open("PROVIDER=MICROSOFT.JET.OLEDB.4.0;Data Source =" & StrConnect)<br />
rs = Server.CreateObject("ADODB.Recordset")<br />
rs.Open("SELECT * FROM TheLog WHERE name='123' AND recdate=#01/02/2003#", cn, 3)<br />
Now despite there being about 5 records with that name and date, I don't get any records returned.
Does anyone know why?
P.S. The database is a Access database, the name field is set to "Text" and the recdate field is set to "Date/Time"
- Munty
|
|
|
|
|
Try using a range of dates (eg. between 01/02/2003 00:00:00 and 01/02/2003 23:59:59, don't use my syntax ) rather than specifying recdate to be exactly equal to 01/02/2003
_______________________________________________________________________
http://www.readytogiveup.com/[ ^]
"you can't forget something you never knew..." M. Du Toit
|
|
|
|
|
Nope, didn't work.
:/
The string I used was:
SELECT * FROM TheLog WHERE name='123' AND recdate BETWEEN #01/02/2003 00:00:00# AND #01/02/2003 23:59:59#
Also,just to note, when I ouput the date field to a text box, I get:
01/02/2003
- Munty
|
|
|
|
|
name is reserved word in TSQL
Muntyness wrote: WHERE name='123'
and you try this
"SELECT * FROM TheLog WHERE [name]='123' AND recdate=#01/02/2003#"
I Love SQL
|
|
|
|
|
Name is reserved? Bah.
Well I've changed the field to Job now. and I've tried both:
"SELECT * FROM TheLog WHERE job='123' AND recdate=#01/02/2003#"
And
"SELECT * FROM TheLog WHERE [job]='123' AND recdate=#01/02/2003#"
Neither of them work.
This does work however:
"SELECT * FROM TheLog WHERE job='123'"
- Munty
|
|
|
|
|
Hi,
This may be a stupid question, but I'm having troubles assigning a hex value to the backcolor of a table cell with code.
I'm currently adding values into a table with code, but I would like to change the back color by giving the color's hex code or #code.
In the visual designer I can easily add the hex code, why not with code or am I forced to split it into blue, red and green or just use the basic system.drawing.color choices?
Hope someone can help
Kind regards
|
|
|
|
|
You create a Color value using the FromArgb method:
SomeTableCell.BackColor = Color.FromArgb(0xffff00); // yellow
or
SomeTableCell.BackColor = Color.FromArgb(0x80, 0x80, 0x80); // grey
---
single minded; short sighted; long gone;
|
|
|
|
|
Thank you, it works.
I just had to use '&H' instead of '0x' for VB.
But it works great, thank you for the help
|
|
|
|
|
Hi all,
I'm loading the meta tag values form the database for the description and the keywords, but its not doing what I want it to.
Currently I have the following
<meta name="keywords" content="<%=Keywords %>" />
Keywords being a property in codebehind, but if I view the source of the page when I run it, it displays the content of the tag as follows & lt%=Keywords %& lt
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
You can use the headers property of the page to add information to meta tags, for example
Dim meta as new HtmlMeta()
meta.Keywords = "test, stuff"
Header.Controls.Add(meta)
Try taking a look at that and if you get any problems post back
|
|
|
|
|
Thanks for the reply, What I did was added the runat attr to the meta tag, and then in the code behind I just used metaId.Content and assign the property to that
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
You can try it using a method that returns the keyword.
<meta name="keywords" content="<%=GetKeywords() %>">
public string GetKey()
{
return keywords;
}
|
|
|
|
|
Hi there,
I've got a TreeView like below
1
1.1
1.2
1.2.1
1.2.2
1.2.3
1.3
2
The code in SelectedIndexChange event like below
TreeNode currentNode = TreeView1.SelectedNode;<br />
TreeNode parentNode = currentNode.Parent;<br />
<br />
currentNode.Select();<br />
<br />
if (parentNode != null)<br />
{<br />
Response.Write(parentNode.ChildNodes.IndexOf(currentNode));<br />
}<br />
else<br />
Response.Write(TreeView1.Nodes.IndexOf(currentNode));
If I clicked 1.2.1 or 1.2.2. or 1.2.3, the page would say the index of the node I've cliked right.
If I clicked 1 or 1.1 or 1.2 or 1.3 or 2, the page would say the index of the node I've clicked is 0.
I don't know why, the index of 2 should be 1, index of 1.3 should be 2, ... but it wasn't correctly.
Anyone help me solve this issue.
Thanks.
|
|
|
|
|
|
I think you are looking for the documents tab in the IIS manager. This is where you set the start page of your site. It usually defaults to default.htm. So whatever you want your start page to be, you need to add it and put it at the top of the documents.
Hope that helps.
Ben
|
|
|
|
|
i solved, not enought to prohibit VS 1.1
I also changed file extensions compability from Configuration menu at properties of default web site.
|
|
|
|
|
I am using datatable in my application to show the data in gridview.Now what I want is that when user enter a new line application should check the datatable.if the record exists then it should show a warning otherwise add a new row in datatable.
I am using the following code to check the datatable through loop.
Dim x As DataRow
For Each x In mydatatable.Rows
If x.Item(1).ToString = Me.TextBox1.Text Then
Me.Label1.Text = "Exist"
End If
Next
With the above code I am getting error 'Object reference not set to an instance of an object.' at the first row of the for loop
Ejaz
|
|
|
|