Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Saturday, March 31, 2012

Server side code in-side aspx

I usually use code-behind pages in ASP.Net, but occasionally I have to put my
server code inside an aspx file.
I have a problem finding the correct signature for a button click event.
Private Sub loginbtn_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles loginbtn.Click
compiles in in code behind, but it doesn't compile inside an aspx file.

How can I write a server event handler and put the code inside an asp file?That is the correct signature. What's the error you get?

-Brock
DevelopMentor
http://staff.develop.com/ballen

> I usually use code-behind pages in ASP.Net, but occasionally I have to
> put my
> server code inside an aspx file.
> I have a problem finding the correct signature for a button click
> event.
> Private Sub loginbtn_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles loginbtn.Click
> compiles in in code behind, but it doesn't compile inside an aspx
> file.
> How can I write a server event handler and put the code inside an asp
> file?

Server Side Code dependent on JavaScript

Is there a way I can launch a Server Side function from JavaScript?

On a Button Click, I am using JavaScript to print to current page. When the print has been sent, I want to run a Server Side Function to update a record (which also changes the screen so I have to wait until it prints to run the server side function).

Thanks.I imagine in your JS function, you could print and then do a postback to the server?
This may get your problem resolved.

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Button1.Attributes.Add("onClick","javascript:DoSomething();");
string html = "";
html += "<script>";
html += " function DoSomething()";
html += " {";
html += " window.print();";
html += " }";
html += "</script>";
Response.Write(html);
}

private void Button1_Click(object sender, System.EventArgs e)
{
Update();
}

public void Update()
{
Response.Write("Now going to update the record.");
}
How to force a postback using javascript:

http://weblogs.asp.net/mnolton/archive/2003/06/04/8260.aspx

server side code access the text of <asp:label> changed by client-side javascript co

Is possible for server side code to access the text of <asp:label> changed
by client side javascript code?Yes, of course you can do it.

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
No, you will need to double the new value into a hidden text field, or some
other postable field, and then look for the change of the text through the
Request.Forms["txtHidden1"] property on postback to determine if the text
has changed.

bill

"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
If you mean accessing the text via the label's Text property, the answer is
no.

You can pass the changed text to the server in one of the common ways of
passing values from client to server, for example in a hidden field.

Eliyahu

"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?

server side code access the text of <asp:label> changed by client-side javascri

Is possible for server side code to access the text of <asp:label> changed
by client side javascript code?Yes, of course you can do it.
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>
No, you will need to double the new value into a hidden text field, or some
other postable field, and then look for the change of the text through the
Request.Forms["txtHidden1"] property on postback to determine if the text
has changed.
bill
"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>
If you mean accessing the text via the label's Text property, the answer is
no.
You can pass the changed text to the server in one of the common ways of
passing values from client to server, for example in a hidden field.
Eliyahu
"nick" <nbdy9.removethis@.hotmail.com> wrote in message
news:%23UAnyAt4EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Is possible for server side code to access the text of <asp:label> changed
> by client side javascript code?
>

Server Side Code..

How to decide to use WebControls.Button or HtmlControls.HtmlInputButton
controls in a web application. When I am getting the clicked event handler
for both of them on the server side. Thanks,

NelsonHi Nelson,

I would definitely go with the <asp:Button> in your case and use code
behind. This makes it easy to hook up your code if you are using an IDE
like VS.Net and will seperate your code from your UI. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Nelson" <NelsonSmith1997@.hotmail.com> wrote in message
news:evpYtjRyEHA.3224@.TK2MSFTNGP14.phx.gbl...
> How to decide to use WebControls.Button or HtmlControls.HtmlInputButton
> controls in a web application. When I am getting the clicked event handler
> for both of them on the server side. Thanks,
> Nelson
>

Server Side code withoout page refresh

Is it possible if I can call server side code without the page
refreshing?

Thanks,

SeanShort answer : no, if it's a postback.
On the first call, yes, of course.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
<seanmle@.gmail.com> wrote in message news:1140807565.766741.128340@.v46g2000cwv.googlegr oups.com...
> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has a
very simple (feature wise) implementation for IE.

-- bruce (sqlwork.com)

<seanmle@.gmail.com> wrote in message
news:1140807565.766741.128340@.v46g2000cwv.googlegr oups.com...
> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
Yes.
You can use Remote Scripting callbacks (often now referred to as "AJAX").
This normally involves using XmlHttp from the client - side page DOM to make
a call into the server-side page and call a method on it, returning the
results as either javascript, JSON, or HTML which is used to update the DOM
at the client.

