|
HMagesh wrote: dont like to allow enduser to save my form design on his desktop & same time i dont like to see them my viewsource also...,
Its possible?,
If you don't want the end-user to save the HTML design and If you don't want the end-user to see the HTML source then deny the access to your site.
simple, Modify the authorization section in the web.config file
<-authorization>
<-deny users="*" />
<-/authorization>
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi John,
Thanks for ur reply,
If i give deny users="*"
It wont allow enduser to visit also that page...,
Actually i feel i didnt say my quest proper format...,
see,The end user can visit my site...,
But if he try to save the webpage on his system,it won't allow and if he left click the page and try to see view source it wont show the design code that one i asked...,
Its possible?,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
You can't take full control over disabling the options in the client-side browser for security reasons. I don't think it's possible to disable the "Save AS" option in the browser. More over once the HTML is rendered to the client, the page is available on the client. User's are smart enough to find the cached page in the history and open it in a notepad and veiw the contents. Even if you disable client-side caching still there are ways to view the HTML source of the current page. Because the HTML page is physically present there.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
how i can find the scroll positions of a panel when we move with mouse
|
|
|
|
|
use following java script to retrive the scroll postion of any HTML element
alert(document.getElementbyId("divName").scrollTop) or scrollLeft
Manikandan.net
[Coding is life]
|
|
|
|
|
hi all...I need help in crystal reports plzz....
I have to display a column from database horizontally and another column from database vertically....in the form of a chart...and in between the values selected have to be added n displayed...it seems 2 me very complex can somebody plz help me out...il be really obliged....
thanx in advance...
Tanya...(urs_forever_tanya@yahoo.co.in)
|
|
|
|
|
tanya2001 wrote: ...it seems 2 me very complex can somebody plz help me out...il be really obliged....
Use Crystal Report Chart Control. Without it, it's not possible to display the data in Crystal Report in such a manner.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
where can i find crystal reports chart control..m all new 2 this so can u plz explain me
Tanya...(urs_forever_tanya@yahoo.co.in)
|
|
|
|
|
Once you add the data source to your report, it will the enable the Crystal Report tool bar. In the tool bar click on the "Insert Chart" Icon. try to Google the Google for some info which will help you more than what anyone can do on a online disscusion.
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
thanx a heap i got the chat but unable get values into it...its jst showing bars...if u can gimme ur email address il show d diagram format of what i want 2 display n what i have...can i plzzz?
Tanya...(urs_forever_tanya@yahoo.co.in)
|
|
|
|
|
It sounds like your initial problem is not with the crystal reports, but more that you don't know how to form the query to return the results.
It sounds like you are trying to PIVOT your table data - if you are using SQL 2005, then i'd recommend looking up the PIVOT command to see how this works.
Once you have your dataset (and presuming you have some idea how to use crystal reports), creating the chart shouldn't be too much trouble.
|
|
|
|
|
m using sql server 2000....n m all new 2 crystal reports n i hve been assigned this project...i rely dunno wat 2 do..
Tanya...(urs_forever_tanya@yahoo.co.in)
|
|
|
|
|
Have a google for some crystal report tutorials would probably be a good first move. It's hard to help you here if you can't help yourself a little bit...
|
|
|
|
|
Hello all,
I have developed a web application in ASP.Net using C# with login credentials.
I am getting following problem with it.....
I am logging in as user "abc" from one computer in network, its working fine. At the same time, i m logging in as different user say "xyz" on other computer. After this, when i refreshes my "abc" user's page it shows all contents of "xyz" user and hence automatically expires session of "abc".
I am not getting where the actual problem is, please anyone of u can help me with this?
Pravin
|
|
|
|
|
pavya_Cool wrote: when i refreshes my "abc" user's page it shows all contents of "xyz" user and hence automatically expires session of "abc".
Are you using Application variable to store the user details? And what is the authentication mode here?
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi I am using session variable here...and authentication mode is forms.
Pravin
|
|
|
|
|
Can you post an example of the code you are using to store the details of the current user?
|
|
|
|
|
private void BtnGo_Click(object sender, System.EventArgs e)
{
Label1.Visible=false;
bool persistcookie=true;
if(ValidateUser(TextBox1.Text,TextBox2.Text))
{
//string globalstrConn="Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=iMedia;Integrated Security=SSPI;";
Session["UserName"]=TextBox1.Text;
//This will store the username of the user in this session variable
// We can retrieve this username on different pages by using following code.
// string str=Convert.ToString(Session["UserName"]);
FormsAuthenticationTicket tkt;
string cookiestr;
HttpCookie ck;
tkt=new FormsAuthenticationTicket(1,TextBox1.Text,System.DateTime.Now,System.DateTime.Now.AddMinutes(Convert.ToInt32(ConfigurationSettings.AppSettings["timeout"])),persistcookie,"Your Custom Date");
cookiestr=FormsAuthentication.Encrypt(tkt);
ck=new HttpCookie(FormsAuthentication.FormsCookieName,cookiestr);
if(persistcookie)
ck.Expires =tkt.Expiration;
ck.Path =FormsAuthentication.FormsCookiePath;
Response.Cookies.Add(ck);
string strredirect;
strredirect=Request["ReturnUrl"];
if(strredirect==null)
strredirect="login.aspx";
Response.Redirect(ConfigurationSettings.AppSettings["defaultpage"],true);
}
else
{
Label1.Text="Invalid Credentials!";
Label1.Visible=true;
// Response.Redirect("login.aspx",true);
}
}
Please someone help me.
Pravin
|
|
|
|
|
|
i am not getting responce there.... thats why i posted here ... do u have any problem????
Pravin
|
|
|
|
|
pavya_Cool wrote: am not getting responce there.... thats why i posted here ... do u have any problem????
Yes. These posts aren't under your name. Have you created multiple identities? More importantly, if these are all you, you shouldn't repost in an attempt to get the post to the top. This is a volunteer only forum, and people will get around to your post when they can.
|
|
|
|
|
Pete O`Hanlon wrote: Have you created multiple identities?
In the study of Psychology, there is a concept called 'Multiple Identity Disorder'. A quick Google search shows this:
http://skepdic.com/mpd.html[^]
Perhaps, is he suffering from that?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
i m using nested grid and in child grid i m using EmptyDataTemplate in which i hv one htmlanchor tag which is redirecting to another page when that child grid is empty and i m passing parentgridrow id as query string parameter to that anchor tag.
here i m giving u code what i m using.
Protected Sub ParentGrid_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles ParentGrid.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
Dim s As SqlDataSource = CType(e.Row.FindControl("SqlDataSource1"), SqlDataSource)
s.SelectParameters(0).DefaultValue = e.Row.Cells(0).Text
CType(e.Row.FindControl("ChildGrid"), GridView).DataBind()
End If
End Sub
Protected Sub grdProduct_DataBound(ByVal sender As Object, ByVal e As System.EventArgs)
Dim grd As GridView = CType(sender, GridView)
Dim grdr As New GridViewRow(-1, -1, DataControlRowType.EmptyDataRow , DataControlRowState.Normal)
Dim cell As New TableCell
cell.ColumnSpan = 2
cell.Width = Unit.Percentage(100)
Response.Write(CType(sender, GridView).Rows.Count)
End Sub
it is giving output like shown below:
0
7
0
2
0
15
where 7 indicates 7 row of 1st child grid (child grid in 1st row of parent grid)
same way 2 and 15 also
means in my parent grid there r only 3 row (means there r only 3 child grid would created)
then why i m geting other three zeros. can any one explain me the execution flow for nested grid.
Thanx in advance,
|
|
|
|
|
MaruBindiya wrote: Protected Sub grdProduct_DataBound(ByVal sender As Object, ByVal e As System.EventArgs)
This Event is firing twice. That is before DataBinding (Empty Grid), and after DataBinding (With Data).
|
|
|
|
|
in my application document.referrer is shown empty string ???
|
|
|
|