|
check javascript code which you used, or post here javascript code maybe we can find solution
I Love SQL
|
|
|
|
|
First thing is to check if you have set up permissioning correctly on the folder. In other words, your process has no rights to the folder in which the pdf is stored. Right click on the folder and select "Security". You need to select and grant permissions to your applications user.
|
|
|
|
|
Hai to all,
1)Is it possible to assign a property like ,the textbox should accept either blank or telephone number like 011-342344 .
2)i know with regular expression validator or required field validator,we can give ..it shd not take blank or wrong format.
but how to do as i wrote in the first point.plz anybody can give me an idea.which property of textbox shd i need to set???if not possible wat shd i do???
thanks in advance
kissy
|
|
|
|
|
Just use regular expression.It accept blank
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
tanx for ur reply,it is working
kissy
|
|
|
|
|
Kissy16 wrote: s it possible to assign a property like ,the textbox should accept either blank or telephone number like 011-342344
No predefined properties. You can write a custom control which have all these options.
Kissy16 wrote: i know with regular expression validator or required field validator,we can give ..it shd not take blank or wrong format.
but how to do as i wrote in the first point
Use this regular expression
\b[\d]*-[\d]*$
|
|
|
|
|
hai,
thanks for ur reply,it is working successfully.
kissy
|
|
|
|
|
With ASP.NET AJAX you can assign Extenders to a TextBox that provides a mask (e.g. ___-______ for your number example) and a validator that will check it while the user enters data.
see MaskedEditExtender and MaskedEditValidator on www.asp.net/ajax --> documentation
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Kissy16 wrote: which property of textbox shd i need to set???
hello frnd,
Use the validator and set the "control to validate property to control name"
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
I don't thinks so
I have login page user will enter his username to enter the main page "every things fine till now". the problem is when the user jump to address bar in the browser and write manually the path to the main page he will be able to access the website with out entering his log in information.
please help me I need to block accessing to any web page unless the user enter his username.
thanks in advance guys,
|
|
|
|
|
when user login then take his id in session and check follwoing on next page
if session("userid")=nothing then
response.redirect("loginpage")
I think it solve your problem.
Rahul
|
|
|
|
|
thanks a lot rahul.net11,
it worked perfectly.
I have another two other questions
1- how can I kill the session??
2- what is (Nothing key work ) you have used? I did follow your solution but I check the user session with the default string value I have set to all session in Global.asax. are they any way to set the string in global.asax to null.
|
|
|
|
|
Hi
If you want to kill session then u can use session("sessionname").Remove.
This will remove a particular session and i you want to remove all session
on the page then u can use session.Removeall().
regarding Nothing keyword if u r using vb.net then you can use Nothing
keyword or if u r using C# then us can use Session("userid")="".
Nothing is a keyword used in vb.net.If any query then let me know abtit.
Rahul
|
|
|
|
|
thanks that was helpful
but how can I get the sessionname ??
|
|
|
|
|
In each page load where authentication is needed you need to ensure that login details are supplied. You can check session in page load like
if ( Session["userid"] == null )
Response.Redirect("Login.aspx");
User id is the session variable which you are filling when user logs in.
If you have lot of pages which needs this checking, better approach would be creating a base class that does this. Inherit all your pages from this base class.
|
|
|
|
|
N a v a n e e t h ,
yes i have lot of pages can you give me an idea about the base class please
|
|
|
|
|
aziz_subaie wrote: can you give me an idea about the base class please
Well, by default as you see ASP.NET page will be inherited from System.Web.UI.Page . This is the base class which has properties needed for page initialization. But if you want to have some additional functionalities for all your pages, you can create a custom base class that inherits from Page and your ASP.NET page inherits from your custom class.
Assume you have created a base class called CAuthentication . It could be some thing like
class CAuthentication:System.Web.UI.Page
{
private void override OnLoad(object sender,EventArgs e)
{
base.OnLoad(e);
}
}
Let's look into your ASPX.CS page.
class MyPage:CAuthentication
{
protected void Page_Load()
{
}
}
When you run your page, CAuthetication will be invoked first and do your session checking. So this will help you to avoid rewriting session checking function in all of your pages. This base class can also be useful for extending Page class functionalities.
|
|
|
|
|
I am using Visual Studio 2005 Standard Edition. I know that crystal reports has come in built with this version. But I am unable to view the crystal report template in add new items. How to get that template. Help needed. Thank you.
|
|
|
|
|
in VB.NET
procedure to add in crystal reports .rpt file into your solution
File
- New
-Project
Choose language Visual Basic or Visual C#
here you can find the Crystal Report Application Icon
give a name and add
winnie -
|
|
|
|
|
in ASP.NET
File
-New
- Web Site
you can find the "Asp.net Crystal Reports Web Site Icon"
winnie
|
|
|
|
|
Don't cross post.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
im giving treeview node colour using this code (shown below)
treenode.Text =
"<font color = #066C57 >" Addition "</font>";
bt at that time its tooltip is showing
"<font color = #066C57 >" Addition "</font>";
when im giving treenode.tooltip="something" it is nt working
pls give me a solution
-- modified at 6:30 Friday 10th August, 2007
|
|
|
|
|
TreeView1.Nodes[0].Text="Some text for first node";<br />
TreeView1.Nodes[0].ToolTip="ToolTip for first node";
I Love SQL
|
|
|
|
|
I have a problem calling my css onto my page.Is there another way to do this coz I tried using
but its not calling it
kagiso
|
|
|
|
|
Make sure that path exist. If themes directory is in root of site then you need to specify like /themes/
|
|
|
|