The new Atlas Framework does this for ASP.NET 2.0. You could also look at
Anthem.Net and MagicAJax.net over on Sourceforge.net if you are interested in
using a whole "framework" for this type of operation.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com

"seanmle@.gmail.com" wrote:

> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
>
Here you can find a comparison of AJAX frameworks, that allow page
updates with AJAX without reloading the whole page:
http://www.daniel-zeiss.de/AJAXComparison/Results.htm

Some frameworks allow roundtrips with ASP.NET server events without
updating any page content.
re:
>> Is it possible if I can call server side code without the page refreshing?
> yes. the techinque is call AJAX.

Sure, although you're still posting back...just not the whole page.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Bruce Barker" <brubar_nospamplease_@.safeco.com> wrote in message
news:e9I1uAYOGHA.3888@.TK2MSFTNGP10.phx.gbl...
> yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has a very simple (feature
> wise) implementation for IE.
> -- bruce (sqlwork.com)

> <seanmle@.gmail.com> wrote in message news:1140807565.766741.128340@.v46g2000cwv.googlegr oups.com...
>> Is it possible if I can call server side code without the page
>> refreshing?
>>
>> Thanks,
>>
>> Sean

Server Side code withoout page refresh

Is it possible if I can call server side code without the page
refreshing?
Thanks,
SeanShort answer : no, if it's a postback.
On the first call, yes, of course.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
<seanmle@.gmail.com> wrote in message news:1140807565.766741.128340@.v46g2000cwv.googlegroups
.com...
> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
>
yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has a
very simple (feature wise) implementation for IE.
-- bruce (sqlwork.com)
<seanmle@.gmail.com> wrote in message
news:1140807565.766741.128340@.v46g2000cwv.googlegroups.com...
> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
>
Yes.
You can use Remote Scripting callbacks (often now referred to as "AJAX").
This normally involves using XmlHttp from the client - side page DOM to make
a call into the server-side page and call a method on it, returning the
results as either javascript, JSON, or HTML which is used to update the DOM
at the client.
The new Atlas Framework does this for ASP.NET 2.0. You could also look at
Anthem.Net and MagicAJax.net over on Sourceforge.net if you are interested i
n
using a whole "framework" for this type of operation.
Peter
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"seanmle@.gmail.com" wrote:

> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
>
Here you can find a comparison of AJAX frameworks, that allow page
updates with AJAX without reloading the whole page:
http://www.daniel-zeiss.de/AJAXComparison/Results.htm
Some frameworks allow roundtrips with ASP.NET server events without
updating any page content.
re:
> yes. the techinque is call AJAX.
Sure, although you're still posting back...just not the whole page.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Bruce Barker" <brubar_nospamplease_@.safeco.com> wrote in message
news:e9I1uAYOGHA.3888@.TK2MSFTNGP10.phx.gbl...
> yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has
a very simple (feature
> wise) implementation for IE.
> -- bruce (sqlwork.com)
> <seanmle@.gmail.com> wrote in message news:1140807565.766741.128340@.v46g200
0cwv.googlegroups.com...

Server side code in-side aspx

I usually use code-behind pages in ASP.Net, but occasionally I have to put m
y
server code inside an aspx file.
I have a problem finding the correct signature for a button click event.
Private Sub loginbtn_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles loginbtn.Click
compiles in in code behind, but it doesn't compile inside an aspx file.
How can I write a server event handler and put the code inside an asp file?That is the correct signature. What's the error you get?
-Brock
DevelopMentor
http://staff.develop.com/ballen

> I usually use code-behind pages in ASP.Net, but occasionally I have to
> put my
> server code inside an aspx file.
> I have a problem finding the correct signature for a button click
> event.
> Private Sub loginbtn_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles loginbtn.Click
> compiles in in code behind, but it doesn't compile inside an aspx
> file.
> How can I write a server event handler and put the code inside an asp
> file?
>

Server Side Code..

How to decide to use WebControls.Button or HtmlControls.HtmlInputButton
controls in a web application. When I am getting the clicked event handler
for both of them on the server side. Thanks,
NelsonHi Nelson,
I would definitely go with the <asp:Button> in your case and use code
behind. This makes it easy to hook up your code if you are using an IDE
like VS.Net and will seperate your code from your UI. Good luck! Ken.
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.
"Nelson" <NelsonSmith1997@.hotmail.com> wrote in message
news:evpYtjRyEHA.3224@.TK2MSFTNGP14.phx.gbl...
> How to decide to use WebControls.Button or HtmlControls.HtmlInputButton
> controls in a web application. When I am getting the clicked event handler
> for both of them on the server side. Thanks,
> Nelson
>
>

