|
IS this still an issue? just wanted to know if you've figured it out by now (perhaps a re-install of Visual Studio / your PC will be sufficient )
"My personality is not represented by my hometown."
|
|
|
|
|
Hi
Well, it's my PC at home that is causing me problems. Here at work VS2010 is doing well. I have removed it from my PC at home, in fact I have restored the Norton Ghost image of a clean Windows install. Do you think this could be the issue? The ghost image has a few things installed like VS 2008, SQL 2005, Office 2007 and some other things. Unfortunately I didn't have time to reinstall VS 2010 yet (as you know, it takes ages ) I will keep you updated with what happens when I do install it
Yesterday, I have tried what you suggested with the validation stuff. I wanted to see if I could get the same behavior like what I was getting at home but I didn't get that. I don't think it's due to the doctype because when I switch the target framework to 3.5 the problem disappears (with the same solution). It is quite frustrating honestly as apart from you, I didn't get any reply to any of my posts at asp.net or msdn. Like if nobody encountered that problem before!
The only difference I see with what I have in the office is that I have installed SQL server 2008 before installing VS 2010 here, but I really doubt it could be the issue. Anyway, as you said, it could just be a matter of reinstalling it. Once I do reinstall, I'll let you know what I get
Thanks again!
Talal
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
|
|
|
|
|
Yeah I know how answering a question sometimes can be difficult for some people. Instead of directly answering the question, precious time is spent by saying how it's not in a correct format :P Nonetheless, questions should be posted in a correct format though.
Anyway, what my suggestion is: try to create a virtual environment to do all of your coding. A solution like VMWare[^] or Virtual PC[^]could save you a lot of headaches. I always work in a Hyper-V setting, which also provides functions to save and revert back to snapshots. This way you can guarantee yourself of having a clean install of your workstation every time. The only thing you'll have to do is save your files on a remote storage device. The chance of something happening that will screw your configuration up is very slim that way.
Nevertheless, I'm looking forward to the cause of your issue was.
Good luck!
"My personality is not represented by my hometown."
|
|
|
|
|
Well, the major issue is that VS 2010 takes a lot of time to install anyway, but I could actually try using Virtual PC and see if it helps me
Now you won't believe what I just discovered now...just now I was playing a bit with VS 2010 here at work and I am also having a weird behavior but not as weird as what I had at home
Anyway, here is what I have noticed. I opened a .aspx page. By default, as you know, it opens in HTML editing mode. So I clicked inside a button tag. Guess what?? in the properties windows, it says: Button1 . Then, in the fields below, I have the proper fields displayed like CausesValidation, CommandName, etc...Note that I DON'T have the events button. Now, I click on Split to split the editor into design and editor mode. I click around the HTML code a bit and then on that same button tag and in the properties now I have Button1 System.Web.UI.WebControls.Button and now I have the events button. Now going back to Source (HTML edit), again I have Button1 !!!
As I recall, I wasn't having that behavior at home, it was always Button1 and I don't remember I was able to get the correct property displayed. As I said before, I will install again and see what happens, but now I know that something is definately not right in this VS 2010
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
|
|
|
|
|
What happens if you just ignore this behavior, and just continue coding?
"My personality is not represented by my hometown."
|
|
|
|
|
aaargh well it works well in fact, I was just trying some things and it doesn't have an impact on compilation nor on execution. So we can very well live with it. One thing that differs between what I have here and what I have at home is the fact that at home I have this green wave-like line under the name of the web controls, e.g. Button. I don't have that here. But even at home it compiles well, however AJAX wasn't working, meaning when I click, nothing happens on the page. Whereas here, AJAX works. I'm telling you, this VS 2010 is haunted If I can get things to work at home as they are working now in the office, I would be happy, even if it's not perfect
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
|
|
|
|
|
|
|
Hello,
I have hosted my web application on the server. It works fine when i have one copy of the Website. My requirement to create multiple copies of websites in the sub directories. I need the same copy of web.config in my subdirectories as well. But when i access website from subdirectory i get the following error
" It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level'"
I know that i need to set the subdirectory as Virtual folder and if i do that in my local IIS it works. But how do i do this on the Web hosting server?
Please help
Thanks
|
|
|
|
|
Google[^]?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hi All,
I am working on a ASP.Net web application wherein I am calling a class method Asynchronously to get the data from data base (using AsyncCallback) on page load. after the completion of this callback method raises an event. I'm handling the event on the asp.net page wherein I'm assigning the datasource to a grid view. Everything is going good except for the page is not getting refreshed after the event is getting fired. I have checked the datasource of the grid is assigned properly but the contents are not shown on the page.
Please Note:
I'm calling the method Asynchronously so after the event is fired and after assigning the data source to the grid and after data binding it i want to post back the page to the server so that the latest contents of the page are visible on the page. I want to refresh the entire page on that event.
Please help its Urgent
Thanks and Regards
Paramhans
|
|
|
|
|
Paramhans Dubey wrote: Please help its Urgent
Don't be rude. It may be urgent to you but not anyone else here.
I think you are little confused about how to process the page. If you want the entire page to refresh with the data then do a postback. If you want to load the data asynchronous then use something like an UpdatePanel or AJAX methods.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Don't be rude. It may be urgent to you but not anyone else here.
If asking for help is rudeness then I am sorry for being rude.
My question is that is is there any way to post back the entire page to the server without using Update Panel.
|
|
|
|
|
Paramhans Dubey wrote: If asking for help is rudeness
Asking for help is not rude. Asking an URGENT response is.
Paramhans Dubey wrote: is there any way to post back the entire page to the server without using Update Panel.
Yes, of course there is, that is how ASP.NET works.
Perhaps you need to restate your question.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Asking for help is not rude. Asking an URGENT response is.
let's finish this here. I apologize for being rude.
and also i restate my question:
I have a long running procedure which takes approx. 1 mins to complete. I am calling the method using a delegate and ICallBack. When my process completes the it raises an event which is handled on UI wherein I am assigning the datasource to grid but as this is a asynchronous update the updates are not visible on the Page. I cant use Update panel in my project.
My question is that is is there any way to post back the page to the server without using Update Panel after asynchronously updating the page to show the updated contents.
|
|
|
|
|
You can cause a postback from JavaScript, plenty of examples for that. However, what will you gain? You will postback, causing the grid to rebind, causing your callback to launch, causing you to enter an infinite loop. What you need to do is parse the data on the client, something like this, http://msdn.microsoft.com/en-us/magazine/ee309508.aspx[^]. Is there a valid reason to not use UpdatePanel?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
keep some hidden button in the page and call button1.click()
or
__dopostback("","")
or
this.form[0].submit()
|
|
|
|
|
Hi I have a form with text fields that I am trying to validate. I get this error and validation fails. Firefox error Console shows:
Error: document.Registring.elements.fieldName is undefined
It doesn't recognize fieldName as variable. Without runat="server" I think the issue disappears. How to fix this?
Thank you.
Here is the snippet:
<script type="text/javascript">
function checkform(fieldName) {
var fieldIs = document.Registring.elements[fieldName].value;
if (fieldIs == "")
return false;
else
return true;
}
function ValidateFields() {
var errorMessage = "";
var returnResult = true;
//Personal Information
if (!checkform('FirstName')) {
errorMessage += "First Name is a required field \n";
returnResult = false;
}
if (!validateInputType('FirstName', "letters")) {
errorMessage += "First Name should contain letters only \n";
returnResult = false;
}
}
function validateInputType(fieldName, inputType) {
if (inputType == "digits") {
var isNumber = document.Registring.elements[fieldName].value;
//digits only
if (isNumber.match(/^\d+$/))
return true;
else
return false;
}
else if (inputType == "letters") {
var isLetter = document.Registring.elements[fieldName].value;
//letters only
if (isLetter.match(/[a-zA-Z]/))
return true;
else
return false;
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title> Reservations </title>
<form runat="server" name="Registring" onsubmit="return ValidateFields();" id="Registring" method="post">
<table width="100%">
<tr>
<td>
<table border="0" width="100%" style="height: 260px;">
<tr>
<td colspan="2" style="background-color: #8c93a5; font: arial 14px; font-weight:bold">PERSONAL INFORMATION</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="right" style="width: 230px"><span>*</span><b>First Name:</b></td>
<td><input type="text" runat="server" name="FirstName" size="30" /></td>
</tr>
</table>
<input runat="server" type="image"
src="images/btn_submit.gif"
name="Order" value="Reserve" align="top"
/><br />
</form>
</body>
</html>
|
|
|
|
|
try replacing
document.Registring.elements[fieldName].value
with
document.getElementByID(fieldName).value
|
|
|
|
|
and add an id attribute to the item as: <input type='text' runat='server' id='xxx' name='xxx' ... etc.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Thanks for the response. I am getting an error in firefox: Error: document.getElementByID is not a function
|
|
|
|
|
Well, it is... make sure you have replaced your square brackets [] with round ones (), that your spelling is correct, and that you have also followed the advice of digital man following my earlier post.
|
|
|
|
|
Thanks. This is the code I have used: var fieldIs = document.getElementByID(fieldName).value;
And I have added id as follows: <input type="text" runat="server" id="FirstName" name="FirstName" size="30" />
Is that how it should be?
|
|
|
|
|
OK, sorry - my bad - should be lower-case d at teh end:
getElementById
(case-sensitive)
|
|
|
|
|