|
Can you emit the onClick attributes from codebehind using
.Attributes.Add
?
That would be a cleaner approach also?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
so thanks for ur help thats a good sample . i can solve my problm with this code:
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "test1", "function CallPrint(strid){var prtContent = document.getElementById(strid);var WinPrint = window.open('','','letf=0,top=0,width=300,height=200,toolbar=0,scrollbars=0,status=0');WinPrint.document.write(prtContent.innerHTML);WinPrint.document.close();WinPrint.focus();WinPrint.print();WinPrint.close();}", true);
btnPrint.Attributes.Add("onclick", "CallPrint('divPrint');");
|
|
|
|
|
I don't think you can do this, I'm sure someone has asked this before
|
|
|
|
|
Well, you can, but you need to open a new window and print it, as per the link someone provided already
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
There is one way way to customize the printing. I believe it is "Print Templates" right? http://www.webreference.com/js/column89/[^]. I admit I haven't explored it in depth anyway.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Ah right, I thought I had tried to do this before and been unsuccessful
Sorry for the error!
|
|
|
|
|
Hi,
Is it possible to share session state between an ASP.NET web application and a share point portal?
Regards,
Blumen
|
|
|
|
|
Check this out:
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23219153.html[^]
Quickly quoting the solution:
"I've created a page on the sharepoint site that takes the destination product as a query string and redirects the user to the Ecommerce package over https. The receiving page processes the username and the product destination. The receiving page which auto logs in needs securing somehow. Which I'm not sure how to do. I was going to post the info into a shared db and pass the sessionId as a key for the Ecommerce to use to get the username from. But this way is quicker to code. --klanff"
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I appreciate that you have send me that link, but I can't view that solution coz its only for members..
So is it about storing session in a db? We have considered that, but an alternative to db storage is what we are looking for.
Regards,
Blumen
|
|
|
|
|
Blumen wrote: but I can't view that solution coz its only for members..
I have quoted the solution for you.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Is there another way without storing session in shared db?
|
|
|
|
|
Perhaps we can have a bridging ASPX page in either side to translate the cookies from one to another. We normally use this trick for transferring cookies among partner websites which should support a single logon.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I think that storing the session in a shared db is the best way
What is your reasoning for not doing this?
Do you want a less clunky way?
|
|
|
|
|
There might be a lot of reasons for that:
1) Geographical distributions of the servers in the cluster and hence his apprehensions towards any performance bottlenecks.
2) Database size limitation or restrictions.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
we are using SQL 2000 in the backend..
they don't want to use db sharing of sessions, they want an alternate way.
|
|
|
|
|
how to change the linkbutton text name through javascript when aother button is clicked and how to retrive the same changed value in this button click method
|
|
|
|
|
I believe the link button is rendered as A (HtmlAnchor). You can manipulate the InnerText property of the same, I guess.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
yes wat u said that only i did ..it is changing the text but when calling in the server side as linkbutton.text then it is not showing the changed the text value
|
|
|
|
|
Yep. That was expected right? Do you want to preserve the old value also? Then you can have some custom attribute emitted the first time and tag the value to it. Or have some hidden field in the form, to preserve it.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Not too sure about Link Buttons, but here is a possible code-sample:
function hideButton()
{
var b1 = document.getElementById('Button1');
void(b1.style.visibility = 'hidden')
}
-= Reelix =-
|
|
|
|
|
Hello
i make an web site and make on it search engine local to my web site
and it work god in the localhost
but wen i do it over the internet
an error happen
i think the erro in this code
<br />
public Search(string URL)<br />
{<br />
<br />
string[] SplitWebSitePath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString().Split('/');<br />
for (int i = 3; i < SplitWebSitePath.Length-2; i++)<br />
{<br />
if (this._WebSitePath == string.Empty)<br />
{<br />
this._WebSitePath = SplitWebSitePath[i];<br />
}<br />
else<br />
{<br />
this._WebSitePath = this._WebSitePath + "\\" + SplitWebSitePath[i];<br />
}<br />
}<br />
int ha= URL.IndexOf(SplitWebSitePath[SplitWebSitePath.Length-3]);<br />
this._URL = URL.Substring(0, ha ) + SplitWebSitePath[SplitWebSitePath.Length - 3] + "/";<br />
WebSiteFiles.Columns.Add("HeadLine");<br />
WebSiteFiles.Columns.Add("Content");<br />
WebSiteFiles.Columns.Add("URL");<br />
}
another problem
in the same project
when i open it on firefox explorer
the menu hiden behind the fash
how can i fix it
it work god in microsoft internet explorer
and thanks
|
|
|
|
|
|
If Vas response doesnt work can you post the error message for the code
|
|
|
|
|
You ought to have posted this reply to him.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|