|
Two ways:
1) The TITLE attribute of the HTML element itself shows a rudimentary tooltip.
2) Overlib library: www.bosrup.com/web/overlib/[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi friends
I want my page to appear in Center for this in the body tag i have written
style = "left: 10%; position: absolute; top: 0%; height: 10%;
its coming in the Center but bottom scrollbar is appearing and with a wide are to navigate
I mean user can drag the bottom scrollbar to a wider distance
How to make page to appear in Center and Bottom scroll bar must not appear if appears then it must be not drag-able to much extent
Thank You
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
ALT + F4 wrote: If You win You need not Explain............
But If You Loose You Should not be there to Explain......
If you need some answer you have to explain the problem properly.
*jaans
|
|
|
|
|
in my application i have one textbox ,button and a drop down box.when i am clicking the button it will browse the database and will appear in the text box.i have done that.now what i want is,to fetch the database tables from the browsed database and to list in the dropdown box.
the query for that is
select table_name, column_name, data_type, character_maximum_length, is_nullable from information_schema.columns where table_name in (select name from sysobjects where xtype='U') order by table_name
but i want the c# code for that.where do i put this query?
|
|
|
|
|
hai,
currently i m using ASP.NET with C# (.net 2005, 2.0 framework).
DataColumnCollection t1 = row1.Tables[0].Columns;
the t1 consist of 5 values and i want to rename it (i.e, if t1 contains "Sample1", then i want to change it as "rename_sample1".
how to achieve it? - KARAN
|
|
|
|
|
I want to create a contact page using .Net? I tryed some code but the mail is coming in mailroot/queue folder. Is there any setting???
|
|
|
|
|
I have no idea what you're trying to do. If you send the mail using code, it will go where you send it. And, if you use a mailto: tag, it will go to the address you specify, via the client's mail program.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
while asking some question in this forum , you should be more specific on you questions .
asif_3 wrote: ust tell me what we need to do to create contact page?
There is many way to create contat page. but you should be specific that what you need rathere that asking some one in this way .
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
I can't really answer that, because I'm not even sure what you mean by contact page ( that is, its just a page, it may well send mail using the mail server on the server end, but it still seems trivial to me ). It makes more sense for you to tell us what you tried, what you want it to do, etc.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have two dropdown and a gridview, i am getting the result in Gridview by selecting both the dropdown, I want to know how we can Navigate from the Gridview Data to the Gridview or any static page, each data should have different link. and link page should display the details of the data which we are selecting from the data base.
Can Any body Fix this Problem!
|
|
|
|
|
I have no idea what you're asking. You want links in the grid view to navigate to different pages ? Render links in the rows to the pages you want. You want something different, then please try to explain it better.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I got the data in the gridview from database assume i have 5 rows.
in that each row should go to a separate url(should have link) or with same page different data i tried it i am getting the same page again n again
|
|
|
|
|
Do what I said - render URLs in your grid view based on the content of the data in each row. I assume the URL you want relates to the row data in some way ? The obvious way is that query string parameter is set according to the data in the row.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you can use GridViewRow and a select the data to can pass it to different page on link click. for any link you can use Gridview Template Field.
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
I'm developing an e-commerce web-based system & have problem in Shopping Cart part. i.e. update quantity & delete item from cart. This is code-behind for my Cart.aspx.
<pre>
'other code above
Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GridView1.RowDeleting
cart.DeleteItem(e.RowIndex) 'error here
GridView1.DataBind()
End Sub
Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing
GridView1.EditIndex = e.NewEditIndex
GridView1.DataBind()
End Sub
Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating
Dim cell As DataControlFieldCell
cell = GridView1.Rows(e.RowIndex).Controls(3)
Dim t As TextBox = cell.Controls(0)
Try
Dim q As Integer
q = Integer.Parse(t.Text)
cart.UpdateQuantity(e.RowIndex, q) 'error here
Catch ex As FormatException
e.Cancel = True
End Try
GridView1.EditIndex = -1
GridView1.DataBind()
End Sub
Protected Sub GridView1_RowCancelingEdit(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GridView1.RowCancelingEdit
e.Cancel = True
GridView1.EditIndex = -1
GridView1.DataBind()
End Sub
'other code below
</pre>
The error saying that:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Thanks for your help!
|
|
|
|
|
miss nadia wrote: cart.DeleteItem(e.RowIndex) 'error here
Where is that function ?
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
That function is in ShoppingClass class.
|
|
|
|
|
this is the function in ShoppingCart class.
<pre>
Imports Microsoft.VisualBasic
Imports System.Collections.Generic
Public Class ShoppingCart
Private _cart As List(Of CartItem)
Public Sub New()
_cart = New List(Of CartItem)()
End Sub
Public Function GetItems() As List(Of CartItem)
Return _cart
End Function
Public Sub AddItem(ByVal id As String, ByVal name As String, ByVal price As Decimal)
Dim itemFound As Boolean = False
For Each Item As CartItem In _cart
If Item.ID = id Then
Item.Quantity += 1
itemFound = True
End If
Next
If Not itemFound Then
Dim item As CartItem
item = New CartItem(id, name, price, 1)
_cart.Add(item)
End If
End Sub
Public Sub UpdateQuantity(ByVal index As Integer, ByVal quantity As Integer) 'update quantity function
Dim item As CartItem
item = _cart(index)
item.Quantity = quantity
End Sub
Public Sub DeleteItem(ByVal index As Integer) 'delete item function
_cart.RemoveAt(index)
End Sub
Public ReadOnly Property Count() As Integer
Get
Return _cart.Count
End Get
End Property
End Class
</pre>
|
|
|
|
|
If we like to took an inbox page of rediff or any other page login page will dispaly for any site.How we make it for an aspx page also.If a user took a page http://eSIMSys/chatpage.aspx the login page will dispaly after login only user can access the chatpage.How is it possible.We are using form authentication.
|
|
|
|
|
I *think* you're asking how to enforce login ? The way I do that, is to make all pages that are protected, derive from a base class which checks if the user is logged in, and, if not, redirect to the login page. I suspect if you're using built in stuff, there'd be a config setting for the login page and it would redirect, but I prefer to write code.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
bellow code has this Error: cannot implicity convert type login to System.Web.UI.WebControls.Login
protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)<br />
{<br />
if (e.CurrentStepIndex == 0)<br />
{<br />
System.Web.UI.WebControls.Login l =((Login)Wizard1.FindControl("Login1"));<br />
<br />
if (Membership.ValidateUser(l.UserName, l.Password))<br />
{<br />
FormsAuthentication.SetAuthCookie(l.UserName, l.RememberMeSet);<br />
e.Cancel = false;<br />
}<br />
else<br />
{<br />
l.InstructionText = "";<br />
l.InstructionTextStyle.ForeColor = System.Drawing.Color.Red;<br />
e.Cancel = true;<br />
}<br />
}<br />
else<br />
{<br />
if (!User.Identity.IsAuthenticated)<br />
{<br />
e.Cancel = true;<br />
Wizard1.ActiveStepIndex = 0;<br />
}<br />
<br />
}<br />
}
How i can solve this error?
Thank you,
Hoda
|
|
|
|
|
WEll, it usually helps if you tell us what line has the error. In this case, tho, I think it's clear.
Saba02 wrote: System.Web.UI.WebControls.Login l =((Login)Wizard1.FindControl("Login1"));
In the first case you specify the full namespace of the control, in the second, you do not. Obviously you have another class called Login somewhere, and that is in scope, so you need to full scope the login control on the right, so the two sides both point to the same object, instead of two different objects with the same name.
Consider also renaming your Login class so this doesn't happen again.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
Following on from my other question, I have a GridView which is bound to a SqlDataSource. It has several pages. In my PageLoad() event handler I can get a count of how many pages are on the gridview by the GridView.PageCount property. If that's the case, I'd like to iterate through each page and find a row from the GridView.DataKeys property with a column matching a particular value and select the row.
I've tried iterating through each page by setting the GridView.PageIndex property and then getting the GridView.DataKeys property but the latter isn't updated - it only gets the first (displayed) page's set of values.
|
|
|
|
|
Have you tried looping through the rows after binding.
<br />
GridView1.DataBind()<br />
<br />
For Each row In GridView1.Rows()<br />
'Do whatever<br />
Next <br />
<br />
<div class="ForumSig">Don't you just hate coming up with something to put here?</div>
|
|
|
|