|
I'm trying to pass multiple DataKeynames after a selection is made in the Gridview, and to view them in a DataList where the selection matches them. Right now it will only display the first selected parameter (jacket).
Here is my code:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" Visible="false"
BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="jacket, closure, shielding" ForeColor="Black" GridLines="Vertical" Width="750px" OnPageIndexChanging="gridViewPublishers_PageIndexChanging" OnSorting="gridViewPublishers_Sorting"
AllowPaging="True" PageSize="20" AllowSorting="True" PagerSettings-Mode="NumericFirstLast">
<FooterStyle BackColor="#CCCCCC" />
<Columns>
<asp:CommandField ItemStyle-Width="70" ShowSelectButton="True" />
<asp:BoundField ItemStyle-Width="130" DataField="partnumber" HeaderText="Partnumber" ReadOnly="True" SortExpression="partnumber" />
<asp:BoundField ItemStyle-Width="100" DataField="jacket" HeaderText="Jacket" SortExpression="jacket" />
<asp:BoundField ItemStyle-Width="220" DataField="closure" HeaderText="Closure" SortExpression="Closure" />
<asp:BoundField ItemStyle-Width="110" DataField="shape" HeaderText="Shape" SortExpression="shape" />
<asp:BoundField ItemStyle-Width="130" DataField="shielding" HeaderText="Shielding" SortExpression="Shielding" />
</Columns>
<SelectedRowStyle BackColor="#7c7979" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="#CCCCCC" />
<PagerSettings Mode="NumericFirstLast" />
</asp:GridView><br /><br />
<asp:DataList ID="DataList1" runat="server" BackColor="#1679d5" BorderColor="#999999"
BorderStyle="Solid" BorderWidth="1px" CellPadding="3"
ForeColor="White" GridLines="Vertical" DataSourceID="SqlDataSource1" Visible="false">
<FooterStyle BackColor="#CCCCCC" />
<SelectedItemStyle BackColor="Blue" Font-Bold="False" ForeColor="White" />
<ItemTemplate>
<table>
<tr>
<td style="width:120px; font-weight:bold;">
<asp:Label ID="materialLabel" runat="server" Text='<%# Eval("material") %>' />
</td>
<td style="width:450px;">
<asp:Label ID="Label" runat="server" TabIndex="1" Text='<%# Eval("marketing_tagline") %>' />
</td>
<td style="width:150px; text-align:center;">
<div class="SearchDataLink">
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("material", "dataSheet.aspx?id={0}") %>' TabIndex="2" Target="_blank" Text="View datasheet" />
</div>
</td>
</tr>
</table>
</ItemTemplate>
<AlternatingItemStyle BorderWidth="1" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ZippertubingConnectionString %>" SelectCommand="SELECT * FROM [ProductVerbage] WHERE ([material] = @jacket) OR ([material] = @closure) OR ([material] = @shielding) " >
<SelectParameters>
<asp:ControlParameter ControlID="GridView1" Name="jacket" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="GridView1" Name="closure" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="GridView1" Name="shielding" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
|
|
|
|
|
Hi!
I'm using Visual web developer 2005 express edition. I want to create a Solution which could contain a Web project and a Class library project, but I'm unable to find the option to create Class library project.
Can anybody help me for this problem?
Best regards.
|
|
|
|
|
this is what i am doing:
query the database to return 100 records into a dataset
then binding to a grid and enabling paging, with a page size of 3.
when changing page all 100 records are rebound to the grid
what i want to do:
to improve efficiency
query the database to return 100 records into a dataset
then binding to a grid and enabling paging, with a page size of 3 AND just send the 3 records to the users gridview, then when page 2 is requested just send the second page of data (records 4,5,6) to the grid from the dataset.
Thanks
|
|
|
|
|
If you are using asp.net 2.0 you can use a sqldatasource and turn on caching. If you are using asp.net 1.1 you can use a cache object to hold the dataset. Check to see if it is in the cache if it is use it if not then re-query for the data.
Hope that helps.
Ben
|
|
|
|
|
I am doing an application in which i have textboxes and grid control...
When i click on the row header, the values in ultrawebgrid, get populated on to the appropriate text boxes...
that too works fine..but when i click multiple row headers one after other, it
shows a java script error like this;
Error : 'getRow(....) is null or not an object
Code: 0
URL: http://teles/LPEMP/emp.aspx
I dont know why this is happening...?
Anyone please help me ....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Hi all,
I have developed a spring java web service which will be consumed by .net client
when ever I am adding a web reference from .net it fetching me error
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading 'http://iss2w900:7001/GetIssuerWS/ServiceSchema/Services/Core/v1/Issue/GetIssue/input.xsd'.
- The request failed with HTTP status 405: Met
'http://iss2w900:7001/GetIssuerWS/ServiceSchema/Services/Core/v1/Issue/GetIssue/input.xsd'.
this is path for my xsd file that internally call another schema location.
Cabn u please help me out
vijaya
|
|
|
|
|
The url you have above for you web service is on your local PC port (7001). This is not available to anyone outside your PC. You will need to install your web service on a web service that has the correct dns entries so that othere systems can access the web service and use it.
Hope that helps.
Ben
|
|
|
|
|
Hi,
I'm trying to pass a text input box to an activex control, written in C#, but I keep getting "class doesn't support automation". Is it not possible to pass html element instances to activex controls? If it is, what type should the C# UserControl use as its parameter?
Thanks for any info!
|
|
|
|
|
Actually i have some URL Normalization issues but can you please tell me what more should i consider while normalizing the URLs. Like for example right now i am following these rules:
1. Converting the URL to lowercase.
2. Removing the fragment.
3. Removing the default port.
4. Removing the www part like http://www.example.com to http://example.com
5. Adding the trailing slash.
Now what else should I follow in order to make a URL a unique URL to Crawl. Thanks for your cooperation.
AliAmjad (MCP)
|
|
|
|
|
What exactly do you mean by making a unique URL for crawling? Your normalization process seems to turn a valid URL into one that may or not may not be valid.
|
|
|
|
|
Johnny ² wrote: What exactly do you mean by making a unique URL for crawling?
Here i am actually applying the URL Normalization Rules to make the URL equivalent to that URL which may be discovered later on that is why i am using the unique keyword here.
For example if i have discovered a URL http://www.example.com:80/ and later on discovered the same URL on another site as http://www.example.com/ then by applying normalization rules i can compare these two URLs.
But i am not sure whether these rules a sufficient or not need your suggestions.
AliAmjad (MCP)
|
|
|
|
|
On a page i have a bunch of checkboxes, and a gridview. I want the checking of a checkbox to filter the records showing in the gridview, basically if checkbox A checked then filter results to show where Column A is true - is this something AJAX can do, and if so how is it done?
Many Thanks
|
|
|
|
|
Hi,
Are you using AJAX to bind grid?If so you cannot get the Grid Data at the clientside as it doesnt keep history.The best way is to call a javascript function which identifies the checked checkbox and pass it as querystring to the target URL using AJAX Call.In the codebehind create a method which connects to Database (assuming there is no session holding the Data.If so you can get from session)passing the filter condition and retreive the result.Once done bind the grid with the HTML content of Grid.
All this can be done asynchronously.
Let me know of any clarifications.
Rajesh Thomas
|
|
|
|
|
Hai,
I am working in Php and Mysql 5.0.
I need to create an online newsletter.
I have to send newsletter (Html files or Email with a pdf file as an attachment) to all email – ids which are stored in an online database.
The html newsletter and pdf file are stored in a folder on the webspace.
I login to our website and send the newsletters through a link or button. This should bind the newsletter to the email id and send the email to the recipient. All this should happen online server-side and automated. The website SMTP should be used minimizing our local bandwidth.
Please, help me to solve this problem. Thanks in advance
Regards,
G.Manivannan M.Sc.,[IT],
Software Programmer (VBA),
AKUVA Infotech, Bangalore.
|
|
|
|
|
Hi
Would like to know if it would be advantageous to store a dataset of all the rows in a SQL DB table in a Application variable and just use a backup function that resets the varible everytime a update is made.
Eg.
myAdapter.fill(data);
Application["Data"] = data;
and when I retrieve
Dataset data = (Dataset)Application(data);
thanx
|
|
|
|
|
No it wouldn't:
- what happens when you have a lot of data?
- DB provides more functionality to query data
- computation load can be distributed on db server and web server
However, caching of little bunches of data is highly advised to get better performance.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
i m developing web application in which i m sending and receiving sms through mobile connected with a cable. but sms is not receiving.
|
|
|
|
|
are you aware of AT commands and using them?
|
|
|
|
|
what is the device you are using and what is the protocol?
|
|
|
|
|
I've used Siemens GSM modem in one project. I can send and receive messages without problems. First, you should see AT-commands manual. If you did this before, but you can't receive sms messages, it can be problem with COM port communications. Sometimes you can find information about this in the manual about AT commands for your phone.
PS But I recommend you to use special GSM modems, because you will receive all needed materials in one box.
|
|
|
|
|
Dear frnd
there have any way that we can access file property through ASP?
means i need modified date,location,size on disk,file attribute.
if any one has done it before please inform me.
Thank you
abhishek
|
|
|
|
|
|
If i check Parent node all child node must be selected in html menu,please do the needful
parthiban
|
|
|
|
|
Parvai wrote: please do the needful
This makes no sense, sorry.
Parvai wrote: If i check Parent node all child node must be selected in html menu
So you have some sort of DHTML menu with checkboxes. Does it have a support forum ? We can't hope to help you based on the info you have provided. What menu ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi everybody,
i ve written code for image slideshow using slideshowextender in ajax..
now if the user selects a particular image,tat image should be displayed in a seperate image control....
how to give the image path to the new image control..
the paths for slideshow is stored in an array...
pls help me out...
-diwakar
|
|
|
|