|
There are no components that magically create one for you, you need to write it yourself.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
*grin* what does that mean ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
No component...you can find some other open source projects ....
<< >>
|
|
|
|
|
Hi All,
Please suggest me any good component, which converts doc to pdf, merge pdf, spilt pdf, barcode generation on pdf file.
I tried on google, i found Dynamic PDF but i am here becuase i want to get benifit from you guys experience.
Many Thanks & Best Regards,
Adnan
Many Thanks,
Adnan Rafiq
muhammadadnanrafiq@gmail.com
|
|
|
|
|
Hi,
Please suggest me any article, how to deploy ASP.Net 2.0 application on LAN or Intranet.
Many Thanks & Best Regards,
Adnan
Many Thanks,
Adnan Rafiq
muhammadadnanrafiq@gmail.com
|
|
|
|
|
Use the publish function under Build menu....
<< >>
|
|
|
|
|
can anyone help me with dll files for example creating email,calendar,etc in asp.net and how to use them in asp.net!
|
|
|
|
|
s_a_200263 wrote: can anyone help me with dll files for example creating email,calendar,etc in asp.net and how to use them in asp.net!
Sorry, I really don't understand what you mean.
To use a DLL file (an class library assembly) add them it as a reference to your project. You'll then be able to access the classes within.
|
|
|
|
|
I have heard for example I can use outlook in my portal through a dll file!!
|
|
|
|
|
You can send emails using classes built into the framework. Outlook can be interoped with C#, but not, I don't believe, as web controls.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Our company is wanting to implement AJAX and it has been my task to get everything up and running. One of the major issues that I have run into is throughout our application we use response.write to use JavaScript files in our basepage. See Example:
Response.Write("")
Response.Write("")
I have been trying for the page few days to use ClientScript.RegisterStartupScript or ClientScript.RegisterClientScriptBlock()but with no luck. My Ajax section is working without the response.write but with them I get the dreaded sys.webforms.pagerequestmanagerparserErrorException error.
Any kind of suggestions will be great.
Thanks,
Cisco2103
|
|
|
|
|
Why is it necessary to write out the script tags? Can't they just be placed on the page directly?
You need to add these to the header section of the page. RegisterClientScript places them in form. You could try overriding the Init or PreInit for the page and inserting them then.
only two letters away from being an asset
|
|
|
|
|
I've tried putting them in the header section of the page but with no luck. Not very familiar with Init and PreInit since I am pretty new to .Net What would I accomplish by doing this?
|
|
|
|
|
cisco2103 wrote: I am pretty new to .Net
Perhaps you should step back do some research first.
only two letters away from being an asset
|
|
|
|
|
I would think asking an asp.net question on a forum devoted to asp.net could be considered a form of research.
|
|
|
|
|
cisco2103 wrote: I've tried putting them in the header section of the page but with no luck.
Just add Literal controls with the script as text, as children to Page.Header .
cisco2103 wrote: Not very familiar with Init and PreInit since I am pretty new to .Net What would I accomplish by doing this?
Nothing, really. It doesn't matter much when you add the controls to the page, as long as it's done before the renderinging, and that only rules out the Unload and Disposed events, AFAIK.
---
single minded; short sighted; long gone;
|
|
|
|
|
Use RegisterClientScriptBlock to add javascript to your page. Better yet, as you're referencing .js files ( which is always better ), just put the code direct into the aspx.
I tend to use registerclientscript block to create variables in my script which give me the names of ASP.NET generated controls, so I can interact with them in my javascript/AJAX code.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The following line
(Convert.ToDecimal(NET.Text) / 117.5 * 100).ToString()
creates the value - 42.55319148 ......
All i wantis 42.55
How do I go about this?
Thank
|
|
|
|
|
ToString("#.00") if you want to restrict and force 2 decimals places
ToString("#.##") if you want to restrict 2 decimals places
ToString("N2") equivalent to ToString("#.00")
|
|
|
|
|
You can use abs for absolute value. abs((Convert.ToDecimal(NET.Text) / 117.5 * 100)).ToString(###,###.##)
|
|
|
|
|
Thanks for that. I found i didnt need the abs though. It was just the formatting string on the tostring method that got me where i wanted. Although it would only accept it as a string so had to add " " around it.
Thanks
Convert.ToDecimal(NET.Text) / 117.5 * 100)).ToString("#.##")
|
|
|
|
|
Hi All
I created a web page on which I have a GridView. I took AccessDataSource as GridView's DataSource. On selection changing Event of gridview, I redirect selected Row's data to other form where User can Edit and get back to previous page. Its my need that I hve to redirect to new page for editing not in the GridView itself. Everything working fine but After Editing when I returned to GridView page, the GridView is not updated, It requres Refresh(f5) to show updated gridview. I tried GridView.DataBind() using IsPostBack but no benefit. Please Guide me , Thanks
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
mydb = new myDB();<br />
if (mydb.Conn.State == ConnectionState.Closed)<br />
mydb.Conn.Open();<br />
<br />
if (!IsPostBack)<br />
{<br />
<br />
if (Request.QueryString["GridIndex"] != null)<br />
{<br />
int GVIndex = Convert.ToInt32(Request.QueryString["GridIndex"]);<br />
string sortingField = Request.QueryString["SortingField"];<br />
string sortingOrder = Request.QueryString["SortingOrder"];<br />
SortDirection sd = new SortDirection();<br />
if (!sortingField.Equals(""))<br />
{<br />
if (sortingOrder.Equals("Ascending"))<br />
{<br />
sd = SortDirection.Ascending;<br />
GVRackMaster.Sort(sortingField, sd);<br />
}<br />
else<br />
{<br />
sd = SortDirection.Descending;<br />
GVRackMaster.Sort(sortingField, sd);<br />
}<br />
}<br />
GVRackMaster.PageIndex = GVIndex;<br />
GVRackMaster.DataBind();<br />
<br />
}<br />
}<br />
<br />
GVRackMaster.DataBind();<br />
}<br />
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
After removing your if(!=PostBack) block the following is left;
protected void Page_Load(object sender, EventArgs e)
{
mydb = new myDB();
if (mydb.Conn.State == ConnectionState.Closed)
{
mydb.Conn.Open();
}
GVRackMaster.DataBind();
}
It appears that after the first time the page loads, your not updating your datasource. That would explian why you don't see the update unless you reload the whole page.
BTW, you should ad something to ensure that the mydb.Conn is closed when your done, just in case. Hope this helps!
|
|
|
|
|
Thanks mnvkng76 for Reply.
I am using AccessDataSource as DataSource of GridView. So when I update the Table RackMAster, AccessDataSource is updated automatically. So where is the need of updating DataSource. Second thing I don't know where Should i write code for closing the connection, PLease tell me.
Although I changed my connection code to
protected void Page_Load(object sender, EventArgs e)
{
if (mydb.Conn.State == ConnectionState.Open)
{
mydb.Conn.Close();
}
mydb.Conn.Open();
}
But problem remains the same.
AccessDataSource has nothing to do with mydb because I made AccessDataSource in design time so I don't thinks mydb can affect accessDataSource. Is there any way to Refresh AccessDataSource.
Hope to get a solution from u earliest. Thanks
Bye
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|