|
how to fix the size and position of text box or other control that size would not be changed?
|
|
|
|
|
|
just give some values the its properties according to your requirements
|
|
|
|
|
I have the master page having middle part as content template and on left and right
on master page I am displaying images which are changing on each refreshment.
In IE if I refresh the page it comes to master page pageload event (Postback=false)
and executes the functions (for displaying the images right and left )in condition postback==false
In IE it comes ones on this page(master page) BUT IN MOZZILLA if I refresh the page it comes two times on pageload and execute that functions two times on page load of master page....and changed images that i bind to repeater to display is not diplayed ...
sjs
|
|
|
|
|
I am displaying multiple rows and columns in a table dynamically i want to keep page index or next previous link to the table with out using grid, but the functionality must be like page indexer in grid view
|
|
|
|
|
Hi,
Your idea of using table instead of Gridview and Datagrid is not good.
But to implement the functionality u want to, you should put linkbuttons for Prev and Next functionality and should write your own logic in their click event.
The scenario is similar to implementing Custom Paging in Gridview/datagrid.
Do search on CustomPaging you will get idea about that.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
I created a file called Mypageaspx.aspx.
I stuck a load of code in it before i realised that i got the name wrong so i changed it to Mypage.aspx.
When i looked in the aspx file the inherits="MynameSpace.Mypageaspx" I changed this to Mynamespace.Mypage and searched for Mypageaspx in the project and nothing found. Now the code won't compile because "The name 'ControlName' does not exist in the current context". Changing this back makes the project compile again.
Every time i rename a page in asp.net i have problems and i suspect that the inherits tag value has something to do with it. If it doesn't actually relate to any other part of my project I don't understand what it does.
Can anyone help, I'd be especially grateful if someone could show me how to rename a file without the project blowing up every time.
Thanks
Russell
|
|
|
|
|
In the ASP.NET code-behind (or code-beside for 2.0) model an aspx page and the code file for it are connected in two ways. The CodeBehind (or CodeFile for 2.0) atribute in the Page directive contains the physical filename (like Mypage.aspx.cs) while the Inherits contains the class (or partial class for 2.0) for the page. Renaming the page changes the filenames, and hence the CodeBehind/CodeFile attribute's value. However it does not need to, and therefore also doesn't, rename the class in the codefile. Inherits should only be changed if the name of the class is also changed manually.
|
|
|
|
|
I'm working on a project for dynamic code generation. We are creating the entire solution from scratch here(just at the initial stage).
I create aspx and code behind files in the PL, but after the entire solution is created, I try to open the aspx file in the designer and I get this error:
"The file could not be loaded in to the Web Forms designer."
I am getting this link for help:
http://msdn2.microsoft.com/en-us/library/aa289356(VS.71).aspx
But I'm using src attribute like this and it was working when creating file using VS 2003:
Could someone point out whats going wrong here.
Regards
|
|
|
|
|
hellow friends....
i have developed ASP.NET Services and i want to use this services in my VC++ client but i m not getting result although i m able call method correctly using SOAP .. but result is not proper.?
plz tell me where i m making mistake...
//ASP .NET services..
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http:/www.WbService07Name.com/webServices/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class ClsService07 : System.Web.Services.WebService
{
public ClsService07()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public double DoAdditon(double a, double b)
{
return (a + b);
}
}
///vc++ client
void DisplayAdd()
{
try
{
ISoapSerializerPtr Serializer;
ISoapReaderPtr Reader;
ISoapConnectorPtr Connector;
cout<<"test display:main\n";
// Connect to the service
Connector.CreateInstance(__uuidof(HttpConnector30));
Connector->Property["EndPointURL"] ="http://localhost:2014/WebService07/Service.asmx";
Connector->Connect();
Connector-> Property["SoapAction"] = "http:/www.WbService07Name.com/webServices/DoAdditon";
// Begin message
Connector->BeginMessage();
// Create the SoapSerializer
Serializer.CreateInstance(__uuidof(SoapSerializer30));
// Connect the serializer to the input stream of the connector
Serializer->Init(_variant_t((IUnknown*)Connector->InputStream));
// Build the SOAP Message
Serializer->StartEnvelope("","","");
Serializer->StartBody("");
Serializer->StartElement("DoAdditon",L"http://localhost:2014/WebService07/Service.asmx/","","");
//Serializer->startElement("Add","uri:Calc","","m");
Serializer->StartElement("a","","","");
Serializer->WriteString("5.9");
Serializer->EndElement();
Serializer->StartElement("b","","","");
Serializer->WriteString("10.8");
Serializer->EndElement();
Serializer->EndElement();
Serializer->EndBody();
Serializer->EndEnvelope();
// Send the message to the web service
Connector->EndMessage();
// Let us read the response
HRESULT hr = Reader.CreateInstance(__uuidof(SoapReader30));
// Connect the reader to the output stream of the connector
Reader->Load(_variant_t((IUnknown*)Connector->OutputStream), "");
printf("Answer: %s\n",(const char*)Reader->RpcResult->text);
BSTR br;
Reader->RpcResult->get_text(&br);
cout<
|
|
|
|
|
Did u Find solution for ur problem if its then plz do tell me as i m having the same Task and Problem plz reply u
can mail me my id is
shaina2231@yahoo.com
thanks in advance
|
|
|
|
|
Hi,
I am using the following Javascript function for the Google search API,using which I am getting the results on the same page where I am giving the . Please kindly let me know how do I retrieve results on another page,ie the results must redirect to another .aspx
page.
function OnLoad1() {
// create a search control
var searchControl = new GSearchControl();
var siteSearch = new GwebSearch();
// create a draw options object so that we
// can position the search form root
var options = new GdrawOptions();
siteSearch.setSiteRestriction("supremesoft.net");
options.setSearchFormRoot(document.getElementById("searchForm"));
// populate with searchers
searchControl.addSearcher(new GwebSearch());
searchControl.addSearcher(new GvideoSearch());
searchControl.addSearcher(new GblogSearch());
searchControl.draw(document.getElementById("searchForm1"), options);
//searchControl.execute("Ferrari Enzo");
}
GSearch.setOnLoadCallback(OnLoad1);
If any questions regarding this please let me know.
Regards,
Aasha Sigul
Software Engineer
|
|
|
|
|
Could anyone please tell me how to show alert message box from serverside?
In button_serverClick event i'm performing validations for date input. So if it erroneous then i want to show an alert message. How can this be done?
try
{
if (Convert.ToDateTime(txtFromDate.Value, format) > Convert.ToDateTime(txtToDate.Text, format))
{
errorMsg = "'From date' cannot be greater then 'To date'";
}
}catch(Exception ex)
{
"alert message showing the exception saying that date not in correct format"
}
Kindly do tell me..
Thanks
|
|
|
|
|
deep7 wrote: to show alert message box from serverside
Response.Write(" alert(\"Hai\");");
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Thanks a lot
|
|
|
|
|
You are most welcome
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: Response.Write(" alert(\"Hai\");");
Ouch, that's ugly!
Page.ClientScript.RegisterStartupScript(this.GetType(), "MyAlertMessage", string.Format("alert('{0}');", errorMessage), true);
That's nice!
Pilo
|
|
|
|
|
Hai Everybody,
I want to connect and work with the FileMaker application through ASP.net.
Can anyone give me a reference.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hi All,
I need to Hide Navigation Page of my Website through Javascript. I am using iFrame for this, the same code works fine in ASP.NET 1.1 but not in ASP.NET 2.0.
When I click on the button which call Javascript function hides Navigation page (named treeview.aspx) but the page on right side (named frmMainPage.aspx) of the site hide some controls which are at the left of that page(frmMainPage.aspx).
Please help me...
Thanks in advance...
|
|
|
|
|
Hi,
I am using VB.NET 1.1 and I am trying to write XML data to the browser window. It doesn't write it like an XML file, but more like text, all in one row.
My code behind looks like this:
Dim writer As New XmlTextWriter(Response.OutputStream, Encoding.UTF8)
writer.WriteStartDocument()
writer.WriteStartElement("userInfo")
writer.WriteStartElement("browserInfo")
writer.WriteElementString("userAgent", Request.UserAgent)
writer.WriteElementString("userLanguages", String.Join(", ", Request.UserLanguages))
writer.WriteEndElement()
writer.WriteStartElement("visitInfo")
writer.WriteAttributeString("timeVisited", DateTime.Now.ToString())
writer.WriteElementString("ip", Request.UserHostAddress)
writer.WriteElementString("rawUrl", Request.RawUrl)
writer.WriteEndElement()
writer.WriteEndElement()
writer.WriteEndDocument()
writer.Close()
Response.ContentEncoding = Encoding.UTF8
Response.ContentType = "text/xml"
Response.End()
I've searched high and low for an answer, but no luck. Please can some advise??
Regards
ma se
|
|
|
|
|
Do you mean that only text is displayed? Or that the output ahs tags but is on one line?
In the latter case you need to use XmlWritterSetting and set indent to true
XmlWriterSettings settings = new XmlWriterSettings();<br />
settings.Indent = true;<br />
<br />
writer = XmlWriter.Create(Response.OutputStream, settings);
only two letters away from being an asset
|
|
|
|
|
Hi,
I have an ASP.Net application in which I have an Upload Excel Functionality. I put an HTML button to browse the file for the user.
My requirement is while opening the Choose File Dialog box, Files of type should come as Excel WorkBook (*.xls). Is it possible to do that?
Anybody knows, please help.
Thanks in advance
Meeram395
|
|
|
|
|
|
Hi
I am using hyperlinks in one aspx page when i click that link it redirects another page with some parameters. But now i want to display that dynamic page in the same page as somepart of the page in which i had used hyperlinks. how to do this ???
Is it possible by using frames???
plz help me...
Thanks in advance
Haritha
|
|
|
|
|
Hi there Haritha would you please rephrase your question to make it clearer. I don't quite understand what you are asking.
|
|
|
|