|
Dear deepu
As you said AJAX Modal popup control is the best to show your Popup to the user.
As your wish it will show an YES or NO sequence to user before he gets in to the Home page.
But there are some things to note
1: if the browser does not support JavaScript, the pop-up will not work .So the user's web browser
should compatible with javaScript.
2:Ajax is not a programming language,it's just an extension,rather a javascripted extension
3:The user might have pop-up killers running that close the window the moment it’s opened
You can cover all that probs
with your page's source
<a href>
|
|
|
|
|
i have a web application,in that i used javascript for disabling the control;.it is working fine in IE.but when i run my application with Firefox,its is not working.
what i have to do.
can any one solve my problem.
|
|
|
|
|
|
Hi all,
I have created a sample web application and while clicking on it, a MSI file has to be downloaded. It is downloading but adding one more byte to it and corrupts the applciation.
Can any one help in this regard?
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Which browser are you using to view the website?
Also, can you please post the code for download file.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hi..
I want to pass arguments in buttonclick event in gridivew from aspx page...
<asp:imagebutton id="addtocrt" runat="server" imageurl="images/addtocart.jpg" alternatetext="Add to Cart" width="42" height="42" hspace="2" onclick="">]]>'/>
this image button is in gridview's ItemTemplate
And i have a function like this in code behind..
protected void addtocrt_Click(string str)
{
Response.Write(str);
}
But it gives me error...
1) The best overloaded method match for 'Right.addtocrt_Click(string)' has some invalid arguments
2) cannot convert from 'object' to 'string'
How to solve this.. Plz give me some solution..
|
|
|
|
|
sorry i may be wrong ..."TYPE CASTING"
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Hi
Test this: addtocrt_Click(Eval("Prod_ID").ToString())
You can pass the parameters in this way too:
<asp:imagebutton id="addtocrt" runat="server" imageurl="images/addtocart.jpg" alternatetext="Add to Cart" width="42" height="42" hspace="2">CommandArgument='<%# Eval("Prod_ID") %>' onclick="addtocrt_Click">
protected void addtocrt_Click(object sender, EventArgs e)
{
try
{
ImageButton imgbtn = sender as ImageButton;
Response.Write(imgbtn.CommandArgument);
}
catch (Exception ex)
{
throw;
}
}
|
|
|
|
|
Hey thanx... It worked for me...
|
|
|
|
|
can any body help me in making a text box like orkut which counts characters while typing in it. just give me idea.
|
|
|
|
|
|
Hi all,
I have two dropdownlists that filtered by book subject (dropdownlist1) and filtered by price(dropdownlist2).
now i want when i click a book subject for example electronic from dropdownlist1 my datalist shows all price,and then if user wants, select price range from dropdownlist2.
how can i do this?
thank you,
Hoda
|
|
|
|
|
Use filter on event SelectedIndex_Change of DropDownlist1, example:
PriceSqlDataSource.FilterExresion = "BookCategory=1" //instead this filter use your according filter
I Love T-SQL
|
|
|
|
|
|
you are welcoome...
I Love T-SQL
|
|
|
|
|
hai,
i am using -->
top: 236px; height: 180px" runat="server">
that div tag display the string.but i want to get that sring how to get ...
if u know the code replay to me...
|
|
|
|
|
I can't see your html code.
Use the "Ignore HTML tags" option when you are posting markup code in the forum.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hello friends . i have developed a website and debployed it at server its working fine no problem ....previously it was showing error so i deleted this.........
add assembly="VsWebSite.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
then it started working fine ..so what is the use of this ...is that i have to every time delete this line while deploying
Q 2 .. I am having a ajax calender control ... in that a option pop up position is not present ....may i know why...?
Q3 .. Is that ajax controls are ment only for I.E's not mozilla ( if yes explain if no ..no pain )
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
hi all
How can I validate the Pages by using the base class, means... If Once I loged as an administrator then the page is 'admin.aspx', and after loging out if I loged as a user to page 'userpage.aspx' and in the address bar I enter the page as admin.aspx' instead of 'user.aspx' then browser is redirecting to admin page... I want to validate this to restrict access the admin page....
there I am using sessions for both pages from login pages seperately.
how can I check the credentials in page load pls help me
pls help me...... with the code
regards
Naushad
modified on Saturday, April 19, 2008 6:31 AM
|
|
|
|
|
Hello Friend.
To solve this problem store userid in a cookie . each time u logon check with cookie value if it mismatch display a error message. i hope u got something.
Please do cantact for doubts.
ArunVijay
|
|
|
|
|
I had tried it with session and cookie, but still page is displaying... If I click any link in that page then exception will occure, it is not entering into the page load event when I type the page name in the address bar...
|
|
|
|
|
Hi
you can create a security object table on your database that all pages names and their access permissions. Your security object table may be for example such this:
Id(int) URL(varchr(256)) GrantAdmin(bit) GrantUser(bit) GrantPublic(bit)
You shuld insert each page url and its permission into this table and in your base page (that each page inherit from it) on page load you had to get page url and then get its permission from data base and then check user type with page permission.
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
CheckAccessPermissions();
}
private void CheckAccessPermissions()
{
String applicationPath = this.Request.ApplicationPath;
String pagePath = this.Request.Path;
pagePath = pagePath.Replace(applicationPath+"/", "");
try
{
Permissions permission = GetPagePermissions(pagePath); //Permissions is a class that contain security object table columns
User user = null;//User is a class that contain user name and user role
if (!permission.GrantPublic)//if the page is not public
{
if (Context.User.Identity.IsAuthenticated)
{
user = (User)Context.Items["UserInfo"]; //Context must be set on global.asax(Application_AuthorizeRequest)
if (user.Role == Roles.Administrator) // Roles is a enum
return; //Administrator is granted to access all the pages.
else if (user.Role == Roles.User&& permission.GrantUser)
return; //User is a not admin and the page is granted for user access.
else
//the user is authenticated but does not have permission to access this page.s
Response.Redirect("~/AccessIsDenied.aspx");
}
else
{
//If the page is not public and user is not authenticated:
Response.Redirect("~/AccessIsDenied.aspx");
}
}
}
catch (FileNotFoundException)
{
throw new Exception("Access permissions to this page are not set. Page path: "+pagePath);
}
catch
{
}
}
|
|
|
|
|
Hello all
I have written a javascript function. I want to call this function in my aspx.vb page when certain condition is true. I am displaying a confirm box using javascript and i want to call this function if size of my array is greater that 3 else not how can i call this function.
Please help me.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
check the condition in the java script function...if it fails dont execute else execute the function(inner statements )
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
In my Microsoft Visual Studio, the default for the position mode is Absolutely position which drives me crazy who can I change this default to another one which is <not set="">.
Note:
The position mode is inside the position and the position is inside the Style.
Best regards and tghank you in advance for your help,
|
|
|
|