|
If you disable a form field it won't be included in the data that is sent from the form.
---
b { font-weight: normal; }
|
|
|
|
|
i have installed IIS on my Windows XP normally.its working for
http://localhost/ but when i give a site like
http://localhost/paksite/Test.aspx
(its a test page i developed myself.name is obviously Test.aspx)
it give me back HTML and asp.net code as well. as u all know that server should not return asp.net code. it should only return html and html equivalent of asp.net code
|
|
|
|
|
Normally, the IIS needs installing before the .NET framework, otherwise it does not work properly. Also, when the ASP.NET is not properly set up, it may also cause the iissue, and in this case you can use the Aspnet_regiis.exe tool to reset the ASP.NET.
|
|
|
|
|
Hi guys
How you do add a report (rdl file) in a report viewer in asp.net 2.0?
|
|
|
|
|
Hi
I am using a label and a html select control in asp.net 2.0 , and writing a javascript to set the value of the selected index of select control in the label,
but i am getting nothing please help me
here is a small code i am using
function setForFrozen(isFrozen)
{
if(isFrozen == 'true' )
{
var selectedItem = document.getElementById("permddlCity").selectedIndex;
var selectedText = document.getElementById("permddlCity").options[selectedItem].text;
document.getElementById("ctl00_MainContent_ctl00_lblPermOtherCity").value = selectedText;
document.getElementById("ctl00_MainContent_ctl00_lblPermOtherCity").style.display ="block";
}
}
deepak
|
|
|
|
|
And what is happening when you try this? Is selectedText valid? Is the an error being generated? Are you just not getting the text to show up on the label?
We need a little more than "i am getting nothing"
only two letters away from being an asset
|
|
|
|
|
Hi Mark,
thanks for the efforts but i got the solution
I have to use innerHtml to get the text in DIV tag
as for the Label control .net renders is a DIV tag
stay blessed'
deepak
|
|
|
|
|
i wanna add a custom control to a webform in ASP.NET 1.1, and i've two problems:
(Hint: the custom control has some javascript code that i wrote in the same file *.ascx with the controls in this custom control)
1- when i add my custom control more than once in the webform, the javascript don't work att all,..(it's a rollover behavior)
2-i need to put a hidden field in this custom control that have a value which is ,set by the javascript code, AND accessed by the webform that have this custom control on it....
i know this sounds complicated, but i've no other choise
(hint: does anyone know any other way(s) to build the rating control (the filled stars) just like the one in yahoo video, to make a survey form, and with no postbacks)
thnx for ur help
Kariem
|
|
|
|
|
Create a composite control , in that use javascript something like this
if (MaxLength > 0 && TextMode == TextBoxMode.MultiLine)
{
// Add javascript handlers for paste and keypress
Attributes.Add("onkeypress", "doKeypress(this);");
Attributes.Add("onbeforepaste", "doBeforePaste(this);");
Attributes.Add("onpaste", "doPaste(this);");
// Add attribute for access of maxlength property on client-side
Attributes.Add("maxLength", this.MaxLength.ToString());
// Register client side include - only once per page
if (!Page.ClientScript.IsClientScriptIncludeRegistered("TextArea"))
{
Page.ClientScript.RegisterClientScriptInclude("TextArea", ResolveClientUrl("~/FSjavaScript/textArea.js"));
}
}
then u can use the control as many times u feel like , the scripts will not roll up
|
|
|
|
|
Hello.
I want to add a Control to my Page through the code-behind, and AFTER that, use the Response.Write cmd.
eg.:
Page.Controls.Add(Page.LoadControl("Top.Ascx"));
Response.Write("after");
Will this load the Control, and after the Control is loaded, it will write "after" or just the oposite?
If it is oposite, how can I fix it?
Thanks alot.
NaNg.
|
|
|
|
|
It will first add the control to the control collection of the page object, then it will write the text to the output stream. As the controls of the page is rendered to the output stream after the Page_Load (and Page_PreRender), the text will end up before the entire page, even before the <htlm> tag.
If you want to put text on the page, put it in a control, either one that you put on the page in advance, or one that you add to the page. A Literal control is suitable to put plain text on a page.
---
b { font-weight: normal; }
|
|
|
|
|
I wanna use the asp.net 2.0 menu control .
i am binding it to an xml file, then it always shows my menu items with one root(caz each xml file must have one root element).
how can i eliminate the root from my menu items?????
|
|
|
|
|
I'm sure this falls into the category of "question that has been answered that can't be found by a search". I have inherited a website written in ASP (not ASP.NET). I now want to integrate new pages into the site but I only program in ASP.NET. Am I going to have problems running an ASP.NET application (with all its associates web.config / global.asax etc etc files) from the same server directory that the ASP application is currently sitting in?
I have seen utilities that automatically convert ASP into ASP.NET but I'm pretty sure that that is likely to go wrong and I don't have the time to correct the errors. Does anyone have experience of doing this conversion? How pain free is it?
Thanks in advance,
Matt
|
|
|
|
|
You can use both ASP.NET and ASP pages in the same site. IIS will handle invoking the proper httpmodules to process the request.
only two letters away from being an asset
|
|
|
|
|
i have site connect to database system
and users register in my site
and i want know the current users inspecific catgory
and total number of users
Eng.developer
|
|
|
|
|
just count the no of users from database
Mahendra
|
|
|
|
|
When the user goes throught the login page, you must to create a two session values with the user_ID and category, later create a consultation page, this page count all the user_id session values actives.
keep Learning...
|
|
|
|
|
hi
I have a html selected control
and i want the selected text from javascript
the control is like this
hi
I want this "hi" from javascript
deepak
|
|
|
|
|
getElementById("s").options(0)
only two letters away from being an asset
|
|
|
|
|
u can get selected value using
alert(document.getElementById("s").value);
Mahendra
|
|
|
|
|
when i logout of site and then press the back button from tool bar menu (Green button) then it login me without entering the login information.so how this problem can be handled that the previous page(the page which display after login page) is not display without entering login information.
|
|
|
|
|
create a session when logging and kill it as soon as u loggout
|
|
|
|
|
If you are using forms authentication make sure you call
FormsAuthentication.SignOut();
otherwise you need to revoke the session, cookie, whatever you use to indicate a user has logged in.
only two letters away from being an asset
|
|
|
|
|
Be sure to kill all session variables when you log out
Create a Message logout page onto the load page write the code Session.RemoveAll()
keep Learning...
|
|
|
|
|
Hi there,
I have a rather large form with a couple of sections (simple graphical groupings, so that the user doesn't get confused) on. Now the user has scrolled down to section 3 and changed a value in a dropdown, which causes an Postback (AutoPostback = true ). I process the Postback and when the page is sent back to the client, I'd like to append a #section3 to the url causing the browser to navigate down the page to the previously active section. can this be done? and how do I replace it with #section14 it if the guy selects another value in the section 8?
hope I sufficiently explained the problem. if you have any questions, please let me know. thanks in advance.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|