server side control not visible in webpage

Hey there-
I have a newbie question regarding code behind:
Using inline code, I can run a simple page that binds data to a
datagrid. Now, I try to take the same code and use code behind, and
the page compiles fine, but no HTML is rendered to the page.
Here is the code from "WebForm1.aspx"
<%@dotnet.itags.org. Page Language="vb" Inherits="WebForm1" src="http://pics.10026.com/?src=WebForm1.aspx.vb" %>
<html>
<head>
<title>WebForm1</title>
</head>
<body>
<asp:datagrid id="datGrid" runat="server"/>
</body>
</html>
--
And here is the code for "WebForm1.aspx.vb"
Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Data
Public Class WebForm1
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
BindData()
End Sub
Sub BindData()
'1. Create a connection
Dim AccessConn As System.Data.OleDb.OleDbConnection
Dim AccessCommand As System.Data.OleDb.OleDbCommand
Dim AccessReader As System.Data.OleDb.OleDbDataReader
Dim strConn As String
Dim datGrid As New DataGrid
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\inetpub\wwwroot\AddressBook\da
tabase\Address.mdb;"
AccessConn = New System.Data.OleDb.OleDbConnection(strConn)
'2. Create the command object, passing in the SQL string
Const strSQL As String = "SELECT ID, LastName, FirstName FROM
tblAddress ORDER BY LastName"
Dim myCommand As New System.Data.OleDb.OleDbCommand(strSQL,
AccessConn)
'Set the datagrid's datasource to the datareader and databind
AccessConn.Open()
datGrid.DataSource =
myCommand.ExecuteReader(CommandBehavior.CloseConnection)
datGrid.DataBind()
End Sub
End Class
--
A couple of notes:
1) I removed the "Web Form Designer Generated Code" for simplicity
2) Why do I need to declare datGrid? None of the examples I have seen
don't declare the server controls.
Regards,
ChristianChristian,

> 1) I removed the "Web Form Designer Generated Code" for simplicity
Don't do that! JK! I would suggest trying your example with the web form des
igner code cause your datagrid object is initialized in there. Also make sur
e your query is returning rows.
-Calvin Luttrell
ProjectThunder.com
Calvin-
I didn't remove the code from the actual aspx file, just in the
example here. My query is returning rows. Like I mentioned in the
previous post, everything works great if I use inline code, it's when
I modify it to code behind that the control doesn't render.
Christian
"Calvin Luttrell/ProjectThunder.com" <calvinl@.projectthunder.com> wrote in message news:<Ov
6WqlUQEHA.2520@.TK2MSFTNGP11.phx.gbl>...
> Christian,
>
> Don't do that! JK! I would suggest trying your example with the web form
> designer code cause your datagrid object is initialized in there. Also
> make sure your query is returning rows.
>
> -Calvin Luttrell
> ProjectThunder.com
>
>
>
>
> --

server side control not visible in webpage

Hey there-

I have a newbie question regarding code behind:

Using inline code, I can run a simple page that binds data to a
datagrid. Now, I try to take the same code and use code behind, and
the page compiles fine, but no HTML is rendered to the page.

Here is the code from "WebForm1.aspx"

------
<%@dotnet.itags.org. Page Language="vb" Inherits="WebForm1" src="http://pics.10026.com/?src=WebForm1.aspx.vb" %>
<html>
<head>
<title>WebForm1</title>
</head>
<body
<asp:datagrid id="datGrid" runat="server"/
</body>
</html>
-------

And here is the code for "WebForm1.aspx.vb"

-------
Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Data

Public Class WebForm1
Inherits System.Web.UI.Page

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
BindData()
End Sub

Sub BindData()

'1. Create a connection
Dim AccessConn As System.Data.OleDb.OleDbConnection
Dim AccessCommand As System.Data.OleDb.OleDbCommand
Dim AccessReader As System.Data.OleDb.OleDbDataReader
Dim strConn As String
Dim datGrid As New DataGrid

strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\inetpub\wwwroot\AddressBook\database\Add ress.mdb;"
AccessConn = New System.Data.OleDb.OleDbConnection(strConn)

