|
Hi, I have a Datagrid and I added the Template Columns for edit,update, cancel and delete.The problem is that when I press either the edit or the delete button, the datagrid dissapears.This is the code for the edit event
DataGrid1.EditItemIndex = e.Item.ItemIndex;
DataGrid1.DataBind();
Thanks
|
|
|
|
|
Solved..i wasn't extracting the dataset from Session;
|
|
|
|
|
Hi,
Plz can somebody help me what to do to get the sales tax amount in a shopping cart. That is in US they have a different sales tax for different states. So we cant calculate it manually.
Sparkling star
|
|
|
|
|
There is no easy way to do it, you are going to have to find a list of sales taxes and lookup the proper rate for the users indicated state.
only two letters away from being an asset
|
|
|
|
|
Hi to all,
i had use this code for got html source of any page for downloading purpuse, but now i have faces a problem when i run my application then some time this function don't return html source.
In my application i am using a loop for getting html source code for 10 page so i write a while loop and call this function GetHtmlSource for html source now when i debug it then seen that randamly leave one or two page which is not getting html source code if i run two times then it leave diffrent page on both time not same page so i don't understand why this could happen, where as i send right url all time within loop.
if any body have any clue plz send ASAP.
i need it urgent plz.
Public Function GetHtmlSource(ByVal url As String) As String
Dim objWebClient As New System.Net.WebClient
Dim aRequestedHTML() As Byte
Dim strRequestedHTML As String
Try
objWebClient.BaseAddress = System.String.Empty
aRequestedHTML = objWebClient.DownloadData(url)
Dim objUTF8 As New UTF8Encoding
strRequestedHTML = objUTF8.GetString(aRequestedHTML)
Return strRequestedHTML
Catch ex As Exception
strRequestedHTML = ex.Message
End Try
End Function
thanks in advance
arvind
|
|
|
|
|
Hi
i am having a menu which is in div control. my menu is having submenu. so, the sub menu is not visible. because menu is placed in div (div is a container, so sub menu is going inside of the div. how to make submenu visible. please help me . if anyone provide code for this it would be appreciated
Thanks a crore in advance
Thanks and Regards
Venkat
|
|
|
|
|
Not sure, I understand you clearly, but from my understanding,
you should define your submenu in a separate div, and giv that div a bigger z-index than the one of the menu's div
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
sir,
Which class should be imported to get the Register Startup Script .
|
|
|
|
|
It is there in system.web.ui.page
are you getting any compile time error?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Sir,
There is no error
But when i write page.
Then the Register Startup Script is not comming.
|
|
|
|
|
In .net 2.0 it's under Page.ClientScript.Registerclient... etc.
|
|
|
|
|
Use this to put the client side script:
Page.RegisterClientScriptBlock
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
Is there any way (Server side/Client side) to know any of the server control in a page is edited by the user.
I am having a situation in my project where I want to enable my save button only if user edit any of the control in a page(There are many controls in the page).
Please show me the right way. Thanks in advance.
Thank You,
RPM.
|
|
|
|
|
If you want to do it client side then one way could be you can all the initial data in array and can compare prior to go to the server.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva Kaushal,
Thanks a lot for the quick response and information.
Can you please provide me some code snippet as an example.This would help me.
Thanks again,
RPM.
|
|
|
|
|
You can use hiddenfield to store the data and in javascript you can compare with the current value and do the operations.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva Kaushal,
Thanks a lot for the guidance and showing me the right way..
I will try this..
Thank You,
Siju Thomas.
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi.
i have a prblm while i try to read the image from sqlserverdatabase 2000 and showing in asp.net datagrid,on backend i m using vb.net.the error in "invalid Casting" tell me how can read the image from database and show in my asp.net datagrid.
this is my code that i use to pull the image from sqldatabase.
public funciton bindata()
Dim connstring As String = ConfigurationSettings.AppSettings.Item("DBSettingsServer")
Dim con As SqlConnection
Try
con = New SqlConnection(connstring)
con.Open()
Dim cmd As New SqlCommand
cmd.Connection = con
Dim dst As New DataSet
Dim dr As SqlDataReader
'cmd.CommandText = "Select * From tblNews where " & Request.QueryString("id")
'cmd.CommandText = "Insert into tblnews (NewsID,NewsDesc, NewsImg,NewsStatus) values (@NewsID,@NewsDesc, @NewsImg,@NewsStatus)"
' cmd.CommandText = "Select * from tblnews where NewsID = " & Request.QueryString("id")
cmd.CommandText = "Select * from tblnews where NewsID = 000001 "
dr = cmd.ExecuteReader
If dr.Read() Then
Dim bindata() As Byte = dr.GetValue(3)
Response.BinaryWrite(bindata)
End If
con.Close()
Catch ex As Exception
'Response.Write(ex.ToString)
con.Close()
Throw ex
Finally
con.Close()
End Try
End Function
tell me how can i read the image from sqlsever database
or tell me where i m wrong
|
|
|
|
|
Here you can get help for image storing and retrieving using sql server 2000.
http://www.codeproject.com/cs/database/ImageSaveInDataBase.asp
Best Regards,
Apurva Kaushal
|
|
|
|
|
I'm having a bit of a reocuring problem that I just cant seem to get my head round.
I want the output of an SQL query to be placed into an XMLDocument (for use as a source for an ASP.NET XML tool).
At the moment my SQL query outputs using: FOR XML AUTO, ELEMENTS
But I dont really have any experiance using the XMLDocument and was wondering how I should go about getting the output from the SQL query into the XMLDocument??
Is there a simple way of just "shoving" it in there or is it an intricate element by element process ?
Thanks.
|
|
|
|
|
I have three Select buttons in GridView Control.
Now how can i capture which button is clicked.
If I use TemplateColumn (ImageControl) CommandName Property = "Add User" then i m unable to get
SelectedIndex of GridView Control.
Any idea Please......
Know Yourself Then Grow Yourself.
|
|
|
|
|
If you are in the itemCommand event of the gridView, then you can check for the correct item command like so:
if (e.ItemCommand == "Add User")
{
}
and then the current row should be e.Item .
|
|
|
|
|
Thanks
Know Yourself Then Grow Yourself.
|
|
|
|
|
Hi,
Actually I want to create a folder on client's computer and save an Excel file into that folder when the user clicks on save button. Is it possible to achieve this using ASP .Net 2.0
Right now when I create a folder at location "C:\folder1", it creates a folder on the Web server.
Plz help me if u can...
|
|
|
|