|
Hi, I have a requirement to customize the edit in Grid view.
I need to place an image instead of edit link button in Grid view.
When i click on that image, the same edit functionality will need to happen.
or
I want to keep check boxes for each row. I have an edit button in footer.
When i click on edit button, the checkboxes which i checked need to appear in edit mode.
How can i customize like this...
Thanks & Regards
G. Satish
|
|
|
|
|
Satish - Developer< wrote: Hi, I have a requirement to customize the edit in Grid view.
I need to place an image instead of edit link button in Grid view.
When i click on that image, the same edit functionality will need to happen.
you can use a CommandField with ButtonType set as Image, ShowEditButton property set to True and EditImageUrl property to the appropriate Image. Write the relevant code on the RowEditing event of the GridView.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Thank You John,
Thank you very much. Your reply is helped a lot for me.
|
|
|
|
|
Satish - Developer< wrote: Thank You John,
You're Welcome.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hello,
I need to find geographiacl location of the visitor from his IP address.
I am able to get his IP address but unable to get location.
Is there any way to get location from IP address....
|
|
|
|
|
Dikshant wrote: Is there any way to get location from IP address....
Try this...
Extracting the Country from IP Address[^]
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
iam using isdate function to check the whether the given date is correct or not but it is taking only if the date is given in mm/dd/yyyy format.how to check it shoukd take in dd/mm/yyyy format also
|
|
|
|
|
jagadeeshkumar2106 wrote: iam using isdate function to check the whether the given date is correct or not but it is taking only if the date is given in mm/dd/yyyy format.how to check it shoukd take in dd/mm/yyyy format also
Create an instance of DateTimeFormatInfo class (System.Globalization) and specify the ShortDatePattern as 'dd/MM/yyyy' and then convert the string Date to the specified format using Date.Parse before checking it with IsDate() function.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
hi jon will u plz explain me some wat in brief
|
|
|
|
|
jagadeeshkumar2106 wrote: hi jon will u plz explain me some wat in brief
You need to write something like this to handle the dateformat when it is 'dd/MM/yyyy'.
Dim DateFormat As New DateTimeFormatInfo
DateFormat.ShortDatePattern = "dd/MM/yyyy"
If IsDate(Date.Parse(DateString, DateFormat)) Then
'your code
End If
I suggest you to write a common shared function which will take the string date in the format 'dd/MM/yyyy' and return the parsed Date. Then this function can be used whenever you need to do a Date conversion.
Return Date.Parse(DateString, DateFormat)
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
|
hi shalini
i have to set this before i use the isdate function?it check the date in dd/mm/yyyy format
|
|
|
|
|
hi all
i have problem with file
i move file but this file being used by another process.
How can i shutdow process used this file ??
|
|
|
|
|
in the window explorer , goto Tools---Folder Options---View---Uncheck the use simple file sharing recommended.
Do this for the folder which ocupies ur file
Hope this will help u.Otherwise let me know
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hi. I have a program that Shows DLL content.
Is there ant way to privent to show dll content, such as classes , methods and so on?
if every body can see my source code, how can I have a secure page? or how can I set a lisence for my program. I want to sell a web project only for a specific domain. how can I do it?
|
|
|
|
|
mohandesmehran wrote: Is there ant way to privent to show dll content, such as classes , methods and so on?
Not without obfuscating the code, there isn't any way.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
You keep asking this over and over. The answer is, if you want your page to be secure, you have to host it yourself.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: You keep asking this over and over
Oh, he's one of those "I'll keep asking my question over and over until I get the clue" kind of people
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Looks that way. Plenty of those about, it seems.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
mohandesmehran wrote: Hi. I have a program that Shows DLL content.
Check whether you have enabled "Directory Browsing" option. I believe, if you turn it "off", you will be all set.
|
|
|
|
|
ROTFL. Well, if he hosts it on his own server, perhaps.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how can I retrive User Ip Address in asp.net pages?
|
|
|
|
|
You won't be able to do so for a specific computer, you will get the router's ip only.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Try this,
Request.ServerVariables("REMOTE_HOST")
|
|
|
|
|
Response.Write(Request.UserHostName.ToString());
|
|
|
|