|
getaccessyr wrote: Remind that NO one is efficient as they think themselves ok,Even you.
I agree.... budd..
My suggestion is not meant to make you down. I just wanted to know if you know the basics clear. I have seen lots of people who doesnt knows basics right..
Well, regarding your issue, say you want to add a control in the client side, use this :
function addElement() {
var element = document.createElement('input');
element.id = 'txtbox1';
element.name = 'txtbox1';
element.type = 'text';
var cont = document.getElementById('mydiv');
cont.appendChild(element);
}
This will add a textbox in the client side to a container div element.
Now If you want to detect what value you enter in the client side to this textbox use :
string valueEntered = this.Request.Form["txtbox1"];
Also if you want to control to appear in the client side, add the control to the divelement in the server side also during this postback.
Actually, when postback occurs, the page is recreated in the server side and thus any client side controls that is created will be removed. If you want the textbox again, recreate the TextBox object using
TextBox tb = new TextBox();
tb.Text = valueEntered;
this.mydiv.Controls.add(tb);
I hope you are clear now.
|
|
|
|
|
|
getaccessyr wrote: ThankYou
If it Helps mark it as answer so tht it will be helpful to others..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
hi Abhishek,
Thankyou for your reply...
Dont think in other way for my reply which i gave earlier ok.
If u got hurted, Sorry for that..........
Wish u a Happy Christmas n New Year In Advance
|
|
|
|
|
No problem.. I didnt hurt.. I am always like to guide people in right path, as most of others here does.
Generally, I used to be very busy with my normal work in the morning, so sometimes cant give exact solution. Its ok.
Merry Christmas to you too.
Cheers
|
|
|
|
|
getaccessyr wrote: if you know try to reply with better ways to get the solution
Just Here many people just post the question without any basics..!
here no body is getting paid. every one is trying to help and learn..!
You ask him a question first if he replied with you a question ..!Is it Wrong..?Just to know how much you have tried?
getaccessyr wrote: NO one is efficient as they think themselves ok,Even you.
Yes thts Right..! But this is not the way to say Mr..!
getaccessyr wrote: If you dont know solutions then you dont reply ok
Its Rude..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi there
I created a web application on VS.NET 2003 that generates reports using crystal reports v 10… it is working fine on other PCs, but in my PC I get this error every time I try to run the report…
a crystal reports job failed because a free license could not be obtained in the time allocated. More licenses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online store.
My Crystal Reports v10 is already registered and licensed
Any idea how to solve this issue??
|
|
|
|
|
NinaWilliam wrote: My Crystal Reports v10 is already registered and licensed
Then why dont you call their helpline to sort it out.
|
|
|
|
|
I did, but no answer
|
|
|
|
|
Help me please
|
|
|
|
|
Come on guys... help me
|
|
|
|
|
Hi there,
I checked the DLLs files in C:\Windows\Assembly and find out it contains many versions of CR DLLs... I also, checked the .vbproj and web.config files to match the versions and key tokens... and it match... but this still didn't solve the problem
I am getting the same error every time I run a report in my application.
I uninstall CR10 and reinstall it again... but no use...
I cantact the CR Suppot in there website... and I didn't receive any reply from them
If you have any idea how to solve this error, please share
|
|
|
|
|
I am still having this issue not fixed...
I tried to uninstall crystal reports 10 and reinstall it again... but this didn't solve the problem... when I run a web application developed in vs.net 2005 everything is fine and the report run smoothly... but if i try to run it in a web application developed in vs.net 2003 I get an error
I don't know waht to do,,,
|
|
|
|
|
Hi There
After the frustration and being exhausted in searching for more than a month, I finally found a solution to my problem and I wanted to share it with you.
All what I had done I download the Crystal Reports 10 Service Pack 6 from here
http://resources.businessobjects.com/support/communitycs/FilesAndUpdates/cr10win_en_sp6.zip
Then I install it.
After that I run the web application and generate a report
IT IS WORKING !!
I hope it helps ^__^
|
|
|
|
|
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
System.Web.Services
WinCrs
|
|
|
|
|
Hello All,
I need to be able to set an href property of an anchor tag to a javascript which will basically mimick a mouse click event. Can someone show me an example of how to go about doing that. I have barely used Javascript and not too familiar with it. Any help would be higly appreciated. Thanks
~tina
|
|
|
|
|
Hi
<a href="javascript:test()">
Click Me...
</a>
<script>
function test()
{
alert("Thanks.");
}
</script>
Mohammad Khansari
|
|
|
|
|
function changeAnchor(){
var anchor = document.getElementById('myanchor');
anchor.href = 'javascript:alert("you might call any function here");';
}
<a href="javascript:changeAnchor();" id="myanchor" > Click me </a>
This will change the anchor href property during first click of the anchor.
|
|
|
|
|
Thanks guys!
Abhishek, as I mentioned I wanted to mimicks the mouse click event (i.e the exact same thing that happens when a user uses a mouse to click on something) but instead I'm trying to do it from the tab button....so having said that how's an alert dialog box going to help. When the tab is hit and the user hits enter on the link, this event needs to fire so that the other code (which we already have that opens up another page will execute, so my problem is to make this work within these constraints, i cant just show the user an alert box!
Can you elaborate on this a little bit, thanks guys!
~Tina
|
|
|
|
|
Hi guys,
I got little problem here. I cannot get the value for ColName. Below are my code
<tr ondblclick="job_detail('<%#Eval("id")%>');" >
<td width="15"><input name="Checkbox51" type="checkbox" style=" width:13px; height:13px;" value="<%#Eval("id")%>" /></td>
<%
For j = 0 To countCol - 1
Response.Write("<td width=" & colSize(j) & ">" & Eval(colName(j)) & "</td>")
Next
%>
</tr>
It give me an error :
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
Can someone help me.
Thanks in advance.
matju
ma tju
Software Application Engineer
Petaling Jaya,Selangor, Malaysia
Ring Master SB MVP 2008
Petaling Jaya MOP (Otai)
|
|
|
|
|
hi,
Just remove eval from Response.Write("<td width=" & colSize(j) & ">" & colName(j) & "</td>") this line.
Hope it 'll help u
Thanks
|
|
|
|
|
Hi,
Actually i need to use Eval to bind the data from datasource. But to use eval I need to include the '#' sign.
ma tju
Software Application Engineer
Petaling Jaya,Selangor, Malaysia
Ring Master SB MVP 2008
Petaling Jaya MOP (Otai)
|
|
|
|
|
can you put the code that how you bind the datasource?
Regards
Keyur Satyadev
|
|
|
|
|
Sure, here is the code.
Dim conn As New SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings(0).ConnectionString)
Dim sqlDA As New SqlDataAdapter("SELECT id, filename, img_size FROM image ORDER BY id", conn)
Dim ds As New DataSet
Dim pgDataSrc As New PagedDataSource
Try
sqlDA.Fill(ds, "tl")
pgDataSrc.DataSource = ds.Tables("tl").DefaultView
pgDataSrc.AllowPaging = True
pgDataSrc.PageSize = 20
pgDataSrc.CurrentPageIndex = CurrentPage
'rptInbox is a repeater control
rptInbox.DataSource = pgDataSrc
rptInbox.DataBind()
Catch ex As Exception
Return False
Finally
conn = Nothing
sqlDA = Nothing
ds = Nothing
End Try
Well sometimes user want to see just 1 or more column in the repeater. Thats why i use for loop to generate the column. Hope this help.
Thanks in advance.
ma tju
Software Application Engineer
Petaling Jaya,Selangor, Malaysia
Ring Master SB MVP 2008
Petaling Jaya MOP (Otai)
|
|
|
|
|
why should you write the response.write here as bind function only work with control.
you can use just Databinder.Eval() or simply Eval() as it your repeater control you get all the values.
for more specify your exact need to writing the response.write as its just give the message.
Regards
Keyur Satyadev
|
|
|
|