|
just use a FileUpload control and block the keypress JS event handler
onkeypress=”javascript: return false;”
FileUpload1.Attributes.Add("onkeypress","javascript: return false;");
Calin
|
|
|
|
|
Hello!
I´ve used asp:panel for rendering divs I need to manage from code-behind. I recently heard asp:panel can render into table on some browsers. Is this true, and which browsers would that be?
modified on Friday, February 13, 2009 8:56 AM
|
|
|
|
|
livez wrote: I recently heard asp:panel can render into table on some browsers. Is this true,
All Server side control rendered to HTML Control.
|
|
|
|
|
yes of course, but I was under the impression asp:panel rendered into div.
|
|
|
|
|
|
Thanks for your reply!
Guess I´m just gonna use divs with runat=server instead.
|
|
|
|
|
How can we open the Popup window while clicking SWF Object. Is it Possible. I want to open a popup window while clicking an embeded object.
|
|
|
|
|
|
Hello
i want searching code in database
mu application in id, name ,city three fields in one table from database
but user input name or id or city (any one)at that time give result
plz give me code thanx.,.,
|
|
|
|
|
hi JAS
I dont know where to start , because i dont know how much you know about what you just asked, but from the Info you gave i assume you want to search your table based on ID or City and return a something like Zipp code, well in my Country we call that postal code. So that can be done the First thing you have to create a Stored Procedure that that will do that for you like this
CREATE PROC PRCGETCODE
(
@CITY INT,
@CITY_CODE INT OUTPUT
)
SET @CITY_CODE(SELECT TOP 1 CODE FROM WHERE CITY = @CITY)
............
............. RETURN A CODE OR ZERO, TO GET RID OF NULLS
...............
and in your C# code do something like this
con = new SqlConnection(constring);
cmdselect = new SqlCommand();
cmdselect.CommandText = "DBO.PRCGETCODE";
cmdselect.CommandTimeout = 0;
cmdselect.CommandType = CommandType.StoredProcedure;
cmdselect.Connection = con;
int City_Code= 0;
try
{
con.Open();
City_Code = cmdselect.ExecuteNonQuery();
}
catch (SqlException)
{
throw;
}
finally
{
con.Close();
}
return City_Code;
}
and later you bind your result to a control, hopefull not Gridview , because this is one value lol!!!!!!!!
Hope i helped
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Hello Everybody
I am using FormsAuthentication on web.confiq file.
I want to send back to previus page if login successful from login.aspx
Thanks
Sarfaraj
Sarfarj Ahmed
|
|
|
|
|
Hi,
I have created a VS2005 webservice with WSE3.0 (UsernameToken, Policies & SoapHeader). While access & run the service in local, its working fine. I have successfully deployed into the server. But when I try to access one of the WebMethods from the service in my local application, I am getting the following error :
WSE910: An error happened during the processing of a response message, and you can find the error in the inner exception. You can also find the response message in the Response property.
How to resolve this? Thanks in advance
|
|
|
|
|
Hai Friends,
I am using membership table for new user creation.I want to get the password of a logined user.How is it possible.I set password format in webconfig to Hashed.So an error of not decode hashed password is occur.How can i get the users password so that i want to check the user entered correct password.Please help me.I need it urgently.
|
|
|
|
|
SreejithAchutan wrote: I need it urgently.
Of course it's urgent, however, it is very bad form to declare it in you post. This a volunteer site, people volunteer their time to answer questions, it isn't their primary job. Have a little respect for that.
To answer your question, you can't get the password, it's hashed for that purpose. What you can do is compare the hash values for the passwords to check them.
only two letters away from being an asset
|
|
|
|
|
I've a crystal report of VS 2005. I'm showing date field in that report. I've set the dd/mm/yyyy format for that field. If I run the aplication, it is showing the expected format (dd/MM/yyyy). But If I run after deploying the setup, It is showing mm/dd/yyyy format. I want dd/MM/yyyy formate.
I set my format in regional settings also.
Pls help me. Thanks in adv.
Balasubramanian K.
|
|
|
|
|
Hi,In my project i want to display todays birthday names in page load event.
I created a field called birthday in sql. It stored as date and time. Now i want to compare only the datepart of birthday with datepart of getdate()?
I write the query like this. But it got some errors.
select (datepart(dd,getdate()),datepart(mm,getdate()),datepart(yy,getdate()))=(datepart(dd,cre_date()),datepart(mm,cre_date()),datepart(yy,cre_date())) from photos
Can anyone correct this?
|
|
|
|
|
Declare @TodaysDate As DateTime
Set @TodaysDate = convert(varchar,GetDate(),101) --only datepart
Select * from photos
where convert(varchar,YourDateColumn,101) = @TodaysDate
|
|
|
|
|
S. Its working in sql. Thank u. Can u explain how to call it from Asp.net?
|
|
|
|
|
I am not sure what you meant by
Karthick_gc wrote: how to call it from Asp.net?
Since, the date information is stored in the database you might want to do the processing in SQL (SQL function or stored proc) or directly execute a query. Take a look at Ado.Net.
|
|
|
|
|
HI All,
I am trying to Mask Url.
For Example inpalce of WWW.abc.com/Home.aspx Or Www.abc.com/Contact.aspx
it should come www.abc.com/pg .
That means it should not show www.abc.com/*.aspx.
Please suggest me how to do.
Thanks in advance
Subi
|
|
|
|
|
That is called as URL rewriting.
subrat4all wrote: That means it should not show www.abc.com/*.aspx.
If you are on IIS6.0, you have to create a directory named "pg" and put one index file. So you can access www.abc.com/pg and the default file will be loaded.
IIS7.0 allows you to create true extension-less URLs. Another option is to use ASP.NET MVC which produces extension-less URLs.
|
|
|
|
|
But How to do ???
Please write me
|
|
|
|
|
hello,
thanks for the people who gave me advice and help to solve my problems.
i did my application well, its working
now i need to deploy my web application,
i follow
File->Add Project->New Project from the main menu.
From the Project-->Setup and Deployment Projects-->Web Setup Project and i gave name
then
a File System Editor window appears
i Select Web Application Folder in the left pane in this window
then
From the Action menu i select Project then add project output then a Output Group dialog box appears with no data in it..
what will be the problem,
when i search in net the Output Group dialog box appears with some data in it.
could anyone help me?
self confidence+hard work=SUCCESS
|
|
|
|
|
How to retrieve a password in c#
|
|
|
|
|
wont you store it in DB?
self confidence+hard work=SUCCESS
|
|
|
|