'2. Create the command object, passing in the SQL string
Const strSQL As String = "SELECT ID, LastName, FirstName FROM
tblAddress ORDER BY LastName"
Dim myCommand As New System.Data.OleDb.OleDbCommand(strSQL,
AccessConn)

'Set the datagrid's datasource to the datareader and databind
AccessConn.Open()
datGrid.DataSource =
myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
datGrid.DataBind()
End Sub

End Class
-------

A couple of notes:

1) I removed the "Web Form Designer Generated Code" for simplicity
2) Why do I need to declare datGrid? None of the examples I have seen
don't declare the server controls.

Regards,

ChristianChristian,

> 1) I removed the "Web Form Designer Generated Code" for simplicity

Don't do that! JK! I would suggest trying your example with the web form designer code cause your datagrid object is initialized in there. Also make sure your query is returning rows.

-Calvin Luttrell
ProjectThunder.com


Calvin-

I didn't remove the code from the actual aspx file, just in the
example here. My query is returning rows. Like I mentioned in the
previous post, everything works great if I use inline code, it's when
I modify it to code behind that the control doesn't render.

Christian

"Calvin Luttrell/ProjectThunder.com" <calvinl@.projectthunder.com> wrote in message news:<Ov6WqlUQEHA.2520@.TK2MSFTNGP11.phx.gbl>...
> Christian,
> > 1) I removed the "Web Form Designer Generated Code" for simplicity
> Don't do that! JK! I would suggest trying your example with the web form
> designer code cause your datagrid object is initialized in there. Also
> make sure your query is returning rows.
>
> -Calvin Luttrell
> ProjectThunder.com
>
>
>
>
> --

Server side excel programming

hi,
Can anybody tell me that how i could modify an excel
file resided in my web server without using excel
automation on my server side code. is there any other
alternative like third party software or etc.

plz i'm stuck.

Regrads
Avik Sengupta
Programmer
Manjushree InfotechYou could use ADO

>--Original Message--
>hi,
> Can anybody tell me that how i could modify an excel
>file resided in my web server without using excel
>automation on my server side code. is there any other
>alternative like third party software or etc.
>plz i'm stuck.
>Regrads
>Avik Sengupta
>Programmer
>Manjushree Infotech
>.
No fred,
the original excel is not a simple tabular type
datasheet so that i can use ADO to fetch and modify it.
ADO is not possible in this case

>--Original Message--
>You could use ADO
>>--Original Message--
>>hi,
>> Can anybody tell me that how i could modify an excel
>>file resided in my web server without using excel
>>automation on my server side code. is there any other
>>alternative like third party software or etc.
>>
>>plz i'm stuck.
>>
>>Regrads
>>Avik Sengupta
>>Programmer
>>Manjushree Infotech
>>
>>.
>>
>.

Server side HTML printing

Hi,
I am using a rich text editor (FCKEdit) on a webpage in which user can
enter formatted text.
The output of this control is HTML. Now on the code behind side, I need
to change some of this HTML and then print the HTML (the pretty
document - not the code) on the server printer.
Any ideas'
Thanks in advance<sprash25@.gmail.com> wrote in message
news:1149837637.843058.67720@.i39g2000cwa.googlegroups.com...
> Hi,
> I am using a rich text editor (FCKEdit) on a webpage in which user can
> enter formatted text.
> The output of this control is HTML. Now on the code behind side, I need
> to change some of this HTML and then print the HTML (the pretty
> document - not the code) on the server printer.
> Any ideas'
> Thanks in advance
>
Well, I can help you with the capture of the html side. The printing is
another matter. This code will capture the html just before it get sent to
the client. You also google for 'asp.net output html save'
Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
Dim _stringBuilder As StringBuilder = New StringBuilder()
Dim _stringWriter As StringWriter = New StringWriter(_stringBuilder)
Dim _htmlWriter As HtmlTextWriter = New HtmlTextWriter(_stringWriter)
MyBase.Render(_htmlWriter)
Dim html As String = _stringBuilder.ToString()
'here is where you can manipulate or save to file or database or maybe print
the html output string
writer.Write(html) 'this writes the page back out
End Sub
Mike

Server side HTML printing

Hi,

I am using a rich text editor (FCKEdit) on a webpage in which user can
enter formatted text.
The output of this control is HTML. Now on the code behind side, I need
to change some of this HTML and then print the HTML (the pretty
document - not the code) on the server printer.

