|
var obj = document.getElementById("UctLogin1_txtEmail"); doesn't work? You got the error or got nothing? Have you tried to debug your javascript by using Firebug?
|
|
|
|
|
No, it doesn't work with getElementById, no error shown in Firefox error console.
the result show null. but anyway, getElementsByName works ..
|
|
|
|
|
Hi Michael,
Problems solved, I use getElementsByName with its name in HTML ViewSource instead of ID, it works!
It seems like the getElimentById function still does not work compatiblely with firefox very well.
Regards,
Ming
|
|
|
|
|
okay.. great!
|
|
|
|
|
Oh dear! I just found out what I said was wrong.
getElementById function works as well!!
|
|
|
|
|
hello everybody
on my grid view i have a select command button. on gridview select click i want to pass memberID and propductID of that row and fill up modal popup with member details and product details.
any instruction will be really helpful.
thanks in advance
Sarfarj Ahmed
|
|
|
|
|
Use the button's CommandArgument and CommandName property to store the memberID and propductID as in:
<br />
<asp:Button id="btnPopUp" CssClass="btnStyle0" Text="View product" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "memberID").ToString()%>' CommandName='<%#DataBinder.Eval(Container.DataItem, "propductID").ToString()%>' runat="server"><br />
</asp:Button>
Add a click evnet to the butten as in:
<br />
void btnPopUp_Click(object sender, EventArgs e)<br />
{<br />
Button btn = (Button)sender;<br />
memberID = int.Parse(btn.CommandArgument);<br />
propductID = int.Parse(btn.CommandArgument);<br />
Then use this values to get the data you need and push out an PopUp.
Remember to add the buttons clik event in the GridView's OnItemCreated.
Hope it helps
Thomas
|
|
|
|
|
Hello Friends,
When we use Servert.Transfer and set it's second parameter true then sometime it throws error
Can anybody let me know y it's happened ????????????????/
|
|
|
|
|
You haven't stated what error your are experiencing. However, the MSDN documentation states
Transfer calls End, which throws a ThreadAbortException exception upon completion.
This would not be affected by the value of the preserveForm parameter, which simply determines whether the QueryString and Form collections are preserved.
<blockquote class="FQ"><div class="FQA">The Knowledge wrote:</div>Can anybody let me know y it's happened ????????????????/ </blockquote>
Is the '?' key stuck on your keyboard?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hi,
how to give backcolor for a label in datagrid byselecting colors from database.
i tried like this
<asp:Label ID="lblcolore" runat="server" BackColor= '<%# Eval("colorname") %>' Width="100" Height="20" ></asp:Label>
Any one please help!!
modified on Friday, December 07, 2007 8:26:36 AM
|
|
|
|
|
Is this label in template column? If yes, you can find this label in RowCreated event or RowDataBound and then set the backcolor.
For example ~
<br />
RowCreated or RowDataBound<br />
<br />
Label lbl = (Label)e.Row.FindControl("lblColore");<br />
lbl.BackColor =
<br />
|
|
|
|
|
Thank you for your reply!!
but it wont work
here is my code:
Protected Sub dgFatturato1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles dgFatturato1.ItemDataBound
Using connection As New SqlConnection(ConfigurationManager.ConnectionStrings.Item("BoschConnectionString").ToString)
connection.Open()
Dim str As String
str = "SELECT colorname FROM ACC_COLORI_FATTURATO"
Dim adpt As New SqlDataAdapter(str, connection)
Dim ds As New DataSet
adpt.Fill(ds, "ACC_COLORI_FATTURATO")
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
If ds.Tables(0).Rows.Count > 0 Then
Dim fieldcolor As String
Dim i As Integer
For i = 0 To ds.Tables(0).Rows.Count - 1
fieldcolor = ds.Tables(0).Rows(i).Item(0).ToString
'DataBinder.Eval(e.Item.DataItem, "colorName")
'Dim lbl As Label
'lbl = CType(e.Item.FindControl("lblColore"), Label)
'lbl.BackColor = System.Drawing.Color.FromName(fieldcolor)
''To convert the value of Type String to System.Drawing.Color
e.Item.BackColor = Color.FromName(fieldcolor)
Next
End If
End If
end using
end sub
please help!!
|
|
|
|
|
Can anyone give me sample of code using QuerString (e.g passing ang retriving value)
A key to every Solution
|
|
|
|
|
URL: www.somewhere.com/test.aspx?name=bob
Code:
string theName;
theName = Request.Querystring("name");
Response.Write(theName);
|
|
|
|
|
Hi,
you can set multiple QueryString
<br />
string tempURL = "~/MySite.com/Welcome.aspx?Name=" +MyName+ "&Surname="+MySurname;<br />
Now on Welcome.aspx page you can get this both values like this.
<br />
if(Request.QueryString.Count>0)<br />
{<br />
if(Request.QueryString["Name"].ToString()!=null)<br />
{<br />
Name= Request.QueryString["Name"];<br />
}<br />
if(Request.QueryString["MySurname"].ToString()!=null)<br />
{<br />
MySurname = Request.QueryString["MySurname"];<br />
}<br />
}<br />
Regards...
|
|
|
|
|
hi all
I try to connect to file DBF in ASP.net
this my code:
if(File.Exists(@"C:\demo\AAAdddddd.dbf"))
{
string strQuery = @"SELECT * FROM C:\demo\AAAdddddd.dbf WHERE 1=0";
string strConnectionDbf = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\demo\;Extended Properties=dBASE IV;User ID=Admin;Password=;";
OleDbConnection connect = new OleDbConnection(strConnectionDbf);
connect.Open();
OleDbDataAdapter da = new OleDbDataAdapter(strQuery, connect);
DataTable dtCol = new DataTable();
da.Fill(dtCol);
}
but i see problem
The Microsoft Jet database engine could not find the object 'AAAdddddd.dbf'. Make sure the object exists and that you spell its name and the path name correctly.
but i change name file to AAA.dbf and change strQuery = @"SELECT * FROM C:\demo\AAA.dbf WHERE 1=0";
so it run good
I dont understant. May be oledb connect to dbf file depend to name file ????
And I try many again but still error
and i am extraordinary when check file exist it still = true; ???????????
Some body show for me Why ???
|
|
|
|
|
what are private classes in .net
|
|
|
|
|
A class declared with the privat keyword.
<br />
private class MyClass<br />
{<br />
}<br />
|
|
|
|
|
Even I dont know.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Sheena wrote: what are private classes in .net
They would initially seem to be a bit pointless, but they have their uses. They are classes that can be nested within another class. They are private to the class they are nested within and cannot be used externally because they are private.
e.g.
public class OuterClass
{
private class InnerClass
{
}
}
In the above example, nothing outside of the OuterClass can see the InnerClass.
|
|
|
|
|
Thanks !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
How a column value in a table is set null.If the column is null no execution is done for the query.
|
|
|
|
|
SreejithAchutan wrote: How a column value in a table is set null.
Update Table name set columm = null..
|
|
|
|
|
Hi,
How can i get my Stored procedure result in Aspx page.I have one strode procedure to insert records,if record is existed in the data base with same ID,then i need to show a message like 'Record all ready existed'.
Vasvai
|
|
|
|
|
You need to add an output parameter and decide upon what value you will return in case if record exists.
So you may return some int value to represent that record exists for example - 1000 otherwise, if record does not exists you may return 500.
Something like that.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|