|
Thanks for the suggestion.
Would it be possible to get around this for now?
|
|
|
|
|
As I understand it, the issue is that your design is totally broken. You have a hard coded value for the date, so it never changes. Instead, you should use javascript to read the value out of the control when you show the popup. The ClientID property of your textbox on the server side, will tell you what it's going to be called on the client side, so a js block like
var tb = document.getElementById('<%=MyTextbox.ClientID%>';
// now pass the text of this control to your popup, make sure you check that tb is not null first
is what you need. I suspect this will do away with the percieved need for auto postback, too.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sorry I think I wasn't clear enough.
The popup has the javascript function I showed on my first port. That returns the selected date to a TextBox on the calling form(page). This works with no problem.
Problem occurs when user goes back to the calendar, changes the date (without changing any other selection that causes a post back). The selected date shows up fine on my calling page in the text box.
So, it displays the right date - while keeping the older date in the Text property because no post back has occurred.
I hope you can give me a clue.
Thanks.
|
|
|
|
|
you're saying that the issue is that when you post back, you get the old value ? Or that when you show the popup again, you get the old value ? The latter is what I understood you to be saying and what I could see would happen through looking at the code. In that case, what I said, is what will fix it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks Christian, it was helpful and managed to fix it.
|
|
|
|
|
Hi, I am trying to import contents of excel spread sheet to the panel of textboxes (NOT datagrid). can anybody please tel me how to import the contents of each cell in the column into the textboxes dynamically as soon as the user opens the link of excel into the form. pls temme how to get the link into the form and how to retrieve the cells contents from that excel link and place into textboxes.
pls gimme some guidance .. i jus know how to create textboxes inside a panel.. but the rest im totally lost.. thanks.
|
|
|
|
|
You use office interop to read the cells. You're writing a website where the user uploads an xls and it's fed back as a panel of textboxes ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
ya .. user must be able to browse for some xls document in his local hard disk and the cell contents in that particular document must be displayed in panel of textboxes in the form.. pls help me with code snippet.. im dunno how to start..
|
|
|
|
|
Like I said, you start with the interop libraries from Microsoft to control Office from .NET code.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
can you please send me some material similar to this stuff..
|
|
|
|
|
Really, all I know is that the library exists, and that there's tons of info on the web about it, I've not actually used it myself.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
im searchin for the past 2days.. i can get somethin which s not compatible to the version i have.. im using MS excel 2007 wit visual web developer 3.5 and can you pls temme how to make the user browse for the document he wants to retrieve the cel contents and put them in textboxes..please guide me .. im kinda lost even after tryin lot of prototypes
|
|
|
|
|
can anybody pls help me with code for retrieving excel cell contents in panel of textboxes(not in gridView). im trying that for the past few days but no luck.. this is what i have done till now to open a file into my form..
<div id="divHidden" style="visibility: hidden; width: 0px; height: 0px">
<input type="file" id="fileInput">
</input></div>
<input type="button" value="click here to get a file" onclick="getFile();">
<script language="javascript">
function getFile()
{
document.all["fileInput"].click();
var fileName = document.all["fileInput"].value;
}
</input></script></input>
i want the excel contents in that excel file to be displayed in textboxes .. pls help me.. its an interestin prog i wan a solution. so pls help
|
|
|
|
|
Hi all,
I am working a desktop application, from which I need to invoke a web application. As the user have already signed into the desktop application, he doesn't want to login again in web application, so what i think is to pass a querystring to my webapplication & if the querystring is there I can bypass the login procedure.
Here is what I have tried for that...
InternetExplorer objie = new InternetExplorer();
String vHeaders = null;
String cPostData = null;
object vPost = null;
String strUserName = "test";
cPostData = "uname=" + strUserName + "&FromWindows=0";
vHeaders = "Content-Type: application/x-www-form-urlencoded" + "\n" + "\r";
vPost = ASCIIEncoding.ASCII.GetBytes(cPostData);
String strUrl = @"http://localhost/webreportingsystem/admin.aspx";
object objurl = new object();
object objNull = new object();
object objvPost = new object();
object objvHeaders = new object();
objurl = (object)strUrl;
objNull = null;
objvHeaders = (object)vPost;
objvHeaders = (object)vHeaders;
objie.Visible = true;
objie.Navigate2(ref objurl, ref objNull, ref objNull, ref objvPost, ref objvHeaders);
But nothing is happening for me. In my webapplication I can't receive the querystring values.
Can anybody guide me in this? Thanking you for your time !!!
Sebastian
|
|
|
|
|
This is all very odd. Why not just use process.start to lauch IE ? Also, there are no query string values here. ( finally, this is not an ASP.NET question )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello,
I would like to pass a string parameter to a SharePoint Data View Web part and control if the webpart is visible or not. I understand how to manually set the isvisible property (for example isvisible =”False”) in the DWP Tag Properties but I can’t pass a parameter into the web part.
What I would like to accomplish is have two webparts on the same page. I would like to display one of the webparts based on the query string parameter. For example,
www.site/default.aspx?id=1 set isvisble=”true” webpart1 - set isvisble=”False” webpart2
www.site/default.aspx?id=2 set isvisble=”true” webpart2 - set isvisble=”False” webpart1
I could filter based on the query string but the webpart still takes up space on the rendered page.
I could do this after the page renders with Javascript but it seems like I should be able to accomplish this more directly.
Thanks for any input.
BC
|
|
|
|
|
hi friends
I have created one ssis package using interface, it works fine
flow is like
oledbdatasource ->
conditional splits like
--> if action = 1 then oledb command 1 -> oledbcommand2
if action = 2 then oledb command 3 -> oledbcommand4
default output of conditional split
to oledb destination
i want to do this using C#.
all the components like conditional split and oledbcommand should be add on the fly.
any one can give me a hint or url for this.
thanks so much
|
|
|
|
|
Is it releated with Asp.net ?
cheers,
Abhijit
|
|
|
|
|
Hi...
I am developing a website, which Contains Around 15 webpages. In Each page (Using MasterPage), it's having top menu (Not ASP.Net Menu Control, Only Html Anchor tags), left menu, and Right Menu. All menu items r Anchor Tags, not ASP.Net Menu Control. Right Side Menu Contents will be Changed Accoring to Page by Page. Right Now what I am Doing is,Right Menu Contents r In an ASP:ContentPlaceHolder. and Whenever Right Menu has to changed, On a Particular page, I am Overriding the MasterPage ASP:ContentPlaceHolder with Page's Design. it's working Fine.
But is this can be achieved, in any other way...
please give ur suggestions.......
Hope u people will help me..
|
|
|
|
|
binoy rajan wrote: it's working Fine.
Great !!
binoy rajan wrote: But is this can be achieved, in any other way...
please give ur suggestions.......
You are on right Track !!
Let us know if you have face any problem !!!
cheers,
Abhijit
|
|
|
|
|
binoy rajan wrote: it's working Fine.
But is this can be achieved, in any other way...
If it is working fine, then why change it? Are you trying to find a more efficient way of handling it?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
S.. I am Looking For an Efficient Way...
Looking forward for ur suggestions...
|
|
|
|
|
Hi all,
iam unable to validate textboxes enteries using java script code in asp.net 2.0 while iam using Master page.
I have created master page and an other one is Default under master Page and i have added few textboxes into default.aspx page and did validation using java script but iam unable to Perform validation .
can any body guide me in this issue. where to put java script code while we are using Master page and content Page scenario.
best regards
Rameez
|
|
|
|
|
I dont think there should be no issue. Java Script for Content page control should be written on Content page only .
rameez Raja wrote: I have created master page and an other one is Default under master Page and i have added few textboxes into default.aspx page and did validation using java script but iam unable to Perform validation .
can you be more specific about your problem ?
cheers,
Abhijit
|
|
|
|
|
i think u have use
document.getelementbyid(control name)
instead of that
use
document.getelementbyid('<%= ControlID.ClientID >')
|
|
|
|