|
Thanks for help
dear but can you tell me how can i get the next textbox name...
|
|
|
|
|
fmlove wrote: dear but can you tell me how can i get the next textbox name..
You have your page or project with you. isn't it? So, go and take a look... and decide which textbox you want the cursor to move when you press the "Enter" key.
OR Do you wanna detect automatically to the next control after current one?? It's hard to say since it is based on the design.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
HI!
i have two Text Box (TextBox1,TextBox2) and the maxlength for TextBox1 is 3 and for TextBox2 is 7. now i want when maxlength of TextBox1 is end then cursor automatically move on next TextBox2....Please help....
|
|
|
|
|
Write a javascript function and call it in OnKeyDown event of the textbox. Inside this function check the length of the text, if it is your desired length change focus to next textbox.
|
|
|
|
|
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
|
|
|
|
|
first u rebuild ur solution
after reuild it comes same then try this
write de code in source(html)
<Nodes>
<asp:TreeNode Text="Table of Contents"
ToolTip="Table of Contents Description">
</node>
Sarith...
|
|
|
|
|
Nidhiii wrote: treenode.Text =
"" Addition "";
to give the color to treeview node use the style property of HTML view don't use the code behind
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi,
When i try to attach and send a file , i got the error..
The report of BOM can't be send as an email due to error:-Access to the path
'c:\inetpub\wwwroot\xxx\PDF\admin\Report.pdf' is denied
.Please tell me how to solve this.........
With thanks
Sebastian
|
|
|
|
|
right click on folder wwwwroot and uncheck Read only checkbox
I Love SQL
|
|
|
|
|
HI,
Thanks for your reply. but still it shows the same error. now in another section , inside a javascript function..
thanks once again
sebastian
|
|
|
|
|
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.
|
|
|
|