|
i have a form in that
if my curser is there in textbox then i pree backspace then the form will go back page, but my focus will be ther in the form then my backspace is want to disable
please tell me ans, it's argent
bjayakumar
hyd
india
|
|
|
|
|
use window.focus(); ( javascript)
Best Regards,
Haissam Abdul Malak
My Blog
|
|
|
|
|
in your form
RegisterStartupScript("setFocus", Utilities.SetFocus(txtName))
in global
Public Function SetFocus(ByVal FocusControl As Control) As String
'Setting focus to supplied control
Dim Script As New System.Text.StringBuilder
Dim ClientID As String = FocusControl.ClientID
'Building java script
With Script
.Append("")
.Append("document.getElementById('")
.Append(ClientID)
.Append("').focus();")
.Append("")
End With
Return Script.ToString()
End Function
================================================
http://www.programmingknowledge.com/[^]
================================================
|
|
|
|
|
anyone help me
how to pass parameter to store procedure in asp.net. I using sqlserver
venkat
|
|
|
|
|
if u want to create store procedure thn follow this
create procedure dbo.InsertPackageExtras<br />
(<br />
@vcPackageCode nvarchar(10),<br />
@inDays int,<br />
@inNights int,<br />
@txAllPlaceNames ntext,<br />
@btHaveImages bit,<br />
@btHaveMaps bit,<br />
@btHaveBanners bit,<br />
@vcCreatedBy nvarchar(255),<br />
@dtCreationDate datetime,<br />
@vcUpdatedBy nvarchar(255),<br />
@dtUpdationDate datetime,<br />
@txHistory ntext <br />
)<br />
AS<br />
BEGIN<br />
insert into PacakageExtras<br />
(<br />
vcPackageCode,<br />
inDays, <br />
inNights, <br />
txAllPlaceNames,<br />
btHaveImages, <br />
btHaveMaps, <br />
btHaveBanners, <br />
vcCreatedBy, <br />
dtCreationDate, <br />
vcUpdatedBy, <br />
dtUpdationDate, <br />
txHistory <br />
)<br />
values<br />
(<br />
@vcPackageCode, <br />
@inDays, <br />
@inNights, <br />
@txAllPlaceNames,<br />
@btHaveImages, <br />
@btHaveMaps , <br />
@btHaveBanners, <br />
@vcCreatedBy, <br />
@dtCreationDate, <br />
@vcUpdatedBy, <br />
@dtUpdationDate, <br />
@txHistory <br />
)<br />
end
and if u want to insert record into above store procedure thn follow this
SqlCommand sqlcmd = new SqlCommand("InsertPackageExtras", sqlconn);<br />
sqlcmd.CommandType = CommandType.StoredProcedure;<br />
sqlcmd.Parameters.Add("@vcPackageCode", SqlDbType.NVarChar).Value = PackageCode;<br />
<br />
<br />
sqlcmd.Parameters.Add("@inDays",SqlDbType.Int).Value = Days;<br />
sqlcmd.Parameters.Add("@inNights",SqlDbType.Int).Value=Nights;<br />
sqlcmd.Parameters.Add("@txAllPlaceNames",SqlDbType.NText).Value =AllPlaceNames;<br />
sqlcmd.Parameters.Add("@btHaveImages",SqlDbType.Bit).Value=HaveImages;<br />
sqlcmd.Parameters.Add("@btHaveMaps",SqlDbType.Bit).Value = HaveMaps;<br />
sqlcmd.Parameters.Add("@btHaveBanners",SqlDbType.Bit).Value =HaveBanners;<br />
sqlcmd.Parameters.Add("@vcCreatedBy",SqlDbType.NVarChar).Value="deepak"; <br />
sqlcmd.Parameters.Add("@dtCreationDate",SqlDbType.DateTime).Value= DateTime.Now;<br />
sqlcmd.Parameters.Add("@vcUpdatedBy",SqlDbType.NVarChar).Value="deepak";<br />
sqlcmd.Parameters.Add("@dtUpdationDate",SqlDbType.DateTime).Value=DateTime.Now;<br />
sqlcmd.Parameters.Add("@txHistory", SqlDbType.NText).Value = "history";<br />
sqlconn.Open();<br />
sqlcmd.ExecuteNonQuery();<br />
sqlconn.Close();
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
passing parameter to stored procedure is similar to passing parameters to sql query the only difference is here you use the symbol @before the parameter name
sample code is shown beloce where "@categoryname" is the parameter which needs to be passed to the stored procedure
MyCommand.SelectCommand.Parameters.Add(New SqlParameter("@CategoryName", SqlDbType.NVarChar, 15))
MyCommand.SelectCommand.Parameters("@CategoryName").Value = SelectCategory.Valu
e
enjoy...
|
|
|
|
|
Please provide me the link from where i can download Atlas Controls.
Mads
|
|
|
|
|
|
You can download Asp.net Ajax Framework(Atlas controls) from it's official website http://ajax.asp.net
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
hi
Guys i am facing a problem, when i am uploading the file i am uploading it in CSV format but when i am opening it ,the browser gives me the alert of open or save in xls format , wht's going wrong,can any one let me know plzzzz reply ASAP.
|
|
|
|
|
sorry i want to open it in CSV format when i am opening the file not in any other format.
|
|
|
|
|
It's opened based on the mapped application for that extension on the user's computer.
|
|
|
|
|
it's not your problems.. you can configure it by going to tools/Folder Options navigate to File Types locate the xls format and click advance and check the BROWSE IN SAME WINDOW and remove confirm open after download
Best Regards,
Haissam Abdul Malak
My Blog
|
|
|
|
|
Hi Friends,
I am having a problem. I have been working in web application and its taking too long time( as an experiment I used a stopwatch to get the time 20 seconds ... ) http://colspace.sytes.net:999/rdemo/[^]
I veryfied the time it takes in server side ... its 0.01-0.02 seconds.(The time gap between page_load and pre_render)
But in client side starting from the HTML line 1 to end of the HTML its taking almost 18-20 seconds.
Can anyone please tell me what are the steps can be taken to load page faster in browser?
I have been using
1. ASP.NET 2.0
2. Master pages.
3. ICallBackEventHandler
4. The home page thats taking 20 seconds is having lots of images and sizes sumes upto 150 KB.
Thanks in advance,
Arindam
|
|
|
|
|
Have you tried a profiler?
The problem seems to be the number of images on your home page.
|
|
|
|
|
What is Profilers .NET? I am not quite aware of it. If you can give me bit more info regarding this profiler it would be much helpfull.
And images part I have beening working on. Trying to reduce the image size.
Anyway Thanks for the suggestion
Arindam
|
|
|
|
|
|
|
hi all,
am developeing a webportal ,inthis application i do provided login,regestration ........pages.I want to have a feature that when ever a new user regestered in our portal ,the regestered informtion(some information like his name,address...) must send to my mobile as sms .
could anybody sujjest the solution or plz let know some URL's regording this issue....!
yuvachandra
|
|
|
|
|
|
thanqs for replay...!
but the stuff u given not working properly man....could u suggest any better approch...plz,it's urgent for me..
|
|
|
|
|
Hello technicals
i m new to crystal reports,so i dont even know
"How can i display 20 records in detail section per page in crystal reports."
From one of the site i come to know that
First create a record counter.
Then change the format option of the detail area and choose a formula on new page before. The result has to be true: {#Counter} = 20
but i dont even know
"How to create a record counter in crystal reports.And also how to set its value."
pls guide me...
|
|
|
|
|
hi all,
i want to upload files or folders on my server with the use of drag and drop functionality. the files may be one by one draged and droped in a listbox where the whole path of the files should get copied. and then on pressing upload button all the files listed in list box should be uploaded on my server.
pls give me code for the same. its urgent.
i am using VS-2005, asp.net,vb.net
thanks in advance for help.
regards,
gauri
|
|
|
|
|
hi all .
iam a new user of this site. if anyone kindly send me some basics or site address featuing how to design any web mail server like yahoo, rediff etc. using .net and how much time it require to design a simpler one
prashant jain malviya national institute of technology
|
|
|
|
|
HI
I have got some error while connecting Sql Server 2000 from ASP.NEt 2.0
i.e My ASP.NET Application and SqlServer 2000 are avaliable in diffrent machine.I remotly connecting the sql server 2000.
I am getting the following error
"System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at _Default.click_Click(Object sender, EventArgs e) in d:\WebSite2\Default.aspx.cs:line 27"
Please send me ur sugessions.
Thanks
Paul
|
|
|
|
|