|
try ur code on key press event
if(e.keychar>=67 && e.keychar<=90)
{
e.handed=true;
}
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
it is giving error
'System.Windows.Forms.KeyPressEventArgs' does not contain a definition for 'keychar'
software student
|
|
|
|
|
this is the code.
private void keypress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar >= 67 && e.KeyChar <= 90)
{
e.Handled = true;
}
}
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
I made a page using CreateUserWizard but I restrict it for Admins only. The problem is when an Admin create an account for the new user, after completing the steps, it automatically change the logged in Admin to the new created account. Is there anyway not to login after creating an account? Except for the Security setup wizard on ASP.NET Configuration.
Thanks!
|
|
|
|
|
what code u r writing ?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
I'm using Visual Studio 2005 and I'm writing ASP.Net pages. CreateUserWizard is very easy to use but I don't know how to change the settings so that after creating a new User, it will not automatically log-in on the user... Only Admins could create a new user.
|
|
|
|
|
Can you copy over the aspx code here?
<< >>
|
|
|
|
|
I want to do it for Drag & Drop & upload.
i want to drag a file from my desktop & drop on my web page.
Can i getimage path,image which i dropped.
it will be a dynamic file may be some image, text file or anything.
Thanx In Advance.
|
|
|
|
|
You'll need to embedd an activeX or .NET control into your page in order to offer this functionality, you can't do it otherwise.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Thank you for your reply.
I was not think about window application. I want to Drag file from client's machine (e.g. Desktop) and Drop it on the web page. and upload it. Please try the code below in html file
http://www.codingforums.com/showthread.php?t=36896
I want same as above but I want to see all dragged images on web page in thumbnail format and the upload.
Thanks in advance.
|
|
|
|
|
hi
I am using asp.net 1.0.
My problem is, button click event firing two times wen i click one it.
how i solve this issue??
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
A button event generates a postback. There is no way you're getting two click events for one click, there's something wrong in your code. Try posting it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello vipin,
I think the problem has arised due to the HTML design so plz check ur design. and also bcoz of the events that r fired when the page is created like initalze component(),page load,rendering... etc
ok try like that u will get byeee
Murali
|
|
|
|
|
Whenever I try to connect to the PUBS.MDF database, a login failed error message will appear.
I defined the connection string in the web.config file under the connectionstrings section like this:
[code]
add name="Pubs" connectionString="Data Source = localhost\SQLEXPRESS; Initial Catalog=Pubs;Integrated Security=SSPI"
[/code]
And setup the connection in the click event of a button:
[code]
Dim connectionString As String = WebConfigurationManager.ConnectionStrings("Pubs").ConnectionString
Dim myConnection As New SqlConnection(connectionString)
myConnection.Open()
..........
[/code]
And I put the PUBS.MDF file in the same folder as the vb source files.
How do I connect to the database correctly?
|
|
|
|
|
KaKa` wrote: add name="Pubs" connectionString="Data Source = localhost\SQLEXPRESS; Initial Catalog=Pubs;Integrated Security=SSPI"
This looks for a named instance of SQL Server called SQLEXPRESS, and then tries to find a DB called pubs in there. It sure as hell isn't going to find a file called 'pubs.mdf' ( which is an access database )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
what is the database extension supposed to be?
I downloaded it from the microsoft website and it states that these databases are for sql server 2000.
|
|
|
|
|
hello,can we download a .exe file without entering into a website,is it possible,i think we can do that by using RMI,but 'm not sure
can u pls help me out,as soon as possible...
Regards
shilpa
|
|
|
|
|
Not sure exactly what you mean - for a client to download a program, they need to request it from a web page, or connect to a site via an FTP program. You can't download a program without a program on the client end attempting the download, via HTTP or FTP, or via a web service call ( which is HTTP anyhow )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Is it., After getting regular expression, still he don't know how to integrate that with javascript,. it's shame on him. He can integrate this expression with javascript and that will give the result what he expected..
This is the article u have posted ystrday... See , this is the place to share ideas but not keep a Group Discussion or a quarllying place ok.. If we dont know we can post the article and share the doubts but wat is there to feel ashame ...So, plz dont use this kind of terminlogies...We need to help each other then only knowledge will be gained.
This applies to to even SSK also...
ok Murali....
Murali
|
|
|
|
|
1 - never post personal messages as new posts, the odds are that navneeth won't see this, because of other posts that will occur
2 - Goodness knows what you're talking about here. I am sure the terminology he used was correct, it's not his fault you didn't understand it ( assuming I've read you right ).
3 - If you google, you'll find out how to use regex in javascript, it's widely documented.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi, the following code shows how to write Binary files to the browser using ASP.NET.
<br />
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)<br />
'Set the appropriate ContentType.<br />
Response.ContentType = "Application/pdf"<br />
'Get the physical path to the file.<br />
Dim FilePath As String = MapPath("acrobat.pdf")<br />
'Write the file directly to the HTTP content output stream.<br />
Response.WriteFile(FilePath)<br />
Response.[End]()<br />
End Sub<br />
Do I need the line Response.ContentType = "Application/pdf" in order to write the binary files to the browser? If so, how do I modify it so that it would aslo support other binary file types? Please show a sample code if you can. Thanks for your help.
|
|
|
|
|
ASPnoob wrote: o I need the line Response.ContentType = "Application/pdf" in order to write the binary files to the browser?
If it's a PDF, yes.
ASPnoob wrote: If so, how do I modify it so that it would aslo support other binary file types?
Google for the list of MIME types that IE supports, and change your text according to the file type you're trying to send.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Well, here I sit with a "classic" ASP site. My boss has now dropped the other shoe, as it were, and let me know I have "CAC" the site. A CAC is a card with a bit of circuitry in it that identifies the user. The only way I know of to do this is with ASP.Net.
Now, I absolutely cannot re-factor the site from classic ASP to .Net (as much as I'd like to), so I have to write a .Net access security wrapper that keeps non-authenticated users from getting to the actual site.
I don't see any reason why this wouldn't work. Indeed, we already have the .Net code already written, but for a 100% .Net site we did last year. However, I thought I'd pop in and ask if anyone can think of a reason that I can't do what I need to do.
Comments?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Why do you need .NET, is there a .NET control offered by the manufacturer of the card ?
The only issue with using .NET and classic ASP in the one site is if you need to share session state. There are various solutions to this problem on the web. I would imagine that any 'security wrapper' needs to pass session data, b/c you sure need a way to tell your asp site that any security check has passed.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|