Click here to Skip to main content
15,890,845 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I have to implement field level security Pin
N a v a n e e t h8-Apr-08 0:05
N a v a n e e t h8-Apr-08 0:05 
GeneralRe: I have to implement field level security Pin
eyeseetee8-Apr-08 0:08
eyeseetee8-Apr-08 0:08 
GeneralRe: I have to implement field level security Pin
Christian Graus8-Apr-08 0:11
protectorChristian Graus8-Apr-08 0:11 
GeneralProblem in moving text from one textbox to another Pin
Deepak Nigam7-Apr-08 22:46
Deepak Nigam7-Apr-08 22:46 
GeneralRe: Problem in moving text from one textbox to another Pin
Christian Graus7-Apr-08 23:00
protectorChristian Graus7-Apr-08 23:00 
QuestionHow to Process name Pin
ILLUSIONARY LIFE7-Apr-08 22:41
ILLUSIONARY LIFE7-Apr-08 22:41 
AnswerRe: How to Process name Pin
Christian Graus7-Apr-08 22:58
protectorChristian Graus7-Apr-08 22:58 
GeneralProblem with onrowcreate in gridview Pin
eyeseetee7-Apr-08 21:48
eyeseetee7-Apr-08 21:48 
Hi
I have the following code:
When it runs I get the error:
<b>System.InvalidCastException: Specified cast is not valid.</b>

chkIgnore = a checkbox
Ignore = a field in a database type nvarchar size 1, can either have Y or N in the column

If anyone can help that would be great, bit stuck on this one.

thanks! Smile | :)

protected void OnRowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
bool ignore_box = true;
if (DataBinder.Eval(e.Row.DataItem, "Ignore") != null)
{
if (DataBinder.Eval(e.Row.DataItem, "Ignore").ToString() != "Y" || DataBinder.Eval(e.Row.DataItem, "Ignore").ToString() != "N")
{
ignore_box = (bool)DataBinder.Eval(e.Row.DataItem, "Ignore");
}

if (ignore_box == true)
{
((CheckBox)e.Row.FindControl("chkIgnore")).Checked = true;
}
}
}
}
GeneralRe: Problem with onrowcreate in gridview Pin
Christian Graus7-Apr-08 21:52
protectorChristian Graus7-Apr-08 21:52 
GeneralRe: Problem with onrowcreate in gridview Pin
eyeseetee7-Apr-08 21:58
eyeseetee7-Apr-08 21:58 
GeneralRe: Problem with onrowcreate in gridview Pin
Christian Graus7-Apr-08 22:21
protectorChristian Graus7-Apr-08 22:21 
GeneralRe: Problem with onrowcreate in gridview Pin
eyeseetee7-Apr-08 22:30
eyeseetee7-Apr-08 22:30 
GeneralRe: Problem with onrowcreate in gridview Pin
Christian Graus7-Apr-08 22:32
protectorChristian Graus7-Apr-08 22:32 
GeneralImage Transparency Pin
Reelix7-Apr-08 21:43
Reelix7-Apr-08 21:43 
GeneralRe: Image Transparency Pin
Christian Graus7-Apr-08 21:49
protectorChristian Graus7-Apr-08 21:49 
GeneralRe: Image Transparency Pin
Reelix8-Apr-08 4:33
Reelix8-Apr-08 4:33 
GeneralOnloine Payment Pin
Member 46590017-Apr-08 21:34
Member 46590017-Apr-08 21:34 
GeneralRe: Onloine Payment Pin
eyeseetee7-Apr-08 21:39
eyeseetee7-Apr-08 21:39 
QuestionHow to use MathML Control Pin
yogesh_kumar_agarwal7-Apr-08 21:15
yogesh_kumar_agarwal7-Apr-08 21:15 
GeneralRe: How to use MathML Control Pin
Christian Graus7-Apr-08 21:19
protectorChristian Graus7-Apr-08 21:19 
GeneralRe: How to use MathML Control Pin
yogesh_kumar_agarwal7-Apr-08 22:24
yogesh_kumar_agarwal7-Apr-08 22:24 
GeneralRe: How to use MathML Control Pin
Christian Graus7-Apr-08 22:31
protectorChristian Graus7-Apr-08 22:31 
Questionhow to replace Permanently in aspx page using .net with c# Pin
sugunavathysubramanian7-Apr-08 20:51
sugunavathysubramanian7-Apr-08 20:51 
AnswerRe: how to replace Permanently in aspx page using .net with c# Pin
Ashish Sehajpal7-Apr-08 20:58
Ashish Sehajpal7-Apr-08 20:58 
GeneralRe: how to replace Permanently in aspx page using .net with c# Pin
sugunavathysubramanian7-Apr-08 21:21
sugunavathysubramanian7-Apr-08 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.