|
That can't be done. When the server side code runs, the client side code doesn't exist any more (or rather, is doomed to be replaced by the page that the server side is creating).
If you want to run some code server side, then some code client side, you have to make the server side code output client code to be run when the next page loads in the browser.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
i have created one java script file through asp.net.i also refer this page in html page.but at the time of first login it can create the java script file and it was refered by the html page.but when i click the next time the file was created.but the html page refered the old file.how to rectify it?
|
|
|
|
|
The file is cached by the browser. You can prevent this by changing the url of the file, for an example by adding a parameter containing a timestamp, a random number or a counter.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
i also used Response.Cache.SetNoStore()
but still it uses the old one.
|
|
|
|
|
The cache setting of the page doesn't affect how the additional files that the page loads are cached.
---
b { font-weight: normal; }
|
|
|
|
|
Actualy my problem is
in my login page according to the user name it will fetch the user rights from the database.depending upon the user rights a new javascript file will be created in the working dirctory(c:\inetpub\wwwroot\myappln\lib\jest.js).that javascript file is refered in the index page.first time it was corectly loaded.but when i click the logout button and login with another user,the new javascript file was creted according to this user rights.but in the index page it refer the previous user javascript file.so each time i want to close the browser then login to the new user.
suppose if i save the javascript file in c:\ it was working propoerly even for the new user with out closing browser.
i expect the valuable answer.
Thanks
|
|
|
|
|
See my first reply in the thread for the answer.
If anything is unclear, you have to explain what it is, in order for someone to be able to help you.
---
b { font-weight: normal; }
|
|
|
|
|
I have install Team Explorer in order to use MICROSOFT TEAM SUIT.
I have already install Microsoft Visual Studio 2005 but problem is i don't get
Team Test Settings. Please help me , i want to do unit testing in my Project.
aLi
|
|
|
|
|
How can i integrate payment gateway with my website.
what are u formalties?
Can i test it for free somewhere before actualy buy it.
please help
Regards
|
|
|
|
|
For payment gateway, you have to register and get a vendor account with the provider. They will also provide you the APIs to connect to their secure site and yes, sample code which help you. They should also provide you dummy card numbers to test your application before you make it live.
hope this helps.
- ashish
|
|
|
|
|
That means that without payment and registration i cant test it
anyway thanks
Regards
|
|
|
|
|
You could use Paypal.
They have a sandbox where you can test your application without any real charges being made against a credit card.
They also have very straight forward information on how to integrate payment into your website.
Here are some of the links I used to find out how to do it.
http://www.devsource.com/article2/0,1759,1766266,00.asp
http://paypaltech.com/PDTGen/
http://www.paypaldev.org/default.asp?CAT_ID=3
|
|
|
|
|
Hi,
Just I tried to Modify my table data using dataset...
It did not show any error.. but not updating data..
I could not find the problem where I did..
Please help me...
Dim DSet As DataSet
Dim Con As New SqlConnection(GetConnection)
Dim DAdapter As SqlDataAdapter
Dim DTble As DataTable
Dim Qry As String
Dim CmdBuilder As SqlCommandBuilder
Dim DRow As DataRow
Con.Open()
DSet = New DataSet
Qry = "SELECT * FROM BATCHES where [batch code]=15"
DAdapter = New SqlDataAdapter(Qry, Con)
DAdapter.Fill(DSet, "Batches")
DTble = DSet.Tables("Batches")
DRow = DTble.Rows(0)
DRow.BeginEdit()
DRow("Stock") = DRow("Stock") - 1
DRow.AcceptChanges()
DRow.EndEdit()
CmdBuilder = New SqlCommandBuilder(DAdapter)
DAdapter.Update(DSet, "Batches")
Regards
latha
|
|
|
|
|
Hey,
im building a page using asp.net (c#).
I have never done it before but would like to build a search feature that searches my mysql database and returns relevant results.
I have searched the net for help and found some tutorials, altough they are not that good. While in the beginning the search would not be used much its my hope to be getting a lot of people using the search function eventually, so I would like to build it using the best approach so I will not have any bad problems or errors down the line.
Does any one know of any good articles, or tutorials that could help me out?
thankyou.
|
|
|
|
|
Since your search function is simply going to query a database for results, consider this as you would any other MySQL data-access request. You'll have a SELECT statement that supports parameters for retrieving records from your MySQL database. The parameter values will be supplied by your user by entering "whatever" in your "Search" box. You'll execute the query and bind the results to whatever makes sense for your search results (e.g. a GridView, or DataList, or Repeater... depending on how you want the search results to display).
|
|
|
|
|
Dear all,
Is there anyone who can help me about CallbackEventHandler basic sample code which has the logic of loading a value without refreshing the page.....please do some help....as Im studying...the logic of getting it processed.
thanks in advance
apol
|
|
|
|
|
How i can select a single cell from asp.net grid on click event of mouse ??
plz help
jagmit
|
|
|
|
|
I think you are going to have to give a little more information on what you wish to accomplish in order for us to help you more.
Where is the click event coming from? A linkbutton in the grid? or are you talking about adding a onclick event to a datacell?
Cheers
Disgyza
Programmer Analyst
|
|
|
|
|
Hi all
I am trying SQL to XML means i want to store SQL table records in XML
And
Again XML to SQL
Can any one give me an idea
Than Q
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
What database server are you using? Is it SQL Server
|
|
|
|
|
Hi THX for reply
Yes it is SQL server
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Now, can you provide an example of what is it that you want?
|
|
|
|
|
In sql server i have an table called "WW"
That table records i want to copy to XML file (WW.xml)
I done the SQL to XML like this
Dim dsn, sqlEmp As String
dsn = "Provider=SQLOLEDB;server=;uid=;pwd=;database=Test"
sqlEmp = "select * from WW"
Dim connection As New OleDbConnection(dsn)
Dim command As New OleDbDataAdapter(sqlEmp, connection)
Dim dsCustomers As New DataSet
command.Fill(dsCustomers, sqlEmp)
dsCustomers.WriteXml(Server.MapPath("WW.xml"))
It will transfer all the records to XML file
Now i want to this XML file to transfer to SQL server New Table
How can i do this
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Hi Friend,
I Envisage the <new table=""> has two Columns.
Private Con As SqlConnection
Private Com As SqlCommand
Private DSET As DataSet
Con = New SqlConnection("Your Connection String")
Com = New SqlCommand("Insert <newtable> Values(@ID,@Name )", Con)
'/*** If the TWO column are String Type ***/
Com.Parameters.Add("@ID", SqlDbType.VarChar, 5)
Com.Parameters.Add("@Name", SqlDbType.VarChar, 50)
DSET = New DataSet()
DSET.ReadXml("<path here="">WW.xml")
Dim R As Int32
Con.Open()
For R = 0 To DSET.Tables(0).Rows.Count - 1
Com.Parameters("@ID").Value =DSET.Tables(0).Rows(R)(0)
Com.Parameters("@Name").Value =DSET.Tables(0).Rows(R)(1)
Com.ExecuteNonQuery()
Next
Con.Close()
With Regards,
Pandian S
|
|
|
|
|
Hi THX for reply
Plz can u chk u this what wrong here
It is giving this ERROR ------ Declare "@code"
Dim Con As OleDbConnection
Dim Com As OleDbCommand
Dim DSET As DataSet
Con = New OleDbConnection("Connection String")
Com = New OleDbCommand("Insert into ww Values(@Code,@Month))", Con)
Com.Parameters.Add("@Code", OleDbType.VarChar, 200, "@Code")
Com.Parameters.Add("@Month", OleDbType.VarChar, 200, "@Month")
DSET = New DataSet
DSET.ReadXml(Server.MapPath("WW.xml"))
Dim R As Int32
Con.Open()
For R = 0 To DSET.Tables(0).Rows.Count - 1
(ERROR) Com.Parameters("@Code").Value = DSET.Tables(0).Rows(R)(0)
Com.Parameters("@Month").Value = DSET.Tables(0).Rows(R)(1)
Com.ExecuteNonQuery()
Next
Con.Close()
-- modified at 2:00 Wednesday 16th August, 2006
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|