|
You can use target="_blank" to make a link fire a new window. You can't make the event from one page fire in another, ASP.NET does not work that way. You can write javascrpt to notice when a selected index is changed and call javascript in a child window, which could create a postback in that page, but you can't do it just by hooking up events in the framework.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Learning ASP.NET wrote: how to open the aspx page in new window
Window.Open("NewPage.aspx");
Learning ASP.NET wrote: tht aspx page contain dropdownlist and onselectedindexChanged should be fired in new window
Do you mean selectedIndexChanged event should be fired in new window from parent window?
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
window.open("u.aspx?id="+document.getElementById("ddl").value,"NewWindow","width=250,height=20,location=400");
}
try this...
|
|
|
|
|
Hi guys,
In my project I have to use a text area in which the description is entered. I want to restrict the users to use the html and script tags. I would like to allow the following tags bold , break , paragraph and underline. What is the coding that I have to use? If anybody knows the answer or have any suggestions , please reply.
Thanks
Jith
|
|
|
|
|
Use a regular expression validator to not allow any other tags. Then make sure you also write code in your code behind to strip any other tags that may exist, as validators can be bypassed by a determined user.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a Wizard control with in updatepanel . I am trying to create dynamic wizard steps in page pre_init event, but it is giving me an error " object reference not set to an instance of an object" . without updatepanel it's working properly.
Thanks in Advance
You can't do everything...
But you can do something...
So never refuse to do something that you can.....
|
|
|
|
|
Hello all,
I want to change/modify value of particular column (GridView). I am processing that code in RowDataBound by writing e.row.cells(index).text = <processed value>. Its working fine.
Now my columns are dynamic few should be visible=true and few false. So problem here is i cannot have its index or i cannot predefine them.
I tried to convert e.row.dataitem to datarowview and tried to change its value but its readonly.
How can i do so?
Thank you in advanced.
|
|
|
|
|
Hi
I dont want to see wrapping text on browser resizing. Like this window yo see now (Codeproject.com) I want that, when user resizing the browser window, horizontal scrollbar activate instead of text wrapping.
What should i do?
Tanx
|
|
|
|
|
You can set nowrap="nowrap" in <td tag
eg.
This is sample code testing for nowrap. This is sample code testing for nowrap. This is sample code testing for nowrap. This is sample code testing for nowrap. This is sample code testing for nowrap. This is sample code testing for nowrap. |
You can also have same with div tag.
This is sample code testing for nowrap. This is sample code testing for nowrap. This is sample code testing for nowrap. This is sample code testing for nowrap. This is sample code testing for nowrap. This is sample code testing for nowrap.
|
|
|
|
|
Tanx
It worked, however Asp.Net 2.0 said : A new construct is recommended.
regards
|
|
|
|
|
Give your table/controls width in %.
|
|
|
|
|
Tanx, But
Always i worked with % and it doesn't the answer.
|
|
|
|
|
is it possible to remove the text in the iframe.in iframe i having the text of html tags.i want this page to be cleared
|
|
|
|
|
document.getElementById("<iframeid>").src="about:blank"
OR
document.getElementById("<iframeid>").src=""
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
sir iam getting the iframe text =blank onclicking the button but when i want again the page to loaded in the iframe usind documnet.body.write(source code)i have click the button two times to get the page .how it can be solved
|
|
|
|
|
How to use custom error tag in a web config.by using custom error tag is it possible to dispaly any page when one user requested a page that cannot be accessed by him
|
|
|
|
|
<location path="Xml.aspx">
<system.web>
<customErrors mode="On" defaultRedirect="error.html">
<error statusCode="404" redirect="UnauthorizedAccess.aspx"/>
</customErrors>
<authorization>
<allow roles="Admin"/>
<deny users="*"/>
<!--<deny roles="Manager"/>-->
</authorization>
</system.web>
</location>
I had given the above code .i restrict the page xml.aspx for the other users.if a user logs in with his user name and password and he request the page xml.aspx thn it will be redirected to the login page bcoz of authntication.i dont want like that ,i want if he request the xml.aspx page thn a message will be displayed that "u canot have privilage to access".plz help me.want the source code
|
|
|
|
|
u want like this
<customErrors mode="On" defaultRedirect="GenericErrorPage.htm">
<error statusCode="500" redirect="ServerErrorPage.htm"/>
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
no knowledge in .net
|
|
|
|
|
u can help from this
<configuration>
<system.web>
<authentication mode="Forms">
<forms loginUrl="login.aspx" protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="devhood" password="password"/>
<user name="someguy" password="password"/>
</credentials>
</forms>
</authentication>
<authorization>
<allow users="*" />
</authorization>
</system.web>
<location path="admin/">
<system.web>
<authorization>
<allow users="devhood" />
<deny users="someguy" />
</authorization>
</system.web>
</location>
<location path="usersonly/">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="public/">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
no knowledge in .net
|
|
|
|
|
TextBox1.Attributes["visible1"] = TextBox1.Visible.ToString();
function abc()
{
var a = document.getElementById("ctl00_ContentPlaceHolder1_TextBox1");
//it is ok so far.problem is in folowing line
alert(a.visible1);
return false;
}
i am not getting the visiblity property of textbox in javascript function.is there any problem?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Use like this.
document.getElementById('ctl00_ContentPlaceHolder1_TextBox1');
Devjit Das.
|
|
|
|
|
Welcome to another day of "I'm useless at my job. I won't buy a book and I won't think for myself."
Sonia Gupta wrote: is there any problem?
Yes - it doesn't work.
Sonia - install Firefox and Firebug, then debug the script. This will tell you what is going on. Seriously, you have to learn how to do this for yourself. You cannot go through life relying on others to do your thinking for you.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi Pete, I agree with you............
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
why parwej why r u against me.let put her query.
Devjit Das.
|
|
|
|
|
Pete not talking about you dear..................
don't worry and keep enjoy:
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|