|
it gave me a agly page with some tracing information & like i said the
Adapter.fill(DtSet,"Table") line is colored to red
i think that it is not the same way to access data , i heard something like user or something , may be i have to create a user to access those data or i don't know
did you understand what i mean ?
try to be good if you can't be the best
|
|
|
|
|
Hi, this can be due to many reasons. First check the connection(whether you are getting connected or not), and then also the query which you are passing to fetch the data(command object) and also you can also trap the exact error which you are getting.
Best Regards,
Apurva Kaushal
|
|
|
|
|
i will give you a flash like that may be you will understand me
well , in vb.net you just set the connectionsstring of a connection object then you have immediatly access to your DB
in asp.net , as i learned , you have to create a user in the DB you work on like that you have access , i created this user but first i don't find it like a useful way , the second thing is that i don't know what is the problem
this is the error :
connection failed for the user .....
i don't know if the creating of those users is the real & the effective solution to access data from an asp.net application
try to be good if you can't be the best
|
|
|
|
|
Mohammed Amine wrote: just set the connectionsstring of a connection object then you have immediatly access to your DB
Not quite. You still need to open the connection before you can query the database.
Mohammed Amine wrote: in asp.net , as i learned , you have to create a user in the DB you work on
No, access is granted via the user id and password supplied in the connection string, if any, or it uses windows credentials if integrated security is specified in the connection string.
only two letters away from being an asset
|
|
|
|
|
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
|
|
|
|