|
do you want to show the alert from javascript? Cheers!!
Brij
|
|
|
|
|
Use a button column or template column and specify the onclick even handler for client-side processing or handle the event on the server-side I know the language. I've read a book. - _Madmatt
|
|
|
|
|
ya i used template column for the button and assign the event handler.
and when i clicked on button it goes to that event.
but i want to know the row index of that row where the button is located(which get clicked)
can you provid me code .....
actualy, i am showing the booking status in that gridview,first the status is 'in process'
after clicking on button which is in gridview, it should the modal popup,in modal popup
after clicking on 'ok' button, the status of booking should replaced with 'cancel req.'
and for this purpose i want to know the row index of that gridview...
so please, help me...modified on Thursday, February 11, 2010 12:34 AM
|
|
|
|
|
thanks to all of you by helping me
i the problem get solved by me...
i get the rowindex of the button by rowIndex of button's parent's parent
this is written at the event which is assigned to the button at design time in template column...
i.e.
Protected Sub btnCancelClick(ByVal sender As Object, ByVal e As System.EventArgs)
Dim intRowIndex as Integer=sender.Parent.Parent.RowIndex
End Sub
BUT THANKSSSS To all of You....!
|
|
|
|
|
Hi,
I have developed small web application using ASP.Net and MySQL. I need to access this application using IP address from my friend system(In Office). Is it possible? I am having Windows XP.
Note:
From Windows 2003 Server I am hosting that web application and changed localhost to IP Address and its possible to access from others system. (ie) Server IP address (http://192.145.1.20/VDR/Login.aspx)
How to acheive by Windows XP with IIS?
Thanks,
Subbu
|
|
|
|
|
no this is not possible in windows xp.
|
|
|
|
|
How to stop the submit behavior of a Button(Server Ctrl)
|
|
|
|
|
Attach onClientClick event in at client side and call a javascript method which return false. Cheers!!
Brij
|
|
|
|
|
Hi..
We need to create a grid view control with multi column sorting with Up and Down Icons in header, can you give me a reference article for it.
Thanks,
Abbas
|
|
|
|
|
For sorting just have a look
msdn
For images,you can put the images in header,put both image up and down and show them according to the current behavior.At server side you can maintain the sorting type in some viewstate property.Cheers!!
Brij
|
|
|
|
|
|
Cheers!!
Brij
|
|
|
|
|
Could you solve? I had exactly the same problem, only i wanted to have the icons in the rows
|
|
|
|
|
Hi everybody
I have implemented a website to post messages and replies to those messages
now I want to allow users to enter programming source codes.
how I can do this.. I mean is it possible to implement a control like here in code project...
Please help me...
Thankyou...
|
|
|
|
|
There is no such control here. You just paste or write the text and apply a style to it. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi what im askin myself is how i can sort my gridview depending on the rank column in the database?
Its Loos like this
http://img2.immage.de/09028ecclientpic.jpg
I want to move rows up and down in a GridViewmodified on Tuesday, February 9, 2010 9:40 AM
|
|
|
|
|
I solved it(;-
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Up")
{
int i = int.Parse((string)e.CommandArgument);
GroupAdapter.Update(Convert.ToInt32(GridView1.DataKeys[i - 1].Values[0].ToString()), i + 1);
GroupAdapter.Update(Convert.ToInt32(GridView1.DataKeys[i].Values[0].ToString()), i);
BindData();
}
else if (e.CommandName == "Down")
{
int i = int.Parse((string)e.CommandArgument);
GroupAdapter.Update(Convert.ToInt32(GridView1.DataKeys[i + 1].Values[0].ToString()), i);
GroupAdapter.Update(Convert.ToInt32(GridView1.DataKeys[i].Values[0].ToString()), i + 1);
BindData();
}
}
|
|
|
|
|
Hi,
I want to do screen scraping i.e to get the data from a particular site after post back.
e.g
1)www.funjet.com
2)enter the origin and destination in the saerch criteria on the left
3) Get teh Avaibility page , and not to scrap the required data.
Need to perform the above operation through the code.
|
|
|
|
|
|
hi,
i want to use "System.DirectoryServices.AccountManagement" this dll.
The problem is that when i am trying to add this throug addreference that time this dll is disable.
Any solution how to enable this one.
|
|
|
|
|
The problem is that this is a 3.5 .NET dll.
If your asp.net website uses a lower .NET version, then all dlls you can't
add (because of the version) become gray and you can't add them.
Greetings
Covean
|
|
|
|
|
hii am using web service in my application.i added web refrence.now i am trying to use
it in my code.actually it is temperature conversion web service.
the code is:
Protected Sub ConvertButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ConvertButton1.Click
Dim wsConvert As localhost.Convert()
Dim temperature As Double = System.Convert.ToDouble(TemperatureTextBox.Text)
FarenhiteLabel.Text = wsConvert.FahrenheitToCelsius(temperature).ToString()
End Sub
but i am not getting the function FahrenheitToCelsius()
plz guide me where am i wrong...
|
|
|
|
|
did you declare webmethod in webservice on the top of method..!
If yes Show your Webservice method full in code block..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
It'll be better if you post webservice code. Cheers!!
Brij
|
|
|
|
|
web service code:
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class Convert
Inherits System.Web.Services.WebService
<System.Web.Services.WebMethod()> _
Public Function FahrenheitToCelsius(ByVal Fahrenheit As Double) _
As Double
Return ((Fahrenheit - 32) * 5) / 9
End Function
<System.Web.Services.WebMethod()> _
Public Function CelsiusToFahrenheit(ByVal Celsius As Double) _
As Double
Return ((Celsius * 9) / 5) + 32
End Function
End Class
implementation code:
Partial Class Default4
Inherits System.Web.UI.Page
Protected Sub ConvertButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ConvertButton1.Click
Dim wsConvert As localhost.Convert()
Dim temperature As Double = System.Convert.ToDouble(TemperatureTextBox.Text)
FarenhiteLabel.Text = wsConvert.FahrenheitToCelsius(temperature).ToString()
'wsConvert.FahrenheitToCelsius(temperature).ToString()
' CelciusLabel.Text = "Celsius To Fahrenheit = " & _
' wsConvert.CelsiusToFahrenheit(temperature).ToString()
End Sub
End Class
|
|
|
|