|
blumenhause wrote: How can I loop through an HTML Table and check all controls of each cell (TD) in it.
Here is a DOM example[^] that will give a tip on how to traverse a HTML table and access the controls in it.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
|
I have a web user control.
I need to create one property in this control that can be accessed in the main page on client side.
How can I achieve this.
Ashwani
|
|
|
|
|
Normally, It is not possible... I think you probably need to use the third-party Ajax frameworks (e.g: AjaxPro and etc)...
|
|
|
|
|
use a Hidden Field on the web-user control. you can access it on the client-side.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hello everybody,
i have two issues..
in my application I have DataTable which contain all the values.My dataTable contain 3 columns and rows depend on the data.Later on I assign the datatable to a gridview. I want to put line break in the last column of the Gridview and in the 2nd column i need the data should be hyperlink to a pgeUrl.
i use VS2005
plz help me out..
A key to every Solution
|
|
|
|
|
For a new line break you can use this syntax in the inline code
DataBinder.Eval(Container.DataItem, "ColName").ToString().Replace(Environment.NewLine,"<br/>")
For a Hyperlink Column on the Gridview control, you can check the sample code Here[^]
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
where I v to writhe the code before bind the datasource or in aspx page.
my code is as below
DataColumn dcol = new DataColumn(Var_ColumnName1, typeof(System.String));
subsGift_DataTable.Columns.Add(dcol);
lke other two column..
DataRow dr_Gift = subsGift_DataTable.NewRow();
dr_Datarow[Var_ColumnName1] = "SomeValue");
dr_Datarow[Var_ColumnName2] = SomeValue2;
dr_Datarow[Var_ColumnName3] =" Name: Address: PhoneNo: ";
subsGift_DataTable.Rows.Add(dr_Gift);
MyGridView.DataSource = subsGift_DataTable;
MyGridView.DataBind();
I need data shown in Column3 in linebreak like
Name:
Address:
PhoneNo:
and the address sould be hyperlink..
A key to every Solution
|
|
|
|
|
Is it possible to split an XML File ( which has converted from a book to xml file) to many small files depending upon the page no of the book using asp.net ?
If possible means please tell me the concept and the codings.
VanithaVasu
|
|
|
|
|
I suggest you to take a look at the XmlReader and XmlWriter classes in .NET which will help you parse and write XML data from XML documents.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
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?
|
|
|
|