|
If you have them in some kind of container control (e.g HTML table), you should be able to set the vertical alignment CSS property. That way, if the table cell has the same height as the multi-line text box, you can set vertical-align on the label's cell to be the top of the cell. This will make it appear that the label's top border is on the same line as the multi-line text box's top border.
Hope that helps.
Have faith in yourself; amateurs built the Ark, professionals built the Titanic.
|
|
|
|
|
Thanks alot, I tried the exact same thing right after posting this and it worked...instead of table, I used a span though and was able to set the v-align under style on that. Thanks for the response.
Tina
|
|
|
|
|
I've a webservice, My client want to access this webservice, using this service he has to send messages. But here problem is he is not able to access the service. My webservice is based on HTTPS.
But we created one windows service to send data, we don't face any problem while sending data to webservice, but our client not able to send data to my webservice.
What are issues behind this.If anybidy know the solution, Please let me know.
Thanks in advance.
|
|
|
|
|
this is the code :
<code><columns>
<asp:commandfield showselectbutton="True" showeditbutton="True" xmlns:asp="#unknown" />
<asp:boundfield datafield="Name" headertext="Name" sortexpression="[Name]" xmlns:asp="#unknown" />
<asp:boundfield datafield="Description" headertext="Description" sortexpression="" xmlns:asp="#unknown" />
<asp:boundfield datafield="Price" headertext="Price" sortexpression="[Price]" xmlns:asp="#unknown" />
<asp:boundfield datafield="Rating" headertext="Rating" sortexpression="[Rating]" xmlns:asp="#unknown" /><asp:checkboxfield datafield="IsSubsciption" headertext="Is Subsciption" xmlns:asp="#unknown"> SortExpression="[IsSubsciption]" />
<asp:hyperlinkfield navigateurl="<b">"CrossSellEdit.aspx?id=<%#Eval("Id") %>" Text="Attach Products" /></asp:hyperlinkfield>
</asp:checkboxfield></columns></code>
this is the error details :
Parser Error
<b>Description</b>: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
<b>Parser Error Message</b>: Literal content ('<asp:HyperLinkField NavigateUrl="CrossSellEdit.aspx?id=+') is not allowed within a 'System.Web.UI.WebControls.<big>DataControlFieldCollection</big>'.
<pre>
Line 26:<asp:checkboxfield datafield="IsSubsciption" headertext="Is Subsciption" xmlns:asp="#unknown">
Line 27: SortExpression="[IsSubsciption]" />
<b>
Line 28: <asp:hyperlinkfield navigateurl="CrossSellEdit.aspx?id=+<%#Eval("Id") %>" text="Attach Products" /></b>
Line 29:
Line 30: <emptydatatemplate></emptydatatemplate></asp:checkboxfield></pre>
|
|
|
|
|
AT first glance it looks like #Eval("Id") must = + which it obviously doesn't like. Have you tried debugging to see?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Try with comething like tis:
navigateurl='<%# Eval ("Id", "CrossSellEdit.aspx?id={0}") %>'
Alexei Rodriguez
|
|
|
|
|
Are you using a gridview?
If so, I find it much easier to use the onRowDataBound E.G.
OnRowDataBound="GridView1_RowDataBound"
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
// on each row which is DataRow populate dropdown lists
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView drv = (DataRowView)e.Row.DataItem; //For datatable it is dbdatarecord if datareader
HyperLink hl = (HyperLink)e.Row.FindControl("HyperLinkId");
hl.NavigateURL = "CrossSellEdit.aspx?id=" + drv["id"].ToString();
}
}
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
I am new to regex, i want write regex for number that accept
between 1 and 999,999,999 value.
cvan you pls send me the regex.
Thanks n advance.
|
|
|
|
|
People aren't going to do your job for you.
You have to at least make an attempt. Post some code if you get stuck...
I didn't get any requirements for the signature
|
|
|
|
|
Try Google, there are lots of good regex tutorials.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
Background: I built a really cool chat that just uses ajax and asp.net pages. Its even event based. I had to build it because nothing else out there does what I want.
Problem: I have to store the chat messages and some other things as global variables in the application variable. Like List<chatmessage> msgList.
But I get invalid cast exceptions when I try to initialize a local variable of the same type. Its because its not thread safe. So, from different threads List<ChatMessage> isn't the same type.
my only other solution is to create a separate list for each property of ChatMessage. like List<string> msgList_msg; List<string> msgList_is_blocked, List<string> msgList_date, List<string> msgList_userId.
I don't want to do that but I don't feel like I have a choice.
Any Ideas or Suggestions?
|
|
|
|
|
hy ...
The query iz how can i read the contents of a MSword file
on a static web page...using asp.net c#
I used filestream for this purpose as it accepts both synchronous and asynchronous file reading but failed to open the word page on web page..
plz help me out
|
|
|
|
|
anyone please help me
I am designing program in which the program has to convert a pay slip generated (programatically) to .pdf . The thing is the data required for the form is taken from database and is captured in a PAY SLIP format(.aspx) , which is then convertd (the pay slip generated) to .PDF
My questions are
how to capture the screen (.aspx), containing the payslip generated , and convert into the .pdf ?
can .aspx screenshot be converted to .pdf (pay slip) ?If no how do I convert the .aspx to .html (with the captured data from dtabase) , such that I can convert .html to .pdf (I have a third party software to convert .html to .pdf)
may please help me
any mistakes above may please excuse me
Thanks in Advance
Kovuru Sreedhar
|
|
|
|
|
there are some examples of this being done but I dont know any good ones to recommend. Check this thread out though it appears to be discussing your problem
Convert to .pdf
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Hi All,
I have created a XML Web Service with ASP.NET 2.0 . it is working fine with the client application in my local machine,but when i uploaded to the server which is having asp.net 2.0 framework,webmethod return an error called
"Method SessionCreate can not be reflected"
I am unable to find this issue since it is working fine in my computer(which is also having asp.net 2.0)
can any one help me to solve the issue?
Thanks in Advance.......
|
|
|
|
|
Dear members
i have a two major problems -
1. i need to implement the funda of remoting in our application, how it can be possiable........
2. i want to display date & day in given below form---
SEPTEMBER
1 - Wednesday
2 - Thursday and so on or upto no of days in month......
Please help me.
|
|
|
|
|
Hi,
I m using a gridview in which in an item template I have placed an dropdown and one textbox.
I want to fill the textbox on selected index change of this dropdown box. the value for the textbox will come from database.
I tried to write code on selected index , rowdatabound event, row command but cannot get the desired result.
can anyone help me out??
regards
Vijay V.
Yash Softech
|
|
|
|
|
VijayVishwakarma wrote: I tried to write code on selected index , rowdatabound event, row command but cannot get the desired result.
For SelectedIndexChanged event you need enable the AutoPostback property to True. Have you done that?
modified on Tuesday, September 30, 2008 11:10 PM
|
|
|
|
|
thanks for reply.
did that but still not working. cannot display values on selected index change.
regards
Vijay V.
Yash Softech
|
|
|
|
|
Post your code. Let me check...
|
|
|
|
|
i got the solution.
thanks for help.
regards
Vijay V.
Yash Softech
|
|
|
|
|
Hi all,
I am using Visual Studio 2005 and .net 2.0. I want to scroll down the listbox items according to the value in the textbox entry. For example, if we type "a" in the textbox, the listbox entries which starts from "a" should be listed. Is it possible with dropdown list control? Shall we add items to dropdownlist controls at runtime? Please guide me.
Thanks.
|
|
|
|
|
kandalu wrote: Shall we add items to dropdownlist controls at runtime?
Yes
or you could sort them by the letter a. A query would help you here so that when you populdate the dropdownlist from the database you can select by and order by the letter 'a' for example.
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
You can use javascript base XMLDOM approch (AJAX) to achieve the task
Thanks & Regards
Pete
|
|
|
|