|
Hi,
I have some static pages in my application, and i want to open those static pages in the Master page.
i want to do so b'coz my static page content keeps on changing, so if i use an HTML page i will not have to re-complie the application.
So i want to know how to load that HTML page in some contentplaeholder or may be some other control.
Please suggest some another way also if u have it in your mind and may be useful to me.
Thanks,
Deepak Surana
|
|
|
|
|
I had the problem like this and laod the file with File.ReadAllText method and put a Label on the page(or Masterpage ) , then set Label.Text to that string. You can also user Literal Control or some other control I guess.
Mazy
"This chancy chancy chancy world....."
|
|
|
|
|
Thanks a lot. Nice suggestion.
I hope it works perfectly.
Deepak Surana
|
|
|
|
|
please say me are u from persian.
ایا شما ایرانی هستید؟
We Can Do Anything, If We Want It
|
|
|
|
|
no...
but why.
Deepak Surana
|
|
|
|
|
I am.
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
Hi All,
I need to display time in the following format in c#:
7:40a (not AM/PM whole word just A/P in lowercase)
So how could I achieve this?
|
|
|
|
|
rachitdamani wrote: I need to display time in the following format in c#:
7:40a
I don't know this is the rite method. But it will work Try
string strDate = DateTime.Now.ToShortTimeString();
strDate = strDate.ToLower().Replace("am","a");
strDate = strDate.ToLower().Replace("pm","p");
Console.WriteLine(strDate);
Console.ReadLine();
|
|
|
|
|
Thnx buddy,
it is working fine.
|
|
|
|
|
Hi Friends,
When I open VisualStudio then one VSS prompt is coming which asking about username,pwd,Browse.Then I given all details then source code opened in VisualStudio.
For modify one file in that I Created setworking folder and checkin into c:\samples (for example).
"My doubt is "
when I open C:\sample again It is prompting VSS window asking about username and pwd. Why?So How can I modify file and update in main folder(How to checkout)?
Thanks.
|
|
|
|
|
hi guys look at the link i post below the left navigation bar and the title bar dosnt move even when the page scroll down
anyone know how and wat tool,steps to do to create sonmething like that?
i only done fram like those in html but would like to do it in asp.net thx
http://www.sfi.com.sg/business/index.asp[^]
|
|
|
|
|
you can do the same in asp.net
<< >>
|
|
|
|
|
how?
make a i made a master page but it moves with the scroll bar...
or make it the same way as a normal html page with frame?
|
|
|
|
|
try with the samne as a normal html page...
any problem?
<< >>
|
|
|
|
|
however in my lefr frame which is a navigation page
i need to put role managment so taht only certain infomation is shown for certain roles
and also i tryed the normal way it keep rerouting to the master page
|
|
|
|
|
yeah you have to specify the target frame when user click on the link in your left frame...so just put this <base target="your_mainframe_name"> in your left page
<< >>
|
|
|
|
|
Hi! All,
I have a problem with using Iframe. There is one page and inner 2 Iframes. Let say IFrameA has GridView with checkbox control. And the another IframeB has button control. Once some of checkbox in gridview are selected from IFrameA. Then I click to button in IFrameB. The program would like to know which one are selected from IFrameA.
Is there anybody know about this?
Thank you in advanced
Jibcht
|
|
|
|
|
Why don't you put both the grids on same page ?
|
|
|
|
|
You can get the document object of the Iframe using contentWindow method. I can give you an example.
Lets as assume the main page with 2 Iframes would be main.html and the source of the Iframes would be page1.html and page2.html. The sourcecode will be,
main.html
<html><br />
<body><br />
<iframe id="ifrm1" src="page1.html"><br />
</iframe><br />
<iframe id="ifrm2" src="page2.html"><br />
</iframe><br />
</body><br />
</html>
page1.html
<html><br />
<body><br />
<input type="checkbox" id="Chk1"> Click me<br />
</body><br />
</html>
page2.html
<html><br />
<head><br />
<br />
<script><br />
<br />
function getCheckValue(){<br />
alert(parent.document.getElementById('ifrm1').contentWindow.document.getElementById('Chk1').checked);<br />
}<br />
<br />
</script><br />
<br />
</head><br />
<body><br />
<input type="button" id="button1" value="Click here" onclick="getCheckValue()"><br />
</body><br />
</html>
When you click the button in the iframe 2, it will alert the checkbox status in the iframe 1.
I hope this would help you...
|
|
|
|
|
I've Created a Web application that can access ACCESS DATABASE FILE and update records.
As usual i entered <identity impersonate="true"> in web.config.Now i Created a web setup to deploy the application.And problem is now i cannot access the database.but the project can.Installed project is still unable to run.
Help please
Kanchana
|
|
|
|
|
hmklakmal wrote: And problem is now i cannot access the database
So what is the error that you get?
Can you post the code that causes the error and the configuration of the connection string?
|
|
|
|
|
I try to Create Password Change Concept as used in Emails in Asp.Net with C#.But i cant do it.can any one solve my problem
|
|
|
|
|
What you did it?
What error you got it?
Regards,
Satips.
|
|
|
|
|
I am designing three web pages and want user id retain in third page.
i give user id in first page.
on yhe basis of that user id i change password of that user.
i use datareader concept for checking userid and password at first page.
now the problem is how can i take this userid to third page and how i change password on that page.
|
|
|
|
|
What´s the standard mechanism used for server-side validation when using a objectdatasource control?
Do you validate on your Page_Load event? If so, how do you signal the objectdatasource control to not propagate the Insert/Update/Delete event?
All of the examples i´ve found show how you can bind to the control and perform a CRUD operation with data that´s not validated and that is not expected to fail.
thanks
Gabriel
|
|
|
|