|
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
Sir,
I am using a function in the edititemtemplate of the datagrid to return a table.The table is getting displayed with all td'd except one thing.The problem is i am using aspff:textbox tag to invoke the textbox in the td but not dispaying but if i use input tag of type text the control is comming successfully.
I am using the following code to return the table. for invoking the textbox
public function abc(byval str as string)as string
dim str1 as string
str1 +=<table width=100%>
str1+=<tr>
str1+=<td>
str1+=<asp:textbox id=wdc runat = server ></asp:textbox>
str1+=</td>
str1+=</tr>
str1+=</table>
|
|
|
|
|
Although you don't show it I assume you are doing something like this with the string you are creating
Control.InnerText = str1
That won't work, <asp:???> is a server tag, the ASP.NET engine renders it on the server into HTML for consumtion by the client browser. You are just putting it into a string and sending it to the client browser.
only two letters away from being an asset
|
|
|
|
|
Although the HTML controls can be rendered into the datagrid edititemtemplate .But when the asp.net tag is send into datagrid row using the string in the code behind file it does not workCan u send some code.
Can u send some code for that.?
|
|
|
|
|
few days ago i posted a question about atlas and browser compatability and a guy told me
atlas can run smoothly in any browser but he told me to include atlascompat.js file.
i include the file but it does not work.i always found that atlas properly run in IE and FireFox
but can run in opera and netscape.so if there is a technique by which i can run atlas related
application in any browser then pls tell me in detail step by step or give me a url from where
i can get step-by-step instruction and which help me to run atlas related application in any
browser like IE,FireFox,Opera,Netscape.pls help urgent....!
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: a guy told me
atlas can run smoothly in any browser but he told me to include atlascompat.js file
No I didn't - I actually said that atlascompat.js is SUPPOSED to sort all this stuff out.
AFAIK, Atlas WILL support all major browsers - talking to some of the team members at an MSDN event not long ago, this is apparently one of the major aims of the project as a whole (not very MS in my opinion hehe!). Unfortunately however, we're still in a CTP situation, so it's unsurprising that some bits either don't work, or are a little flaky (I myself have problems with UpdatePanels, and was VERY pleased to hear that they've added support for Atlas in user controls!)
Best bet would be to check out the documentation (not brilliant I admit!) and look in the blogs - this almost seems to be the way MS does their documentation these days hehe.
As an aside, are you sure that using Atlas is such a good idea at this stage? You say you need this urgently - you are aware of the GoLive license restrictions?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
hi all,
in my application i have an datagrid in which i have a templatecolumn with check box and one text box.my exact need is whan i click the check box the text in the next cell should assigned to the textbox in that row.
any help appreciated.
with regards,
susa
|
|
|
|
|
can u make it little more clearer. From what u said i think this will be ur solution. on the click event of the check box u will have to assign the valuee of the cell in the grid to the text box.If this is not the answer please be free to ask the same question again more clearly.
Vipin
|
|
|
|
|
Hi Friends,
Can anyone please tell me how to center allign a text in a label(server control).
Vipin
|
|
|
|
|
Hi Vipin
add this style attribute to your label control either in html mode or through code- label1.attributes.add("style","TEXT-ALIGN: center")
or
<asp:label id....="" runat="server" <b="">style="TEXT-ALIGN: center">
All the best
puranonnet
|
|
|
|
|
Thank u so much Pundeer. Ur answer worked. Once again Thank u.
Vipin
|
|
|
|
|
put that label in a table column and make that table column as center align.
Best Regards,
Apurva Kaushal
|
|
|
|
|
You need to put the l;abel control into the td tag which has an align property and setit to center.Hope this may solve ur problem.
|
|
|
|
|
Thank u so much 4 ur suggestion. I will try it Out..
Vipin
|
|
|
|
|
Yes It solved my problem. Thank u amaneet.
Vipin
|
|
|
|
|
Thank u Apurva. It worked fine.
Vipin
|
|
|
|
|
Hi All,
I have a repeater which contains a textbox. I want to add an event onto the textbox like this
txtComment.Attributes.Add("onkeyup", "return LimitText('txtComment','CharsRemaining',80);")
so that as a user is typing in one of the textboxes, a label will count down showing how many more chars he can type. However, this seems particularly tricky to achieve, as txtComment is showing as not defined as it is in the repeater.
Can anybody tell me how I can get this javascript onKeyUp handler into the textbox?
Many thanks,
Martin
|
|
|
|
|
You can use OnItemDataBound event to achieve that task. In that first you need to find that control and then you add the attributes to that control.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hello Martin
Web controls do not work as a standalone control in a page if it is a child control to some container control like repeater or datagrid etc.
To solve your problem add this code in your repeater controls On ItemDataBound event:
'----------------------------------------------------------------------------
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
CType(e.Item.FindControl("txtComment"), TextBox).Attributes.Add("onkeyup", "return LimitText('txtComment','CharsRemaining',80);")
End If
'----------------------------------------------------------------------------
All the best
Puran
puranonnet
|
|
|
|
|
Thanks both of you. You are quite right, and I have used your code Puran to get what I want.
Best regards,
Martin
|
|
|
|
|
Hello,
Do we need to copy .cs files wile deploying ASP.NET 2.0 Website? I could not find any DLL created there in Bin folder. What is deployment process for ASp.NET 2.0 website project?
Thanks in advance
- ashish
|
|
|
|
|
No, you don't need to publish the source files. Use Publish Web Site from the Build menu, or for more options, download the Web Deployment add-on for Visual Studio, and add a deployment project to the solution.
---
b { font-weight: normal; }
|
|
|
|
|
HI , where should i declare these three things ?
try to be good if you can't be the best
|
|
|
|
|
Man, you need to ask more specific questions. The answer to this could be anything.
|
|
|
|
|