|
|
Hi all
I am trying Redirect to a page but i want give the window size also
Example: Response.Redirect("Fpage.aspx")
For this i want to add these contents
height=520, width=780,status= no, resizable= no, scrollbars=no, toolbar=yes,location=yes,menubar=yes
is it posible any idea
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
probably yoiu need to window.open of javascript to get the desired output.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
Is there any add in [component] which will create a mail compose screen with all formatting similar to windows word, like underline, bold, left align, right align, justify, add smiley, change font size etc.,
Regards,
Sam.
|
|
|
|
|
Use FCKEditor[^] for your HTML editing purposes.
It is one of the best and easiest (and free!) WYSIWYG editor there.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
Thanks Edward, I just wanna know whether it could be used for commercial purpose.
|
|
|
|
|
Yes it can be used for commercial purposes.
If I remember correctly it's under LGPL license.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
Hi,
How do i specify a decimal number to take only two numbers after the "."?
for example:
if i have this number in a lable 23.222342114, how do i write my cobe to be displayed only like this 23.22 ??
thanks,
|
|
|
|
|
object.ToString ( "Fn" )
where F is a single alphabetic character called the format specifier, and n can be one or more digits called the precision specifier.
Format specifier for decimal D or d
so you have to use
object.ToString("D2");
|
|
|
|
|
I tried what you said but it's not accepting the D2..i'm using a vb.net code so are you sure it's right?
|
|
|
|
|
i will just show one example ok
decimal i=123.23444;
string j=Convert.ToString(Math(i,2));
if print j u will be getting 123.23
Hope this works for u.
|
|
|
|
|
no, it's not working
i think what you wrote is a c# code not a vb.net
when i wrote your code it displayed an error under the word "Math" !
|
|
|
|
|
you can simply use this to get the desired output.
string str = Convert.ToString(Math.Round(i,2));
here i is your decimal number.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Iam really sorry for the mistake. actually i missed one small piece of code.
Decimal i=Convert.ToDecimal(textBox1.Text);
textBox2.Text=Convert.ToString(Math.Round(i,2));
u should give Math.Round(i,2)
where i is the decimal no and 2 is the no of decimal places to be rounded to.
this will surely work. I am sorry for the previous error ok.
Vipin
|
|
|
|
|
Thanks guys it's working now
|
|
|
|
|
Hi all,
I want to store contents to database from Textarea, Sometimes the user put's the HTML tags in the textarea, this makes a little confusion in the CSS design while retriving the data. Any one plz kindly send me the regular expression to remove all the HTML tags before storing the data's in the database? I am doing this work in ASP.NET.
Please guide me.......
Regards
Exelio
|
|
|
|
|
"<[^>]+?>"
---
b { font-weight: normal; }
|
|
|
|
|
Thanks a lot for your valuable suggestion. Once again thanks a lot......
Regards
Exelio
|
|
|
|
|
Hi,
Thanks Guffa for your suggestion, ("<[^>]+?>") this expression works fine, but still i need your suggestion how to to filter the tags leaving bold,itallic,underline tags??? i tried in your expression as ("<[^< b >>]+?>") perfectly, it works for bold, when i tried for ("<[^< u >>]+?>"),("<[^< i >>]+?>"), they does not works for certain tag but it leaves the < i > or < u > tag as i need.
(Plz avoid the spaces between the tags), to avoid confusion i put like that
Plz suggest me
Regards
Exelio
|
|
|
|
|
From your attempts it looks like you are just guessing, wihtout knowing what the expression does.
This is what the expression contains:
< matches the starting angle of a tag.
[^>] is a set that matches any character that is not an ending angle.
+ means that the previous expression should be matched one or more times.
? means that the match should be non-gready, e.g. match as little as possible.
> matches the ending angle of a tag.
When you put [^<b>>] in the set, it doesn't exclude the bold tag, it excludes the characters "b", "<" and ">". If you for an example would have a <table> tag, it would not be matched as it contains a "b".
To match certain tags, you would have to catch the specific tags you want to keep, and see to that they weren't replaced. Perhaps something like:
.Replace("()|(?:<[^>]+?>)", "$1");
If that doesn't work, you could use a delegate in the replace, and in the delegate method examine the text that is replaced to determine if it should be removed or not.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Thanks a lot, with your suggestions I found the expression with out using delegate, now my expression is working fine.Thanks a lot
Regards
Exelio
|
|
|
|
|
i m using my own button to minimise the browser window instead of default browser buttons but Unable to get code for minimise a browser window to taskbar. i m using asp.net using vb.net & use javascript window.open() with fullscreen =yes to open browser window Can anybody help me.???
jagmit
|
|
|
|
|
Please don't cross post.
---
You can't minimize a window using Javascript.
-- modified at 1:12 Tuesday 1st August, 2006
---
b { font-weight: normal; }
|
|
|
|
|
top.window.moveTo(1024,1024);
if (document.all)
{ top.window.resizeTo(screen.availWidth,screen.availHeight); }
else if (document.layers || document.getElementById)
{
if
(top.window.outerHeight < screen.availHeight || top.window.outerWidth <
screen.availWidth)
{ top.window.outerHeight = top.screen.availHeight;
top.window.outerWidth = top.screen.availWidth; }
}
Mahendra
|
|
|
|
|
i have one email sending program by windowservice.
i want to schedule this task by the period of 1 month,2 month,1 year,2 year
how to do this please help
i am posting this message second time but i have not got any response of anybody can share knowledge then please solve my query
Mahendra
|
|
|
|