Any ideas??

Thanks in advance<sprash25@.gmail.com> wrote in message
news:1149837637.843058.67720@.i39g2000cwa.googlegro ups.com...
> Hi,
> I am using a rich text editor (FCKEdit) on a webpage in which user can
> enter formatted text.
> The output of this control is HTML. Now on the code behind side, I need
> to change some of this HTML and then print the HTML (the pretty
> document - not the code) on the server printer.
> Any ideas??
> Thanks in advance
Well, I can help you with the capture of the html side. The printing is
another matter. This code will capture the html just before it get sent to
the client. You also google for 'asp.net output html save'

Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)

Dim _stringBuilder As StringBuilder = New StringBuilder()
Dim _stringWriter As StringWriter = New StringWriter(_stringBuilder)
Dim _htmlWriter As HtmlTextWriter = New HtmlTextWriter(_stringWriter)
MyBase.Render(_htmlWriter)

Dim html As String = _stringBuilder.ToString()

'here is where you can manipulate or save to file or database or maybe print
the html output string

writer.Write(html) 'this writes the page back out

End Sub

Mike

Thursday, March 29, 2012

server side replacing window?

Hi, I am wondering if we can program any server side code that will achieve this like "javascript:window.top.location.replace(page.aspx);" ... ??

eg:

void Button1_CLick(object sender, EventArgs e)
{

//replace the window like in javascirpt

}No, not from within the server code. You have to return the javascript and have that do the replace.

server side rendering of the OWC 11 chart... sample?

Hi,
I'm looking for a sample code to generates a PNG (or Gif..) image from an
OWC chart object connected to an OLAP cube.
I'll generates an MDX command dynamically and I want to display a simple
chart (pie, column, etc...)
thanks for your guides, my google search return nothing useable for the
moment.
Jerome.google this newsgroup there is plenty of documentation in here
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @. www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
----
"Jj" <willgart@.BBBhotmailAAA.com> wrote in message
news:eJN9tjKIGHA.2948@.TK2MSFTNGP10.phx.gbl...
> Hi,
> I'm looking for a sample code to generates a PNG (or Gif..) image from an
> OWC chart object connected to an OLAP cube.
> I'll generates an MDX command dynamically and I want to display a simple
> chart (pie, column, etc...)
> thanks for your guides, my google search return nothing useable for the
> moment.
> Jerome.
>
all my searches return nothing good for me.
any good link in mind?
"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
news:etc%23BVRIGHA.208@.tk2msftngp13.phx.gbl...
> google this newsgroup there is plenty of documentation in here
> --
> Regards,
> Alvin Bruney [MVP ASP.NET]
> [Shameless Author plug]
> The Microsoft Office Web Components Black Book with .NET
> Now Available @. www.lulu.com/owc
> Forth-coming VSTO.NET - Wrox/Wiley 2006
> ----
>
> "Jj" <willgart@.BBBhotmailAAA.com> wrote in message
> news:eJN9tjKIGHA.2948@.TK2MSFTNGP10.phx.gbl...
>
Chart.ExportPicture ?
http://msdn.microsoft.com/library/d..._HV05259733.asp
my 2 cents ;)
-= Tonio =-
well... after some work I have a first version of my control...
"Antoine Prevot" <AntoinePrevot@.discussions.microsoft.com> wrote in message
news:19BCEE08-C569-4CFC-8530-2335AA8CEC45@.microsoft.com...
> Chart.ExportPicture ?
> http://msdn.microsoft.com/library/d..._HV05259733.asp
> my 2 cents ;)
> --
> -= Tonio =-
>

server side rendering of the OWC 11 chart... sample?

Hi,

I'm looking for a sample code to generates a PNG (or Gif..) image from an
OWC chart object connected to an OLAP cube.

I'll generates an MDX command dynamically and I want to display a simple
chart (pie, column, etc...)

thanks for your guides, my google search return nothing useable for the
moment.

Jerome.google this newsgroup there is plenty of documentation in here

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @. www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-----------------

"Jj" <willgart@.BBBhotmailAAA.com> wrote in message
news:eJN9tjKIGHA.2948@.TK2MSFTNGP10.phx.gbl...
> Hi,
> I'm looking for a sample code to generates a PNG (or Gif..) image from an
> OWC chart object connected to an OLAP cube.
> I'll generates an MDX command dynamically and I want to display a simple
> chart (pie, column, etc...)
> thanks for your guides, my google search return nothing useable for the
> moment.
> Jerome.
all my searches return nothing good for me.

