Monday, March 26, 2012
ok routine question on a gridview
iID and iType. I can get iID with gridview1.SelectedDataKey.Value, but how
can i get the second key in the list? I'm sure this is a simple one for
someone out there?
Thanks!
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes"WebBuilder451" <WebBuilder451@.discussions.microsoft.com> wrote in message
news:3B6648BD-D9AD-44C1-B9F4-0981C6D0F8C0@.microsoft.com...
> i set the datakeynames to include two fields, iID and iType. I can get
> iID with gridview1.SelectedDataKey.Value, but how
> can i get the second key in the list?
http://msdn2.microsoft.com/en-us/li.../>
ynames.aspx
> I'm sure this is a simple one for someone out there?
All I did was search the MSDN Library - you could have done the same...
Or Google...
ok figered this one out:
Me.gv.SelectedDataKey.Item(1), is this the best or the only way?
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"WebBuilder451" wrote:
> i set the datakeynames to include two fields,
> iID and iType. I can get iID with gridview1.SelectedDataKey.Value, but how
> can i get the second key in the list? I'm sure this is a simple one for
> someone out there?
> Thanks!
> --
> thanks (as always)
> some day i''m gona pay this forum back for all the help i''m getting
> kes
thank's for responding.
Is the way i described the way you would do it? Aside from not finding
things on occation, i also look for the best solution from the others here.
Is the way i described the best way or is there a better one?
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
"Mark Rae" wrote:
> "WebBuilder451" <WebBuilder451@.discussions.microsoft.com> wrote in message
> news:3B6648BD-D9AD-44C1-B9F4-0981C6D0F8C0@.microsoft.com...
>
> http://msdn2.microsoft.com/en-us/li...
keynames.aspx
>
> All I did was search the MSDN Library - you could have done the same...
> Or Google...
>
>
Thursday, March 22, 2012
oledbcommand
..Parameters.Add(New OleDbParameter("@dotnet.itags.org.oacode", OleDbType.VarChar, 10)).Value
= strName
When the strName is blank, (it return all the record)
How can I correct it ??
I am using vfpoledb.dll2 ways
1. do a check in stored proc or query to return nothing
when empty or null
2. send "-1" or some const value whenever it is empty from the bo layer
itself.
--
Y2KPRABU, MCP, INDIA
WEB APPS
"Agnes" wrote:
Quote:
Originally Posted by
where alltrim(cocode) = ?
..Parameters.Add(New OleDbParameter("@.oacode", OleDbType.VarChar, 10)).Value
= strName
When the strName is blank, (it return all the record)
How can I correct it ??
I am using vfpoledb.dll
>
>
>
oledbcommand
.Parameters.Add(New OleDbParameter("@dotnet.itags.org.oacode", OleDbType.VarChar, 10)).Value
= strName
When the strName is blank, (it return all the record)
How can I correct it '
I am using vfpoledb.dll2 ways
1. do a check in stored proc or query to return nothing
when empty or null
2. send "-1" or some const value whenever it is empty from the bo layer
itself.
--
Y2KPRABU, MCP, INDIA
WEB APPS
"Agnes" wrote:
> where alltrim(cocode) = ?
> ..Parameters.Add(New OleDbParameter("@.oacode", OleDbType.VarChar, 10)).Val
ue
> = strName
> When the strName is blank, (it return all the record)
> How can I correct it '
> I am using vfpoledb.dll
>
>
OleDbCommand TimeOut Not Working
OleDbConnection cn = new OleDbConnection(Session["DataSource"].ToString());
OleDbDataAdapter adapter = new OleDbDataAdapter();
OleDbCommand cmd = new OleDbCommand(query, cn);
cmd.CommandTimeout = 99999;
adapter.SelectCommand = cmd;
adapter.Fill(ds,"data");
cn.Close();
adapter.Dispose();Are you sure it is and not something else timing out (page, etc).?
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Chris Fink" wrote:
> Why does this timeout after 10 secs, instead of the higher value expected?
> OleDbConnection cn = new OleDbConnection(Session["DataSource"].ToString());
> OleDbDataAdapter adapter = new OleDbDataAdapter();
> OleDbCommand cmd = new OleDbCommand(query, cn);
> cmd.CommandTimeout = 99999;
> adapter.SelectCommand = cmd;
> adapter.Fill(ds,"data");
> cn.Close();
> adapter.Dispose();
OleDbCommand TimeOut Not Working
OleDbConnection cn = new OleDbConnection(Session["DataSource"].ToString());
OleDbDataAdapter adapter = new OleDbDataAdapter();
OleDbCommand cmd = new OleDbCommand(query, cn);
cmd.CommandTimeout = 99999;
adapter.SelectCommand = cmd;
adapter.Fill(ds,"data");
cn.Close();
adapter.Dispose();Are you sure it is and not something else timing out (page, etc).?
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Chris Fink" wrote:
> Why does this timeout after 10 secs, instead of the higher value expected?
> OleDbConnection cn = new OleDbConnection(Session["DataSource"].ToString())
;
> OleDbDataAdapter adapter = new OleDbDataAdapter();
> OleDbCommand cmd = new OleDbCommand(query, cn);
> cmd.CommandTimeout = 99999;
> adapter.SelectCommand = cmd;
> adapter.Fill(ds,"data");
> cn.Close();
> adapter.Dispose();
Friday, March 16, 2012
On Mouse over , Change the value of textbox in asp.net 2.0
On Mouse Over of the Button control, I want to change the value of the textbox or Drop down list value in asp.net 2.0, How to do this ?
Suresh
Well, the mouseOver is a clientside event, and ASP.Net is Serverside... so unless you postback you cant.
You can add a ClientSide event to populate the controls, but that will be all javascript events/methods/functions
Hi:
It is a client-side issue. Try this:
<input value="hello" ID="T1" onmouseover="ChangeText('anything')"/></form>
<script type="text/javascript">
function ChangeText(s){
document.getElementById("T1").value=s;
}
</script>
You can learn more about JS here
http://www.w3schools.com/js/js_popup.asp
Regards