|
Navaneeth,
Thank you so much for your help and sorry for my late reply now.
Actually, I'm not really need to let my ASP.NET app to interact with "MsWord", instead, it's an ole server we developed by VC++ by ourselves. Due to my poor English and to express the question here easily, I used "MsWord".
The ole server's duty is doing some special tasks on our server, let's call it "MY-OLE-SERVER" below. MY-OLE-SERVER is running as a sperate process. And we have an another C# WINSERVICE app to comunicate with it. This is not the problem, it's ok for the WINSERVICE app to use Marshal.GetActiveObject() to get reference with MY-OLE-SERVER. But at the same time, our ASP.NET app need to make some deal with MY-OLE-SERVER also and as you know, it's just not running ok.
So do you have any good suggestion for our problem?
Thank you again 
|
|
|
|
|
Hi,
When the session is timed out if I click on any of the child menu nodes of the tree control in asp.net then it is not responding,corresponding page is not getting displayed and not redirecting to login page. Plz do reply if any of you have idea about this problem
with regards,
kiran
|
|
|
|
|
Kiran 2671048 wrote: Plz do reply if any of you have idea about this problem
You haven't provided enough information to answer. Explain your question in detail with relevant code snippets if you wish to get help.
|
|
|
|
|
Hi,
Thank you for your reply, here below I have given my problem
I have one treeview based menu control. In showtree(). I am am adding all parent menus to tree view control. In Tree_TreeNodePopulate(), i am calling childs(). In childs(), i am adding child nodes to the parent menus. everythig is working fine. but my problem is when the session is timed out, if i click on child nodes control, it is not redirecting to login page. I tried the following code also but it is not working.
if (Session["UserInfo"] != null)
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "window", "window.location.href='Logout.aspx'", true);
}
|
|
|
|
|
Well, the code you have provided works only when Session["UserInfo"] has value. When session timed out, how are you expecting it will have some value?
Looks like you need to change the condition
if (Session["UserInfo"] == null)
{
Response.Redirect("Logout.aspx");
} Does that solve your problem?
|
|
|
|
|
Hi,
I tried to use this code but i am getting the following error:
Response.Redirect cannot be called in a Page callback.
with regards,
Kiran
|
|
|
|
|
characteristics of foreign key
|
|
|
|
|
Forgot to type your question? As you are new to CP, I suggest to read the forum guidelines before you post. You can try this[^] as well to ask better questions.
|
|
|
|
|
how to clear all item from list box
|
|
|
|
|
|
Listboxid.items.clear()
Er. Jagwinder Singh
|
|
|
|
|
hi friends
i need to Pass the value code behind to xslt file
example:
String str="test"
i pass this value in Myxslt.XLST difilr
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Hello Everybody
I have put a Button name btnDelete into Template Field also I put AJAX Confirm button extender. What I want to do is when I click btnDelete then it will ask whether I want to delete that row or not.
How Can I do it?
If you have any example then it will be really greatful
Thanks in Advance
Sarfaraj
Sarfarj Ahmed
|
|
|
|
|
No worries!
Just done it.
Thanks
Sarfarj Ahmed
|
|
|
|
|
Hi,
I want to clear all the above mentioned controls in a web form in the click of a Cancel Button.
Plz Help.
|
|
|
|
|
there are two ways to achieve this..
1) you will have to manually put controlname.text= "";
or programmatically
2)
public static void EmptyTextBoxes(Control parent, TextBox tb)
{
foreach (Control c in parent.Controls) {
if (c.GetType() == typeof(TextBox)) {
((TextBox)(c)).Text = string.Empty;
tb.Focus();
} else if (c.GetType == typeof(DropDownList)) {
((DropDownList)(c)).SelectedIndex = 0;
}
if (c.HasControls) {
EmptyTextBoxes(c, tb);
}
}
}
Government Dyal Singh College Lahore.
|
|
|
|
|
How to send GridViewRowEventArgs to OnCheckedChanged? It's not possible to just replace EventArgs with GridViewRowEventArgs.
void columnsList_SelectedIndexChanged(object sender, EventArgs e)
{
}
|
|
|
|
|
naveen attri wrote: How to send GridViewRowEventArgs to OnCheckedChanged? It's not possible to just replace EventArgs with GridViewRowEventArgs.
void columnsList_SelectedIndexChanged(object sender, EventArgs e)
{
}
Are you talking about change the Grid Template Field (CheckBox) Check / UnCheck changed event?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi
I am having trouble with the Object tag, which I would like to use to show word documents. Unfortunately, when it opens it doesn't show the document? Can someone please tell me what I am doing:
<object id="showword" width="300" height="200" type="application/msword">
<param name="src" value="file:///C:/mydoc" />
<param name="readonly" value="true" />
Further, I would like someone to advise me whether the following param names are correct for turning off right click, cut, copy, save and print:
<param name="save" value="false" />
<param name="cut" value="false" />
<param name="print" value="false" />
<param name="copy" value="false" />
<param name="enablecontextmenu" value="false" />
Thanks
|
|
|
|
|
pleas can any one help me i cant write code to view photo from database ongraidview or datalist pleas give me code
|
|
|
|
|
Do you mean ASP or ASP.NET ? I guess ASP.NET. If you can't work out how to do this, or how to use google to find an example, then you should probably never use a computer again, except perhaps to check your mail.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi
Can i convert an SQL Server 2005 bank file to SQL Server 2000?
|
|
|
|
|
Wrong forum. Try the SQL forum[^]
I didn't get any requirements for the signature
|
|
|
|
|
|
Prasanth.PV wrote: pSubject: Interface and Abstract classes !!!!!!!!!!!!!!!!!!!!!!!!!
What is the meaning of "!!!!!!!!!!!!!!!!!!!!!!!!!" with each of subject ?
Prasanth.PV wrote: How Interfaces and Abstract classes can be distinguished?
Explain the application level of these two in the projects with an example..
I guess Today you have faced some interview and they have asked some basic C# question and you want to find out the answer over here.
I have few suggestion for you.
1. Buy some beginners Book and start reading.
2. Know how to use google. Some Sample Lesson for you
3. And Check This Link
cheers,
Abhijit
CodeProject MVP
|
|
|
|