|
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.
|
|
|
|
|
I am filling a drop down when another drop down index changed event is fired.
But i am filling dropdown using XMLHTTPREQUEST object without posting back the page. My question is when i am submitting the form with selected values..when the page is loaded my dropdown is blank.
Can somebody help me please....
madhu
|
|
|
|
|
XMLHTTPREQUEST object will work in client side using javascript, So whatever you do with this object will not reflect at server side. I mean you cant find the state changes in server side.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
How can i solve this. Please Give me any workarounds..
Thanks in advance
madhu
madhumathi.J
|
|
|
|
|
Add Hidden textbox for each and every control to store the state, write a javascript function and call when the button is clicked. after postpack repopulate or store the value back.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I can do that but being it is a dropdown i need to populate the dropdownlist everytime page is loaded. I just cannot store a value and repopulate it.
Instead i can do that at server side instaed thru java script.
Any other way i can register the control and data.
madhu
|
|
|
|
|
No way dear...I also faced this problem and did this same way...Finally I changed that event to server side.
You can do this in asp.net 2.0 without any worry using AJAX
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hello
I'm sure you saw this request fro several times, but please help me.
i'm a Windows Application Developer (C#) and i always change properties of controls programmatically.
i did these:
sqlDatasource1.Connectionstring = ... ;<br />
sqlDataSource1.SelectCommand = "SELECT idn, header, date FROM <br />
tblNews';<br />
sqlDataSource1.DataBind();<br />
gridView1.dataSourceID = sqlDataSource1;<br />
gridView1.DataBind();<br />
Now i want to do these in CodeBehind:
1-Change columns HeaderText and width
1-Change column[1] (header) to HyperLink
2-Add Button with Text="Active', Identify when user clicks on it and it's RowId
I know it takes time for helping me, Please take me usefull references in web.
Tanx
|
|
|
|
|
Hi,
Instead of creating columns automattically at runtime.
You can create the custom columns. Go to property builder of gridview and the uncheck the Automatically create columns at runtime.
Add the desired columns there giving desired header name and datafield.
|
|
|
|
|
Hello Friends
How can i know which row user clicked on it? I saw in forums they use CommandClick with e.command argument, but i can't see this event for GridView in Properties box! I don't want to use Select Column of GridView.
Tanx
|
|
|
|
|
Trap the CellMouseClick event...
You can then use the e.RowIndex to know the row clicked by the user.:->
|
|
|
|
|
Hi Max,
Check this link. It is given in detail how you can create columns dynamically.
http://www.123aspx.com/redir.aspx?res=35975
rAm
i Think, i Wait, i Fast -- Siddartha
|
|
|
|
|
Hi,
I am having datagrid with pagesize 5 and dataset which returns 20 records and binds with datagrid.
What I need is to display the datagrid by default from 2 page - that is from 6th record of my dataset result. How could i do this?
Any luck.
Rams.
Be simple and Be sample.
|
|
|
|
|
Hi,
dg.CurrentPageIndex = 2;
dg.DataBind();
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Thanks,
When i change currentpageindex, then I can't go to previous page. How to get rid of it.
Be simple and Be sample.
|
|
|
|
|
Make sure you handle the event PageIndexChanged for datagrid.
Set
DataGrid.CurrentPageIndex = e.NewPageIndex;
Hope this works
|
|
|
|
|
Hi,
Can you post your code of GridBinding and PageIndexChangedEvent ?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi,
I have done this thing by following way and it works fine for me.
I Page_Load i have writen the following to bind my datagrid for the fist time.
if(!isPostBack)
{
dgSearchResult.CurrentPageIndex = 1; // This will show 2nd page initially as u wanted to.
dgSearchResult.DataSource = dst.Tables["Products"];
dgSearchResult.DataBind();
}
and in PageIndexChanged event of datagrid I have written the following code.
dgSearchResult.CurrentPageIndex = e.NewPageIndex;
dgSearchResult.DataSource = dst.Tables["Products"];
dgSearchResult.DataBind();
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|