|
hi all
i have made and copied p3p policy files in a folder named "w3c" int the folder where my application is present.But in IE it still shows no privacy policy for my website.Can anyone tell me what am i may be missing?
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
HI friends ,
I am useing
Page P = Page.PreviousPage;
TextBox text = (TextBox)P.FindControl("TextBox1");
I am geting previous page's control if my previous page do not have masterPage.
But if my previous page is in masterpage then i am not getting previous pages control
i have also tried
TextBox text = (TextBox)P.FindControl("Contentplaceholder_TextBox1");
pls help me how to access controls of previous page.
|
|
|
|
|
cross page postback is a nasty hack. The fact that you have to do this at all, sucks. What if you write a recursive function that looks for TextBox controls in the Controls collection of the previous page ?
I sure hope you don't really have a textbox called TextBox1.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Well i guess!!
Check what is the prefix that ur masterpage is assigning to the contol..
Try checking the viewsource
along with the
Contentplaceholder_
thing it normally adds a lot of character and numbers to it..
Try doing this
kuwl_mark wrote: TextBox text = (TextBox)P.FindControl("Contentplaceholder_TextBox1");
replacing Contentplaceholder_ with the actual prefix..
Not still sure whether its work for the previous page thing but worth a try!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
i would like to open calendar control in a pop-up window when user clicks a button.
Thanks&Regards,
Priya.
|
|
|
|
|
OK - well, there are a ton of javascript calendar controls on the web, why not just use one ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
please let me know one javascript which makes that calendar control to pop-up in new window/form.
Thanks&Regards,
Priya.
|
|
|
|
|
Which calendar control ? There are tons of them around, and they generally encapsulate all the javascript code that causes them to act as popups, etc. Often, the 'popup' is in fact a div on the page, but that is irrelevant. You can just download a control and use it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi u create one child aspx page for calender ok..
copy this code in to page_load of parent .aspx.cs page
btncalender is button
btnCalendar.Attributes.Add("onclick", "new_window('calendar.aspx')");
--------------------------------------------
copy bellow code to in .aspx this java script function
function new_window(url)
{
var argArray = new Array();
popupWin = window.open(url,"",'dialogTop:100px;DialogLeft:150px;DialogHeight:625px;DialogWidth:850px;scrollbars:YES;menuBar ;status:no;center:Yes;unadorned:Yes;resizable:No;scroll:No;Help:No');
window.top.name = 'opener';
}
first complete this in parent page after that reply to me i will send next process
|
|
|
|
|
Hi u create one child aspx page for calender ok..
copy this code in to page_load of parent .aspx.cs page in code behind
btncalender is button
btnCalendar.Attributes.Add("onclick", "new_window('calendar.aspx')");
--------------------------------------------
copy bellow code to in .aspx this java script function in HTML page
function new_window(url)
{
var argArray = new Array();
popupWin = window.open(url,"",'dialogTop:100px;DialogLeft:150px;DialogHeight:625px;DialogWidth:850px;scrollbars:YES;menuBar ;status:no;center:Yes;unadorned:Yes;resizable:No;scroll:No;Help:No');
window.top.name = 'opener';
}
first complete this in parent page after that reply to me i will send next process
|
|
|
|
|
finished with that process,
now what shud i do, to open in new window
Thanks&Regards,
Priya.
|
|
|
|
|
try this
Javascript
<script language="javascript" type="text/javascript">
function popup(val)
{
ref = "calc.aspx?id="+val;
var strFeatures="toolbar=no,status=no,menubar=no,location=no"
strFeatures=strFeatures+",scrollbars=no,resizable=no,addressbar=no,height=250,width=220"
newWin = window.open(ref,"TellObj",strFeatures);
newWin.opener = top;
}
</script>
Create one page and named it calc.aspx and put calendar control
In code behind file of calc.aspx.cs write belove code to get value in textbox
string val;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["id"] != null)
val = Request.QueryString["id"].ToString();
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
if(String.IsNullOrEmpty(val))
Response.Write("<script language = javascript>opener.document.getElementById('txtSearchStartDate').value='" + Calendar1.SelectedDate.ToShortDateString() + "'; self.close();</script>");
else
Response.Write("<script language = javascript>opener.document.getElementById('"+val+"').value='" + Calendar1.SelectedDate.ToShortDateString() + "'; self.close();</script>");
}
Now call javascipt and open popup window on click of link.
<a href="javascript:;" onclick="return popup('txtSearchStartDate');">Calendar
</a>
best Regard
pathan
---------------------------------------------------
|
|
|
|
|
Hi next here u copy and past in to ur child page but u create calender , 2click ur calendar in code behind u past this .and i mention below code one line u give ur parent page name so c that line and give ur parent page name
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
foreach (DateTime dt in Calendar1.SelectedDates)
{
Session["Date"] = dt.ToString("dd/MM/yyyy");
Page.RegisterClientScriptBlock("CloseWindow", "window.opener.document.forms[0].submit();window.close(); ");
Page.RegisterStartupScript("parentwindow", "window. opener.location.href = 'here give ur parentpage.aspx'; ");
}
}
}
after that before msg i sent one line for parent page in code behind u should past that line as bellow
protected void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
btnCalender.Attributes.Add("onclick","new_window('childpage.aspx');");
Session["Date"]=null;
}
if(Session["Date"]!= null)
{
TxtBox1.Text=Session["Date"].ToString();// note TxtBox1.Text is in which txtbox u need to copy the date that box
}
its works good
Thanks and Reg
nandha
|
|
|
|
|
Hi,
Can any one Please explain or provide links to create a secure login page and the necessary things that have to be taken care in login and other pages.
Please let me know your thoughts, this is a financial site and security must be Very high priority.
Regards,
Jagadeesh
|
|
|
|
|
So - you're being paid to work on a financial website, and you are relying on a forum post to teach you about security ?
What were your thoughts on the subject of how to make your site secure ? Will you use https ? If not, I presume the site doesn't have to be terribly secure at all ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
bhhhnvbnvn
g
hggkgk
g
k
g
kgkm
|
|
|
|
|
Hi Christian Graus,
We need to use https...
Just i what to know security related issues related to using session, connection string, cookies, DB etc.
Please let me know your thoughts.
Regards,
Jagadeesh
|
|
|
|
|
You need to use Google and buy some books. If this is for a financial institution you are asking very basic questions.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Yes, I was feeling very afraid.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Hi friends, i am in a problem like i am using asp.net with oracle as a backend.the problem is that i coudn't able to connect my application with oracle db here oracle is running in another machine. and i am using NHibernate for db operations..
My doubt is that is any other tools i wanted to use for getting database connection with oracle like client tool or anyother things please give me an idea how to solve this....
thanks & regards
Alex.
|
|
|
|
|
There shouldn't be any other tools you need, .NET has classes specialised for connecting to Oracle, and they should work just fine.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i am putting a dropdownbox in a ajax updatepanel and loading data in that dropdown box.i want to display the selected data in atextbox . it's taking time to display it in textbox,ie;more than 5 minitues.how can i solve this
|
|
|
|
|
I believe the ASP.NET AJAX stuff does a full page postback to do the AJAX call. Set some breakpoints and work out where the bottleneck is, then work out if it's something you can work around.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i am new in ajax.can anyone tell me what i can do to solve the problem?.it is urgent......
|
|
|
|
|
anujose wrote: .it is urgent......
It doesn't matter
|
|
|
|