|
Exactly,
I need the output assemblies, but I dind't find any way to configure VWD to put compiled code files into a single assembly that is built and persisted in the \bin,
|
|
|
|
|
Basically, VS does not generate the assemblies in the bin folder, but there are a couple of options which you can use the generate the output assembly of the web site:
+ Puslish the web site from the Build menu, however this option is not available in the Express Edition.
+ Use the ASP.NET Compilation Tool (Aspnet_compiler.exe[^]), for more information see ASP.NET Web Site Precompilation [^]
+ Use the Web Project 2005[^] instead of the default Web Site template, the option will generate the output assembly in the bin folder like when you build the web project in VS 2003. But again I'm not sure if it could help in the case of the Express Edition.
|
|
|
|
|
Ok, I'll try to use Aspnet_compiler.exe,
tks for help
|
|
|
|
|
I want to implement Audio Chat Server in ASP.NET
Can you please guide me in this regard like how can i implement what packages will be used
or if there is any opensource chat server in .NET kindly tell me.
and approx how much time it will take me to implement
R A M
|
|
|
|
|
I have a datagrid to show the data import from database. So my datagid has more than one row.I add select button at the front of each row. So, Each row has its own select button ( radio type ). So if the user chose the either one of the radio button for the datagrid and click ok button , how i know ( or the coding ) that actually which row has been selected by the user? give provide some code for me to analyze ? thank fou very much !
|
|
|
|
|
This article should help you out. It does have code.
Link[^]
|
|
|
|
|
Can someone include the steps that would allow me to connect to a remote SQL Server using a Trusted Connection in IIS? Please include an example of the connect string if possible. Also to note, I am using Form Authentication on the website. Currently we have the connection string encrypted in the registry use a sql server account and want to get away from the model.
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
|
Thanks, I will have time to give the 2nd one listed a try next week.
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
hi,i'm using this code in my submit button :
if(CheckBox1.Checked)
{
HttpCookie cook=new HttpCookie("user",TextBox1.Text);
Response.Cookies.Add(cook);
}
but when i check my cookies folder i found nothing,can anyone help me on this,thanx
|
|
|
|
|
|
I have opened a Popup window with this code:
Dim sScript As String
sScript &= ""
sScript &= "window.open('" & sUrl & "',''," & sFeatures & ");"
sScript &= ""
Response.Write(sScript)
In the Popup.aspx page I have three places to input information and I store each piece recorded in the session variable with this code:
Dim strExpectations As String = ddlExpectations.SelectedItem.Value
Dim strMarks As String = txtMarks.Text
Dim strNotes As String = txtNotes.text
Session.Add("Expectations", strExpectations)
Session.Add("Marks", strMarks)
Session.Add("Notes", strNotes)
I want to now close this popup and then retrieve the info at the window I used to open the popup in the beginning. the original window consists of a dynamically created table and when they make their selections I want to use that info to change the cell background and place soem text in the cell. After this is done the session will be cleared and the info sent through to the database.
I cannot get the Popup.aspx window to close - is there a simple way to place something like Me.Close()***this does not work, under the session stuff on the submit button???
Thx, Tammy
|
|
|
|
|
|
Hi I added a checkbox control in a datalist. I need to check the count of checkbox that user selects.each row has one checkbox. i need to count the number of checkbox before user can submit. only if the number of checkbox is 5 (not more not less) user can submit the form otherwise display error message. I manage to put a label control with in a datalist where by i can get the relevant id associated with that checkbox but couldnt figure out how can i actually submit the form only if its 5. checkbox is hardcoded and not coming from database.the row looks like this
checkbox productname productdesc
now if the user checks the checkbox i need to get a productname of the relevant row and if its five i need to submit those 5 product unless not.
please help how to acheive this. a code example will be great.
|
|
|
|
|
Hi there,
You can check out this site[^] for the sample script to get reference to the checkboxes (though it's using datagrid). You then use a custom validator to simply check the number of the selected checkboxes.
|
|
|
|
|
i have acheived this one but now it has to be more advanced.
how do i put checkbox list inside the nested repeater. the values of the listitem of checkboxlist should be coming form database. and also i need to make sure that user only checks only one checkbox item from checkboxlist. is there any quick tips for acheiving this. i know how to display information in nested datagrid such as.
Parent
child
child
child
but this time child should be actually a dynamic checkboxlist and based on which checkboxitem user select i need to get both parent id and child ID.
i am just looking for code hint to follow up.
any reference will be great at the moment. or a quick code hint.
thanks in forward.
|
|
|
|
|
If you only allow the use to select one item, you may use the RadioButtonList control instead. You can use a datasource control to feed to the RadioButtonList, or programmatically bind data to the control using the DataSource property and DataBind method. You can read more about how to use this control in MSDN.
|
|
|
|
|
Hi My aspx looks something like below,
-----------------------------------
<asp:repeater id="dlTrainingCourse" runat="server" OnItemDataBound="dlTrainingCourse_ItemDataBound">
<ItemTemplate>
<TABLE style="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: #e0e0e0 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #e0e0e0 1px solid; FONT-FAMILY: verdana"
cellSpacing="0" cellPadding="4" width="100%">
<TR>
<TD>
<asp:Label id=lblCourseId Text='<%# DataBinder.Eval(Container.DataItem, "tcId") %>' Runat="server" Visible="False">
</asp:Label>
<asp:Label id=lblCoursename Font-Bold="True" Text='<%# DataBinder.Eval(Container.DataItem, "tcName") %>' Runat="server">
</asp:Label></TD>
</TR>
<TR>
<TD><%# DataBinder.Eval(Container.DataItem, "tcDesc") %></TD>
</TR>
<TR>
<TD>Venue: <%# DataBinder.Eval(Container.DataItem, "tcVenue") %></TD>
</TR>
<TR>
<TD>Contact: <%# DataBinder.Eval(Container.DataItem, "tcContact") %></TD>
</TR>
</TABLE>
<asp:repeater id="dlTrainingCourseDate" runat="server">
<ItemTemplate>
<Table>
<tr>
<td style="font:8pt arial">
<%# DataBinder.Eval(Container.DataItem, "tcDateDesc") %>
</td>
</tr>
</Table>
</ItemTemplate>
</asp:repeater>
<hr size="1">
</ItemTemplate>
</asp:repeater>
--------------------------------------
and the output looks something like,
----------------------
event text
event desc
Venue info
Contact
25th October 2006 (pivot)
23rd May 2007
30th May 2007
27th June 2007
---------------------
the last four date info should actually be populated from checkboxlist or radiobuttonlist. user should only be able to select only one date and not more than 5 events. i need to capture event name and their preferred date.
i am at lost when binding the data to checkboxlist
please help.
|
|
|
|
|
Hi!
I actually managed to get displaying the checkboxlist working but having trouble getting the value of eventText and value of selected checkbox of each event.
my aspx looks something like,
===============================
<asp:repeater id="dlTrainingCourse" runat="server" OnItemDataBound="dlTrainingCourse_ItemDataBound">
<ItemTemplate>
<TABLE style="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: #e0e0e0 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #e0e0e0 1px solid; FONT-FAMILY: verdana"
cellSpacing="0" cellPadding="4" width="100%">
<TR>
<TD>
<asp:Label id=lblCourseId Text='<%# DataBinder.Eval(Container.DataItem, "tcId") %>' Runat="server" Visible="False">
</asp:Label>
<asp:Label id=lblCoursename Font-Bold="True" Text='<%# DataBinder.Eval(Container.DataItem, "tcName") %>' Runat="server">
</asp:Label></TD>
</TR>
<TR>
<TD><%# DataBinder.Eval(Container.DataItem, "tcDesc") %></TD>
</TR>
<TR>
<TD>Venue: <%# DataBinder.Eval(Container.DataItem, "tcVenue") %></TD>
</TR>
<TR>
<TD>Contact: <%# DataBinder.Eval(Container.DataItem, "tcContact") %></TD>
</TR>
<tr>
<td>
<asp:CheckBoxList id="chkDates" Font-Name="Verdana" Font-Size="8pt" DataTextField="tcDateDesc" DataValueField="tcDateDesc" runat="server"></asp:CheckBoxList>
</td>
</tr>
</TABLE>
<hr size="1">
</ItemTemplate>
</asp:repeater>
please help.
thanks
|
|
|
|
|
Hi!
In my button click event i actualy want to get what list item has been selected from checkboxitem but i get invalid cast exception
below are my button click event vb codes.
i get exception in 2nd line of below code
-------------------
Dim item As DataListItem
For Each item In dlTrainingCourse.Items
Dim chk As CheckBoxList = item.FindControl("chkDates")
For Each li As ListItem In chk.Items
If li.Selected Then
Response.Write(li.Value)
End If
Next
Next
------------
please help. much appreciation in forward.
|
|
|
|
|
uglyeyes wrote: Dim item As DataListItem
You may want to declare this object as RepeaterItem instead of the DataListItem.
|
|
|
|
|
Hi Its working fine.
but how will i let user only select one checkboxItem within checkboxlist within a repeater.
I know radiobuttonlist will be a good option but again. once the user selects a radiobuttonitem within a repeater they cant actually uncheck it.
please help.
|
|
|
|
|
You'll have many ways to check if the user select one or more items:
+ Use the server side code to count the number of the selected checkboxes in the Items collection.
+ Use javascript to validate if the user chooses more than 2 items, you can use a custom validator in this case.
+ Simply persist the current number of the selected checkboxes in a hidden textbox using javascript, and use the CompareValidator to validate the textbox.
+ Keep using the radiobuttonlist, but may consider adding another checkbox and place it right at the beggining of the category name to give the user an option to not choose any item.
It's weird when getting voted down with all 1s
|
|
|
|
|
Hi all
Can any one send me the example for Threading. Because i need to use threading concept in my app. Thanks in advance
Thanks and Regards
Venkat
|
|
|
|
|
Try doing a search on this site or elsewhere. Threading is a common knowledge area, you should find plenty of examples. Be warned though, you may actually have to do some reserch, thinking and work on your own.
|
|
|
|