|
What do you mean not saved in the project? Are you trying to display a PDF from memory? Or is it located at a physical location? If the latter, then get the path and display it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
The files do not have to be in 'my project' but they do have to be in an internet share that have the proper permsissions set.
IIS and aspnet do not have full run of the OS and can not directly access server paths as you mentioned without punching some big holes in security.
So. Create a share, set permissions and you are good to go.
|
|
|
|
|
HI All,
I am testing my application on IE8 which was made in IE6 environment.While giving print preview on one page,it missed some text from text box on IE8.The text box is multi-line.can some one help me on how to solve that and render complete text on print preview.
Hurry..!!!!
|
|
|
|
|
hi.. I created dynamic textboxes in repeater control... on post back how do i store values of textboxes
|
|
|
|
|
Try
string value = Request.Form["TextBoxName"];
Regards,
Prakash Kalakoti
|
|
|
|
|
i had add button which adds textboxes how do i get all the text box values as text boxs are in repeater control
|
|
|
|
|
You can use a counter to generate the ids of the textbox. Every time you generate a text box increment the counter by one and store the value back to session or viewstate.
Your code that generates the text box will look something like this.
TextBox newTextBox = new TextBox();
newTextBox.ID = "repeaterTextBox" + Viewstate["COUNTER"].ToString();
At the time of retrieving just loop till the value of counter, you can generate all the ids back, by which you can get the values.
Regards,
Prakash Kalakoti
|
|
|
|
|
you can try the options provided or need to create dynamic controls at on init of the page.
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
hello all,
I want to get a value from gridView (grdQuestions) which in turn goes to the textbox which is in another grdView(grdOptions). Now, the problem is how to find the control of textBox(txtText) of "GrdOptions" GridView, so that i can set the "GrdQuestions" griview cells' value into that textbox...
plz help if you understand..
The code is:
foreach (GridViewRow rw in GrdQuestions.Rows)
{
for (int i = 8; i < GrdQuestions.Rows[e.NewEditIndex].Cells.Count; i++)
{
TextBox tb = (TextBox)GrdOptions.Rows[0].Cells[1].FindControl("txtText");
if (GrdQuestions.Rows[rw.RowIndex].Cells[i].Text != string.Empty)
{
tb.Text = GrdQuestions.Rows[rw.RowIndex].Cells[i].Text;
}
}
}
|
|
|
|
|
have you a link or button to transfer the data of one grid cell value to other?
Regards
Keyur Satyadev
|
|
|
|
|
I have textbox in another gridview to which value is to be inserted
But i don't know how transfer that value into that textbox
|
|
|
|
|
do one thing, when you fire the itemcommand on first gridview at that time take that textbox value in some field (such as if many fields then use the datatable ) and give that datatable to the second grid. i.e.
grd2.datasource = dt;
grd2.databind()
protected void grd1_ItemCommand(object sender, GridCommandEventsArgs e)
{
if(e.commandname == "settextboxvalue")
{
string txt1value;
txt1value = (TextBox)grd1.FindControl("txt1").Text;
}
}
in this way you get the value of textbox of first grid now you can assign this to the second.
Regards
Keyur Satyadev
|
|
|
|
|
Please use codeblock/code tags while copying code into the question. That will make it easy to read.
And please also let me know what exception are you getting and if the grdOptions is binded at the time of this operation.
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
I just want to know how to get the value of one gridview row into the textbox which is in the template field of another gridview .
could you help me in the code?
|
|
|
|
|
(GrdOptions.Rows[0].FindControl("txtText") as TextBox).Text = GrdQuestions.Rows[rw.RowIndex].Cells[i].Text;
I doubt that its not the way which is causing you problem but its the logic.
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
its not the correct way,
how could you populate the row in the statement (GrdOptions.Rows[0].FindControl("txtText") as TextBox) as in that griview, row is empty
thus,
its giving an error "Index out of range"
|
|
|
|
|
vinci007 wrote: TextBox tb = (TextBox)GrdOptions.Rows[0].Cells[1].FindControl("txtText");
vs
vinci007 wrote: (GrdOptions.Rows[0].FindControl("txtText") as TextBox)
Doesn't have much difference
index out of range!! might have many reasons behind it.
1. your grid GrdOptions is not binded at all.
2. the data source is empty.
Please provide more detail what do you want to accomplish - adding some more formatted code will help too.
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
Dear Friends!
I made an ASP.Net Application and upload it into my web site (http://www.mahdighiasi.net[^]). Sometimes I can see my web site correctly, but sometimes, I see a compile error page:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code 128.
Show Detailed Compiler Output:
C:\WINDOWS\SysWOW64\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\assembly\dl3\16601818\c6da888d_3fcbca01\ICSharpCode.SharpZipLib.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\assembly\dl3\1237b663\3a2acc77_3fcbca01\FredCK.FCKeditorV2.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\assembly\dl3\5ec1c104\96bb7748_3fcbca01\App_global.asax.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\assembly\dl3\5d8fc178\9a076263_3fcbca01\App_Web_login.aspx.cdcab7d2.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\assembly\dl3\d4e97541\faa99f46_3fcbca01\App_Code.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\App_Web_login.aspx.cdcab7d2.kflpoqex.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\1fqh2jo-.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls,System.Data,System.Drawing "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\App_Web_login.aspx.cdcab7d2.kflpoqex.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a0b54bf1\f348b8e6\App_Web_login.aspx.cdcab7d2.kflpoqex.1.vb"
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
ASP.NET Version at my server is correct, so how can I solve my problem?
Regards.
Mehdi Ghiasi
|
|
|
|
|
This [^]is what MS says about it...
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.
|
|
|
|
|
This Links is about .Net Framework 1.0 and .Net Framework 1.1 , but i'm using .Net Framework 2.0
Regards.
Mehdi Ghiasi
|
|
|
|
|
Mehdi Ghiasi wrote: This Links is about .Net Framework 1.0 and .Net Framework 1.1 , but i'm using .Net Framework 2.0
Doesn't matter...
Anyways, this [^]link explains some more details...
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.
But my server is not dedicated, and I have only a plesk control panel for manage my host settings. how can I do?
Regards.
Mehdi Ghiasi
|
|
|
|
|
Is your site precompiled/published
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
Amar Chaudhary wrote: Is your site precompiled/published
Yes. it is precompiled. but I was tested it with source code and I gave same results.
Regards.
Mehdi Ghiasi
|
|
|
|
|
What is the response of their customer support.
It is Good to be Important but!
it is more Important to be Good
|
|
|
|