|
When you compile your project (Windows/Class library) check Jeffrey Richter's CLR via C# book
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
In composite control, i have created a child control....what are the arguments can i give for that child controls..
Thanks in advance
pavan...
|
|
|
|
|
Hi Everyone,
Using this function it opens the default mail application(msoutlook) but not attaching files. Can anyone help me in this regard.
Mtest = "<script language='javascript'> window.location= 'mailto:test@yahoo.com&subject=testing mail&body=testing&attachment=""""D:/test.log""""';</script>"
Regards,
Manowj
|
|
|
|
|
You can do this a lot easier with the MailMessage and SmtpClient class. That way you don't need javascript to send e-mail from your asp.net website.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
Hi WillemM,
Thanks for your response. I need to popup the default mail client(Outlook express/ms outlook) with file attached in client side scripting not as a .NET user screen.
Regards,
Manowj
-- modified at 3:39 Wednesday 12th September, 2007
|
|
|
|
|
is that file is on client's machine?
I mean how can you use path like "D:\test.log" if its not on the client's machine
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
i have develped an application which supports three language spanish, english and french. i have used resource file to achieve this task. My problem is, i am having a web form which contains three label box first name, last name and middle name in resource file i have set the value for all the languages, is it possible to update resource programatically coz the client wants all the fields should be editable & correspondin value should be reflect at the resource file.
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
how DLL's will be created in custom controls(in our application)
pavan...
|
|
|
|
|
Please delete this post as you already repost one more query
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
When ScriptManager Control is placed in Content Page the ScriptManager Control is underlined red thereby notifying about an error condition.
Error Condtion is :
"Element ScriptManager is not a known element. This can occur if there is a compilation error in the website."
How do I tackle this problem ?????????/
Sanjay Nicholas Piramal
|
|
|
|
|
Sanjay Nicholas Piramal wrote: When ScriptManager Control is placed in Content Page
I never used such control can you please elaborate some what so that will able to know What is Script Manager Control and why you put that one there
<edited> Again if you are adding anything directly in Master Page content Placeholder in Master it shows that one. Don't worry try to run the application and see what is result
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Try to add this line to your content page (at the top):
<br />
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %><br />
But I'm not that sure about it, because in some files it is present in some not ??
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hi all,
I am working on a web project where i have several data entry pages. On these pages i have to fill in First, last and middle names from a dictionary i created which is actually an autocomplete function (not that of Ajax) that is reading from the 3 database tables of first, last and middle names. The goal behind that dictionary is to limit data entry mistakes for those specific fields. Each table contains at least 30,000 name. My function works on loading all the names on client side at page load and that is taking tooooo much time. The technique is working fine after loading the names but my issue is that it is taking so much time. Any one have different ideas for my issue and thanks.
|
|
|
|
|
Whats the code for connecting xml file to form in windows applications and also code for connecting two forms in windows applications
Ramya
|
|
|
|
|
we cannot do your work. r u a student or the programmer.
Do you there is our best friend. try to get the answer from him and leran the concet from the book. these are all very simple.
SSK.
|
|
|
|
|
i didn't understand what you want
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi,
i am developing a c# based web application. I incorporated a radgrid on to my user form, and filled it programmatically.
However i get an indexoutofrangeexception whenever i click to move on to the next page.
Below is the code that i ham using to bound items.
//CODE STARTS
<code>protected void rgCases_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e)
{
int index = e.Item.ItemIndex + (rgCases.PageSize * rgCases.CurrentPageIndex);
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
lnkBtn = new LinkButton();
lnkBtn.ID = "LinkButton1";
lnkBtn.Text = "<a href='./CasesDetail.aspx?idCase=" + ds.Tables[0].Rows[index][0].ToString() + "'>" + ds.Tables[0].Rows[index][4].ToString() + "</a>";
item["idcase"].Controls.Add(lnkBtn);
}
} </code>
//CODE ENDS
The exception arises in the line
<code>lnkBtn.Text = "<a href='./CasesDetail.aspx?idCase=" + ds.Tables[0].Rows[index][0].ToString() + "'>" + ds.Tables[0].Rows[index][4].ToString() + "</a>"; </code>
The exception detail is as follows
There is no row at position 5.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.IndexOutOfRangeException: There is no row at position 5.
Source Error:
<code>
Line 299: lnkBtn.ID = "LinkButton1";
Line 300:
Line 301: lnkBtn.Text = "<a href='./CasesDetail.aspx?idCase=" + ds.Tables[0].Rows[index][0].ToString() + "'>" + ds.Tables[0].Rows[index][4].ToString() + "</a>";
Line 302: item["idcase"].Controls.Add(lnkBtn);
Line 303: }
</code>
MY page size is 5 as well.
cana nyone please help, if not on how to remove on a TELErIK RAdgrid, atleast tell me, how i can remove on a Grid
thanks,
Kunal
|
|
|
|
|
kunal_gct wrote: There is no row at position 5.
Thanks to Dotnet Exception is clearly mentioning why it is occuring.
Try to debug the application see the content of datset
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi sandeep
I wrote this code now,
<br />
HyperLink link = (HyperLink)item["idcase"].Controls[0];<br />
((LinkButton)(item["idcase"].Controls[0])).Text = item["keycase"].Text;<br />
((LinkButton)(item["idcase"].Controls[0])).ResolveUrl("./CasesDetail.aspx?idCase=" + item["idcase"].Text);<br />
But now i get another exception. this time an argumentoutofrangeexception.
this is the line
Line 344: ((LinkButton)(item["idcase"].Controls[0])).Text = item["keycase"].Text;
please advise
|
|
|
|
|
Hi all,
I need to set the dropdownlist's selectedvalue in to other dropdownlist present in other form. how to do it?
|
|
|
|
|
Pass that value into other form using query string.
In other form.write code to set value
string param=Request.Querystring["val"];<br />
ddl.SelectedValue=param;
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
What do you want? Other form on the same page or a form on other page?
Naresh Patel
|
|
|
|
|
I need the first tab to display a default aspx form in my solution. I am using Master pages and content pages. The aspx form is a content page.
Does anyone have a solution or even wording to Google for an answer? I haven't been able to find anything on Google yet as I'm probably not wording it correctly?
Thank you.
|
|
|
|
|
Hi all,
I have a form with a button and a textbox. When i click button, linkbutton will be create on form.
When i click linkbutton, "Hello" will be filled into textbox.
protected void Button1_Click(object sender, EventArgs e)
{
LinkButton lbtn = new LinkButton();
lbtn.ID = "MyLinkButton";
lbtn.Text = "Welcome";
lbtn.Command += new CommandEventHandler(lbtn_Command);
form.Controls.Add(lbtn);
}
protected void lbtn_Command(object sender, CommandEventArgs e)
{
txt.Text = "Hello";
}
But when i click LinkButton, Command event is not raised.
What can i do to raise Command event of LinkButton?
|
|
|
|
|
Problem is when u click on Button then LinkButton will be created and added in the form.But when u click on the Linkbutton at that time u can not create linkbutton againg.You have to create every postback.
try to create it on Page_Load event
try this code.
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
CreateBtn();<br />
}<br />
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
CreateBtn();<br />
}<br />
public void CreateBtn()<br />
{<br />
LinkButton lnk= new LinkButton();<br />
lnk.ID = "MyLinkButton";<br />
lnk.Text = "Welcome";<br />
lnk.Click += new EventHandler(lnk_Click);<br />
form.Controls.Add(lnk);<br />
}<br />
public void lnk_Click(object sender, EventArgs e)<br />
{<br />
txt.Text = "Hello"; <br />
}
Best Regard
Pathan
---------------------------------------------------
|
|
|
|