|
Hi
It is simple
Just refresh the page or after you add the fields write this:
response.redirect("the page itself")
Ok...
Love All
|
|
|
|
|
Have you placed a breakpoint in Update_Titles() to see if it's ever called? Why are you not simply databinding the listbox?
Instead of that extra code for missing params, try RequiredFieldalidators. It would eliminate 90% of that code.
You also may benefit from throwing exceptions instead of a boolean value.
try
lblErr.Visible = false;
Update_Titles(CDec(txtID.Text), txtTitle.Text);
Load_ListBox();
catch( ex as Exception)
lblErr.Visible = true;
finally
... whatever you want to do next.
|
|
|
|
|
Hey all,
I am having a major problem trying to pull up a word file that has been selected by the user using an HTML file input box (open file dialog box).
If I run it from my computer, the whole path is there when it tries to find the file selected.
If I run it on the webserver, it loses the path of the document.
Here is my code:
protected void openWord()
{
string pathname = File1.Value.ToString(); //HTML File Input Control
//set path of word doc you are opening
object fileName = pathname;
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing.Value;
//make word document appear
WordObj.Visible = true;
//open specified word document
Microsoft.Office.Interop.Word.Document wordDoc = WordObj.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);
When I run this on my machine, its fine, the webserver has word installed on it.
Please help!
Thank you in advance!
Dave
|
|
|
|
|
sorry, Ill give you some output to clarify.
On my machine: C:\foldername\worddocumentselected.doc
On the webserver: worddocumentselected.doc
(path does not exist!)
Why am I losing the "C:\foldername\"?
Thanks Again!
Dave
|
|
|
|
|
many thanks guys
|
|
|
|
|
You need to show your designing skills to get feel like TABS....Use images and call different page on each click of tab.
Amit
|
|
|
|
|
Investigate how it works on known sites (Google, Yahoo ...)
|
|
|
|
|
Hello,
i downloaded the new Ajax 1.0 Framework from Microsoft which has been released yesterday or so. Since all the nice ControlExtensions are based on Javascript id like to make some adjustments to them. For instance i planned to have inverted rounded corners in addition to the other ones. My question is, how can i edit the Javascripts, which are located on my harddisk. I'd like to include these "new" Javascripts in my project instead of the orignial ones.
Can anyone give me some advice on this?
Best regards
Jens
|
|
|
|
|
Hi,
I am getting an InvalidCastException when I am calling a COM object RTCClient from ASP.NET. Below is the exception:
Unable to cast COM object of type 'RTCCore.RTCClientClass' to interface type 'RTCCore.IRTCClient'. This operation failed because the QueryInterface call on the COM component for the interface.
I got know the work arround for this is:
"In your C#/VB.NET code you need to use the Activation Context APIs before
you create your RTCClient object. You will need to use PInvoke to reference
these APIs from your code. The main ones you need are:
CreateActCtx
ActivateActCtx
DeactivateActCtx"
But I am not sure of creating CreateActCtx and play with it. It would be great if some one can help me in doing this.
Thanks in Advance:
Rakesh
|
|
|
|
|
Hi,
how to get the duration of an mp3 file using c#
Regards,
Sivaprasad
|
|
|
|
|
Hi,
Some one please help me in solving the below exception.
Below is the exception thrown when I am calling a COM object RTCClient from ASP.NET:
"Unable to cast COM object of type 'RTCCore.RTCClientClass' to interface type 'RTCCore.IRTCClient'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{07829E45-9A34-408E-A011-BDDF13487CD1}' failed with HRESULT: 0x80004002 (No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)))."}
Calling COM from WinForm C# code working fine with no issue. This exception is thrown only when I call this COM from asp.net C# code.
Rakesh
|
|
|
|
|
tell me the way to using dotnet code implementing minor programs that can be do with HTML
aravindiaka
|
|
|
|
|
|
Hi.
I have a strange problem wuth IFRAME.
I have page aaa.aspx with an IFRAME that contain page bbb.aspx.
page bbb.aspx sometimes redirect him self to page ccc.aspx.
The problem is that after I loaded the aaa.aspx page I want to know what page do I see in the IFRAME. (aaa or bbb).
What I've tried to do is to run a JS in the onLoad of aaa.aspx that after 5 seconds get the "src" property of the IFRAME but I saw that even if bbb.aspx redirect to ccc.aspx the source is still bbb.aspx.
I know it complex but I really hope you can help me.
Thanks.
|
|
|
|
|
Why don't you just temporarily change the two pages to display the name of each...
|
|
|
|
|
I'll explain the problem again:
I don't have access to pages aaa OR bbb.
Thats way I need from the parent page (The one that hold the IFRAME) to know the real URL inside the IFRAME and then I can know whice page is display.
Thanks!
|
|
|
|
|
I have problem with session expiration in windows 2003 server. It is being expired even I am continuously using the application. Session may expire if I don't use the application for sometime. But I am continuously using without keeping idle even for 5 min, it is getting expired.I have configured SessionTimeOut to 60 minutes Web.Config though session timeout's in 20 minutes .I need your help very urgent.
But, in windowsXP hasn't the problem .
|
|
|
|
|
I am using combo box and text box controls and i am using ado.net.so could you please guide me how to use these controls in datagrid and how to edit the datagrid values.
|
|
|
|
|
|
you can place text box in template column of datagrid and edit the text box's value
|
|
|
|
|
hai,
i want to display the ballon message for the password textbox field when is capslock in on
|
|
|
|
|
|
hai
i am new to asp.net,which code i have write it on client side and which code i have to write on a server side,how the client will communicate to each other,
whether writing client side code whether we have to use only the html controls
|
|
|
|
|
You might find it easier to get a beginners book on ASP.NET
|
|
|
|
|
you can start from writing the code in page load function like that : response.write("hello world!");
|
|
|
|