any good link in mind?

"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
news:etc%23BVRIGHA.208@.tk2msftngp13.phx.gbl...
> google this newsgroup there is plenty of documentation in here
> --
> Regards,
> Alvin Bruney [MVP ASP.NET]
> [Shameless Author plug]
> The Microsoft Office Web Components Black Book with .NET
> Now Available @. www.lulu.com/owc
> Forth-coming VSTO.NET - Wrox/Wiley 2006
> -----------------
>
> "Jj" <willgart@.BBBhotmailAAA.com> wrote in message
> news:eJN9tjKIGHA.2948@.TK2MSFTNGP10.phx.gbl...
>> Hi,
>>
>> I'm looking for a sample code to generates a PNG (or Gif..) image from an
>> OWC chart object connected to an OLAP cube.
>>
>> I'll generates an MDX command dynamically and I want to display a simple
>> chart (pie, column, etc...)
>>
>> thanks for your guides, my google search return nothing useable for the
>> moment.
>>
>> Jerome.
>>
>>
Chart.ExportPicture ?

http://msdn.microsoft.com/library/d..._HV05259733.asp

my 2 cents ;)

--
-= Tonio =-
well... after some work I have a first version of my control...

"Antoine Prevot" <AntoinePrevot@.discussions.microsoft.com> wrote in message
news:19BCEE08-C569-4CFC-8530-2335AA8CEC45@.microsoft.com...
> Chart.ExportPicture ?
> http://msdn.microsoft.com/library/d..._HV05259733.asp
> my 2 cents ;)
> --
> -= Tonio =-

Server Side Scripting in ASP.Net

Hello,
I am new to .Net, I want to know how do I code Server Side
Validation scripting in a .aspx page. I am using Visual Studio .Net 2005.
Please Help me.
Thank you> Hello,
> I am new to .Net, I want to know how do I code Server Side
> Validation scripting in a .aspx page. I am using Visual Studio .Net 2005.
> Please Help me.
> Thank you
Drag a CustomValidator onto the page, set properties like ErrorMessage
(it's permitted to leave ControlToValidate blank!). Double click it, to
create a server-side handler.
Add any testing code and set the args.IsValid to true or false,
depending on the result of the test.
Note: when you set the ControlToValidate to some control (textbox), and
the value of that control is empty, the validator (read: your server
side code) is NOT run. If you leave ControlToValidate empty, your code
is always run.
Hans Kesting

Server Side Scripting in ASP.Net

Hello,
I am new to .Net, I want to know how do I code Server Side
Validation scripting in a .aspx page. I am using Visual Studio .Net 2005.
Please Help me.
Thank youHello,

Quote:

Originally Posted by

I am new to .Net, I want to know how do I code Server Side
Validation scripting in a .aspx page. I am using Visual Studio .Net 2005.
Please Help me.
Thank you


Drag a CustomValidator onto the page, set properties like ErrorMessage
(it's permitted to leave ControlToValidate blank!). Double click it, to
create a server-side handler.
Add any testing code and set the args.IsValid to true or false,
depending on the result of the test.

Note: when you set the ControlToValidate to some control (textbox), and
the value of that control is empty, the validator (read: your server
side code) is NOT run. If you leave ControlToValidate empty, your code
is always run.

Hans Kesting

Server side tag syntax?

I'm using a sample of course code that has server-side tags in different syntaxes, and I don't understand the difference between them:

<%$ ConnectionString:bnDefaultCS%>

<%# Country%>

I can't find a help file or web page that explains the difference (probably because search engines ignore those characters).

What does the $ mean and what does the # mean? are there any others I'm missing?


<%# Country%> // DataBinding (binds the property value)

Country is a public property of the page probably... something like Public String Coutry... in the codebehind.

<%$ ConnectionString:bnDefaultCS%> // If i am not mistaken this is called 'expressions' Where ConnectionString is the expresion and bnDefautlCS is the param it expects, kind of. so for example with resources.. it looks like<%$Resources:Class,ResourceID%>

Is declaritve syntax for special elements that can be created in the frameowrk.

So for example <%$ ConnectionString: is telling the frameowrk to look in web.config and find the connectionString "bnDefaultCS" ( the same type of stuff is used for resource files. )

There is proably a much nicer, more technical answer someone will probaly add to this thread, but as far as functionality that is the basics.