|
hi frnd,
make your "myvariable" as public
and
abglorie wrote: My String as = <%=myvariable%>
OR
try it
My String as = <#=myvariable#>regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi i am using Mozila browser i am getting error in oveflow CSS property , here oveflow is not working . please help for this one
Reg
nantha
|
|
|
|
|
Use the latest version of Mozilla.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi Michael thank u soo much , i am using Mozila 5.0 and Firefox 2.0 only after that any new version came?
reg
nantha
|
|
|
|
|
Hi nantha,
AFAIK, the earlier version of Mozilla doesn't support CSS overflow property which is not standard. but that property does support in the later version.
Can you give me the code that you are getting error?
Is this like that?
.a{<br />
overflow:auto;<br />
}
I will try to reproduce this issue in my computer and will let you know as soon as possible.
Edit: one more trick.
try this too.
overflow: -moz-scrollbars-horizontal;
-- modified at 3:16 Friday 17th August, 2007
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi Mr.Michael Sync...
thank u soo much i tried that one yesterday but its not working . i sent my CSS code and aspx code please clear that error thank u soo much ..
.aspx code
DIV id="div-datagrid" class='gridFixedHeader' style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 120px">
CSS code
.gridFixedHeader
{
background-color:white;
font-size: 9pt;
color: #FFFFFF;
position: relative;
font-family: Airal,sans-serif;
border:#0066CC;
top:expression(this.offsetParent.scrollTop-0);
z-index: 1;
}
thank u once again
reg
nantha
-- modified at 6:08 Friday 17th August, 2007
|
|
|
|
|
in my project, i use toolbar toolbar in my buttons...i used case structure for the functions of each buttons in the toolbar but theres an error in it...
my codes goes like this:
Select Case<br />
Case 0<br />
Dim subjects As New subjects<br />
subjects.Show()<br />
Me.Hide()<br />
Case 1<br />
Dim file_maintenance As New file_maintenance<br />
file_maintenance.Show()<br />
Me.Hide()<br />
Case 2<br />
Dim grade_entry As New grade_entry<br />
grade_entry.Show()<br />
Me.Hide()<br />
End Select
is this code correct???
or this:
dim keyin as integer<br />
Select Case keyIn<br />
Case 0<br />
Dim subjects As New subjects<br />
subjects.Show()<br />
Me.Hide()<br />
Case 1<br />
Dim file_maintenance As New file_maintenance<br />
file_maintenance.Show()<br />
Me.Hide()<br />
Case 2<br />
Dim grade_entry As New grade_entry<br />
grade_entry.Show()<br />
Me.Hide()<br />
End Select<br />
in the first code, there is an error so i can't run my program...
in the other code, the 1st button is only functioning...
what is the really correct code for this???
|
|
|
|
|
Second one is correct.
Rharzkie wrote: in the other code, the 1st button is only functioning..
It depend on what this variable got. dim keyin as integer
My example ~
Private Sub ToolStrip1_ItemClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles ToolStrip1.ItemClicked<br />
Select Case e.ClickedItem.Text<br />
Case "&New" : MessageBox.Show("this is New")<br />
Case "&Open" : MessageBox.Show("this is New")<br />
End Select<br />
End Sub<br />
<br />
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
in your example, the case "&New" and case "&Open" stands for what??? is it integer or string??? where did you get it???
|
|
|
|
|
Friend WithEvents NewToolStripButton As System.Windows.Forms.ToolStripButton<br />
Friend WithEvents OpenToolStripButton As System.Windows.Forms.ToolStripButton<br />
<br />
Me.NewToolStripButton.Text = "&New"<br />
Me.OpenToolStripButton.Text = "&Open"<br />
<br />
Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.NewToolStripButton, Me.OpenToolStripButton)<br />
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
but in the second code i made, the first button is only funtioning...
i will try your example...
|
|
|
|
|
Rharzkie wrote: but in the second code i made, the first button is only funtioning...
What did you set to "keyIn " variable??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
keyin as integer...thats all...
but i already try your example, and it works, thanks for that...
|
|
|
|
|
Rharzkie wrote: but i already try your example, and it works, thanks for that..
Your welcome. my friend. If it is useful for you, don't forget to vote the message. Thank you too.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I am working on gridview. while deleting the record i am getting the error as
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
my code is
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int empid=0;
empid = Convert.ToInt32(GridView1.DataKeys[e.RowIndex]);
cmd = new SqlCommand("delete employee where empid='" + empid + "'", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
please give me what is the syntax for it.
can any one help me urgently
thanks!
|
|
|
|
|
Hi change ur rowindex value or empid value after that u will get other wise reply to me i will give code for u ..
Reg
Nantha
|
|
|
|
|
Hi,
Set e.EditEndex=-1 After deleting the row.
Naresh Patel
|
|
|
|
|
thanks your guidance.
can u send me code please
|
|
|
|
|
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int empid=0;
empid = Convert.ToInt32(GridView1.DataKeys[e.RowIndex]);
cmd = new SqlCommand("delete employee where empid='" + empid + "'", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
e.EditIndex=-1;
}
Naresh Patel
|
|
|
|
|
Hi try this ...
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int n = Convert.ToInt32(GridView1.DataKeys[e.RowIndex]);
int empid=n-1;
cmd = new SqlCommand("delete employee where empid='" + empid + "'", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
in case not working send full functionality about this grid view process
|
|
|
|
|
I am giving you only Idea, not implementation.
Ok
Naresh Patel
|
|
|
|
|
very thank you Naresh Patel
|
|
|
|
|
Hi friends
I want to display reverse fileUpload control.I mean,normally fileupload display first textBox and One Button to browse file.I want to display first Button and then Textbox.
Is it possible?
Thanks in advance
Pathan
---------------------------------------------------
|
|
|
|
|
Imran Khan Pathan wrote: Is it possible?
Yeah. It is possible. there is a trick for it.
1. Add one button (let's say btnUpload) and textbox (txtPath) in your page.
2. Add HTML "input=File"
3. Make this "file" control as invisible. (CSS: opacity or alpha )
CSS - Code
<br />
filter:alpha(opacity=50);<br />
-moz-opacity:0.5;<br />
opacity: 0.5;
4. Write a JS function to fire the click event of input "file" control.
function fireFileClick()<br />
{<br />
var objfile = document.getElementById('myFile');<br />
objfile.click();<br />
<br />
var objTextBox = document.getElementById('txtPath');<br />
objTextBox.value = objfile.value;<br />
}
5. Add this function on click event of button "btnUpload"
<input type="btnUpload" onclick="fireFileClick();" <br />
value="Upload File" >
That's all..
Please follow the steps that I mentioned. Let me know the result.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi Michael
Thanks for ur response.
I have done it.Its working fine in IE7 but I am not getting Click Event of Button In mozila.
whats a problem?
Thanks again
Pathan
---------------------------------------------------
|
|
|
|