|
S Jayakar wrote: In Server donet frame work is installed but the .net is not installed.
What do you mean by that?
Check the properties on the Website on IIS whether correct .NET Framework is choosen for that website.
|
|
|
|
|
Hi Castle Rider,
Thanks for the reply.
I got the solution. Installed ASP.NET server(C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i)
and now its working fine.
Thanks a lot for the help...
Regards,
Jay
|
|
|
|
|
I'm looking to create an asp.net video library page for my website to contain all of my site's videos. I really like the way websites such as cnn.com & ign.com have their's setup:
http://www.cnn.com/video/
http://xbox360.ign.com/dor/objects/42417/tom-clancys-splinter-cell-conviction-collectors-edition/videos/sc_spc_stealth_040110.html
Anyone know of any tutorials or software that could help me to develop a similar page on my site?
Thanks.
|
|
|
|
|
There aren't any tutorials for this, its up to you to devise a scheme that works for you and implement it.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have a page with a Repeater. The rows from the Repeater after setting its datasource is as follows:
Row1:
LinkButton | Column1 | Column2
- asp:Panel with HtmlTable and additional repeater
Row2:
LinkButton | Column1 | Column2
- asp:Panel with HtmlTable andadditional repeater
The initial load of the data only shows the row with LinkButton, the Panel and HtmlTable is to show only when the LinkButton of that row is selected. If there are two rows, the first linkbutton is clicked, it shows the Panel and HtmlTable for that row - if row 2's panel and HtmlTable is showing it needs to collapse and hide and only show the selected rows data.
Hope this makes sense so far.
The problem I am having is that now matter what Linkbutton I click, I am only getting the first instance of the items in the repeater. Meaning, I click row 2 and can only seem to get the reference to row 1's Panel and HtmlTable.
I guess my initial question would be what is the correct way to be able to get the right control based on what linkbutton is clicked?
Here is my click event for the linkbutton - what this does is once clicked it just needs to show the Panel associated with that link button.
The code below is how I am trying to get a reference to the controls for that row.
I put a HiddenField in the repeater that will tell me in the code below if we are to Expand the Panel (visible) or Collapse the Panel (hide it).
When I click the first LinkButton on Row 1 here is the ID I get back from my controls:
LinkButton returns:
ctl00_MainContent_tabContainer_tabSearchFilings_SD1_rptResults_ctl01_lnkButton
HiddenField
ctl00_MainContent_tabContainer_tabSearchFilings_SD1_rptResults_ctl01_hidrptCourtOrderResults
The panel that is brought back when I do a FindControl (see code below) is this:
Panel returns:
ctl00_MainContent_tabContainer_tabSearchFilings_SD1_rptResults_ctl01_pnlExpand
So we match, but this is the first row.
Clicking the second rows LinkButton produces this result:
LinkButton returns:
ctl00_MainContent_tabContainer_tabSearchFilings_SD1_rptResults_ctl02_lnkButton <-- WE now have ct102!
Panel returns:
ctl00_MainContent_tabContainer_tabSearchFilings_SD1_rptResults_ctl01_hidrptCourtOrderResults<-- this is still row 1's reference
so now that I cannot get the ct102's reference I can only show row 1's Panel, not row 2's...
Any idea what I am missing? Hope this made sense, ask if it didn't.
Here are two screenshots to help explain what I am talking about.
http://i327.photobucket.com/albums/k459/Welborn08/singleRows.gif[^]
http://i327.photobucket.com/albums/k459/Welborn08/expanded_row1.gif[^]
protected void lnkButton_Click(object sender, EventArgs e)<br />
{<br />
HiddenField _hid = (HiddenField)rptResults.Items[0].FindControl("hidrptCourtOrderResults");<br />
<br />
if (null != _hid)<br />
{<br />
Panel _pnlExpand = (Panel)rptResults.Items[0].FindControl("pnlExpand");<br />
<br />
<br />
if (_hid.Value == "Expand")<br />
{<br />
<br />
Repeater _rptResults = (Repeater)rptResults.Items[0].FindControl("rptCourtOrderResults");<br />
<br />
if (null != _rptResults)<br />
{<br />
#region Real Data<br />
HiddenField _hidCaseOwnerID = (HiddenField)rptResults.Items[0].FindControl("hidCaseOwnerID");<br />
HiddenField _hidCaseNum = (HiddenField)rptResults.Items[0].FindControl("hidCaseNum");<br />
HiddenField _hidCaseStatus = (HiddenField)rptResults.Items[0].FindControl("hidCaseStatus");<br />
<br />
string caseOwnId = "";<br />
string casenum = "";<br />
string casestatus = "";<br />
<br />
if (null != _hidCaseOwnerID)<br />
{<br />
caseOwnId = _hidCaseOwnerID.Value.ToString();<br />
}<br />
<br />
if (null != _hidCaseNum)<br />
{<br />
casenum = _hidCaseNum.Value.ToString();<br />
}<br />
<br />
if (null != _hidCaseStatus)<br />
{<br />
casestatus = _hidCaseStatus.Value.ToString();<br />
}<br />
<br />
DataSet dsCourtData = fetchCourtData(caseOwnId, casenum, casestatus);<br />
<br />
if (dsCourtData.Tables.Count > 0)<br />
{<br />
_rptResults.DataSource = dsCourtData;<br />
_rptResults.DataMember = "Table1";<br />
_rptResults.DataBind();<br />
}<br />
<br />
_pnlExpand.Visible = true; <-- this should be row2's pnlExpand but only row1 reference is returning<br />
#endregion <br />
}<br />
<br />
_hid.Value = "Collapse";<br />
}<br />
else<br />
{<br />
_pnlExpand.Visible = false;<br />
_hid.Value = "Expand";<br />
}<br />
<br />
}<br />
<br />
<br />
}
|
|
|
|
|
I found the answer to my problem.
The problem was I was looking in 'rptResults.Items[0].FindControl("hidrptCourtOrderResults");' for my controls and I forgot I could iterate through Item Collection of the Repeater to get the controls.
So I am doing this:
<br />
foreach(RepeaterItem rptItem in rptResults.Items)<br />
{<br />
<br />
<br />
}<br />
|
|
|
|
|
Pls i need help on how to implement message queing and multithreading in an application i am currently working with.
IT'S GREAT TO BE HERE
|
|
|
|
|
These are very broad topics, can you be a little more specific as to what you trying to accomplish and when help you need?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Pls if you don't mind i'm an upcoming programmer and just want to venture into multithreading and message queing so i can use them in building some type of applications sooner or later. im still a student and ready to learn. if i can get taught by using a real life exaple or walk through i can always apply to any kind of large application i may want to build.
IT'S GREAT TO BE HERE
|
|
|
|
|
Think of a windows app that need to read a large amount of data, or a large file, while the continues to do other tasks. This is a classic use and example of multithreading. The data or file access must be done on a separate thread to keep the UI responsive. If you want to add complexity, have the UI report progress of the operation.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hi
I have used this dll(PDFLibNet.dll) to load and convert a specefic page of a PDF file to png
in a windows project it works properly but in asp.net website a problem raised.
after using this method by user like 10 or 20 or ... times that is not regular it can not read text from Pdf file and only converts the picture in a specefic page .
my code is like this :
PDFLibNet.PDFWrapper pdfDoc = new PDFWrapper();
pdfDoc.RenderDPI = dpi;
pdfDoc.LoadPDF(root);
Guid outGuid = Guid.NewGuid();
string output = destPath + "\\" + outGuid.ToString() + ".png" ;
PDFLibNet.PDFPage pdfPage = pdfDoc.Pages[pagenumber];
Bitmap bmp = pdfPage.GetBitmap(dpi , true);
bmp.Save(output, System.Drawing.Imaging.ImageFormat.Png);
bmp.Dispose();
pdfDoc.Dispose();
return outGuid.ToString() ;
tanks for your attention.
|
|
|
|
|
You are running your application from VS IDE or From IIS ?
Cheers !
Abhijit
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I have ran this in both VS AND IIS
it is same in error
|
|
|
|
|
use ExportJpg(...)
PDFLibNet.PDFWrapper wrap = new PDFLibNet.PDFWrapper();
wrap.RenderDPI = 85.0;
wrap.LoadPDF(@"E:\Sources\usb_20\OTG Supplement v1.2.pdf");
PDFLibNet.PDFPage page;
foreach (int i in wrap.Pages.Keys)
{
file = dir + i + ".jpg";
page = wrap.Pages[i];
try
{
wrap.ExportJpg(file, i, i, 75.0, 100, 1000);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
|
|
|
|
|
public Image ExportPageAsImage(string pdffileName,int pageNumber)
{
PDFWrapper m_pdfWrapper=new PDFWrapper();
PDFPage m_page;
m_pdfWrapper.LoadPDF(pdffileName);
m_dpi = 96;
m_page = this.m_pdfWrapper.Pages[pageNumber];
Bitmap bmp = m_page.GetBitmap(m_dpi);
return (Image)bmp;
}
RVN
|
|
|
|
|
I need to change ReadOnly from false to true for one column in GridView depending on who the user is. In my particular case it is a BoundField (also I would like to know how to do it for a Template field as well) and DataField is "dteRequired". I would like to code something like that right in the Page_Load handler:
GridView1.Columns["dteRequired"].ReadOnly = true;
but I am getting compile errors...
Any idea?
Thank you.
|
|
|
|
|
For your requirement, use ItemTemplate Field and in have a Textbox and Label
and according to the user, show/hide either label or textbox in rowdatabound of gridview
|
|
|
|
|
You need to to do this in the RowCreated event.
Use something like this (adjust to suit):
protected void Grid1_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e == null) { throw new ArgumentNullException("e"); }
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[0].ReadOnly = false;
}
}
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
How can I generate a random string of given length in an asp.net web page ?????/?
|
|
|
|
|
int length = 10;
string output = string.Empty;
char c = new char();
Random rnd = new Random();
do
{
c = Convert.ToChar(rnd.Next(Char.Parse("z")));
if(Char.IsLetter(c))
{
output += c;
}
} while(output.Length < length);
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have a asp radiobutton on my page and when I display the page it appears that the border for the radiobutton is 50px and the text for the radiobutton is shoved down to the next line. I have the markup for the radiobutton below. When I use a standard HTML radiobutton it appears correctly on the page. See markup below:
Select a button
<asp:radiobutton id="radio2" runat="server" width="20px" text="Milk">
Any help would be great!
Thanks,
Steve
|
|
|
|
|
Steve Holdorf wrote: <asp:radiobutton id="radio2" runat="server" width="20px" text="Milk">
The width that you set here is too less.It must be atleast 50px according to your text.Try with the width as
Width="50px"
Let me know if any doubts.
|
|
|
|
|
OK, I moved the radiobutton out of all my div's using css and still get the same thing. The border is still about 50px and the text displays on the next line. when I select the area around the button I can see it's box and the border is wide. ???????
|
|
|
|
|
Steve,
If you give your width little bit large it will work fine. I have tested with 50px Its coming properly withput having any issue.
Now, If you have changed the width and still faceing the same problem, then I guess you have some problem with CSS.
See, when you are using RadioButton is aspx page, its renders as follows :
<asp:RadioButton ID="RadioButton1" runat="server" Width="50px" Text="milk" />
Render as :
<span style="display: inline-block; width: 50px;">
<input id="RadioButton1" type="radio" value="RadioButton1" name="RadioButton1"/>
<label for="RadioButton1">milk</label>
</span>
Which may causes the problem. So please check you css for input and label conntrol.
One alternatvie soluation that you can go for is, use Table. Put Radiobutton in one one Cell and data in other cell. Hope you got my point.
Please let me know if you have any issue.
Thanks !
Cheers !
Abhijit
<b>My Blog :</b> <a href="http://abhijitjana.net">http://abhijitjana.net</a>
|
|
|
|
|
In my css I had a input element with width=200px and when I commented it out it worked. CSS can make your pages great but can also be a pain. Thanks for all of the advice guys.
Steve Holdorf
|
|
|
|