|
I have a gridview with template field which contains some text( <%#Eval('name')%> )
I try to get this text via the server, like this: grv.Rows[0].Cells[0].Text, but I get empty string.
The datasource is valid and full of values and I wrote grv.DataBind() in the Page_Load
|
|
|
|
|
Can you paste your gridview controls source code.
|
|
|
|
|
Try finding the control and cast it back to TextBox
((TextBox)grv.Rows[0].FindControl("MyTextBox")).Text
Back off i am coding
|
|
|
|
|
u can do like this also if u have simplr grid
GridView.Row[rowindex].cells[cellindex].text ="anything";
|
|
|
|
|
Hi,
can anyone tell me how to validate float number through java script .. thanks in advance.
Thanks
Amit
|
|
|
|
|
you may try this,
<form name='f1'>
<input type="text" name='t1' onkeyup='this.value=check(this.value)'>
</form>
<script>
function check(value)
{
val=value
len=val.length
retval=val
if (len > 2)
{ch=val.charAt(len-1)
if (ch !='.')
{
if ( (Math.floor(val) >= 10000) | (Math.floor((val*1000)%10) > 0)) {
alert('Error, max of 4 digits before 2 after decimal point')
retval= val.slice(0,len-1)}
}
}
return(retval)
}
</script>
|
|
|
|
|
|
Hi,
How can i print the report in aspx page in the client machine.
When i try to print using javascript, it print from the IIS server machine printer.
Thankyou
YPKI
|
|
|
|
|
<input type="button" value="Print" onclick="window.print();">
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hello all,
I want to insert a Hindi text value into a mysql5.1 database from an asp.net TextBox when a "INSERT" button is clicked. And I also want to retrive the same value from MySql5.1 to an asp.net TextBox when a "SHOW" button is clicked. Please help me how this will be possible. I am uinging Visual Studio 2005 and C# for code behind.
Thanks in advance.
|
|
|
|
|
How come it become MySQL 5.0 from 5.1 overnight . Referring to your previous [^]post with same question.
mkumar2511 wrote: I want to insert a Hindi text value into a mysql5.1 database
You need to use nvarchar datatype in the database.
in the web application, you need to make sure that you comply with the unicode
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: How come it become MySQL 5.0 from 5.1 overnight Confused. Referring to your previous [^]post with same question.
|
|
|
|
|
in which event i can set theme in master page
since master pg does nt contain pre init event
|
|
|
|
|
This is considered rude.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You can not directly set the theme on master page. Read this[^]
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
how to set diff themes dynamically
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
Page.Theme = Session("theme")
End Sub
is tis correct
|
|
|
|
|
anbusenthil wrote: Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
Page.Theme = Session("theme")
End Sub
is tis correct
So what are you getting after doing that? Theme is changing and runtime or not ?
|
|
|
|
|
I am trying to convert vedio file to flv using ffmpeg but it is not generating any vedio and image file. can any body help me by sending me the sample code Project.How to convert uploded vedio files into flv format
ashishbisen
|
|
|
|
|
|
hi all !!
i have developing a page which have three drop down and two text boxes and a button . when i click the button the grid view populated in another page taken data from text boxes and drop down from previous page .
|
|
|
|
|
prabhat kumar mokama wrote: i have developing a page which have three drop down and two text boxes and a button . when i click the button the grid view populated in another page taken data from text boxes and drop down from previous page .
Yes Sure. You can sen the value of dropdown list and the texbox by Query String to the next page. Read the Query string value and based on that value you can retrieve the data from database and bind it with the grid view. Or you can also pass the data by Session .
|
|
|
|
|
You can also use hidden form fields to pass information from one page to another.
Regards
Saanj
Either you love IT or leave IT...
|
|
|
|
|
select @themeid=t.themeid,@themename=t.th_name from emptheme e left outer join themesetting t on
e.themeid=t.themeid and e.empguid=@sessionvalue
is tis query correct after joins ...
is it possible to use and join condition
tanx
|
|
|
|
|
anbusenthil wrote: is tis query correct after joins ...
This is not database forum.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
anbusenthil wrote: select @themeid=t.themeid,@themename=t.th_name from emptheme e left outer join themesetting t on
e.themeid=t.themeid and e.empguid=@sessionvalue
is tis query correct after joins ...
is it possible to use and join condition
is tis query correct after joins ...
is it possible to use and join condition
First of all this is ASP.Net Forum and This is your repost. While asking problem regarding the same post then continue with that thread itself rather than post a new question.
I believe you are using SQL Server to run your query. So what is the output for that statement ?
|
|
|
|