|
kiranreddya wrote: on clicking the listbox item and then button a page should be opened
pages should be opened respective to the list item
How many items are there in ListBox?
Do you have number of pages respective to that items?
Have you tried your self for a single item?
What problem are you getting ?
please don't forget to vote on the post that helped you.
|
|
|
|
|
there are 6 items in the list box
I have respective pages for each item
I have tried it for one item
but i am unable to get it for more items
|
|
|
|
|
Post your code that you implemented?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Response.Write("yourPageNameHere");
|
|
|
|
|
I have a button too for opening
|
|
|
|
|
I have 4 datatable may be later in runtime it will come more than that...,
Now each datatble having first row and first cell is MID...,
Now i want to check all the datatables first row first cell...,
If its same values, then those datatables have to come in one folder..,
Else it have to create another folder and those datatble have to come in that folder...,
Example like this my datatble is there:
First Datatable
MID Name Year
1 E1 2000
1 E1 2002
Second Datatable:
MID Name Year
1 E2 2001
1 E2 2000
Third datatable:
MID Name Year
3 E3 2000
3 E3 2002
Fourth Datatable:
MID Name Year
4 E4 2001
4 E4 2000
Now see The datatable 1st and 2nd have to come in one folfer...,
Third have to come in one folder
Fourth have to come in one folder
How to do that
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
New one wrote: Logic problem in Datatable
Why are you asking one question again and again?
Can not you wait for an answer?
Can not you use your own logic?
This is not logic problem in datatable,this is your logic problem.
try to do your self.It is just logic that you have to do yourself.
Just think possibilities.
please don't forget to vote on the post that helped you.
|
|
|
|
|
What nonsense?
If someone provides you code then you mark that answer as good answer.
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,
I want to set serial number in my data grid. I have set paging also. I have created one template column for Sl.No. This following is my client side code. Pls help me. Serial number should start from 1 up to according to the data. On the next page, it should continue. It should not start again from 1.
<asp:datagrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 24px" runat="server"
AllowPaging="True" AutoGenerateColumns="False" CellPadding="3" BackColor="White" BorderWidth="1px"
BorderStyle="None" BorderColor="#CCCCCC" CssClass="GrdRows">
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<ItemStyle ForeColor="#000066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="srno" HeaderText="No"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Sr No.">
<ItemTemplate>
<![CDATA[<%#Container.ItemIndex + 1 + DataGrid1.CurrentPageIndex*DataGrid1.PageSize %>]]>
</ItemTemplate>
</asp:TemplateColumn>
Balasubramanian K.
|
|
|
|
|
Do not repost.
Is CDATA attribute in your code? if it is then remove it.
<![CDATA[<%#Container.ItemIndex + 1 + DataGrid1.CurrentPageIndex*DataGrid1.PageSize %>]]>
It should be
<%#Container.ItemIndex + 1 + DataGrid1.CurrentPageIndex*DataGrid1.PageSize %>
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks Mr.Imran. It is working well now. Thank you for your huge effort.
Balasubramanian K.
|
|
|
|
|
Hi,
I am using two buttons and doing crosspage postback and when i clicking on one button i want to send one constant string and clicking on another button i want to send another constant string.
How to send constant strings in crosspage postback.
|
|
|
|
|
bantrotu wrote: I am using two buttons and doing crosspage postback and when i clicking on one button i want to send one constant string and clicking on another button i want to send another constant string.
Please first clear your question.
Do you have two button and two constant variable in one page and you want to access that constant value in another page?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi Imran,
Ya u r right can u please tell me how to send the constant value using post back url.
|
|
|
|
|
Hi,
I have created template column for serial number in data grid. The following is my client side code. serial number should be generated according to the data. I set paging in my data grid. On the next page, serial number should be continued. It should not start from 1 again....Pls help
<asp:datagrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 24px" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="3" BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#CCCCCC" CssClass="GrdRows"> <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle> <ItemStyle ForeColor="#000066"></ItemStyle> <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle> <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle> <Columns> <asp:BoundColumn DataField="srno" HeaderText="No"></asp:BoundColumn><asp:TemplateColumn HeaderText="Sr No."> <ItemTemplate> <![CDATA[<#Container.ItemIndex + 1 + DataGrid1.CurrentPageIndex*DataGrid1.PageSize %>]]> </ItemTemplate> </asp:TemplateColumn>
etc...................
...........
Balasubramanian K.
|
|
|
|
|
I gave you an answer in your previous post and it is working in my case.
<#Container.ItemIndex + 1 + DataGrid1.CurrentPageIndex*DataGrid1.PageSize %>
What error are you getting in this code?
have you set PazeSize property?
Can you post your code behind code?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi all,
i am new to ASP.net and i ma developing a website using C#.
i hve lot of 3 listboxes in default.aspx say course name , students name and sudent total marks.
i will selcct course name in first list box, then the second list box show student name accoding to the course selction.then i hve the option to select student name in the second list box then it will show the total marks obtaind by the student in the third list box and These records are displaying frm an MS Acces DB abd all it works fine.But i hve to add new records in all these list boxes . ie: to DB.Suppose i hve to add a new student name , first i will select the course list box first then student name list box then.the problem arise here.When i add the new record, the record will inserted without any problem.
But the either the list box selction disappears(i hve to select again again for insertion)or the added record didn't appear in the list box eventhoug it added to the DB.i hve tried two ways .
First using the Response .Redirect() .then the first case happens no the second.
i hve tried another way usin Javascript.then the second case happens not the the first. but i need to dispaly the newly added record in the list box immiedialtel aftere inserion and keep the list selection i hve made before inserting...
pls help me..
thanks in advance..
Manikkuttan
|
|
|
|
|
Hi,
I want to assign data from database to checklistbox.
data contains ","
e.g.
str = "one,two,three"
Now I want to assign str to checklistbox and show them as selected items.
Thanks
|
|
|
|
|
Hello Friends,
Following is the runtime error that I have come across.
D:\Web up\Default2.aspx: ASP.NET runtime error: Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config line 59)
I am not able to run any of my applications due to this above mentioned runtime error.
Can anyone of you help me to resolve this problem?
Waiting for a reply....
Gaurav...
|
|
|
|
|
Hi,
Check the version of System.EnterpriseServices assembly in the global cache.
You need to add the respective version to the GAC.
If your version of the file is missing then copy it from
"windows\Microsoft.NET\Framework\v2.0<ur version="" goes="" here="">\System.EnterpriseServices.dll"
to the "windows\assembly\" folder.
Hope this helps,
|
|
|
|
|
Hi,
i am checking the validation for "Name" field, it should accept both character and alphanumeric.
for example:John, John23423 and it should not accept 23John or 1John.
i am using RegularExpressionValidator and ValidationExpression="^[a-zA-Z ]+$".The above validationExpression is valid for character, that is John, Mike not for John23.
Please help me which accepted the John123 format, that First field must be character.
Thanks in Advance.
<div class="ForumMod">modified on Thursday, July 17, 2008 4:04 AM</div>
|
|
|
|
|
Hi All,
I am using a file upload control in my application where I am inserting and editing the data. In edit mode I am retrieving values from the database and displaying in the respective control. So I want to display my file name I have stored in database in the file upload control. For this pupose which property of the file control should I use?
Rock Star
|
|
|
|
|
Rock Star. wrote: So I want to display my file name I have stored in database in the file upload control. For this pupose which property of the file control should I use?
Do you want to set value in FileUpload control that is retrieved from database?
if yes then it is not possible.
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi i have to run one stored procedure dynamically on each monday...,
I know its possible in window service...,
but i dont have any idea about window service...,
Plz help me
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
New one wrote: but i dont have any idea about window service...,
You can start with this[^]
Apurva Kaushal
|
|
|
|