|
|
In general, if you want to invoke method from other frame, you need to first access the page using javascript. May be you place your custom AJAX method in page b, and from page a you access the method using window.parent.topframe.document when the name of the top frame is topframe.
http://www.pageresource.com/jscript/jframe1.htm
why dont you remove frames, rather use Masterpage, which is the server side Frame kind of thing. This would help you manage your application more easily.
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution. Visit My Website-->www.abhisheksur.com
|
|
|
|
|
Hi,
I'm trying to include some user credentials for accessing a remote
webservice. The remote location requires that I use Basic
authentication(RFC2617), which means, from browsing around, I need to include
the user name and password in the HTTP header, but I'm not quite sure
how to access the HTTP header that is sent with the webservice soap
message request.
Can anyone help?
Thanks in Advance.
Kunal Tilak
|
|
|
|
|
Hi,
how did you managed the webservice access? Are you using WCF?
Regards
Sebastian
|
|
|
|
|
I am consuming a webservice in asp.net(c#) which is hosted by some third party which grant access to webservice using Http Basic thentication(RFC2617).
I am not using wcf.
plz send me some working code for how to call webservice giving username and password using Http Basic authentication(RFC2617).
|
|
|
|
|
Doesn't anyone in Code project site know the answer of question?
Plz reply if anyone knows.
|
|
|
|
|
Hi Friends,
I am facing an issue with my live server where our website is hosted, when i change some content it's reflecting on localhost and test server but not on the live server, either we remove our home page form live but it still shown on live, but if we remove css it's reflecting.
Script: Asp.Net2.0
Web server: iis6.0
kindly help, we have done "enable content expiration" to "Expire immediately" in web server website property.
Thanks iin advanced,
Abbas
|
|
|
|
|
Hi all
I am getting Date time from date base in the following format
5/13/2010 12:00:00 AM
I want to display it in UI in following format 08-May-2010 can u guys please help me how to do this
Thanks and regards,
Amit
|
|
|
|
|
Hi,
Please use the below:
DateTime dt = DateTime.Now;
string strDate = dt.ToString("dd-MMMM-yyyy");
Regards,
Jamil
|
|
|
|
|
You can get the date in the required format from the database.
Try this
SELECT CONVERT(VARCHAR,GETDATE(),106)
modified on Friday, April 30, 2010 3:34 AM
|
|
|
|
|
I assume you want to display 5/13/2010 as 13-May-2010 and not 08-May-2010. Its very easy to do it. If you are displaying the date in a label then you are probably assigning the date value to the text property like this
Label1.Text = DateTimeValue.ToString(); .
Now to apply formatting in this case just pass the format string as parameter to the ToString() function like this
Label1.Text = DateTimeValue.ToString("dd-MMM-yyyy");
You could also use this String.Format("{0:dd-MMM-yyyy}", DateTimeValue.ToString());
NOTE - Month should be specified as "MMM" and not "mmm".
For more format strings refer this page - String Format for DateTime [C#][^]
|
|
|
|
|
|
Hi, use following while selecting datetype column from databse.
select replace(convert(varchar,getdate(),106),' ','-')
Thanks,
Arindam D Tewary
|
|
|
|
|
I am using a timer control in one of my page. and that page contains 2 update panels.can i associate the timer control with a particular update panel of that page.
because the timer refreshes the 2 update panels in every TICK event.
|
|
|
|
|
Yes. In Update Panel there is a properites Called "Update Mode" . Bydefault it is, Always . You need to make them Conditional for both of the UpdatePanel. Now In Timer Tick Event, You can call the Update() Methods of particular Update Panel.
Like say, UpdatePanel1.Update().
Hope This Answer your questions.
Thanks !
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thanx for ur reply Mr. Jana,
It matches with my situation.But I got an error
"Invalid postback or call back argument.plz check <%@ Page EnableEventValidation="true" %> "
when 2nd update panel (not the timer one) is refreshes.
I am using the update panels in master page.where I can't find <%@ Page %>.
Is there any alternative way to handle this.
|
|
|
|
|
souravghosh18 wrote: Invalid postback or call back argument.plz check <%@ Page EnableEventValidation="true" %> "
Please update the web.config section using :
pages validateRequest="false" enableEventValidation="false"
Please read this thread
http://forums.asp.net/p/922994/1064482.aspx[^]
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
modified on Friday, April 30, 2010 4:54 AM
-- Modified Friday, April 30, 2010 4:54 AM
|
|
|
|
|
thank you sir.
It is working fine.
|
|
|
|
|
Welcome man !!
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi ,
Can anyone let me know how exactly can uploading and downloading a file (a doc file ) to and from database be done.
What i need is that i want to upload a file say resume.doc to a database and the user say HR Manager clicks on the download button the resume.doc has to get downloaded.
Can anyone please help me out with this.
|
|
|
|
|
Save the file path in database and upload the file to a server location. You can use file upload control for upload files.
How to Upload File[^]
Download File[^]
Hope it helps
|
|
|
|
|
|
That is a stupid question! No one should response that
decimal dec1, dec2;
if (Decimal.TryParse(TextBox1.Text.Trim(), out dec1) && Decimal.TryParse(TextBox2.Text.Trim(), out dec2))
{
Label1.Text = Math.Round(Decimal.Add(dec1, dec2), 2).ToString();
}
Just please don't ask how to do a subtraction....... ![Laugh | :laugh:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_laugh.gif)
|
|
|
|
|
pls i have a site with a master page and several content pages, the update panel wont work inside the content pages.
does anybody know why this is so, and what to do.
thanks
|
|
|
|
|
Enobong Adahada wrote: the update panel wont work inside the content pages.
What do you mean by won't work ? What problem are you faceing ?
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|