|
|
Hi,
I currently have an iframe sat on a classin asp page, this iframe then displays my aspx pages as we are in the process of migration to .net framework.
Currently in the classic asp page I have a javascript function that is called using the iframe onload function, this resizes the iframe according to the size of the content loaded in. It works a treat.
However my issue is how can I call that function again from within in my aspx page, say if the page grows dynamically (i.e. options or validation messages are added). Currently the content gets pushed out the iframe, so I would need to call the resize function again.
Any ideas would be greatly appreciated.
Regards
Paul Custance
|
|
|
|
|
Ok I answered my own question, but for those who would like to know the solution:
I called the function by "parent.parent.resize('iFrameId')"
The parent.parent called the function in my classic asp page that holds the iframe.
I then added the call to the OnResize event of the html tag on my aspx page.
Hope that helps
Paul C
|
|
|
|
|
hello...
I m facing Problem as follows....
I had created on DB in SQL server 2005..(TEST) with table (tblImage) (ImageID int, Image image)...
Then created on aspx page in VS 2005 C#.....
I had stored data with this page ... in DB ... (NO PROBLEM)
I had Retrive DATA From DB ... in DATASET .... (NO PROBLEM)
NOW IWANT TO SHOW THAT RETRIVE IMAGE IN <asp:image> Control on my page....
........... Help me.....
Thanking You....
|
|
|
|
|
|
Thx u .... this worked ... for me.......
|
|
|
|
|
when I insert an animated gif to a website it works in development but not in testing how can I make it work?
BiG RaLpH
|
|
|
|
|
I dont Know... Where have u put the image...
but if u use <asp:image> Control .... it will work...
Try IT...
|
|
|
|
|
thx mihirhp I tried it and it is the same It doesn't animate do you have any other Idea?
BiG RaLpH
|
|
|
|
|
Hi,
I am Creating ASP.Net application,in my website I am using Login Controls
My Machine.Config contains following for connection string
add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"
/connectionStrings
DataSource=.\SQLEXPRESS, But my system doesnot Have SQLExpress
I want to modify this, I changed my Web.Config as
add name="LocalSqlServer" connectionString="data source=.;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"
When I am executing the web site I am getting the following errors
The entry 'LocalSqlServer' has already been added
|
|
|
|
|
I need help about paging.how we create paiging in datlist as in datagrid.
suhail Ali
|
|
|
|
|
|
Hi .
I am creating dynamically dataitem for datalist and populating record to it on fly. My problem is that table does not recognize <br / >
Inside ph.Controls.Add(new LiteralControl("</td ><br /><td align = left>"));
WHAT IS THE ISSUE
PLEASE HELP...
THANK YOU
CODE THAT I AM USING TO CREATE DATALIST DATAITEM.
public void InstantiateIn(System.Web.UI.Control container )
{
PlaceHolder ph = new PlaceHolder();
ImageMap imp = new ImageMap();
Label item1 = new Label();
..
..
imp.ID = "img1";
switch (templateType)
{
case ListItemType.Header:
ph.Controls.Add(new LiteralControl("<table border=\"1\">" ));
break;
case ListItemType.Item:
ph.Controls.Add(new LiteralControl("<tr align = left><td >"));
ph.Controls.Add(imp);
<b>ph.Controls.Add(new LiteralControl("</td><br /><td align = left>"));</b> ph.Controls.Add(item1);
ph.Controls.Add(new LiteralControl("</td ><br /><td align = left>"));
ph.Controls.Add(item2);
<b>ph.Controls.Add(new LiteralControl("</td ><br /><td align = left>"));</b> ph.Controls.Add(item3);
ph.Controls.Add(new LiteralControl("</td ><br /><td align = left>"));
ph.Controls.Add(item4);
ph.Controls.Add(new LiteralControl("</td></tr>"));
//ph.Controls.Add(new LiteralControl("</table>"));
ph.DataBinding += new EventHandler(Item_DataBinding);
break;
case ListItemType.Footer:
ph.Controls.Add(new LiteralControl("</table>"));
break;
}
container.Controls.Add(ph);
}
And binding it as
static void Item_DataBinding(object sender, System.EventArgs e)
{
PlaceHolder ph = (PlaceHolder)sender;
DataListItem ri = (DataListItem)ph.NamingContainer;
/string impValue = (string)DataBinder.Eval(ri.DataItem, "photopath1");
String item1Value = (String)DataBinder.Eval(ri.DataItem, "Categoryid1");
String item2Value = (String)DataBinder.Eval(ri.DataItem, "subcategoryid1");
String item3Value = (String)DataBinder.Eval(ri.DataItem, "customerid1");
String item4Value = (String ) DataBinder.Eval(ri.DataItem, "retailprice1").ToString() ;
((ImageMap)ph.FindControl("img1")).ImageUrl = impValue;
((Label)ph.FindControl("item1")).Text = item1Value.ToString();
((Label)ph.FindControl("item2")).Text = item2Value.ToString();
((Label)ph.FindControl("item3")).Text = item3Value.ToString();
((Label)ph.FindControl("item4")).Text = item4Value;
}
-- modified at 5:12 Tuesday 28th August, 2007
-- modified at 5:17 Tuesday 28th August, 2007
imran khan
|
|
|
|
|
<td ><br /><td >....
Nothing to do with the placeholder - it is not valid HTML to have a <br> tag placed between two <td> tags...
|
|
|
|
|
thanks for reply.
actually then how can i move record to next line.
please help
imran khan
|
|
|
|
|
well it depends how yu want to display them - either put them all in one td tag with br betwen them, or else use the tr tag to start a new table row between each.
Try making up a simple html page with some sample data on it displayed how you want it, then recreate the html there in your code, inserting the records as and when needed.
|
|
|
|
|
actually in one i have five data to show and i would be like these data to display one below the other.
how can i do it
please help
imaran khan
|
|
|
|
|
the put a <br> between them, but leave out the </td> <td>
|
|
|
|
|
now i change the code but it does not working
ph.Controls.Add(new LiteralControl("<tr ><td align = left >"));
ph.Controls.Add(imp);
ph.Controls.Add(new LiteralControl("</td>"));
ph.Controls.Add(new LiteralControl("<br />"));
ph.Controls.Add(new LiteralControl("<td align = left>"));
ph.Controls.Add(item1);
imaran khan
|
|
|
|
|
you're still putting a br between the td tags - just leave out those tow lines:
ph.Controls.Add(new LiteralControl("<tr ><td align = left >"));
ph.Controls.Add(imp);
ph.Controls.Add(new LiteralControl("<br />"));
ph.Controls.Add(item1);
|
|
|
|
|
thanks buddy
i worked ...
i understood my mistake.
thanks alot
imaran khan
|
|
|
|
|
My prime objective is to create one asp.net application to send fax. For which i have written the following code , and added the reference of required DLL called (fsxcomex.dll). But still i am not being able to rectify the following errors.
FAXCOMEXLib.FaxServer not defined.
FAXCOMEXLib.FaxDocument not defined .
so alternatively i tried to create Activex object for it . But it didn't work.
Here is my Complete Code : Seeking immediate respone . Thanx in advance.
Dim faxServer As Object
faxServer = CreateObject("FAXCOMEXLib.FaxServer")
Dim faxDoc As Object
faxDoc = CreateObject("FAXCOMEXLib.FaxDocument")
' Dim faxServer As FAXCOMLib.FaxServer = New FAXCOMLib.FaxServerClass
faxServer.Connect(Environment.MachineName)
' Dim faxDoc As FAXCOMLib.FaxDoc = CType(faxServer.CreateDocument(path), FAXCOMLib.FaxDoc)
faxDoc.RecipientName = RecipientName
faxDoc.FaxNumber = FaxNumber
faxDoc.DisplayName = DocumentName
faxDoc.SenderName = "SenderName "
faxDoc.SenderCompany = "SenderCompany "
Dim Response As Integer = faxDoc.Send
faxServer.Disconnect()
sanjay kumar samantaray
|
|
|
|
|
So your app takes an uploaded file, and sends it from the server via fax ? What do you charge for this service, to cover your phone costs ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
hi,
I have an object called NewsItem which I'd like to return from my WebMethod GetNewsDetails. The object has got some properties (like LanguageID, Title and Text), some of which are readonly (like CreationDate). When I debug the project and look at my webmethod, the readonly properties are not mentioned in the soap-response-sample. Once I make them readwrite, it works fine (but kills my design).
Can it be done to have a read only property being serialized as well?
kind regards and thanks for any reply.
edit: I'm using .net 1.1, if that matters.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
I want to send and receive sms from asp.net application using web services.
I do not want to attach any h/w device (GSM mobile/modem).
If it is possible,what will be cost.
thanks in advance
|
|
|
|