|
Was there any problem in using the appropriate(SQL) Forum?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
When i use modalpopup Extender and trying show a message on button click the Dropdownlists which are present on my webform are getting Disappeared and when i press cancel(which is present in my message box(using Modal popup)) they reappears(dropdownlists)
|
|
|
|
|
i want to apply css class.and wat is css class .fresher pls help
|
|
|
|
|
anujbanka1784 wrote: i want to apply css class.and wat is css class
You want to apply CSS, but you don't know what it is ? Why don't you buy some books if you want to learn programming ? Or, why don't you try learning to use google ? This is just too basic and clueless a question to get any real answers, I am not sure what I could possibly say and hope for you to understand it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
anujbanka1784 wrote: i want to apply css class.
If you learn what a CSS class is, you will be able to apply one. Search for CSS beginner tutorials.
anujbanka1784 wrote: and wat is css class .fresher
It's just a name of a CSS class, the name doesn't have any meaning in itself so the class is what you put in it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i know wat it is i want to apply it on my project i apply it on master page wat its not working.
|
|
|
|
|
There is an h in 'what'. As has been said, you are asking basic questions, if you can't or won't buy a book or read online articles, why should we bother trying to help you ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
anujbanka1784 wrote: i apply it on master page wat its not working.
Then you did something wrong. Without seeing any of the code I can only give you a couple of guesses, like:
- Misspelled class name
- Different case
- Forgot the period before the class
- Overridden by another class
If you use a tool like FireBug for Firefox, you can look at the element and see what CSS applies to it and what CSS is overridden.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Friend CCS class name is case sensitive. make sure you are providing correct case with correct name.
Sajid A.
|
|
|
|
|
I have to open a new window using code behind(VB)..I tried
strJScript = "<script language=javascript>"
strJScript += "window.open('cuponprint.aspx',null,'height=150, width=430,status= no, resizable= yes, scrollbars=yes, toolbar=no,location=center,menubar=no, top=100, left=300');"
strJScript += "</script>"
Response.Write(strJScript)
But dis open s popup which can not be seeen when popup blocker is activated..
Is there any way to open a new window instead of a popup even when popup blocker is active..
Regards.
|
|
|
|
|
Well that would defeat the purpose of having a pop-up blocker...if you wish to by-pass a popup blocker means that you are trying to identify a hole in the browser security...
I think you cannot do that ...even if you do it by any trick that would be patched up anyway by the browser makers...
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
Yes.. he is right, rather what you can do is to write the content of the page into a hidden div that acts similar to popup, and show that div.
Abhishek Sur
|
|
|
|
|
|
You have some serious formatting issues. I don't even know what is going on there... Can you reformat the post?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Firstly we dont work for you and we dont do School homeworks here for people.
Secondly never use words like "As Soon as Possible" we dont work for you and you dont respect us.
Lastly Formating your code at code Project is easy, just add your code between the pre tag like this
if(Retard)
{
lblmessage.text = "Get Manners, its free :)";
}
else
{
lblmessage.text ="lol!!!!!!!!";
}
And try posting your code again.
Hope it helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
Hi ladies and gentlemen,
I'm trying to retrieve sql statement to datatable then update to gridview.The datareader can read it.
and able to retrieve data to txtDistID(from sql) and lblTotal(total count from datatable).
But the gridview cannot show the retrieved value from datareader. but no error message found...
Did i miss out anything?
Can you please guide me?
Thanks and appreciate......
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
eConn = System.Configuration.ConfigurationManager.ConnectionStrings("ConnectionString").ToString()
Dim cn As New SqlConnection(eConn)
Dim cmd As New SqlCommand
cn.Open()
strQuery = "SELECT DistID,EmpNo,EmpName,ICNo from udtDistributionAdd order by EmpNo"
cmd.CommandText = strQuery
cmd.Connection = cn
dr = cmd.ExecuteReader()
InitMyTable()
Do While dr.Read
Row = myTable.NewRow()
Row.Item("EmpNo") = dr(1).ToString()
Row.Item("EmpName") = dr(2).ToString()
Row.Item("ICNo") = dr(3).ToString()
Me.txtDistID.Text = dr(0).ToString()
myTable.Rows.Add(Row)
Loop
Me.lblTotal.Text = myTable.Rows.Count
cn.Close()
dr.Close()
End Sub
Public Sub InitMyTable()
myTable = New DataTable("Search")
Dim EmpNo As DataColumn = New DataColumn("EmpNo")
EmpNo.DataType = System.Type.GetType("System.Int32")
myTable.Columns.Add(EmpNo)
Dim EmpName As DataColumn = New DataColumn("EmpName")
EmpName.DataType = System.Type.GetType("System.String")
myTable.Columns.Add(EmpName)
Dim ICNo As DataColumn = New DataColumn("ICNo")
ICNo.DataType = System.Type.GetType("System.String")
myTable.Columns.Add(ICNo)
Dim ds As New DataSet
ds = New DataSet
ds.Tables.Add(myTable)
Me.gvSearch.DataSource = myTable
Me.gvSearch.DataBind()
End Sub
|
|
|
|
|
Have you stepped through the code and confirmed the data is in the table, it's not empty ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Christian Graus,
Yes i confirmed that the data is in the table. I tried to put few labels to retrieve the data. (eg:Me.lblEmpNo.Text = dr(1).ToString())
during looping, i can get the correct retrieved result.
But it cannot be updated into the gridview after done....
Do i need to write code to update the data from datatable to gridview?
How should i solve this problem?
Pls help....
Thanks in advanced....
|
|
|
|
|
what does your aspx look like ? If you put in a template for an empty data set, does it show instead of your data ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
below is my gridview setting.. i put the gridview in a div.
I tried to create new gridview outside the div also not able to retrieve.
and i tried to retrieve to formview also cannot.
Pls help me......
Thank you very much.......
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server" xmlns:asp="#unknown">
<asp:gridview id="gvSearch" runat="server" allowsorting="True" autogeneratecolumns="False" backcolor="#DEBA84" bordercolor="#DEBA84" borderstyle="None" borderwidth="1px">
CellPadding="3" CellSpacing="2" Font-Size="Small">
<footerstyle backcolor="#F7DFB5" forecolor="#8C4510">
<pagersettings mode="NumericFirstLast">
<rowstyle backcolor="#FFF7E7" forecolor="#8C4510">
<selectedrowstyle backcolor="#804040" font-bold="True" forecolor="White">
<headerstyle backcolor="#A55129" font-bold="True" forecolor="White">
<asp:content>
|
|
|
|
|
Eunice (VB junior) wrote: autogeneratecolumns="False"
OK - so where is the code to define the columns ? Did you try a style for the empty grid ? Did you look at the html to see if the div is visible ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
The div is visible.I didn't try the empty grid as I'm not too sure how to do it. sorry coz I'm still new to asp.net.
I declare the columns at InitMyTable...
Sub InitMyTable()
myTable = New DataTable("Search")
Dim EmpNo As DataColumn = New DataColumn("EmpNo")
EmpNo.DataType = System.Type.GetType("System.Int32")
myTable.Columns.Add(EmpNo)
Dim EmpName As DataColumn = New DataColumn("EmpName")
EmpName.DataType = System.Type.GetType("System.String")
myTable.Columns.Add(EmpName)
Dim ICNo As DataColumn = New DataColumn("ICNo")
ICNo.DataType = System.Type.GetType("System.String")
myTable.Columns.Add(ICNo)
Dim CostCenter As DataColumn = New DataColumn("CostCenter")
CostCenter.DataType = System.Type.GetType("System.String")
myTable.Columns.Add(CostCenter)
Dim Division As DataColumn = New DataColumn("Division")
Division.DataType = System.Type.GetType("System.String")
myTable.Columns.Add(Division)
Dim ds As New DataSet
ds = New DataSet
ds.Tables.Add(myTable)
Me.gvSearch.DataSource = myTable
Me.gvSearch.DataBind()
End Sub
i found one vb code but it's in window application (not asp.net)...
it has this extra line :- datagrid1.Update() after the datareader looping...
But i'm not too sure how to convert it into asp.net
in asp.net, it only has gvSearch.UpdateRow(). But it cannot recognized as well.
Please help.... Sorry to trouble you....
Thanks in advanced....
|
|
|
|
|
Remove the line that says 'autogeneratecolumns="false". Set it to true. I am sure your issue is that you are not defining any columns.
And, you need to buy a book on ASP.NET and work through it, unless you're just coding for fun. If someone is paying you, you should be ashamed. If you want to get paid at some point, buy a book and work through these basics.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Christian Graus,
Thank you so much of ur help.. It works brilliant by now...
thanks for ur advice as well..
|
|
|
|
|
OK - the lesson is to turn autogeneration on, or to actually define some columns in the ASPX. Your code behind code was obviously not doing that, and it's messy anyhow, the aspx is the right place to define the columns of the grid.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|