|
ok let me implement it now
|
|
|
|
|
How to find the name of a project at runtime?
modified 9-Sep-21 21:01pm.
|
|
|
|
|
Member 4767447 wrote: How to find the name of a project at runtime?
1)Can You be More Specific?
2)For What Purpose?
|
|
|
|
|
I need to get the name of the solution or project of current project during runtime. The name of the solution has to be passed as input to another project.
modified 9-Sep-21 21:01pm.
|
|
|
|
|
How is this an ASP.NET question ? What are you trying to do on your website ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Need media_handler.cs for convert videos
|
|
|
|
|
Yes, you ARE a retard.
1 - this has nothing to do with ASP.NET
2 - it's not a programming question, it's a 'give me what I wanted, even tho I didn't even ask clearly for it' question
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
ya this is programming question that why i mention i need media_handler.cs means c# class.
|
|
|
|
|
You really are pretty stupid
1 - a programming question involves programming. Not 'give me this, because I can't be bothered doing it for myself'
2 - we can't tell what you want this class for, you have not said.
3 - we certainly didn't know it was C#
4 - this still has nothing to do with ASP.NET
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
bharat_doultani wrote: media_handler.cs
Here you go:
namespace Global.Hilarity
{
public class MediaHandler
{
public MediaHandler() {}
public byte[] ConvertVideo(byte[] objMedia, string strDestinationFormat)
{
return (Global.Abracadabra(objMedia, strDestinationFormat));
}
}
}
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
If I use this code in my project do I have to pay you royalties?
|
|
|
|
|
I m working on a web application,
I want to send an email from a web form,so please help me coz I m not able to configure SMTP Server on my local Machine.
The machine on which I m working is client machine in LAN.
If possible also send me the code for it.
modified 6-Jun-21 21:01pm.
|
|
|
|
|
ak_1989 wrote: If possible also send me the code for it.
There is no standard script to configure the SMTP Server and infact it is rather easy to configure it manually.
Did you try any of the links [^]from here.
Btw, at what point you are having problem?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi All,
I have an application in asp.net(C#), I've place back button on my web page.
On back button i have some sever side code.Problem is, when someone click on browser default back button, I am unable to execute my server side code on browser back button...
Please help me on this....
Thanks in advance
Yrishi
|
|
|
|
|
This Happens normally when You click the button more number of times for writing code.
Try Like This..!
1)Copy the Code from browser back button
2)go to source view delete the onclick="Button1_Click" html and delete the code of .cs file i.e. browser back button event completely with event.
protected void Button1_Click(object sender, EventArgs e)
{
}
3)Now go to button double click on the back button and paste the code..!
Hope it may help..!
|
|
|
|
|
Thanks for you reply,
sorry but my problem is, browser back button event is client side and i want to execute my server side code on that...
|
|
|
|
|
There are quite a few options:
1.) Use the web service.
2.) There is something called PageMethods [^]which you can make use of.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks for your reply...ok. I'll check it.
|
|
|
|
|
hello every one,i saw only fue controls in ajax tool kit,how can i get all the the control and use them.
|
|
|
|
|
The toolbox is useless, because the designer is useless. You should type your own markup, and as you do, you'll find you can select all the available controls. You can also control what's in the toolbox, but I never bother. Web developers should write their own code, b/c the generated stuff is always awful.
Unless you're working for an outsourcing company in India, then odds are that all your code is crap, you may as well use the designer to keep churning that stuff out.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
try this link download dll and add it in Your toolbox
[^]
|
|
|
|
|
Hello All,
I have a Gridview control that is working on my development machine, but in Production (Win 2003 Server) the Updating Event is not firing after the Edited Values have been changed and the user clicks on the "Update" link (Auto Generated). Does anyone see anything that may be preventing the "_Updating" event from firing?
<code><asp:GridView ID="gvRate" runat="server" AllowPaging="true" AutoGenerateColumns="false"
AllowSorting="true" OnPageIndexChanging="gvRate_PageIndexChanging" OnSorting="gvRate_Sorting"
EmptyDataText="No Data Found" CssClass="StyleSheet.css" PageSize="50" OnSelectedIndexChanged="gvRate_SelectedIndexChanged"
DataKeyNames="RateMasterId" ShowFooter="true" OnRowCommand="gvRate_RowCommand"
Width="100%" CellPadding="2" HeaderStyle-Font-Bold="true"
OnRowEditing="gvRate_RowEditing"
OnRowCancelingEdit="gvRate_RowCancelingEdit"
OnRowUpdating="gvRate_RowUpdating"
OnRowDataBound="gvRate_RowDataBound"
OnRowDeleting="gvRate_RowDeleting"
<!-- Rest of the Templates -->
</asp:GridView></code>
Here is what the code behind looks like:
<code>protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
GridDataBind();
}
}
public void GridDataBind()
{
ObjectManager loObjectManager = new ObjectManager();
DataTable dt = loObjectManager.GetObject().Tables[0];
gvRate.DataSource = dt;
gvRate.DataBind();
}
protected void gvRate_RowEditing(object sender, GridViewEditEventArgs e)
{
gvRate.EditIndex = e.NewEditIndex;
GridDataBind();
}
protected void gvRate_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
gvRate.EditIndex = -1;
GridDataBind();
}
protected void gvRate_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int liIndex = e.RowIndex;
Label lblMasterRateId = (Label)gvRate.Rows[liIndex].FindControl("lblRateMasterId");
// Delete the record
ObjectManager loObjectManager = new ObjectManager();
loObjectManager.DeleteRate(Convert.ToInt32(lblMasterRateId.Text));
Response.Redirect(BuildURLParameters());
}
protected void gvRate_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
// Update Logic Here
}
protected void gvRate_RowDataBound(object sender, GridViewRowEventArgs e)
{
// Populates a Combo Box Items
}
protected void gvRate_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
DataTable dataTable = gvRate.DataSource as DataTable;
gvRate.DataSource = SortDataTable(dataTable, true);
gvRate.PageIndex = e.NewPageIndex;
gvRate.DataBind();
}
protected void gvRate_Sorting(object sender, GridViewSortEventArgs e)
{
GridViewSortExpression = e.SortExpression;
int pageIndex = gvRate.PageIndex;
DataTable dataTable = gvRate.DataSource as DataTable;
gvRate.DataSource = SortDataTable(dataTable, false);
gvRate.DataBind();
gvRate.PageIndex = pageIndex;
}
protected void gvRate_SelectedIndexChanged(object sender, EventArgs e)
{
}</code>
Thanks,
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
If it works locally, then surely it's some sort of deployment issue. Are you sure it's not firing ? How can you tell, you didn't post the code, could it be that it fired but the code does nothing for some reason ( like an if block at the top of it ) ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello Chris,
The code is deployed into production correctly. I did a remote debugging of the code on the server and stepped through the code. It does not even hit the "Updating" routine. The only routine that does fire after the user clicks on "Update" link is the "Page_Load" event.
Thanks,
Pete
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|