|
im using vb in coding an asp.net page..
heres the error message i got when i tried to browse my project on a networked computer.
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
can anybody explain this to me?
|
|
|
|
|
Seem like you are using Windows MessageBox in Web application? Showing the messagebox on the server is not good... You should prefer to use client-side messagebox by using javascript.....
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 one login page where if i provide wrong username and password fields the errrror msg ER3 will be shown. and the password field becomes empty.
if i click the submit button without giving any value in the required fields it will show dont leave required field empty.
but now the thing is its showing the its showing the ER3 and the required field error msg tooooo.
i want to disable the ER3.
can anybody help me.
|
|
|
|
|
Hi,
You can first check whether the two textboxes are empty or not and if they are not empty then you can check whether they contain correct values or not. If they do not contain correct values then you can generate the error message.
Regards,
Paramhans dubey.
|
|
|
|
|
|
Hi
I have created a html hidden field at run time,now i want to get its value on server side,as i am unable to get its value after postback.
|
|
|
|
|
aquarious2020 wrote: I have created a html hidden field at run time
Try to cache it.. and get it back from cache at Page_load.
It is better if you don't create a hidden field at runtime. because it will add extra complexity to your application since that dynamic control doesn't have viewstate.
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.
|
|
|
|
|
i need a code to
i want to validate a textbox, it should take only numeric value before entering to the next filed.
mus
|
|
|
|
|
You should google a lit bit...
function getKeyCode(e)<br />
{<br />
if (window.event)<br />
return window.event.keyCode;<br />
else if (e)<br />
return e.which;<br />
else<br />
return null;<br />
}<br />
<br />
function keyRestrict(e, validchars) {<br />
var key='', keychar='';<br />
key = getKeyCode(e);<br />
if (key == null) return true;<br />
keychar = String.fromCharCode(key);<br />
keychar = keychar.toLowerCase();<br />
validchars = validchars.toLowerCase();<br />
if (validchars.indexOf(keychar) != -1)<br />
return true;<br />
if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 )<br />
return true;<br />
return false;<br />
}
<input type="text" name="textfield" onKeyPress="return keyRestrict(event,'1234567890')">
Thanks to this "http://www.codeproject.com/useritems/keyboard_restrict_spanish.asp[^]"
https://www.aspnetpro.net/newsletterarticle/2004/01/asp200401de_l/asp200401de_l.asp
more
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.
|
|
|
|
|
How about restricting the user from entering alphabets or special characters Instead of validating the entered text.
check for the keycode using javascript on the keyPress or KeyDown event of the textbox . if the keycode falls between 48 and 57 then the entered key is a number ortherwise return false. when the return value is false it doesn't take the entered value....
function onlynumbers(){<br />
if (window.event.keyCode>=48 && window.event.keyCode<=57){<br />
window.event.returnValue = true;<br />
}<br />
else<br />
window.event.returnValue = false;<br />
}
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Before Posting the Question in the Forum Just read the Guidelines and post the question with the appropriate Subject.
What is there with the " Help".
SSK.
|
|
|
|
|
I want to develop an e-examination application by ASP.NET(c#), that:
1. when it is loaded on a client, the client resources (MyComputer,...) become block until user can not cheating.
2. at the end, client resources (MyComputer,...) become free.
3. this ability (blocking resources) will be useable for each client with every OS.
can you help me ?!
thanks
H.R
|
|
|
|
|
If you have specific problem, you can ask here.. but if you want someone to develop the whole system, you may probably hire someone to do that..
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.
|
|
|
|
|
my purpose is:
How can block the Mycomputer or a drive of client in ASP.net?
thanks
-- modified at 5:03 Wednesday 29th August, 2007
H.R
|
|
|
|
|
I think, you mean you wanna know how to block the client..
You can get the IP Address of client machine by using Javascript. then, determine whether this IP address is in the list that you wanna block in pageload. if the client's IP address in blocked list, you can show the message instead of the whole page....
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.
|
|
|
|
|
I am thanks for you, but my intention is to hiding client's drives from server at the web.
How can hide Mycomputer or drives of client in ASP.net?
do you know a related article or a piece of code to introducing me?
thanks much dear friend.
H.R
|
|
|
|
|
H.R wrote: How can hide Mycomputer or drives of client in ASP.net?
Sorry. H.R. I don't understand what you are trying to say. I don't think that the web application can access to the drives of client's machine..
How do you see those drives from web application? from input "File" control (upload control)?
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.
|
|
|
|
|
OK, it's right, but what about Network environment (not web) without browser ?!!!
-- modified at 6:16 Wednesday 29th August, 2007
H.R
|
|
|
|
|
H.R wrote: Network environment (not web)
The restrictions apply. Web falls within 'Internet' zone. Network environment falls with 'Local Intranet' zone of your web browser.
|
|
|
|
|
H.R wrote: How can hide Mycomputer or drives of client in ASP.net?
You can not. If that was possible, malicious websites would have hijacked your system long time back and you would not have an option at the first place to post this query.
|
|
|
|
|
You want to use a browser to stop a user from accessing any part of their PC?
I doubt that will be possible - if you think about it, it'd be a pretty big browser security hole if you could...
|
|
|
|
|
OK, it's right, but what about Network environment (not web) without browser ?!!!
H.R
|
|
|
|
|
i want to know that suppose there is a small pic showing in a page and i want that when i will over my mouse over that pic then a large version of that image will be shown in a inline popup.inline popup means DIV here.plzz give me the guidance that how could i do it.
tbhattacharjee
|
|
|
|
|
Check-out this link..
Opensource Javascript - Box Toolkit[^]
You can use "LightBox" javascript library to achieve this goal.. All you need to do is that link to the lightbox JS lib. and put "rel="lightbox"" in image. then, you will see what you wanna see..
Hope it helps..
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.
|
|
|
|
|
i was doing crystal reports .for that i searched on google.there i saw the options that comes under Using The expert Options.
Generally , we see three options
Standard
Cross Tab
Mail Label
but there in the following page i saw seven options, Where did they came from?
http://aspalliance.com/articleViewer.aspx?aId=215&pId=[^]
Standard
Cross Tab
Mail Label
Form Letter
Form
Sub Report
Drill Down
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|