|
Hi all,
I am developing webapplication though which user can change content on webpages page.
For this purpose I decide to use html's tag.(because I want page look in html format)
I just planned to display page content in tag,after content updation I want to write complete html page with matter in tag.
changed content
My problem is
1)how to access this div1 in codebehind.
2)if I make as server control by adding runat="server" then I am not getting changed content
why this is so,
Please help me to find solution.
Regards,
Nagraj.
|
|
|
|
|
you can access all html tag with the help of document object.
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
Hi,
Can you make some code as an example which will copy tag (html) content in to textbox(serve side).
Regards,
Nagraj
|
|
|
|
|
This is only true if your document is XHTML. If you mark your HTML controls with runat="server", you'll be able to access them in your code behind.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Try this code.......
document.getElementById('servercontrolid').value= document.getElementById('htmlcontrol').value
like...............
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
Hi all..
I'm facing a problem with a popup form displaying a crystal report in it. It works fine in IE but fails to work in Mozilla firefox.. What is the actual problem? Can anybody help me in this matter..
Thanx in advance..
Nicejith
|
|
|
|
|
try to download IETab Add-on for Mozilla. IETab integrate IE inside mozilla then you can browse same as in IE browser
|
|
|
|
|
hi i am using asp.net ajax .I have already istalled ASPAJAXExtSetup and using
ajax based website in asp.net2.0 but while debugging there are certain permissions requirePermission="false"
shows error also when i am using update panel it gives sys error please give me solution thanks
|
|
|
|
|
Hi All,
I am new to Code Project.I am stuck with one problem.
I want to open Microsoft office Outlook's My account through my web Application.
How can i do that?
Thanks
Poo
|
|
|
|
|
You really can't.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Not actually Outlook, but in the past, I've used outlook web access embedded in a frame / iFrame...
Works nicely
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I am using vs2003,in that frame menu was disabled so how do i insert a frame in
asp.net page
|
|
|
|
|
hi
You can go to the menu,Project --> Add Existing Item -->FrameSet.
Else you can use
<br />
<<fieldset><br />
<<legend><br />
!--Heading for your Panel/Frame<br />
</legend>><br />
<Table><br />
<tr><br />
<td>...</td><br />
</tr><br />
</Table><br />
<</fieldset>><br />
Try this and tell me if you have any problem.(please ignore << , >> and use < , >.I included to avoid confusion)
|
|
|
|
|
Hi
Am using
try<br />
{<br />
Response.Redirect("Page2.aspx");<br />
}<br />
Catch(System.Threading.ThreadAbortException ThreadEx)<br />
{<br />
}
My problem is am getting "Thread is being aborted" exception at Response.Redirect("Page2.aspx").
(Obviously,not redirecting to the required page)
Why it's coming and how to resolve it?
Please help me!
Thanks!
|
|
|
|
|
When u call Response.Redirect method, Round trip process fire,
so in these u should be store u'r thread variable in session or cookies.
or u can try Server.Transfer.
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
|
Hi,
You have to make small change in page direction.
Response.Redirect("Page2.aspx",false);
I hope this will work
Regards,
Nagraj
|
|
|
|
|
|
Hi,
Please answer my question
What are the events fired when web service called?
Thanks®ards
Kiran Dadireddy
|
|
|
|
|
There is no need to fired any event when u call a web service.
it's depent on when call a web servie method u can generate own event.
If u'r requirement is different plz clerify.
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
Hi,
I would like to open a microsoft word document file from my asp.net application, using C# as the language. Is there any reference that i could look at, tried the code given in codeproject but didnt work out!!!
Gautham
|
|
|
|
|
Plz try this code .........
Microsoft.Office.Interop.Word.Application word = null;
Microsoft.Office.Interop.Word.Document doc = null;
word = new Microsoft.Office.Interop.Word.Application();
object fileName = "c:\\test.doc";
object falseValue = false;
object trueValue = true;
object missing = Type.Missing;
word.Visible = true;
word.Activate();
doc = word.Documents.Open(ref fileName, ref missing, ref trueValue, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
doc.Activate();
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
Thanks for the code!!!
Used your code and tried to access the word however it leads to an error which is as follows:
System.Runtime.InteropServices.COMException: Cannot activate application
Gautham
|
|
|
|
|
plz specify thsis type of path and imports all namespace required.....
wordDoc = wordApp.Documents.Open(Server.MapPath("folder/Message.doc"))
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
the document is not in our application folder and what namespaces exactly should we import???
Gautham
|
|
|
|