|
Can you post here modified code which i have suggested to you ?
Mark as bold where you are still getting the problem and also post error messages.
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
Hi,
I am using RegisterStartupScript in a user control but it is not running the code.
Can you do this from a user control?
msg = "Invalid date entered for 'to' field."
script = "<script>"
script += "alert(""" & msg & """);"
script += "</script>"
Me.Page.RegisterStartupScript("script", script)
rotsey
|
|
|
|
|
Try this One:
msg = "Invalid date entered for 'to' field."
script = ""
script += <b>"alert('" & msg & "');"</b>
script += ""
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
|
hi want set some values in web.config, so that i can access it in all pages
say, color=red
how can i set that in webconfig and access in any of my webpage
|
|
|
|
|
use Appsetting in the webConfig
<appSettings>
<add key="MHASSANF" value="Programmer"/>
</appSettings>
|
|
|
|
|
how to access it in every webpage
|
|
|
|
|
|
<asp:gridview id="GridView1" runat="server" width="225px" gridlines="None" autogeneratecolumns="False" onrowcommand="GridView1_RowCommand" ><br="" mode="hold"> <columns>
<asp:templatefield>
<itemtemplate>
<asp:image id="Image1" imageurl="<%# Eval(" imagee")%"="">' runat="server" Width="20" Height="12"/>;
<asp:linkbutton id="lblink1" runat="server" font-overline="false" text="<%# Eval(" category")%&"="">' CommandArgument='<%# DataBinder.Eval(Container.DataItem, "category") %>;' Font-Size="10" Font-Names="Arial" CommandName="Click><asp:linkbutton>>
<asp:bulletedlist bulletstyle="Square" id="bullet" runat="server" datatextfield="subcategory" font-bold="true" font-names="Arial" font-size="12px">&
i want to display the bulletlist after the link button..
but i store the subcategory in one table and category will be stored in another table pls help me...
|
|
|
|
|
Where u want to display bulletlist ?
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
if i click any one of the category the bulletlist of the sub category display below the category.....
|
|
|
|
|
(1) Use commandName
CommandName="CategoryClick instead of Click
(2)Set Gridview attribute:
<asp:gridview id="CustomersGridView"
onrowcommand="CustomersGridView_RowCommand".....
(3)Add below method in Code behind file:
void CustomersGridView_RowCommand(Object sender, GridViewCommandEventArgs e)
{
if(e.CommandName=="CategoryClick")
{
string Category = e.CommandArgument;
}
}
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
but i used two table ... one table used for store category and another table used for store subcategory
That only i cannot display the record in one gridview
|
|
|
|
|
Execute Query for Sub Category and then bind your bulletlist on Row command event which was i have already post.
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
Do you think you could EVER give a message a title other than "Question?"
You don't use the code tags.
READ THE FORUM GUIDELINES
|
|
|
|
|
hai friends
in a page i m checking whether user is valid or not thru the database
if user is not a valid then i m redirecting the user to login page
here i m gettin a error msg like this
"Thread was being aborted"
and then it is showing the login page
how to over come this problem
plz help me
i searched a lot in google but i didnt get it.............
thanks in advance
vijay
|
|
|
|
|
I think you using Try Catch block in Aspx code behind file and you have written Response.Redirect(..) method in Try and Catch Block.
If problem is like above stated then use
Response.Redirect("page.aspx",true);
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
Like , i can select top 10 records , how can i select last 10 records .
I used the following query , but did not work.
select top 10 columnname from tablename order by columnname desc
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
i think this is because of your "order"
|
|
|
|
|
This is a SQL question, try the SQL forum. But, changing from ASC to DESC, will work.
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 )
|
|
|
|
|
Pankaj Garg wrote: but did not work
You have to be a lot more specific. That something "did not work" is not a useful description. What happened? What did you expect it to do, and how did what it do differ from what you expected? Did you get any error message?
Pankaj Garg wrote: select top 10 columnname from tablename order by columnname desc
You have to be a lot more specific. That is exactly the example that you would get as answer to your question. What does the actual code that you used look like?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi all,
I want to know wether we can animate images in datalist or repeater in asp.net..If so please tell me the property...
in which we can animate the image horizontal or vertical like that
|
|
|
|
|
There is no property. I recommend you read a book on ASP.NET and learn what it does, and how HTML works.
You can move an image using javascript, but an animated GIF is probably your best bet.
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 )
|
|
|
|
|
How to avoid concurrency when updating a data.If a user login and try to modify some data,at the same time another user wants to change the same dat.Then a concurrency occur.How to avoid this concurrency using ado.net means sql server .i am using c# application.Please send some code for overcome this problem.
|
|
|
|
|
VS2008
Can anyone point me in the right direction for working with a DataSet in Javascript/AJAX.NET?
I have seen examples that return a DataSet in a WebMethod and work with the tables and rows from the returned result but I get a 'circular reference while deserializing' error message...
I want to be able to call a WebMethod asynchronously, return a DataSet and then populate and Infragistics WebGrid with the data.
How do I get the data from the DataSet into the client script?
Thanks for any help...
|
|
|
|